From 9f679a0ed059fd65cf9b741deb8b0b1012fe9e13 Mon Sep 17 00:00:00 2001 From: Mauricio Castillo Date: Wed, 31 Jul 2024 11:43:21 -0400 Subject: [PATCH] fix: make skipExitPage and showFooter parameters optional for android --- android/src/main/java/com/khipu/KhipuModule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/khipu/KhipuModule.kt b/android/src/main/java/com/khipu/KhipuModule.kt index bfa32fc..0953d60 100644 --- a/android/src/main/java/com/khipu/KhipuModule.kt +++ b/android/src/main/java/com/khipu/KhipuModule.kt @@ -98,8 +98,8 @@ class KhipuModule(reactContext: ReactApplicationContext) : options.getString("title")?.let { optionsBuilder.topBarTitle(it) } options.getString("titleImageUrl")?.let { optionsBuilder.topBarImageUrl(it) } - options.getBoolean("skipExitPage")?.let { optionsBuilder.skipExitPage(it) } - options.getBoolean("showFooter")?.let { optionsBuilder.showFooter(it) } + if (options.hasKey("skipExitPage")) optionsBuilder.skipExitPage(options.getBoolean("skipExitPage")) + if (options.hasKey("showFooter")) optionsBuilder.showFooter(options.getBoolean("showFooter")) options.getString("locale")?.let { optionsBuilder.locale(it) } if (options.hasKey("theme")) { val theme: String = options.getString("theme")!!