Open vincentk42 opened 6 years ago
react-native-create-bridge
followed the youtube tutorial and when i tried to run it in Ios, got an error "Cannot ready property 'string' of undefined.
I found out recently that in order to complete the tutorial, prop-types must be installed. The new code should look like this
exampleProp: PropTypes.string instead of
exampleProp: PropTypes.string
exampleProp: React.PropTypes.string
Just thought i'd put it out there for people that are new to programming/react-native
Also View.propTypes has been deprecated
View.propTypes
View.propTypes -> ViewPropTypes import { ViewPropTypes, requireNativeComponent } from 'react-native'
ViewPropTypes
import { ViewPropTypes, requireNativeComponent } from 'react-native'
Dev setup:
react-native-create-bridge
version:I am using create-bridge in a:
What you did:
followed the youtube tutorial and when i tried to run it in Ios, got an error "Cannot ready property 'string' of undefined.
I found out recently that in order to complete the tutorial, prop-types must be installed. The new code should look like this
exampleProp: PropTypes.string
instead ofexampleProp: React.PropTypes.string
What happened:
Just thought i'd put it out there for people that are new to programming/react-native