mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
opacity on overlay
This commit is contained in:
@@ -228,7 +228,14 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({ data }) => {
|
||||
onLoadStart={onVideoLoadStart}
|
||||
onReadyForDisplay={onReadyForDisplay}
|
||||
onPlaybackStatusUpdate={setStatus}
|
||||
style={styles.video}
|
||||
style={[
|
||||
styles.video,
|
||||
{
|
||||
...(!isIdle && {
|
||||
opacity: 0.7,
|
||||
}),
|
||||
},
|
||||
]}
|
||||
onTouchStart={() => setIsIdle(!isIdle)}
|
||||
/>
|
||||
{isLoading && <ActivityIndicator size="large" color="#0000ff" />}
|
||||
|
Reference in New Issue
Block a user