Skip to content

Commit c96b78e

Browse files
authored
Add concurrentRoot property to ReactNativeTypes (#21648)
* Add concurrentRoot property to ReactNativeTypes * Add concurrentRoot to ReactNativeType * Use ReactFabricType instead of ReactNativeType
1 parent aecb3b6 commit c96b78e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-native-renderer/src/ReactNativeTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export type ReactFabricType = {
210210
element: Element<ElementType>,
211211
containerTag: number,
212212
callback: ?() => void,
213+
concurrentRoot: ?boolean,
213214
): ?ElementRef<ElementType>,
214215
unmountComponentAtNode(containerTag: number): void,
215216
...

scripts/rollup/shims/react-native/ReactFabric.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
import {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
1414

15-
// TODO @sema: Adjust types
16-
import type {ReactNativeType} from './ReactNativeTypes';
15+
import type {ReactFabricType} from './ReactNativeTypes';
1716

1817
let ReactFabric;
1918

@@ -29,4 +28,4 @@ if (global.RN$Bridgeless) {
2928
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
3029
}
3130

32-
module.exports = (ReactFabric: ReactNativeType);
31+
module.exports = (ReactFabric: ReactFabricType);

0 commit comments

Comments
 (0)