@sentiance-react-native/core 6.0.0-beta.14 → 6.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core.js +3 -1
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -7,6 +7,7 @@ const SDK_USER_LINK_EVENT = "SENTIANCE_USER_LINK_EVENT";
|
|
|
7
7
|
const SDK_USER_ACTIVITY_UPDATE_EVENT = "SENTIANCE_USER_ACTIVITY_UPDATE_EVENT";
|
|
8
8
|
const SDK_ON_TRIP_TIMED_OUT_EVENT = "SENTIANCE_ON_TRIP_TIMED_OUT_EVENT";
|
|
9
9
|
|
|
10
|
+
let coreModule = {};
|
|
10
11
|
if (!SentianceCore) {
|
|
11
12
|
const nativeModuleName = varToString({SentianceCore});
|
|
12
13
|
console.error(`Could not locate the native ${nativeModuleName} module.
|
|
@@ -51,6 +52,7 @@ if (!SentianceCore) {
|
|
|
51
52
|
SentianceCore._addUserLinkListener = _addUserLinkListener;
|
|
52
53
|
SentianceCore._addSdkUserActivityUpdateListener = _addSdkUserActivityUpdateListener;
|
|
53
54
|
SentianceCore._addTripTimeoutListener = _addTripTimeoutListener;
|
|
55
|
+
coreModule = SentianceCore;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
|
-
export default
|
|
58
|
+
export default coreModule;
|
package/lib/index.js
CHANGED
|
@@ -154,9 +154,9 @@ const createUser = async (userCreationOptions) => {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const addSdkStatusUpdateListener = core
|
|
158
|
-
const addSdkUserActivityUpdateListener = core
|
|
159
|
-
const addTripTimeoutListener = core
|
|
157
|
+
const addSdkStatusUpdateListener = core._addSdkStatusUpdateListener;
|
|
158
|
+
const addSdkUserActivityUpdateListener = core._addSdkUserActivityUpdateListener;
|
|
159
|
+
const addTripTimeoutListener = core._addTripTimeoutListener;
|
|
160
160
|
|
|
161
161
|
const transportModes = {};
|
|
162
162
|
(function (transportModes) {
|