diff --git a/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm index 22de8d9d1b7..00a1cb35a02 100644 --- a/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm @@ -49,6 +49,11 @@ using namespace facebook::react; { [super safeAreaInsetsDidChange]; + [self _updateStateIfNecessary]; +} + +- (void)_updateStateIfNecessary +{ if (!_state) { return; } @@ -78,6 +83,7 @@ using namespace facebook::react; oldState:(facebook::react::State::Shared const &)oldState { _state = std::static_pointer_cast(state); + [self _updateStateIfNecessary]; } + (ComponentDescriptorProvider)componentDescriptorProvider