getSurfaceId

open fun getSurfaceId(view: View): Int

Return

Gets the surfaceId for the ThemedReactContext associated with a View, if possible, and then call getSurfaceId on it. See above (getReactContext) for additional context.

For RootViews, the root's rootViewTag is returned

Returns -1 for non-Fabric views


open fun getSurfaceId(context: Context): Int