Please inform users that React.PropTypes.string no longer works.
vincentk42 opened this issue · 1 comments
vincentk42 commented
Dev setup:
react-native-create-bridge
version:
I am using create-bridge in a:
- standalone library
- [ x] existing React Native project
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 of
exampleProp: React.PropTypes.string
What happened:
Just thought i'd put it out there for people that are new to programming/react-native
dittmarconsulting commented
Also View.propTypes
has been deprecated
View.propTypes
-> ViewPropTypes
import { ViewPropTypes, requireNativeComponent } from 'react-native'