Skip to content

Commit

Permalink
fix(boilerplate): Android Screen keyboard behavior (#2568 by @JenimDa…
Browse files Browse the repository at this point in the history
…cket)

[skip ci]

Updated the <KeyboardAvoidingView> component prop "behavior" as it was setting the non-ios value to "undefined" instead of "height". 

This was causing malfunctions on android devices and emulators.

Co-authored-by: Frank Calise <fcalise@gmail.com>
  • Loading branch information
JenimDacket and frankcalise committed Nov 28, 2023
1 parent 200063f commit c9311d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boilerplate/app/components/Screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function Screen(props: ScreenProps) {
<StatusBar style={statusBarStyle} {...StatusBarProps} />

<KeyboardAvoidingView
behavior={isIos ? "padding" : undefined}
behavior={isIos ? "padding" : "height"}
keyboardVerticalOffset={keyboardOffset}
{...KeyboardAvoidingViewProps}
style={[$keyboardAvoidingViewStyle, KeyboardAvoidingViewProps?.style]}
Expand Down

0 comments on commit c9311d1

Please sign in to comment.