We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5ef175 + 95cdc0e commit d21e74fCopy full SHA for d21e74f
src/hooks/useFullscreenBack.ts
@@ -19,12 +19,16 @@ export function useFullscreenBack(isFullscreen: boolean) {
19
if (isFullscreen) {
20
if (ExpoOrientation) {
21
// Expo projects
22
+ ExpoOrientation.lockAsync(
23
+ ExpoOrientation.OrientationLock.PORTRAIT_UP
24
+ ).catch(() => {});
25
ExpoOrientation.lockAsync(
26
ExpoOrientation.OrientationLock.DEFAULT
27
).catch(() => {});
28
} else if (RNOrientation) {
29
// Bare RN projects
30
RNOrientation.lockToPortrait();
31
+ RNOrientation.unlockAllOrientations();
32
}
33
return true;
34
0 commit comments