software-mansion / software-mansion/react-native-screens
Weird rotation when navigation from landscape screen to portrait one
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 714
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 71
Description
Description
Basically, whenever we go from landscape screen to portrait one, the portrait one exhibits an ugly rotation from landscape view to correct portrait position.
This issue perfectly describes the problem!
Steps to reproduce
- Create an empty project using React Navigation library
- Create a BottomStackNavigator and create a Native Screen on the same level
- Change the Native Screen
orientationproperty tolandscape_right - Navigate from the BottomStackNavigator to the Native Screen and navigate back using
goBackfunction.
Snack or a link to a repository
https://snack.expo.dev/@vargajacint/weird-rotation-effect-issue
Screens version
3.18.0
React Native version
0.71.0
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
None
Architecture
None
Build type
None
Device
None
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
Start by running the linked Expo Snack and reproducing the transition described in the issue, focusing on the Native Screen orientation property and the goBack navigation. Compare the behavior on Android and iOS; done means returning from the landscape screen no longer visibly rotates through the landscape position before settling into portrait.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios, react-native, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100