Skip to content

Commit

Permalink
fix: incorrect initial windowSoftInputMode value on Android (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz1913 committed Dec 12, 2021
1 parent d68ddd6 commit af2e0ab
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -21,6 +21,8 @@ class AvoidSoftInputModule(

override fun initialize() {
super.initialize()

mDefaultSoftInputMode = reactContext.currentActivity?.window?.attributes?.softInputMode ?: WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED
reactContext.addLifecycleEventListener(this)
}

Expand Down

0 comments on commit af2e0ab

Please sign in to comment.