@kontextso/sdk-react-native 2.0.0-rc.3 → 2.0.0-rc.5
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/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -256,13 +256,14 @@ var getDevice = () => {
|
|
|
256
256
|
try {
|
|
257
257
|
const os = import_react_native2.Platform.OS;
|
|
258
258
|
const systemVersion = import_react_native_device_info.default.getSystemVersion();
|
|
259
|
-
const reactNativeVersion = import_react_native2.Platform.constants.reactNativeVersion.toString();
|
|
260
259
|
const model = import_react_native_device_info.default.getModel();
|
|
261
260
|
const brand = import_react_native_device_info.default.getBrand();
|
|
262
261
|
const deviceId = import_react_native_device_info.default.getDeviceId();
|
|
263
262
|
const deviceType = import_react_native_device_info.default.getDeviceType();
|
|
264
263
|
const appBundleId = import_react_native_device_info.default.getBundleId();
|
|
265
264
|
const appVersion = import_react_native_device_info.default.getVersion();
|
|
265
|
+
const rnv = import_react_native2.Platform.constants.reactNativeVersion;
|
|
266
|
+
const reactNativeVersion = `${rnv.major}.${rnv.minor}.${rnv.patch}`;
|
|
266
267
|
return {
|
|
267
268
|
os,
|
|
268
269
|
systemVersion,
|
package/dist/index.mjs
CHANGED
|
@@ -219,13 +219,14 @@ var getDevice = () => {
|
|
|
219
219
|
try {
|
|
220
220
|
const os = Platform.OS;
|
|
221
221
|
const systemVersion = DeviceInfo.getSystemVersion();
|
|
222
|
-
const reactNativeVersion = Platform.constants.reactNativeVersion.toString();
|
|
223
222
|
const model = DeviceInfo.getModel();
|
|
224
223
|
const brand = DeviceInfo.getBrand();
|
|
225
224
|
const deviceId = DeviceInfo.getDeviceId();
|
|
226
225
|
const deviceType = DeviceInfo.getDeviceType();
|
|
227
226
|
const appBundleId = DeviceInfo.getBundleId();
|
|
228
227
|
const appVersion = DeviceInfo.getVersion();
|
|
228
|
+
const rnv = Platform.constants.reactNativeVersion;
|
|
229
|
+
const reactNativeVersion = `${rnv.major}.${rnv.minor}.${rnv.patch}`;
|
|
229
230
|
return {
|
|
230
231
|
os,
|
|
231
232
|
systemVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kontextso/sdk-react-native",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-native-webview": "^13.15.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@kontextso/sdk-react": "^1.2.
|
|
54
|
+
"@kontextso/sdk-react": "^1.2.2"
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
57
|
"dist/*"
|