LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
598 stars 153 forks source link

When using props to play props, YoutubePlayer component is rerendering. #272

Closed Parkjunwu closed 1 year ago

Parkjunwu commented 1 year ago

When using props to play props, YoutubePlayer component is rerendering.

If I use state on YoutubePlayer component contained component, YoutubePlayer component not rerendering.

But I use same thing which is not state but inherited by parent, YoutubePlayer component is rerendering whenever props change.

Is there any strategy to avoid this issue?

Thank you for checking my issue!

Parkjunwu commented 1 year ago

I'm so sorry... this is my mistake...