abbasfreestyle / react-native-af-video-player

MIT License
381 stars 289 forks source link

Override fullscreen button action #119

Open Senocico opened 5 years ago

Senocico commented 5 years ago

It is possible to override the fullscreen button touch to present another component / screen with video player inside?

The fullscreen mode is not working in a scroll view with multiple components where a component contains the video player, so I want to present another component when the fullscreen button is pressed.

yamgemy commented 5 years ago

fullscreen mode actually "works" in a scrollable flatlist. The problem is just that on toggling fullscreen on a particular video item it locates the viewer to the top of the list. i made a suggestion for a workaround here https://github.com/abbasfreestyle/react-native-af-video-player/issues/45 see if it helps