Skip to content

Commit

Permalink
fixup! Update libportal-react-native to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
afilini committed Oct 17, 2024
1 parent 68223d5 commit 2bfd700
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import xyz.twenty_two.SetDescriptorBsmsData
class LibportalReactNativeModule(reactContext: ReactApplicationContext) :
ReactContextBaseJavaModule(reactContext) {

var scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
var scope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
var instance: PortalSdk? = null

override fun getName(): String {
Expand All @@ -31,7 +31,7 @@ class LibportalReactNativeModule(reactContext: ReactApplicationContext) :

@ReactMethod
fun constructor(useFastOps: Boolean, promise: Promise) {
scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
scope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
instance = PortalSdk(useFastOps)
promise.resolve(null)
}
Expand Down

0 comments on commit 2bfd700

Please sign in to comment.