Skip to content

Commit

Permalink
Update documentation for keyboard events on Android
Browse files Browse the repository at this point in the history
facebook/react-native@1e48274 fixed keyboard events on Android 11+ when an activity has set `android:windowSoftInputMode` to `adjustNothing`. Update the documentation to reflect the change.
  • Loading branch information
NickGerleman authored Aug 11, 2022
1 parent 27065d0 commit bb9db50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ This can be any of the following:
- `keyboardWillChangeFrame`
- `keyboardDidChangeFrame`

> Note that if you set `android:windowSoftInputMode` to `adjustResize` or `adjustPan`, only `keyboardDidShow` and `keyboardDidHide` events will be available on Android. If you set `android:windowSoftInputMode` to `adjustNothing`, no events will be available on Android. `keyboardWillShow` as well as `keyboardWillHide` are generally not available on Android since there is no native corresponding event.
> Note that only `keyboardDidShow` and `keyboardDidHide` events are available on Android. The events will not be fired when using Android 10 and under if your activity has `android:windowSoftInputMode` set to `adjustNothing`.
---

Expand Down

0 comments on commit bb9db50

Please sign in to comment.