software-mansion / software-mansion/react-native-screens
iOS modal causing weird layout animation glitches, with new arch
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 714
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 71
Description
Description
Hi there,
There are some weird glitches animations happening when using the presentation's modal. I'm using expo-router, but I'm assuming the issue is coming from upstream with react-native-screens.
Issues happens with presentation modal, pageSheet or formSheet values.
Repro uses a FlatList, but I've seen the issue happening with a ScrollView as well.
https://github.com/user-attachments/assets/9a8dcee8-e306-4234-a651-d78606054895
I've seen many open issues regarding the Modal but couldn't find anything that's too similar to this one, so opening a new issue.
Steps to reproduce
git clone git@github.com:jeremybarbet/unistyles-sandbox.gitgit checkout repro/modalyarn install,yarn prebuildandyarn ios- Press "Open modal" and you will see something weird happening. If it doesn't happen, reload the screen + press "Open modal" again, until the glitches appear
Snack or a link to a repository
https://github.com/jeremybarbet/unistyles-sandbox.git
Screens version
4.11.1
React Native version
0.79.4
Platforms
iOS
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Clone jeremybarbet/unistyles-sandbox, check out repro/modal, install dependencies, run yarn prebuild and yarn ios, then use the Open modal entry point to reproduce the glitches. Compare behavior for modal, pageSheet, and formSheet with FlatList or ScrollView on iOS Fabric; done means identifying a reproducible upstream cause and confirming the animation no longer glitches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100