fix(sample): remove warning on ios with NavigationBar (#4148)
* fix(sample): remove warning on ios with NavigationBar
This commit is contained in:
parent
4a2beaa147
commit
e18769ab3a
@ -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<Props> = ({}) => {
|
||||
}, [goToChannel, srcListId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isAndroid) {
|
||||
NavigationBar.setVisibilityAsync('visible');
|
||||
}
|
||||
}, []);
|
||||
|
||||
const onAudioTracks = (data: OnAudioTracksData) => {
|
||||
|
Loading…
Reference in New Issue
Block a user