From ba2bc0e99778b54427e08cc39f503e0c00d0e819 Mon Sep 17 00:00:00 2001 From: Roland Kakonyi Date: Mon, 27 Nov 2023 12:31:00 +0100 Subject: [PATCH 1/2] feat(hidehomeindicatorios): hide home indicator on iOS when entering fullscreen --- example/src/screens/BasicFullscreenHandling.tsx | 1 + example/src/screens/LandscapeFullscreenHandling.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/example/src/screens/BasicFullscreenHandling.tsx b/example/src/screens/BasicFullscreenHandling.tsx index a87d1e5e..dd5bb206 100644 --- a/example/src/screens/BasicFullscreenHandling.tsx +++ b/example/src/screens/BasicFullscreenHandling.tsx @@ -78,6 +78,7 @@ export default function BasicFullscreenHandling({ setFullscreenMode(isFullscreen); navigation.setOptions({ headerShown: !isFullscreen, // show/hide top bar + autoHideHomeIndicator: isFullscreen, // show/hide home indicator on iOS }); }) ).current; diff --git a/example/src/screens/LandscapeFullscreenHandling.tsx b/example/src/screens/LandscapeFullscreenHandling.tsx index 5e027e3d..ef3272bd 100644 --- a/example/src/screens/LandscapeFullscreenHandling.tsx +++ b/example/src/screens/LandscapeFullscreenHandling.tsx @@ -84,7 +84,10 @@ export default function LandscapeFullscreenHandling({ new SampleFullscreenHandler(fullscreenMode, (isFullscreen: boolean) => { console.log('on fullscreen change'); setFullscreenMode(isFullscreen); - navigation.setOptions({ headerShown: !isFullscreen }); + navigation.setOptions({ + headerShown: !isFullscreen, // show/hide top bar + autoHideHomeIndicator: isFullscreen, // show/hide home indicator on iOS + }); }) ).current; useFocusEffect( From 5c5522098cb1f641365e7771e33de132693ee75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20K=C3=A1konyi?= Date: Mon, 27 Nov 2023 12:33:22 +0100 Subject: [PATCH 2/2] chore: add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf62d831..314f5b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Android: `onEvent` callback not being called on `PlayerView` - iOS: `onEvent` on iOS has incomplete payload information +- iOS: hide home indicator when entering fullscreen mode in the example application ## [0.14.1] (2023-11-16)