Skip to content

Commit

Permalink
fix: fallback to default behaviour when fragment not found
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Aug 19, 2022
1 parent 2c65abf commit 2d3e0a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ open class ScreenContainer<T : ScreenFragment>(context: Context?) : ViewGroup(co
try {
FragmentManager.findFragment<Fragment>(rootView).childFragmentManager
} catch (ex: IllegalStateException) {
throw IllegalStateException("Failed to find fragment for React Root View")
context.supportFragmentManager
}
}
}
Expand Down

0 comments on commit 2d3e0a0

Please sign in to comment.