davidohayon669/react-native-youtube

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

error: 'UNAUTHORIZED_OVERLAY'

same

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])"