@tryvital/vital-devices-react-native 5.4.1 → 5.4.3
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/android/build.gradle
CHANGED
|
@@ -99,7 +99,7 @@ class VitalDevicesReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
99
99
|
@ReactMethod
|
|
100
100
|
private fun readLibre1(promise: Promise) {
|
|
101
101
|
mainScope.launch {
|
|
102
|
-
val activity = currentActivity ?: return@launch promise.reject("ReadError", "No active Android Activity")
|
|
102
|
+
val activity = reactApplicationContext.currentActivity ?: return@launch promise.reject("ReadError", "No active Android Activity")
|
|
103
103
|
try {
|
|
104
104
|
val reader = Libre1Reader.create(activity)
|
|
105
105
|
val libre1 = reader.read()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvital/vital-devices-react-native",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.3",
|
|
4
4
|
"description": "Client to access Vital's Endpoints",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"registry": "https://registry.npmjs.org/"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tryvital/vital-core-react-native": "5.4.
|
|
51
|
+
"@tryvital/vital-core-react-native": "5.4.3",
|
|
52
52
|
"react-native-permissions": "^3.6.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|