diff --git a/React/Fabric/Mounting/RCTMountingManager.mm b/React/Fabric/Mounting/RCTMountingManager.mm index c8a575f62..7a1b4831f 100644 --- a/React/Fabric/Mounting/RCTMountingManager.mm +++ b/React/Fabric/Mounting/RCTMountingManager.mm @@ -178,6 +178,11 @@ using namespace facebook::react; - (void)optimisticallyCreateComponentViewWithComponentHandle:(ComponentHandle)componentHandle { + if (RCTIsMainQueue()) { + // There is no reason to allocate views ahead of time on the main thread. + return; + } + RCTExecuteOnMainQueue(^{ [self->_componentViewRegistry optimisticallyCreateComponentViewWithComponentHandle:componentHandle]; });