Video stops after playing for sometime in android. Need to create an independent stack everytime I use the package
lopeselio opened this issue · 2 comments
lopeselio commented
error: 'UNAUTHORIZED_OVERLAY'
yuyongmao commented
same
anasawan299 commented
I've solved this problem by removing ViewPropTypes from the package file located in "node_modules/react-native-youtube/YouTube.android.js" . it Works for me.
- Remove ViewPropTypes from 'react-native'
- Replace the line "style: ViewPropTypes.style" to "style: PropTypes.oneOfType([PropTypes.object, PropTypes.array])"