Open sbefort opened 8 years ago
Didn't work for me either... I get:
Cannot read property 'func' of undefined PropTypes
and also...
Cannot read property 'object' of undefined PropTypes
and yet I'm clearly running: import { PropTypes } from 'react-native'; on all involved files.
I'm running RN0.33
I thought it might be because of the author's uncommon usage of importing Component from 'react-native' instead of importing Component from 'react', but that didn't resolve it... here's what I mean:
common setup: import React, { Component } from 'react'; import { PropTypes } from 'react-native';
author's uncommon setup: import React, { Component, PropTypes } from 'react-native';
is the author's setup even allowed? can't tell if this different kind of setup even works since the other undefined errors are triggered first.
Same error here too.
Steps to reproduce problem:
Open RNDrawerDemo.xcodeproj in Xcode and run it on an iPhone 6 simulator. Get these errors in Xcode: