[Orientation] supportedInterfaceOrientations
See original GitHub issueReact Native needs some way to allow for setting a preferred orientation on a screen by screen basis.
My use case is I have an iPhone app that should be portrait except for the video and picture screens which should allow rotation to landscape.
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}
Looks like this could be related to #426
Issue Analytics
- State:
- Created 8 years ago
- Comments:27 (18 by maintainers)
Top Results From Across the Web
supportedInterfaceOrientations - Apple Developer
Notifies the view controller about a change in supported interface orientations or preferred interface orientation for presentation.
Read more >How to lock a view controller's orientation ... - Hacking with Swift
To configure this, you need to override the supportedInterfaceOrientations property in your UIViewController subclass, returning whichever ...
Read more >Set the Supported Device Orientation - Medium
The supportedInterfaceOrientations is an instance property that returns all of the interface orientations this view controller supports.
Read more >Forcing an orientation in iOS - Nuno Alexandre
Most SO answers suggest to override preferredInterfaceOrientationForPresentation , supportedInterfaceOrientations , and shouldAutorotate .
Read more >Understanding UIViewController Rotation - gists · GitHub
A view controller can override the `supportedInterfaceOrientations` method to ... ViewController screen is now rotating again as device orientation changes.
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
@yamill 's library is not working on RN 0.42.0, I’m looking for a new solution, anyone suggest for it?
Same issue in 0.43.0 any updates how to solve this