Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with PropTypes.array #80

Open
udarts opened this issue Nov 8, 2017 · 4 comments
Open

Issue with PropTypes.array #80

udarts opened this issue Nov 8, 2017 · 4 comments

Comments

@udarts
Copy link

udarts commented Nov 8, 2017

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.

@ducanhmai205
Copy link

still not work for me

@udarts
Copy link
Author

udarts commented Nov 29, 2017

What error did you get?

@dougsatch
Copy link

Please add soon!

@mikaello
Copy link

This repo is no longer mantained. You should therefore use the fork peacechen/react-native-modal-selector instead, which have fixed this and other issues.

lvojnovic added a commit to lvojnovic/react-native-modal-picker that referenced this issue Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants