Closed abdul-megadraws closed 5 months ago
const onStateChange = useCallback((state) => { if (state === 'ended') { setPlaying(false); } }, []);
Component:
<YoutubePlayer height={220} play={playing} videoId={item?.youtubeVideoId} onChangeState={onStateChange} />
same error here
probably related to android's bounce animation on scroll
use this to fix : https://github.com/LonelyCpp/react-native-youtube-iframe/issues/110#issuecomment-779848787
Component: