You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to find System's Auto Rotate Status and update the UI accordingly.
In my component, I have used the getAutoRotateState as follows: useEffect(() => { Orientation.getAutoRotateState((state) => { console.log('AUTO ROTATE STATE', state); }); }, []);
But the method always returns true on iOS and false on Android regardless of locked or unlocked device state.
The text was updated successfully, but these errors were encountered:
Aaqib925
changed the title
getAutoRotateState always returning true.
getAutoRotateState always returning true on iOS and false on Android
Dec 30, 2023
I want to find System's Auto Rotate Status and update the UI accordingly.
In my component, I have used the
getAutoRotateState
as follows:useEffect(() => { Orientation.getAutoRotateState((state) => { console.log('AUTO ROTATE STATE', state); }); }, []);
But the method always returns
true
on iOS andfalse
on Android regardless of locked or unlocked device state.The text was updated successfully, but these errors were encountered: