zenyr / react-native-portal

(deprecated) Trans-locate your render destination, using mitt. Built with react@16 and react-native in mind.
MIT License
69 stars 13 forks source link

Help: usage with react-native-video #10

Open aletorrado opened 5 years ago

aletorrado commented 5 years ago

Hi, I've been trying to use this with react-native-video, to keep video playing while allowing it to be rendered anywhere. When using it this way, playback is restarted every time a different WhitePortal is used.

Is it possible to achieve a smooth playback transition between portals somehow?

Thanks!

zenyr commented 5 years ago

Pffft, I've been using my corporate GH account for wayy long time, didn't got this notification. I'm very sorry for the late response.

In short, current implement does not try to keep an instance of react component (regardless of it's a native one or not) at all. So any mount/unmount/moving actions will affect child components. If that's a pure representation of a centralized store it should not be an issue, but yeah, this won't suit your use-case. Sorry!