question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On Changing Orientation on simulator

See original GitHub issue

Environment : ios, simulator: iPhone X, xcode 10

when i change the orientation on simulator to check weather it’s working i got the following error-

deviceOrientationDidChange is not a supported event type for Orientation. Supported events are: orientationDidChange

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
wondaycommented, Dec 19, 2018

Do you only add addOrientationListener() ? add both

        Orientation.addOrientationListener(this._onOrientationDidChange);
        Orientation.addDeviceOrientationListener(this._onDeviceOrientationDidChange);

try again?

2reactions
kumaresan-cgvakcommented, Dec 19, 2018

I too face the same issue with the latest version of react-native-orientation-locker. screenshot 2018-12-19 at 8 05 35 pm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode Simulator Rotate | Apple Developer Forums
In a few generations ago, old Xcode are changing orientation according to the orientation settings of the app. In fact, I was a...
Read more >
Rotating the Screen Orientation on Mobile Devices
Android simulator​​ Android Simulators can be rotated using the following hotkeys: Linux – Ctrl + F12. Mac – Fn + Left Ctrl +...
Read more >
ScreenOrientation - Expo Documentation
On Android, it is possible to change the screen orientation while taking the user's preferred orientation into account. On iOS, user and system...
Read more >
Running Mobile Tests in Both Landscape and Portrait Mode
You can change the orientation of your mobile emulator/simulator on Sauce Labs to either landscape or portrait mode. Sauce Automated...
Read more >
How to detect device rotation - a free SwiftUI by Example tutorial
Creating a custom view modifier that watches for orientation changes and runs a callback function when it happens.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found