File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,16 +290,11 @@ - (void)updateStateWithSize:(CGSize)size {
290290 stateData.containerWidth = static_cast <float >(size.width );
291291 stateData.containerHeight = static_cast <float >(size.height );
292292
293- // RN 0.82+ processes state updates in the same layout pass (synchronous).
294- // TODO: Once stable, we can drop native layout constraints in favor of synchronous Yoga layout.
295- auto updateMode =
296293#if REACT_NATIVE_VERSION_MINOR >= 82
297- facebook::react::EventQueue::UpdateMode::unstable_Immediate;
294+ _state-> updateState ( std::move (stateData), facebook::react::EventQueue::UpdateMode::unstable_Immediate) ;
298295#else
299- facebook::react::EventQueue::UpdateMode::Asynchronous ;
296+ _state-> updateState ( std::move (stateData)) ;
300297#endif
301-
302- _state->updateState (std::move (stateData), updateMode);
303298}
304299
305300- (void )finalizeUpdates : (RNComponentViewUpdateMask)updateMask {
You can’t perform that action at this time.
0 commit comments