Locking to Portrait on app launching rotates from Landscape to Portrait (iOS)
See original GitHub issueI want to lock the orientation of the first screen of app to Portrait. But when I launch the application I see for a while landscape orientation and then quickly rotating to the Portrait orientation. Next screens are okey.
Here is my code:
componentDidMount() {
Orientation.lockToPortrait()
}
Is it possible to solve this performance issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Change or lock the screen orientation on iPhone
You can lock the screen orientation so that it doesn't change when you rotate iPhone. Open Control Center, then tap the Lock Orientation...
Read more >Locking to Portrait on app launching rotates from Landscape ...
But when I launch the application, I see landscape orientation for a while and then quickly rotating to portrait orientation. The next screens...
Read more >Apple iPhone - Turn Screen Portrait Orientation Lock On / Off
Screen Portrait Orientation mode displays content in landscape (horizontal) or portrait (vertical) and isn't available for all apps. Simply turn your Apple® ...
Read more >Make Your iPhone's Portrait Orientation Lock Change ...
Step 1Select a Trigger for Your Automation · Step 2Choose All the Apps You Want · Step 3Make It Work When Apps Open...
Read more >iPhone Screen Not Rotating to Landscape Mode? Here's How ...
Here, tap on the Portrait Orientation Lock toggle (which looks like a lock with a circular arrow) to turn it on or off....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You also can add native code to AppDelegate.m
The native code solved my problem. This is amazing. I love this library.