react-nativecreate-react-native-app

React Native: bundling failed - Unable to resolve module `AccessibilityInfo`


error: bundling failed:

Error: Unable to resolve module AccessibilityInfo from D:\MyApp\node_modules\react-native\Libraries\react-native\react-native-implementation.js: Module AccessibilityInfo does not exist in the Haste module map


Solution

  • Its some incompatible versioning problems in React native.Try this it will work

    1. Change versions of following in package.json In dependencies :-

      "react": "16.3.1"
      "react-native": "0.55.4"
      

      In devDependencies :-

      "babel-preset-react-native": "2.1.0"
      
    2. Delete node_modules and run npm install --save

    3. Then run application by react-native run-android

    It will run fine ...