software-mansion / software-mansion/react-native-screens

Weird rotation when navigation from landscape screen to portrait one

Open
#1,775 2 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform:android platform:ios repro-provided
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.

https://user-images.githubusercontent.com/11645756/199097249-69ba8800-013f-44bc-b28b-37833c5b8a87.mp4

This issue perfectly describes the problem!

Steps to reproduce
  1. Create an empty project using React Navigation library
  2. Create a BottomStackNavigator and create a Native Screen on the same level
  3. Change the Native Screen orientation property to landscape_right
  4. Navigate from the BottomStackNavigator to the Native Screen and navigate back using goBack function.
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.