diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerListener.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerListener.kt index 10cdf1e715a..c3b8e91cd12 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerListener.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerListener.kt @@ -19,18 +19,21 @@ public interface UIManagerListener { *
This is called by Paper only. */ public fun willDispatchViewUpdates(uiManager: UIManager): Unit + /** * Called on UIThread right before view updates are executed. * *
This is called by Fabric only. */ public fun willMountItems(uiManager: UIManager): Unit + /** * Called on UIThread right after view updates are executed. * *
This is called by Fabric only. */ public fun didMountItems(uiManager: UIManager): Unit + /** * Called on UIThread right after view updates are dispatched for a frame. Note that this will be * called for every frame even if there are no updates. @@ -38,6 +41,7 @@ public interface UIManagerListener { *
This is called by Fabric only. */ public fun didDispatchMountItems(uiManager: UIManager): Unit + /** * Called right after scheduleMountItems is called in Fabric, after a new tree is committed. * diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSplitBundleCallback.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSplitBundleCallback.kt index f0a7bac89f8..a66af3eeed7 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSplitBundleCallback.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSplitBundleCallback.kt @@ -11,6 +11,7 @@ package com.facebook.react.devsupport.interfaces public interface DevSplitBundleCallback { /** Called when the split JS bundle has been downloaded and evaluated. */ public fun onSuccess() + /** Called when the split JS bundle failed to load. */ public fun onError(url: String?, cause: Throwable?) } diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry.kt index a16f5055db9..b145113ca55 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry.kt @@ -28,6 +28,7 @@ public interface TurboModuleRegistry { /** Has the NativeModule with name `moduleName` been instantiated? */ public fun hasModule(moduleName: String): Boolean + /** * Return the names of all the NativeModules that are supposed to be eagerly initialized. By * calling getModule on each name, this allows the application to eagerly initialize its diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt index b458062d36b..a12aeb4843e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt @@ -102,6 +102,7 @@ public class ReactSurfaceView(context: Context?, private val surface: ReactSurfa // views disallow that, but propagate it up the tree if possible. parent?.requestDisallowInterceptTouchEvent(disallowIntercept) } + /** * Called when a child starts a native gesture (e.g. a scroll in a ScrollView). Should be called * from the child's onTouchIntercepted implementation. diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.kt index bf01340c098..1294d4315a4 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.kt @@ -10,6 +10,7 @@ package com.facebook.react.uimanager.common public object ViewUtil { public const val NO_SURFACE_ID: Int = -1 + /** * Counter for uniquely identifying views. - % 2 === 0 means it is a Fabric tag. See * https://github.com/facebook/react/pull/12587 @@ -56,6 +57,7 @@ public object ViewUtil { } return uiManagerType } + /** * @param viewTag react tag * @return if the react tag received by parameter is a RootTag or not. diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt index 44f42539444..4db23b8cb71 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt @@ -538,6 +538,7 @@ public object ReactScrollViewHelper { * default value is zero, which means the scroll events are sent with no throttle. */ public var scrollEventThrottle: Int + /** Get the scroll view dispatch time for throttling */ /** Set the scroll view's last dispatch time for throttling */ public var lastScrollDispatchTime: Long