mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update ktfmt component on FBS:master (#44184)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44184 Reviewed By: zertosh Differential Revision: D56421174 fbshipit-source-id: 686e23775f53d67980c2e84a17d0a5c490dbec2a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
57663f7673
commit
876914be55
+4
@@ -19,18 +19,21 @@ public interface UIManagerListener {
|
||||
* <p>This is called by Paper only.
|
||||
*/
|
||||
public fun willDispatchViewUpdates(uiManager: UIManager): Unit
|
||||
|
||||
/**
|
||||
* Called on UIThread right before view updates are executed.
|
||||
*
|
||||
* <p>This is called by Fabric only.
|
||||
*/
|
||||
public fun willMountItems(uiManager: UIManager): Unit
|
||||
|
||||
/**
|
||||
* Called on UIThread right after view updates are executed.
|
||||
*
|
||||
* <p>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 {
|
||||
* <p>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.
|
||||
*
|
||||
|
||||
+1
@@ -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?)
|
||||
}
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
+1
@@ -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.
|
||||
|
||||
+2
@@ -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.
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user