invertase / react-native-material-design

React Native UI Components for Material Design
http://react-native-material-design.github.io
MIT License
3.15k stars 366 forks source link

Cannot read property 'oneOf' of undefined in 0.3.7 in React Native #173

Open BenCook28 opened 6 years ago

BenCook28 commented 6 years ago

I tried bringing your Toolbar component into a React Native 0.49.5 project, and brought in your other files needed to remove error messages. I traced the error in the title to a cryptic node module, and I never explicitly use oneOf.

image

HemrajLodha commented 6 years ago

I also got same issue. unable to find PropTypes in react lib.

ulaserdegor commented 6 years ago

I have the same error.

ShaikhKabeer commented 6 years ago

Remove import {PropTypes} from 'react-native' and place import PropTypes from 'prop-types'. Do it manually

jiteshwadia commented 6 years ago

Error is still there.

raideltorres commented 6 years ago

Also getting this error

asifalikhokhar commented 6 years ago

I am also getting this error, any work around?

nitinAct commented 4 years ago

we can't do manually in so many files it's like stupidity. is there way to resolve this