Skip to content

Commit 5ff830e

Browse files
committed
Add RNBranchModule.getAutoInstance to README for new installs, not just update instructions
1 parent 8f4ccb3 commit 5ff830e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ ___
252252
Add RNBranchPackage to packages list in `getPackages()` MainApplication.java (`android/app/src/[...]/MainApplication.java`).
253253
Note that this is automatically done if you used `react-native link`.
254254
255-
Also add a call to `Branch.getAutoinstance()` in `onCreate()` in the same source file. This has to be
255+
Also add a call to `RNBranchModule.getAutoinstance()` in `onCreate()` in the same source file. This has to be
256256
done even if you used `react-native link`.
257257
```java
258258
// ...
@@ -276,10 +276,13 @@ import io.branch.referral.Branch;
276276
@Override
277277
public void onCreate() {
278278
super.onCreate();
279-
Branch.getAutoInstance(this);
279+
RNBranchModule.getAutoInstance(this);
280280
}
281281
```
282282
283+
_NOTE_: `RNBranchModule.getAutoInstance` was introduced in version 3.0.0-beta.2. Use `Branch.getAutoInstance` in
284+
previous versions, including 2.x.
285+
283286
Override onStart and onNewIntent in MainActivity.java to handle Branch links (`android/app/src/[...]/MainActivity.java`).
284287
This has to be done regardless whether you used `react-native link`.
285288
```java

0 commit comments

Comments
 (0)