LayoutAnimation using PropTypes from React
See original GitHub issueDescription
Using KeyboardAvoidingView
in an new project causes a warning to be thrown:
Warning: checkPropTypes has been moved to a separate package. Accessing React.checkPropTypes is no longer supported and will be removed completely in React 16.
Solution
Use the prop-types
package for PropTypes inside LayoutAnimation
.
This seems to have been fixed on Master a month ago, but isn’t in the latest release?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Typechecking With PropTypes - React
To run typechecking on the props for a component, you can assign the special propTypes property: import PropTypes from 'prop-types'; class Greeting extends ......
Read more >Props and PropTypes | Mastering React Native
To use PropTypes , we'll need to add it to the React import: import React, { Component, PropTypes } from 'react'; Copy. The...
Read more >LayoutAnimation - React Native
LayoutAnimation. Automatically animates views to their new positions when the next layout happens. A common way to use this API is to call ......
Read more >How to Use PropTypes in React - freeCodeCamp
We can use PropTypes to validate any data we are receiving from props. But before using it we will have to import it...
Read more >[Solved]-PropTypes React Native is not an object-Reactjs
Some time if you install any node module that is not updated with latest react native for that you have change in every...
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
@emiliano-carrillo @crisppY this is already fixed in master
This is already fixed in 0.46.