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

The chapter list <Modal> had no `supportedOrientations`, so iOS (which
defaults modals to portrait-only) rotated the app back to portrait when
the list was opened from the landscape player. Allow portrait + landscape
so the sheet opens in the current orientation. Android ignores the prop.
This commit is contained in:
Gauvain
2026-06-01 00:16:57 +02:00
parent 6b7ee0514f
commit 885976d464

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}>