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.

LayoutAnimation using PropTypes from React

See original GitHub issue

Description

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

github_iconTop GitHub Comments

2reactions
hramoscommented, Jun 28, 2017

@emiliano-carrillo @crisppY this is already fixed in master

0reactions
hramoscommented, Jul 6, 2017

This is already fixed in 0.46.

Read more comments on GitHub >

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

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