Open Usman-02501 opened 1 month ago
useFocusEffect( React.useCallback(() => { return () => { Orientation.lockToPortrait(); StatusBar.setHidden(false); }; }, [navigation]), );
const handleFullscreenToggle = () => { if (isFullScreen) { Orientation.lockToPortrait(); setFullScreen(false); StatusBar.setHidden(false); setOrientation('portrait'); } else { Orientation.lockToPortrait(); setFullScreen(true); StatusBar.setHidden(true); setOrientation('portrait'); } };
const handleOrientationToggle = () => { if (orientation === 'landscape') { Orientation.lockToPortrait(); setOrientation('portrait'); } else { StatusBar.setHidden(true); Orientation.lockToLandscape(); setOrientation('landscape'); } }; How to solve this issue in expo for android platform.
useFocusEffect( React.useCallback(() => { return () => { Orientation.lockToPortrait(); StatusBar.setHidden(false); }; }, [navigation]), );
const handleFullscreenToggle = () => { if (isFullScreen) { Orientation.lockToPortrait(); setFullScreen(false); StatusBar.setHidden(false); setOrientation('portrait'); } else { Orientation.lockToPortrait(); setFullScreen(true); StatusBar.setHidden(true); setOrientation('portrait'); } };
const handleOrientationToggle = () => { if (orientation === 'landscape') { Orientation.lockToPortrait(); setOrientation('portrait'); } else { StatusBar.setHidden(true); Orientation.lockToLandscape(); setOrientation('landscape'); } }; How to solve this issue in expo for android platform.