Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro committed Feb 23, 2016
1 parent f872f92 commit 959fc72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ API_URL=https://myapi.com
LOG_ERRORS=true
```

Then access those from javascript:
Then access from your app:

```js
var Config = require('react-native-android-config');
import Config from 'react-native-config'

Config.API_URL // 'https://myapi.com'
Config.SHOW_ERRORS // 'true'
Expand All @@ -26,6 +26,8 @@ Config.SHOW_ERRORS // 'true'

## Setup

### Android

1. Include this module in `android/settings.gradle`:

```
Expand All @@ -35,7 +37,7 @@ Config.SHOW_ERRORS // 'true'
project(':react-native-android-config').projectDir = new File(rootProject.projectDir,
'../node_modules/react-native-android-config/android')
```
2. Apply a plugin and add dependency to your app build in `android/app/build.gradle`:
2. Apply a plugin and add dependency to your app build, in `android/app/build.gradle`:

```
// first line
Expand Down

0 comments on commit 959fc72

Please sign in to comment.