mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Because the modal layout is triggered by state, it's an async operation after the first mount, so we can see the splash when present modal. now we can pass the screen size to the initial state which can layout in the first mount operation. before: https://github.com/facebook/react-native/assets/5061845/a39d519e-e2f6-42f1-8319-6216c88e9cf3 After: https://github.com/facebook/react-native/assets/5061845/c7d59820-399b-4ea2-943d-d889971ea7ee ## Changelog: [IOS] [FIXED] - Fabric: Fixes Modal present splash when animation type is none Pull Request resolved: https://github.com/facebook/react-native/pull/41853 Test Plan: RNTester Modal example, present modal in none animation mode. Reviewed By: sammy-SC Differential Revision: D51984766 Pulled By: cipolleschi fbshipit-source-id: 34a40e75c87f1046ab2e4df45196a277f47bd525