farazshaikh / react-native-country-code-telephone-input

International telephone number picker component for react-native
MIT License
23 stars 15 forks source link

Cannot read property 'func' of undefined #2

Open tavantzo opened 6 years ago

tavantzo commented 6 years ago

It seems that this library outdated.

Cannot read property 'func' of undefined

countrypicker.js:59:34 loadModuleImplementation require.js:174:4 guardedLoadModule require.js:126:11 _require require.js:110:2 phonenumberpicker.js:21 loadModuleImplementation require.js:174:4 guardedLoadModule require.js:126:11 _require require.js:110:2 SignupForm.js:4 loadModuleImplementation require.js:174:4

My project deps are:

    "dependencies": {
        "focus-redux-reducer": "~1.0.2-3",
        "libphonenumber-js": "^0.4.32",
        "material-native": "0.0.0-alpha.12",
        "react": "~16.0.0-alpha.12",
        "react-native": "^0.48.4",
        "react-native-country-code-telephone-input": "0.0.9",
        "react-native-firebase": "~3.0.0",
        "react-native-i18n": "^2.0.6",
        "react-native-router-flux": "^4.0.0-beta.21",
        "react-native-vector-icons": "^4.4.0",
        "react-redux": "^5.0.6",
        "redux": "^3.7.2",
        "redux-thunk": "^2.2.0"
    },

screenshot_1507705664

patrickmuhi commented 6 years ago

I had the same issue, this what i did;

I cloned the whole repo and edited all React.PropTypes to only PropTypes from the prop-types module

farazshaikh commented 6 years ago

do you mind sending in the pull request