From 885976d464807fcc6682ace41edf7308aee450d6 Mon Sep 17 00:00:00 2001 From: Gauvain Date: Mon, 1 Jun 2026 00:16:57 +0200 Subject: [PATCH] fix(chapters): keep landscape when opening chapter list on iOS The chapter list 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. --- components/chapters/ChapterList.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/chapters/ChapterList.tsx b/components/chapters/ChapterList.tsx index 42a90b89e..dd6ef1bd9 100644 --- a/components/chapters/ChapterList.tsx +++ b/components/chapters/ChapterList.tsx @@ -74,6 +74,9 @@ function ChapterListComponent({ transparent animationType='slide' onRequestClose={onClose} + // iOS defaults to portrait-only; without this it rotates the app + // back to portrait when opened from the landscape player. Android ignores it. + supportedOrientations={["portrait", "landscape"]} > e.stopPropagation()} style={styles.sheet}>