The development server returned response error code: 500

Description
I started experiencing this issue after change an expo version from 15.0.0 to 19.0.0
I guess maybe you're using this lib: https://github.com/GeekyAnts/NativeBase/issues/24
anyhow the issue is related to react-native version changes and some code (either yours or a library) depending on some private code in react-native that changed
I managed to solve this error The cause of this error is the changes of files location made in react-native dependency which other libraries like native-base point to.
To solve it you need to view the mentioned file and change the file location to the correct location.
Sorry but @samassango could you please explain a little bit further.
@izzateesafia Okay this issue occurs in node_modules meaning it's not your code but its some of the dependence which had changed files location example: If we have modules/components/js/btn.js in a certain library, and it happen that another library use that library as one of it's dependence, then the used library decide to move the change btn.js to button/btn.js. if another app use both dependence this issue will occur. What you need to do is find the correct file location and update the file which can't resolve the previous location with the correct file location. Then its gonna work. Or Just implement expo 20.0.0 sdkversion 20.0.0, react-native 0.47.0, and react^16.0.0-alpha.12 then you won't experience that issue.
For me this error was resolved running yarn in the project folder. The cause may have been due to the fact that I'd switched branches and some of the packages were not installed.
@guarani your solution worked for me,thank you
Be aware if you have an old metro bundler instance running, you should try to restart it.
for my case i chenged node_module folder in another folder and run it.
that was reason for this issue
One of the reasons why I was having this error was because I imported 'react-native' library twice.
import { View, Text, ActivityIndicator } from "react-native";
import { View, Text, ActivityIndicator, TouchableOpacity, StyleSheet } from "react-native";
I don't know If this can really cause this problem but removing the redundant line of import solved this issue for me.
restarting the metro bundler works!
this is my first app and i got this error .i am using -g react-native-cli
I also have this issue :(
Try run npm start and react-native run-android. Maybe your Metro Bundler isn't started.
Expected Output
Running App.
Sets followed:
npm -g install react-native
npm -g install socks
npm -g install react-native-cli
cd /project-directory
react-native init <projectname>
cd projectname
-- Start Android Studio - Run Emulator (API 23) --
react-native run-android
Output:

Other Info:
react-native -v
react-native-cli: 2.0.1
react-native: 0.56.0
npm -v
5.6.0
node -v
v8.11.3
On Windows 10 Pro - 64 Bit
first delete node_modules folder and in package.json change react-native version "react-native": "0.55.2", and babel "babel-preset-react-native": "4", after that run yarn install or npm install and run its work fine for me.
On 24 July 2018 at 11:40, Karma Dice [email protected] wrote:
Expected Output
Running App.
Sets followed:
npm -g install react-native npm -g install socks npm -g install react-native-cli
cd /project-directory react-native init
cd projectname
-- Start Android Studio - Run Emulator (API 23) --
react-native run-android
Output: [image: native-error] https://user-images.githubusercontent.com/3824371/43119992-3ff0ce2e-8f36-11e8-8c42-c6cd74d7f5d2.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/react-community/create-react-native-app/issues/401#issuecomment-407292369, or mute the thread https://github.com/notifications/unsubscribe-auth/AXIWEm9ADbFdJfcFlUz-3aA7sK0cl9osks5uJrpFgaJpZM4PSuo1 .
Kish that's perfect mate. Thanks a bunch.
The horror of Android on windows is real. Same issue, metro bundler seems to be fine but issue persists. Time for some tea.
Thanks a lot @kishanmahor !
React native on windows seems to be broken, and Kishanmahor workaround to return to an older vesion of react native seems to be the way to make it work.
As a temporary workaround works, but its not something that makes me feel comfortable with react native.
Edit: Seems to be related to https://github.com/facebook/react-native/issues/20353
@rcsoares Metro Builder was running, but having the same issue for the sample starting app in react Please don't mind, I'm a newbie in react-native