diff --git a/examples/basic/src/VideoPlayer.tsx b/examples/basic/src/VideoPlayer.tsx index 53e36e2d..18d557ae 100644 --- a/examples/basic/src/VideoPlayer.tsx +++ b/examples/basic/src/VideoPlayer.tsx @@ -34,7 +34,7 @@ import Video, { } from 'react-native-video'; import styles from './styles'; import {type AdditionalSourceInfo} from './types'; -import {bufferConfig, srcList, textTracksSelectionBy} from './constants'; +import {bufferConfig, isAndroid, srcList, textTracksSelectionBy} from './constants'; import {Overlay, toast, VideoLoader} from './components'; import * as NavigationBar from 'expo-navigation-bar'; @@ -106,7 +106,9 @@ const VideoPlayer: FC = ({}) => { }, [goToChannel, srcListId]); useEffect(() => { - NavigationBar.setVisibilityAsync('visible'); + if (isAndroid) { + NavigationBar.setVisibilityAsync('visible'); + } }, []); const onAudioTracks = (data: OnAudioTracksData) => {