Type definition change source when build android
I’m building a app on react-native with Expo. I created a .env file with my variables. The problemas is that when I run npx expo run:android
the process.env
type definition change and the only available var is NODE_ENV
, so I get the error Property 'EXPO_PUBLIC_ANDROID_FIREBASE_CLIENT_ID' does not exist on type 'typeof env'.
, as you can see in the image the type definition if from android
folder:
react native expo App on real android device gives TypeError: Network request failed
I am trying to create an react native expo App and trying to fetch data from an external server using Node.js. The API is working fine on android emulator and can fetch data on the client side. The problem is that when I am using my android device it always gives this error: