Attempted to use a library that uses View.propTypes. Got a warning: Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead yet looking up ViewPropTypes yields nothing on the official site and Google only contains results about issues on other projects.
List all the steps required to reproduce the issue you're reporting. These steps should be clear and concise.
An example of your code is REQUIRED
export default class SomeClass extends React.PureComponent {
static propTypes = {
style: View.propTypes.style,
}
// ...
}
Documentation for View is currently linking to /viewproptypes.html#props which just forwards to "Getting Started" instead.
Provide at documentation page for ViewPropTypes that list how to use it. I eventually found (by browsing the RN code base) that you can import ViewPropTypes from 'react-native' package like this:
import {Text, View, ViewPropTypes} from 'react-native';
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
I think this should be reopened
Most helpful comment
I think this should be reopened