Skip to content

Issue with PropTypes.array #80

Open
@udarts

Description

@udarts

I received an error about undefined is not an object (evaluating propTypes.array).

I fixed it by changing the following in the react-native-modal-picker/index.js:

import React,{
    PropTypes
} from 'react';

To:

import React from 'react';
import {PropTypes} from 'prop-types';

Which works perfectly.
It seems that prop-types is a separate module in react-native, so no longer being imported from react itself.

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