findView

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.

Parameters

root

root of the view hierarchy from which to find the view


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.

Parameters

root

root of the view hierarchy from which to find the view