react-native-media-kit
react-native-media-kit copied to clipboard
undefined is not an object (evaluating '_react2.PropTypes.number')
--android集成报错 1、MediaKitPackage implements ReactPackage的复写方法报接口不存在 临时先注掉@Override 2、ReactMediaPlayerViewManager类里new Event(view.getId()/, SystemClock.uptimeMillis()/)提示参数不对,注释掉参数 然后不报错 正常引入Video控件报错undefined is not an object (evaluating '_react2.PropTypes.number')
@panhs The problems cause by Proptypes because of React new version change it. you can fix from ReactMediaPlayerViewManager.js and MediaKitPackage.js
OLD import React, {PropTypes} from 'react'
Change import React from 'react import PropTypes from 'prop-types';
The Libray still working
This my dependencies version
react-native version 0.51
react version 16
Good luck.