Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ internal class MindboxSdkLifecycleListener private constructor(


private fun getReactInstanceManager(): ReactInstanceManager? =
application.getReactApplication()?.reactNativeHost?.reactInstanceManager
runCatching {
application.getReactApplication()
?.reactNativeHost
?.reactInstanceManager
}.onFailure {
Mindbox.writeLog("[RN] Bridgeless: ReactInstanceManager unsupported. Fallback to ReactHost", Level.INFO)
Comment thread
sergeysozinov marked this conversation as resolved.
}.getOrNull()

private fun Application.getReactApplication() = this as? ReactApplication

Expand Down