Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen prop for the PlayerView #169

Merged
merged 11 commits into from
Jul 28, 2023
Merged

Conversation

matamegger
Copy link
Contributor

For certain use cases it might be needed to set the fullscreen state from code.

This PR introduces the isFullscreen prop on the PlayerView, which triggers the according mechanism on the native side to enter/exit fullscreen.
The prop also relies on the FullscreenHandler, so one must specify a FullscreenHandler in order to use the new prop.

@matamegger matamegger self-assigned this Jul 26, 2023
example/src/screens/BasicFullscreenHandling.tsx Outdated Show resolved Hide resolved
ios/RNPlayerViewManager.m Outdated Show resolved Hide resolved
ios/RNPlayerViewManager.swift Outdated Show resolved Hide resolved
src/components/PlayerView/index.tsx Show resolved Hide resolved
@matamegger matamegger requested a review from krocard July 28, 2023 11:18
@matamegger matamegger merged commit 1f45ef9 into development Jul 28, 2023
4 checks passed
@matamegger matamegger deleted the player_view_fullscreen_api branch July 28, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants