Knit UI
GitHub

Playground

Loading playground…

false
Playground
<KeyboardAvoidingView
  behavior="padding"
/>

Examples

Login Form

Wrapping a simple login form — the canonical use-case.

Loading example…

Login FormSourceStorybook

Props

PropTypeDefaultDescription
automaticOffsetboolean | undefined
behavior"position" | "height" | "padding" | "translate-with-padding" | undefined
height · padding · position · translate-with-padding
paddingNative strategy used to avoid the keyboard. Ignored on web.
contentContainerStyleunknown
disabled systemboolean | undefined
enabledboolean | undefinedToggle keyboard avoidance (native only).
keyboardVerticalOffsetnumber | undefinedExtra offset (native only) added above the keyboard.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
theme systemThemeName | null | undefinedApplies a theme to this element
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 498 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.