Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please inform users that React.PropTypes.string no longer works. #55

Open
1 task
vincentk42 opened this issue Sep 19, 2018 · 1 comment
Open
1 task

Comments

@vincentk42
Copy link

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
Copy link

Also View.propTypes has been deprecated

View.propTypes -> ViewPropTypes
import { ViewPropTypes, requireNativeComponent } from 'react-native'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants