Skip to content

Commit

Permalink
fix: cast exception android (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
batical committed Apr 13, 2022
1 parent 6a61a9f commit 8be740f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -122,7 +122,7 @@ class AvoidSoftInputManager(private val context: ReactContext) {
if (customRootView != null) {
setOffset(from, to, currentFocusedView, customRootView)
} else {
val rootView = getReactRootView(currentFocusedView) ?: (mPreviousRootView as RootView)
val rootView = getReactRootView(currentFocusedView) ?: (mPreviousRootView as RootView?)

if (rootView !is View || (mShouldCheckForAvoidSoftInputView && checkIfNestedInAvoidSoftInputView(currentFocusedView, rootView))) {
return
Expand Down

0 comments on commit 8be740f

Please sign in to comment.