File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 88#import " RNSSafeAreaViewNotifications.h"
99
1010#if RCT_NEW_ARCH_ENABLED
11+ #include < cxxreact/ReactNativeVersion.h>
1112#import < react/renderer/components/rnscreens/ComponentDescriptors.h>
1213#import < react/renderer/components/rnscreens/Props.h>
1314#import < rnscreens/RNSSafeAreaViewComponentDescriptor.h>
@@ -147,7 +148,13 @@ - (void)updateState
147148 }
148149
149150 auto newData = facebook::react::RNSSafeAreaViewState{RCTEdgeInsetsFromUIEdgeInsets (_currentSafeAreaInsets)};
150- _state->updateState (std::move (newData));
151+ _state->updateState (
152+ std::move (newData)
153+ #if REACT_NATIVE_VERSION_MINOR >= 82
154+ ,
155+ facebook::react::EventQueue::UpdateMode::unstable_Immediate
156+ #endif // REACT_NATIVE_VERSION_MINOR >= 82
157+ );
151158}
152159#else
153160- (void )updateLocalData
You can’t perform that action at this time.
0 commit comments