Skip to content

Commit

Permalink
Added RNBranchModule.getAutoInstance to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Feb 25, 2019
1 parent 72af393 commit 8f4ccb3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,20 @@ dependencies {
If you're using an older version of Gradle, you may need `compile` instead of
`implementation`.
It is recommended to replace `Branch.getAutoInstance` in your `Application.onCreate`
method with `RNBranchModule.getAutoInstance`. This is required in order to set Branch
keys in the `branch.json` file.
```java
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
// Replace Branch.getAutoInstance(this); with:
RNBranchModule.getAutoInstance(this);
}
```
___
### Register Your App
Expand Down

0 comments on commit 8f4ccb3

Please sign in to comment.