react-native-material-design icon indicating copy to clipboard operation
react-native-material-design copied to clipboard

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

Open BenCook28 opened this issue 7 years ago • 7 comments

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

BenCook28 avatar Nov 08 '17 16:11 BenCook28

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

HemrajLodha avatar Nov 13 '17 11:11 HemrajLodha

I have the same error.

ulaserdegor avatar Dec 01 '17 06:12 ulaserdegor

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

ShaikhKabeer avatar Dec 24 '17 14:12 ShaikhKabeer

Error is still there.

jiteshwadia avatar Apr 25 '18 10:04 jiteshwadia

Also getting this error

raideltorres avatar Jun 06 '18 23:06 raideltorres

I am also getting this error, any work around?

asifalikhokhar avatar Jul 05 '18 20:07 asifalikhokhar

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

nitinAct avatar Oct 22 '19 10:10 nitinAct