Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

App crashes immediately on splash screen when using dotenv #73

Open
sunwooz opened this issue Dec 23, 2019 · 0 comments
Open

App crashes immediately on splash screen when using dotenv #73

sunwooz opened this issue Dec 23, 2019 · 0 comments

Comments

@sunwooz
Copy link

sunwooz commented Dec 23, 2019

I'm using expo managed app to create my application.

I was able to get an error message when using expo start --minify --no-dev
but now the error message is gone and works perfectly locally.

here's the library versions in my package.json

"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react-native-dotenv": "^0.2.0",

This is my .env file

GOOGLE_PLACES_API_KEY=mygoogleplacesapikey

This is how I'm importing the env variable.

import { GOOGLE_PLACES_API_KEY } from 'react-native-dotenv'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant