Skip to content

PropTypes has been moved in React v16 #13

@carlost

Description

@carlost

Starting with react v15.5 the use of React.PropTypes resulted in a deprecation warning. in v16 that module was moved to the prop-types package. This is causing react-native-hr to fail:

TypeErr: Cannot read property 'string' of undefined

React has scripts that can be used to update the source for this package: https://github.com/reactjs/react-codemod. although that is probably unnecessary because the change is pretty minor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions