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