react-native-modal-picker
react-native-modal-picker copied to clipboard
Issue with PropTypes.array
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.
still not work for me
What error did you get?
Please add soon!
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.