react-native-rook-sdk 1.1.0 → 1.1.2
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
package com.rooksdk.modules
|
|
2
2
|
|
|
3
3
|
import android.annotation.SuppressLint
|
|
4
|
+
import com.facebook.react.bridge.Arguments
|
|
4
5
|
import com.facebook.react.bridge.Promise
|
|
5
6
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
7
|
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
@@ -507,8 +508,12 @@ class RookSyncModule(
|
|
|
507
508
|
}
|
|
508
509
|
|
|
509
510
|
is SyncStatusWithData.Synced -> {
|
|
510
|
-
val
|
|
511
|
-
|
|
511
|
+
val data = Arguments.createMap().apply {
|
|
512
|
+
putDouble("basal", it.data.basal)
|
|
513
|
+
putDouble("active", it.data.active)
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
promise.resolve(data)
|
|
512
517
|
}
|
|
513
518
|
}
|
|
514
519
|
},
|