Skip to content

Commit

Permalink
Add missing step.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenk330 committed Oct 30, 2015
1 parent 2becd70 commit 072d3a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/**/*
/node_modules
/npm-debug.log

# Xcode
#
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,19 @@ protected void onCreate(Bundle savedInstanceState) {
}
```

### 5. Use in your JS
### 5. Make sure the ``AndroidManifest.xml`` file has `INTERNET` and `ACCESS_NETWORK_STATE` permissions:

```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.analytics">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

</manifest>
```

### 6. Use in your JS

```js
var RNGoogleAnalytics = require('react-native').NativeModules.RNGoogleAnalytics;
Expand Down

0 comments on commit 072d3a1

Please sign in to comment.