diff --git a/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryAcivity.kt b/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryAcivity.kt index afc3b44e..a5a61dd4 100644 --- a/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryAcivity.kt +++ b/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryAcivity.kt @@ -56,4 +56,4 @@ class AncillaryFactoryAcivity : AppCompatActivity(), DefaultHardwareBackBtnHandl requestPermissions(permissions, requestCode) } // endregion -} \ No newline at end of file +} diff --git a/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryFragment.kt b/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryFragment.kt index c1e112c9..bd98e956 100644 --- a/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryFragment.kt +++ b/android/playground/src/main/java/com/kiwi/mobile/rnandroidplayground/AncillaryFactoryFragment.kt @@ -5,6 +5,8 @@ import com.kiwi.rnkiwimobile.ancillaries.RNAncillaryFactoryFragment import com.kiwi.rnkiwimobile.ancillaries.RNAncillaryFactoryInitialProperties -class AncillaryFactoryFragment: RNAncillaryFactoryFragment(RNAncillaryFactoryInitialProperties(service = "fast_track", bookingId = 123, kwAuthToken = "mock")) { +class AncillaryFactoryFragment: RNAncillaryFactoryFragment( + RNAncillaryFactoryInitialProperties(service = "fast_track", bookingId = 123, kwAuthToken = "mock")) { + override fun getReactNativeHost(): ReactNativeHost = (activity?.application as PlaygroundApplication).reactNativeHost -} \ No newline at end of file +} diff --git a/android/rnkiwimobile/src/main/java/com/kiwi/rnkiwimobile/ancillaries/RNAncillaryFactoryFragment.kt b/android/rnkiwimobile/src/main/java/com/kiwi/rnkiwimobile/ancillaries/RNAncillaryFactoryFragment.kt index eb1d3929..25e7ee97 100644 --- a/android/rnkiwimobile/src/main/java/com/kiwi/rnkiwimobile/ancillaries/RNAncillaryFactoryFragment.kt +++ b/android/rnkiwimobile/src/main/java/com/kiwi/rnkiwimobile/ancillaries/RNAncillaryFactoryFragment.kt @@ -2,8 +2,11 @@ package com.kiwi.rnkiwimobile.ancillaries import com.kiwi.rnkiwimobile.RNKiwiFragment; -abstract class RNAncillaryFactoryFragment(initialProperties: RNAncillaryFactoryInitialProperties) : RNKiwiFragment(RNAncillaryFactoryModule.getInitialProperties(initialProperties)) { +abstract class RNAncillaryFactoryFragment( + initialProperties: RNAncillaryFactoryInitialProperties) : RNKiwiFragment( + RNAncillaryFactoryModule.getInitialProperties(initialProperties)) { + override fun getModuleName(): String { return RNAncillaryFactoryModule.moduleName } -} \ No newline at end of file +}