react-native-orientation-locker icon indicating copy to clipboard operation
react-native-orientation-locker copied to clipboard

When switching from portrait to landscape then slight space left using version 1.5.0. Also cannot update

Open Asharuddin-90 opened this issue 11 months ago • 3 comments

media_20240228_125155_7607707875810082966 media_20240228_125155_7613300781130159606 How to fix this space when switching from portrait to landscape then getting this space if landscape-left then left side space is there or if landscape-right then right side space is there.

useDeviceOrientationChange((ori) => { setOrientation(ori); // This will trigger a re-render if (ori === "LANDSCAPE-RIGHT" || ori === "LANDSCAPE-LEFT") { if (state.index === 1) { Orientation.unlockAllOrientations(); } } else if (ori === "UNKNOWN" || ori === "FACE-UP") { // No action needed for these cases null; } else if (ori === "PORTRAIT-UPSIDEDOWN") { Orientation.lockToPortrait(); } else { // Lock to portrait if not in landscape mode or unknown Orientation.lockToPortrait(); } });

Asharuddin-90 avatar Feb 28 '24 08:02 Asharuddin-90

Hello guys , Any solution for this?

RuFang-21 avatar Apr 01 '24 08:04 RuFang-21

I have same issue. Is there any solution??

Nairi85 avatar Jun 27 '24 11:06 Nairi85

+1

lvnini avatar Jul 17 '24 12:07 lvnini