fix resolve for boolean data
DreamingCodes committed
Jul 29, 2024 at 16:28 UTC
1e9d3d026353f1869be3a9221af532431c40c024
1 file changed
+3
-1
android/src/main/java/ExecuteContext.kt
+3
-1
@@ -105,7 +105,9 @@ class ExecuteContext internal constructor(private val call: Invoke) : Context {
105
106
override fun resolve(data: Boolean) {
107
try {
108
- call.resolve(JSObject("true"))
108
+ call.resolve(JSObject().apply {
109
+ put("data", data)
110
+ })
111
} catch (e: JSONException) {
112
e.printStackTrace()
113
reject()