From 7cdfc33f9ba72dd8424615f8d8a20c147b8ac3f3 Mon Sep 17 00:00:00 2001 From: tim-lin-bbpos Date: Sat, 14 Dec 2024 01:04:41 +0800 Subject: [PATCH] Fix tap to pay ux config hanging issue (#864) --- .../stripeterminalreactnative/StripeTerminalReactNativeModule.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt b/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt index d0b69597..5d926aa6 100644 --- a/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt +++ b/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt @@ -1125,6 +1125,7 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) : localMobileUxConfigurationBuilder.darkMode(mapToDarkMode(params.getString("darkMode"))) terminal.setLocalMobileUxConfiguration(localMobileUxConfigurationBuilder.build()) + promise.resolve(NativeTypeFactory.writableNativeMap()) } @ReactMethod