Fabric: Fixed incorrect SchedulerToolbox initialization in RCTSurfacePresenter

Summary: We have to use a getter instead of an ivar to enable lazy initialization of ContextContainer.

Reviewed By: mdvacca

Differential Revision: D15731877

fbshipit-source-id: eb4d0e70c337026a91cb12a3eb26ed4d94f39f9f
This commit is contained in:
Valentin Shergin
2019-06-09 15:24:09 -07:00
committed by Facebook Github Bot
parent 6236798a3f
commit 47a17fb69e
+1 -1
View File
@@ -197,7 +197,7 @@ using namespace facebook::react;
auto runtimeExecutor = [self _runtimeExecutor];
auto toolbox = SchedulerToolbox{};
toolbox.contextContainer = _contextContainer;
toolbox.contextContainer = self.contextContainer;
toolbox.componentRegistryFactory = componentRegistryFactory;
toolbox.runtimeExecutor = runtimeExecutor;