React-native-vector-icons: Undefined is not an object(evaluating 'React.PropTypes.oneOf')

Created on 15 Apr 2017  路  7Comments  路  Source: oblador/react-native-vector-icons

I'm on these version:

  "dependencies": {
    "lodash": "^4.17.4",
    "react": "16.0.0-alpha.6",
    "react-native": "0.43.3",
    "react-native-vector-icons": "^4.0.1"
  },

Can't build app with above. Anyone can help me out?

Most helpful comment

Same here, since update to RN 0.49.3

EDIT : Temporarly fixed it by downgrading React from 16.0.0 to 16.0.0-alpha.12

All 7 comments

I'm currently experiencing an issue with this.
undefined is not an object (evaluating '_react2.PropTypes.oneOf')

I had linked thisreact-native-vector-icons package too.

version:
"react": "^16.0.0-rc.3",
"react-native": "^0.48.3",

How to resolve this?

Same here, since update to RN 0.49.3

EDIT : Temporarly fixed it by downgrading React from 16.0.0 to 16.0.0-alpha.12

Same here, downgrading React worked as well, but not really a good long term solution.

How exactly do you downgrade? I'm getting this issue:

$ npm install [email protected]
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ahernandez/.npm/_logs/2017-11-27T23_39_06_809Z-debug.log

Never mind ... I needed to downgrade React and not React-Native, like this:

$ npm install [email protected]
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.0.0-beta.5 but none is installed. You must install peer dependencies yourself.

+ [email protected]
updated 1 package in 4.684s

Have this same issue. I do not wish to 'downgrade' react.

Has this been resolved completely? I just upgraded to 0.57.8 and just experienced the same issue. Any thoughts?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tharrington picture tharrington  路  4Comments

peacechen picture peacechen  路  3Comments

AbhayVarshney picture AbhayVarshney  路  3Comments

toddmetheny picture toddmetheny  路  4Comments

afilp picture afilp  路  4Comments