File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 252252Add RNBranchPackage to packages list in `getPackages()` MainApplication.java (`android/app/src/[...]/MainApplication.java`).
253253Note 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
256256done 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+
283286Override onStart and onNewIntent in MainActivity.java to handle Branch links (`android/app/src/[...]/MainActivity.java`).
284287This has to be done regardless whether you used `react-native link`.
285288```java
You can’t perform that action at this time.
0 commit comments