I have a project which should be connected to API through OpenVPN. I am connecting successfully but when I try to run react-native start it does not find the app and starts that. I have tried many solution but did not work for me. See screenshots below:
error in react natice
error in CMD, node.js
Related
I am building a React Native application with Expo CLI and I have the Android studio installed to test the app live.
I was able to use Expo Android app to also see the look of the app on my Android phone. Unfortunately, I use WIFI that generate random IP.
My IP changed two days ago and I had to update the BASE URL of to connect to my server instead of using localhost.
Since I did that, I was able to make API requests on my laptop but I can't seem to make API requests on my Android phone that is running the Expo android app.
I have cleared the cache and even cleared the data of my Expo Android app, but I still can't reach my server.
Only the client content starts. All API requests are not reaching the server on my Android phone but reaches the server from my laptop.
How can I fix this?
My local url looks like this:
const BASE_URL = "http://myIP:5000/api/v1";
I could see the snaks I made with expo.dev on my mobile device. I was starting the project with visual studio code for the first time, but when I scanned the QR code on my mobile device, "there was a problem loading the requested app. the request timed out. it looks like you may be using a LAN URL. make sure your device is on the same network as the server, and that you have granted Expo Go the Local Network permission in the setting app, or try using the tunnel connection type." warning is coming. Localhost does not appear under the QR code. node.js and expo are installed but expo is not working.
I have been working on react-native for windows app the thing is I created a localhost in node.js using express and made api calls from the windows app both the server and app were working fine on my device even after when i created appx bundle file and installed it on my computer then i shared the appx bundle file and my localserver file with my friend and it was causing problem there. Localhost was working fine i could make requests via postman but was not able to do so via the app it gives
Error : Network Error
. I am looking for some help if anyone have any idea about what could be going on.
Note that everything works fine on my development device
Hi everyone am trying to run the default project sample that comes with the MS bot framework template , when am connected to the internet the bot runs normally but when am offline the bot doesnt work and i got this error in the console :
"POST getaddrinfo ENOENT localhost:3979"
.does the emulator needs internet connection to work??? Thank you.
Yes, currently you have to be online to use the emulator.
i'm new to react native and native apps in general and i'm using windows 10.
i have downloaded java and android studio and configured path variables.
i have node installed already and used it to get react-native-cli.
i have initialized a project and troubleshooted all errors.
after running run-android command i get the output of a successful build and it seems like everything should work but the emulator is not responding. i tried API 23 and API 24. does anyone know whats the problem might be?