Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update useAnimatedKeyboard docs #5866

Merged
merged 11 commits into from
May 9, 2024
Prev Previous commit
Next Next commit
Update docs/docs/device/useAnimatedKeyboard.mdx
Co-authored-by: Tomek Zawadzki <tomasz.zawadzki@swmansion.com>
  • Loading branch information
maciekstosio and tomekzaw authored Apr 5, 2024
commit e7f31731d234b0dab08cdfc531bec5730b5b436f
2 changes: 1 addition & 1 deletion docs/docs/device/useAnimatedKeyboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ import AnimatedKeyboardSrc from '!!raw-loader!@site/src/examples/AnimatedKeyboar

- On Android, make sure to set `android:windowSoftInputMode` in your `AndroidManifest.xml` to `adjustResize`. Then, using the `useAnimatedKeyboard` hook disables
the default Android behavior (resizing the view to accommodate keyboard) in the whole app. Using values from `useAnimatedKeyboard` hook you can handle the keyboard yourself. Unmounting all components that use `useAnimatedKeyboard` hook brings back the default Android behavior.
- On Android using the `useAnimatedKeyboard` hook expands root view to full screen (immersive mode) and takes control over insets management. It applies the top and bottom margins according to the insets when `isStatusBarTranslucentAndroid` is false and sets top margin to 0 and bottom padding according to the navigation insets when `isStatusBarTranslucentAndroid` is true.
- On Android, using the `useAnimatedKeyboard` hook expands root view to full screen (immersive mode) and takes control over insets management. It applies the top and bottom margins according to the insets when `isStatusBarTranslucentAndroid` is false and sets top margin to 0 and bottom padding according to the navigation insets when `isStatusBarTranslucentAndroid` is true.
maciekstosio marked this conversation as resolved.
Show resolved Hide resolved
- On Android, when using navigation with native header, `isStatusBarTranslucentAndroid` doesn't affect the top inset
maciekstosio marked this conversation as resolved.
Show resolved Hide resolved
- On Android SDK < 30, when status bar is hidden, the keyboard reverts to the default Android behavior.
maciekstosio marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
Loading