From 47a17fb69ef16ba92ad587ddd3fb448f09692c4d Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Sat, 8 Jun 2019 22:37:26 -0700 Subject: [PATCH] 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 --- React/Fabric/RCTSurfacePresenter.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Fabric/RCTSurfacePresenter.mm b/React/Fabric/RCTSurfacePresenter.mm index adc049828ad..17f4491a7c5 100644 --- a/React/Fabric/RCTSurfacePresenter.mm +++ b/React/Fabric/RCTSurfacePresenter.mm @@ -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;