@samitouri / QOS-React-2 / commits / c96b78e0e7

Add concurrentRoot property to ReactNativeTypes (#21648)

* Add concurrentRoot property to ReactNativeTypes * Add concurrentRoot to ReactNativeType * Use ReactFabricType instead of ReactNativeType

Samuel Susla committed Jun 10, 2021 at 13:59 UTC c96b78e0e7cd9e6ef7c0464748a50cf8510dde81
2 files changed +3 -3
packages/react-native-renderer/src/ReactNativeTypes.js
+1
@@ -210,6 +210,7 @@ export type ReactFabricType = {
210 element: Element<ElementType>,
211 containerTag: number,
212 callback: ?() => void,
213 + concurrentRoot: ?boolean,
214 ): ?ElementRef<ElementType>,
215 unmountComponentAtNode(containerTag: number): void,
216 ...
scripts/rollup/shims/react-native/ReactFabric.js
+2 -3
@@ -12,8 +12,7 @@
12
13 import {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
14
15 -// TODO @sema: Adjust types
16 -import type {ReactNativeType} from './ReactNativeTypes';
15 +import type {ReactFabricType} from './ReactNativeTypes';
16
17 let ReactFabric;
18
@@ -29,4 +28,4 @@ if (global.RN$Bridgeless) {
28 BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
29 }
30
32 -module.exports = (ReactFabric: ReactNativeType);
31 +module.exports = (ReactFabric: ReactFabricType);