Я использую response-native-video компонент в моем реактивно-нативном проекте.Мне нужно изменить цвет строки состояния.Не вызывая компонент видео, я могу изменить цвет строки состояния, но когда я вызываю компонент Видео видео реакции-видео, цвет строки состояния становится белым.Вот пример кода
<View style={{ flex: 1,backgroundColor: "black" }}>
<StatusBar
hidden={this.state.orientation === "landscape" ? true : false}
backgroundColor = "#00BCD4"
/>
<View style={[VideoPlayerStyles.videoWrapper, screenMode]}>
<TouchableOpacity activeOpacity={1} onPress={this.showControls}>
<Video
source={{
uri:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4"
}} // Can be a URL or a local file.
ref={ref => {
this.player = ref;
}} // Store reference
onBuffer={this.onBuffer} // Callback when remote video is buffering
onError={this.videoError} // Callback when video cannot be loaded
style={VideoPlayerStyles.videoStyle}
resizeMode="contain"
paused={this.state.paused}
repeat
// controls
fullscreen
fullscreenOrientation={"landscape"}
fullscreenAutorotate={false}
/>
</TouchableOpacity>
</View>
</View>