if you are running it on expo then it should be on the same network so that you can insert data to your local server you need to change the localhost into the IP Address you are connected