PropTypes error with react 16
See original GitHub issuenative-base should make use of prop-types
package instead of React.PropTypes
react-native: 0.45.1 react: 16.0.0-alpha.13 native-base:2.1.5
With the latest alpha versions of react, they completely removed React.PropTypes, and my code does not work
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:19 (3 by maintainers)
Top Results From Across the Web
Don't Call PropTypes Warning
Don't call PropTypes directly ... Using PropTypes in any other way than annotating React components with them is no longer supported: var apiShape...
Read more >How to validate React props using PropTypes
Learn how to validate props with React PropTypes, React's internal mechanism for adding type checking to component props.
Read more >React Router Error TypeError: _react.PropTypes is undefined
I am new to reactjs. I tried to add react router to my application and now get error: TypeError: _react.PropTypes is undefined ....
Read more >prop-types
You might also see this error if you're calling a PropTypes validator from your own custom PropTypes validator. In this case, the fix...
Read more >react is missing in props validation
You need to set the static property 'propTypes' on the component to satisfy this lint error. Here is some info about React's PropTypes:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool @shivrajkumar! Will run a few more tests with the branch on my fork and submit the PR.
@sankhadeeproy007 thanks! I have created a PR that fixes this https://github.com/GeekyAnts/theme/pull/2