@@ -40,7 +40,7 @@ import {
40
40
getInspectorDataForViewTag ,
41
41
getInspectorDataForViewAtPoint ,
42
42
} from './ReactNativeFiberInspector' ;
43
- import { LegacyRoot } from 'react-reconciler/src/ReactRootTags' ;
43
+ import { LegacyRoot , ConcurrentRoot } from 'react-reconciler/src/ReactRootTags' ;
44
44
import ReactSharedInternals from 'shared/ReactSharedInternals' ;
45
45
import getComponentNameFromType from 'shared/getComponentNameFromType' ;
46
46
@@ -201,13 +201,21 @@ function render(
201
201
element : Element < ElementType > ,
202
202
containerTag: number,
203
203
callback: ?() => void ,
204
+ concurrentRoot : ?boolean ,
204
205
) : ?ElementRef < ElementType > {
205
206
let root = roots . get ( containerTag ) ;
206
207
207
208
if ( ! root ) {
208
209
// TODO (bvaughn): If we decide to keep the wrapper component,
209
210
// We could create a wrapper for containerTag as well to reduce special casing.
210
- root = createContainer ( containerTag , LegacyRoot , false , null , false , null ) ;
211
+ root = createContainer (
212
+ containerTag ,
213
+ concurrentRoot ? ConcurrentRoot : LegacyRoot ,
214
+ false ,
215
+ null ,
216
+ false ,
217
+ null ,
218
+ ) ;
211
219
roots . set ( containerTag , root ) ;
212
220
}
213
221
updateContainer ( element , root , null , callback ) ;
0 commit comments