Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ktfmt component on FBS:master #44184

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,29 @@ 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.
*
* <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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?)
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading