Skip to content

Commit

Permalink
Merge pull request #333 from bitmovin/hide-home-indicator-in-fullscreen
Browse files Browse the repository at this point in the history
Hide home indicator on iOS when entering fullscreen mode
  • Loading branch information
rolandkakonyi authored Nov 27, 2023
2 parents 5d33a4c + ecce921 commit bfad96e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Android: `onEvent` callback not being called on `PlayerView`
- iOS: `onEvent` on iOS has incomplete payload information
- tvOS: Picture in Picture sample screen has unwanted padding
- iOS: hide home indicator when entering fullscreen mode in the example application

## [0.14.1] (2023-11-16)

Expand Down
1 change: 1 addition & 0 deletions example/src/screens/BasicFullscreenHandling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion example/src/screens/LandscapeFullscreenHandling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bfad96e

Please sign in to comment.