Enable ConcurrentRoot in RN VR apps

Summary:
This diff is a prototype to enable ConcurrentRoot in RN VR apps

changelog: [internal] internal

Reviewed By: sammy-SC

Differential Revision: D33200238

fbshipit-source-id: 45f700808cdc3a970bcddef858944e764a7260bd
This commit is contained in:
David Vacca 2021-12-22 02:57:30 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 05ce2cf259
Коммит 3e8934b49b
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -113,6 +113,9 @@ const AppRegistry = {
runnables[appKey] = {
componentProvider,
run: (appParameters, displayMode) => {
const concurrentRootEnabled =
appParameters.initialProps?.concurrentRoot ||
appParameters.concurrentRoot;
renderApplication(
componentProviderInstrumentationHook(
componentProvider,
@ -127,7 +130,7 @@ const AppRegistry = {
appKey === 'LogBox',
appKey,
coerceDisplayMode(displayMode),
appParameters.concurrentRoot,
concurrentRootEnabled,
);
},
};