fix: enforce automatic startup jingle

This commit is contained in:
Jacques_tirot
2026-08-26 14:33:10 +02:00
parent bc7edcf3a7
commit fe51439bbe
3 changed files with 35 additions and 31 deletions
+19 -16
View File
@@ -16,6 +16,7 @@ const FullscreenIntroVideo = ({
visible = true,
onClose,
contentFit = 'contain',
allowSkip = true,
skipLabel = 'Passer la vidéo',
}) => {
const source = url ? (typeof url === 'string' ? { uri: url } : url) : videos.test
@@ -120,22 +121,24 @@ const FullscreenIntroVideo = ({
// right: 24,
// }}
/>
<Pressable
onPress={handleClose}
style={{
position: 'absolute',
top: 50,
right: 20,
backgroundColor: '#00000080',
paddingVertical: 10,
paddingHorizontal: 14,
borderRadius: 20,
borderWidth: 1,
borderColor: '#FFFFFF55',
}}
>
<Text style={{ color: '#FFF', fontSize: 14 }}>{skipLabel}</Text>
</Pressable>
{allowSkip ? (
<Pressable
onPress={handleClose}
style={{
position: 'absolute',
top: 50,
right: 20,
backgroundColor: '#00000080',
paddingVertical: 10,
paddingHorizontal: 14,
borderRadius: 20,
borderWidth: 1,
borderColor: '#FFFFFF55',
}}
>
<Text style={{ color: '#FFF', fontSize: 14 }}>{skipLabel}</Text>
</Pressable>
) : null}
</View>
</Portal>
)