Skip to content

Commit 38add50

Browse files
init method fixed
1 parent 4d05edc commit 38add50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/ly/count/android/sdk/react/CountlyReactNative.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public void init(ReadableArray args){
9191
// Boolean consentFlag = args.getBoolean(7);
9292
// int ratingLimit = Integer.parseInt(args.getString(3));
9393
if("".equals(deviceId)){
94-
Countly.sharedInstance().init(context, serverUrl, appKey, null, DeviceId.Type.OPEN_UDID);
94+
Countly.sharedInstance().init(_reactContext, serverUrl, appKey, null, DeviceId.Type.OPEN_UDID);
9595
}else{
96-
Countly.sharedInstance().init(context, serverUrl, appKey, deviceId, null);
96+
Countly.sharedInstance().init(_reactContext, serverUrl, appKey, deviceId, null);
9797
}
9898
// Countly.sharedInstance().setRequiresConsent(consentFlag);
9999
// Countly.sharedInstance()

0 commit comments

Comments
 (0)