[Fixed] The development server returned response error code: 500

The development server returned response error code: 500. react-native android error Unable to resolve module `AccessibilityInfo` from.., Module `AccessibilityInfo` does not exist in the Haste module map..

[Fixed] The development server returned response error code: 500

Downgrade “react-native” version to “0.55.2” and “babel-preset-react-native”: “4” in package.json, If its value is greater than suggested value. After change run yarn install or npm install

react-native run-android 500 red screen issue

Screen show red screen and following message at top “The development server returned response error code: 500”.

It also gives different other message detail(Unable to resolve module `AccessibilityInfo` from.., Module `AccessibilityInfo` does not exist in the Haste module map.) and Issue Number #401.

In error message they provide 3 solutions i tried but it not work for me. After given reference and more search i found fixed solution and it worked perfect for me. Hope it will work for you too.

Solution: The development server returned response error code: 500

  1. Go to project directory
  2. Open package.json file in editor
  3. Change “react-native” and “babel-preset-react-native” version as like next step
  4. “react-native”: “0.55.2”
  5. “babel-preset-react-native”: “4”
  6. Save file
  7. run yarn install or npm install
  8. Note: When you done above steps and run react-native run-android some minor warnings comes due to Downgrade “react-native” and compatibility. Don’t worry about it, just ignore them.

    Hope solution for The development server returned response error code: 500. react-native android error Unable to resolve module `AccessibilityInfo` from.., Module `AccessibilityInfo` does not exist in the Haste module map. works for you.