You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React v. 16.0.0 comes up with separate 'prop-types module. Having said that it is not included in React itself. That means when react-native-modal-picker is used with react v16.0.0, following error appears
"Cannot read property oneOfType" of undefined.
Any fix for this?
I think the solution will be importing PropType from 'prop-types' instead of 'react
Currently in react-native-modal-picker - import React, { Component, PropTypes } from 'react';
Should be - import PropTypes from 'prop-types'
The text was updated successfully, but these errors were encountered:
React v. 16.0.0 comes up with separate 'prop-types module. Having said that it is not included in React itself. That means when react-native-modal-picker is used with react v16.0.0, following error appears
"Cannot read property oneOfType" of undefined.
Any fix for this?
I think the solution will be importing PropType from 'prop-types' instead of 'react
Currently in react-native-modal-picker - import React, { Component, PropTypes } from 'react';
Should be - import PropTypes from 'prop-types'
The text was updated successfully, but these errors were encountered: