TheWidlarzGroup / react-native-video

A <Video /> component for react-native
https://docs.thewidlarzgroup.com/react-native-video/
MIT License
7.23k stars 2.91k forks source link

[Feature]: handle on back button click #4217

Open AdamGoodApp opened 1 month ago

AdamGoodApp commented 1 month ago

Description

I'm using react native video on visionOS and would like to keep the default controls but want to handle the back button click. Is there a way to listen handle the back button click or listen to a back event?

Screenshot 2024-10-05 at 1 38 43

Why it is needed ?

So we can handle the back button while keeping default control components.

Possible implementation

Technical POV how to do it

Code sample

Code sample

github-actions[bot] commented 1 month ago

Thank you for your feature request. We will review it and get back to you if we need more information.

moskalakamil commented 1 month ago

Hello @AdamGoodApp, I believe updating the implementation and creating a new prop shouldn’t be too difficult. Would you mind taking a look at this?