ivopr / tamagui-expo

An Expo template with Tamagui
270 stars 22 forks source link

How to use environment variables using `.env`? #29

Closed siarheipashkevich closed 1 year ago

siarheipashkevich commented 1 year ago

Is it possible to use environment variables using .env file and using eas ?

ivopr commented 1 year ago

There's been some time since I did anything with RN (this repo os the one I fiddle the most about RN these days), but for .env file tou could use react-native-dotenv, and on eas there is a place on the UI to add Secrets, where tou can put the contents of your .env file

ivopr commented 1 year ago

hey @siarheipashkevich I'll be closing this since it's more of how to use the Expo/RN framework instead of some kind of error or whatnot in this repo