Skip to content

Commit cc39adf

Browse files
rubennortefacebook-github-bot
authored andcommitted
Add flushSync to the Fabric renderer (#38475)
Summary: This just adds the definition of flushSync to the generated types, but the actual implementation will land in a different PR shortly. Changelog: [internal] Reviewed By: javache Differential Revision: D135611937
1 parent 82b1485 commit cc39adf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noformat
88
* @nolint
99
* @flow strict
10-
* @generated SignedSource<<e98f2799fc8b1c559fda763a0c36b39f>>
10+
* @generated SignedSource<<f37cc5cc99a5347fb443d0f0dc736152>>
1111
*/
1212

1313
import type {
@@ -163,6 +163,7 @@ export type ReactFabricType = {
163163
options: ?RenderRootOptions,
164164
): ?React.ElementRef<React.ElementType>,
165165
unmountComponentAtNode(containerTag: number): void,
166+
readonly flushSync: (<R>(fn: () => R) => R) & ((fn: void) => void),
166167
getNodeFromInternalInstanceHandle(
167168
internalInstanceHandle: InternalInstanceHandle,
168169
): ?Node,

0 commit comments

Comments
 (0)