mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-23 20:38:10 +00:00
clarify location of .env
This commit is contained in:
parent
2b46b99f5c
commit
6da35ff40f
@ -7,14 +7,14 @@ Bring some [12 factor](http://12factor.net/config) love to your mobile apps!
|
||||
|
||||
## Usage
|
||||
|
||||
Declare config variables in `.env`:
|
||||
Create a new file `.env` in the root of your React Native app:
|
||||
|
||||
```
|
||||
API_URL=https://myapi.com
|
||||
GOOGLE_MAPS_API_KEY=abcdefgh
|
||||
```
|
||||
|
||||
Then access from your app:
|
||||
Then access variables defined there from your app:
|
||||
|
||||
```js
|
||||
import Config from 'react-native-config'
|
||||
|
Loading…
x
Reference in New Issue
Block a user