Open SudoPlz opened 6 years ago
If we minimise the app, change orientation and re-launch it, no orientationDidChange events will be dispatched
orientationDidChange
Step 1: Launch the app in portrait Step 2: Tap the home button Step 3: Change orientation to landscape Step 4: Launch the app again
No orientationDidChange events ever take place because the BroadcastReceiver is being unregistered onHostPause
BroadcastReceiver
onHostPause
"react-native-orientation": "3.1.3", OS: Android 8.1.0 Device: Google Pixel 2 XL
Pushed a fix. Hopefully that will get merged.
This repo dead , use the fork https://github.com/wonday/react-native-orientation-locker
Issue:
If we minimise the app, change orientation and re-launch it, no
orientationDidChange
events will be dispatchedSteps to reproduce:
Step 1: Launch the app in portrait Step 2: Tap the home button Step 3: Change orientation to landscape Step 4: Launch the app again
No
orientationDidChange
events ever take place because theBroadcastReceiver
is being unregisteredonHostPause
Environment:
"react-native-orientation": "3.1.3", OS: Android 8.1.0 Device: Google Pixel 2 XL