Skip to content

Broken since PropTypes moved #23

@jcush

Description

@jcush

Since PropTypes moved to their own library (React 15.5, not sure of the exact version of RN when this happened) the component doesn't work, since it throws an error about undefined values whenever something within React.PropTypes.* is used.

The fix is to use the following in any file where PropTypes is used:

import PropTypes from 'prop-types';

Then replace any declaration of React.PropTypes with PropTypes

This error is initially thrown in /src/switch.js so it definitely needs fixing there first

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