Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
panhs opened this issue Dec 12, 2017 · 1 comment
Open

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

panhs opened this issue Dec 12, 2017 · 1 comment

Comments

@panhs
Copy link

panhs commented Dec 12, 2017

--android集成报错
1、MediaKitPackage implements ReactPackage的复写方法报接口不存在 临时先注掉@OverRide
2、ReactMediaPlayerViewManager类里new Event(view.getId()/, SystemClock.uptimeMillis()/)提示参数不对,注释掉参数
然后不报错 正常引入Video控件报错undefined is not an object (evaluating '_react2.PropTypes.number')

@voratham
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants