react-native-media-kit icon indicating copy to clipboard operation
react-native-media-kit copied to clipboard

undefined is not an object (evaluating '_react2.PropTypes.number')

Open panhs opened this issue 6 years ago • 1 comments

--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 avatar Dec 12 '17 01:12 panhs

@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.

voratham avatar Dec 12 '17 09:12 voratham