Skip to content

Commit 8f4ccb3

Browse files
committed
Added RNBranchModule.getAutoInstance to README.md
1 parent 72af393 commit 8f4ccb3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ dependencies {
119119
If you're using an older version of Gradle, you may need `compile` instead of
120120
`implementation`.
121121
122+
It is recommended to replace `Branch.getAutoInstance` in your `Application.onCreate`
123+
method with `RNBranchModule.getAutoInstance`. This is required in order to set Branch
124+
keys in the `branch.json` file.
125+
126+
```java
127+
@Override
128+
public void onCreate() {
129+
super.onCreate();
130+
SoLoader.init(this, /* native exopackage */ false);
131+
// Replace Branch.getAutoInstance(this); with:
132+
RNBranchModule.getAutoInstance(this);
133+
}
134+
```
135+
122136
___
123137
124138
### Register Your App

0 commit comments

Comments
 (0)