Skip to content

RN 0.51.0 Error: Undefined is not an object (evaluating '_react2.PropTypes.string') #35

@crim3hound

Description

@crim3hound

Getting the following error in React Native 0.51.0
undefined is not an object (evaluating '_react2.PropTypes.string')

I have managed to find a fix by removing the PropTypes import from react, and replacing it with import PropTypes from 'prop-types';.

Submitting a PR for review.
screenshot_20180309-051134

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