Skip to content

Commit

Permalink
Add concurrentRoot property to ReactNativeTypes (#21648)
Browse files Browse the repository at this point in the history
* Add concurrentRoot property to ReactNativeTypes

* Add concurrentRoot to ReactNativeType

* Use ReactFabricType instead of ReactNativeType
  • Loading branch information
sammy-SC committed Jun 10, 2021
1 parent aecb3b6 commit c96b78e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/react-native-renderer/src/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export type ReactFabricType = {
element: Element<ElementType>,
containerTag: number,
callback: ?() => void,
concurrentRoot: ?boolean,
): ?ElementRef<ElementType>,
unmountComponentAtNode(containerTag: number): void,
...
Expand Down
5 changes: 2 additions & 3 deletions scripts/rollup/shims/react-native/ReactFabric.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

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

// TODO @sema: Adjust types
import type {ReactNativeType} from './ReactNativeTypes';
import type {ReactFabricType} from './ReactNativeTypes';

let ReactFabric;

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

module.exports = (ReactFabric: ReactNativeType);
module.exports = (ReactFabric: ReactFabricType);

0 comments on commit c96b78e

Please sign in to comment.