Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing a video from the VideoCard component ListHeaderComponent disappears #15

Open
brayanobisto opened this issue Apr 28, 2024 · 1 comment

Comments

@brayanobisto
Copy link

When a video is played on the Home screen in the VideoCard component, the ListHeaderComponent disappears

video5004055281194238821.mp4
@usmanpkz
Copy link

usmanpkz commented Jul 7, 2024

actually it does not disappear, it goes behind the video that is playing. I was having the same problem. I changed the video height in component to h-60 (same as the TouchableOpacity that follows in that ternary operator. that seems to fix the issue. Not sure why no other height settings work for the video element but the issue got fixed.

{play ? (
<Video
source={{ uri: video }}
className='h-60 w-full rounded-xl mt-3 '
useNativeControls
shouldPlay
resizeMode={ResizeMode.COVER}
onPlaybackStatusUpdate={status=> status.didJustFinish == true && setPlay(false)}
/>
) : (
<TouchableOpacity
className='w-full h-60 rounded-xl mt-3 relative justify-center items-center'
activeOpacity={0.7}
onPress={() => setPlay(true)}
>
<Image
source={{ uri: thumbnail }}
className='h-full w-full rounded-xl mt-3'
resizeMode='cover'
/>


)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants