ReactFindViewUtil

Finds views in React Native view hierarchies

Types

Link copied to clipboard

Callback to be invoked when all react native views with geiven NativeIds have been found

Link copied to clipboard

Callback to be invoked when a react native view has been found

Functions

Link copied to clipboard

Registers an OnViewFoundListener to be invoked when a view with a matching nativeID is found. Remove this listener using removeViewListener() if it's no longer needed.

Link copied to clipboard

Finds a view tagged with {@param onViewFoundListener}'s nativeID in the given {@param root} view hierarchy. If the view does not exist yet due to React Native's async layout, a listener will be added. When the view is found, the {@param onViewFoundListener} will be invoked.

fun findView(root: View, nativeId: String): View?

Finds a view that is tagged with {@param nativeId} as its nativeID prop under the {@param root} view hierarchy. Returns the view if found, null otherwise.

Link copied to clipboard

Invokes any listeners that are listening on this {@param view}'s native id

Link copied to clipboard

Removes an OnViewFoundListener previously registered with addViewListener().