Skip to content

Commit 072d3a1

Browse files
committed
Add missing step.
1 parent 2becd70 commit 072d3a1

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
node_modules/**/*
1+
/node_modules
2+
/npm-debug.log
23

34
# Xcode
45
#

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,19 @@ protected void onCreate(Bundle savedInstanceState) {
5656
}
5757
```
5858

59-
### 5. Use in your JS
59+
### 5. Make sure the ``AndroidManifest.xml`` file has `INTERNET` and `ACCESS_NETWORK_STATE` permissions:
60+
61+
```xml
62+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
63+
package="com.example.analytics">
64+
65+
<uses-permission android:name="android.permission.INTERNET" />
66+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
67+
68+
</manifest>
69+
```
70+
71+
### 6. Use in your JS
6072

6173
```js
6274
var RNGoogleAnalytics = require('react-native').NativeModules.RNGoogleAnalytics;

0 commit comments

Comments
 (0)