expo init my-project
npm i expo-location @react-native-picker/picker react-native-dotenv
Add this line on babel.config.js
file
plugins: [["module:react-native-dotenv"]];
Create a .env
file on the project root
WEATHER_API_KEY="API KEY"
Import the package
import { WEATHER_API_KEY } from "@env";
Add .env
file on .gitignore
file