fix(chapters): keep landscape when opening chapter list on iOS (#1624)

This commit is contained in:
Gauvain
2026-06-01 09:37:35 +02:00
committed by GitHub
parent 6aa0868bfd
commit 863dffd944

View File

@@ -74,6 +74,9 @@ function ChapterListComponent({
transparent
animationType='slide'
onRequestClose={onClose}
// iOS defaults <Modal> to portrait-only; without this it rotates the app
// back to portrait when opened from the landscape player. Android ignores it.
supportedOrientations={["portrait", "landscape"]}
>
<Pressable onPress={onClose} style={styles.backdrop}>
<Pressable onPress={(e) => e.stopPropagation()} style={styles.sheet}>