File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
android/src/main/java/io/branch/rnbranch Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1414
1515import com .facebook .react .bridge .*;
1616import com .facebook .react .bridge .Promise ;
17+ import com .facebook .react .module .annotations .ReactModule ;
1718import com .facebook .react .modules .core .*;
1819import com .facebook .react .bridge .ReadableMap ;
1920
3233
3334import javax .annotation .Nonnull ;
3435
36+ @ ReactModule (name = RNBranchModule .NAME )
3537public class RNBranchModule extends ReactContextBaseJavaModule {
3638 public static final String REACT_CLASS = "RNBranch" ;
37- public static final String REACT_MODULE_NAME = "RNBranch" ;
39+ public static final String NAME = "RNBranch" ;
3840 public static final String NATIVE_INIT_SESSION_FINISHED_EVENT = "io.branch.rnbranch.RNBranchModule.onInitSessionFinished" ;
3941 public static final String NATIVE_INIT_SESSION_FINISHED_EVENT_BRANCH_UNIVERSAL_OBJECT = "branch_universal_object" ;
4042 public static final String NATIVE_INIT_SESSION_FINISHED_EVENT_LINK_PROPERTIES = "link_properties" ;
@@ -367,7 +369,7 @@ public void onCatalystInstanceDestroy() {
367369
368370 @ Override
369371 public String getName () {
370- return REACT_MODULE_NAME ;
372+ return NAME ;
371373 }
372374
373375 @ ReactMethod
You can’t perform that action at this time.
0 commit comments