File tree Expand file tree Collapse file tree
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929import com .facebook .react .common .ReactConstants ;
3030import com .facebook .react .uimanager .ReactAccessibilityDelegate .AccessibilityRole ;
3131import com .facebook .react .uimanager .ReactAccessibilityDelegate .Role ;
32+ import com .facebook .react .uimanager .common .UIManagerType ;
33+ import com .facebook .react .uimanager .common .ViewUtil ;
3234import com .facebook .react .uimanager .annotations .ReactProp ;
3335import com .facebook .react .uimanager .events .PointerEventHelper ;
3436import com .facebook .react .uimanager .util .ReactFindViewUtil ;
Original file line number Diff line number Diff line change 77
88package com.facebook.react.uimanager.common
99
10+ import android.view.View
11+
1012public object ViewUtil {
1113
1214 public const val NO_SURFACE_ID : Int = - 1
@@ -26,6 +28,12 @@ public object ViewUtil {
2628 UIManagerType .DEFAULT
2729 }
2830
31+ /* *
32+ * Overload for {@link #getUIManagerType(int)} that uses the view's id to determine if it
33+ * originated from Fabric
34+ */
35+ @JvmStatic @UIManagerType public fun getUIManagerType (view : View ): Int = getUIManagerType(view.id)
36+
2937 /* *
3038 * Version of getUIManagerType that uses both surfaceId and viewTag heuristics
3139 *
You can’t perform that action at this time.
0 commit comments