question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PropTypes error with react 16

See original GitHub issue

native-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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
sebandrescommented, Jul 12, 2017

Cool @shivrajkumar! Will run a few more tests with the branch on my fork and submit the PR.

2reactions
sean-macfarlanecommented, Jul 3, 2017

@sankhadeeproy007 thanks! I have created a PR that fixes this https://github.com/GeekyAnts/theme/pull/2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found