Knit UI
GitHub

Playground

Loading playground…

false
Playground
<KeyboardAwareScrollView />

Examples

Long Form

A long scrollable form — the canonical use-case. Focus a field near the bottom on native to see it scroll above the keyboard.

Loading example…

Long FormSourceStorybook

Props

PropTypeDefaultDescription
bottomOffsetnumber | undefinedExtra space (native only) kept between the focused field and the keyboard.
contentContainerStyleFalsy | (ViewStyle | CSSProperties | (CSSProperties & ViewStyle)) | RegisteredStyle<ViewStyle | CSSProperties | (CSSProperties & ViewStyle)> | RecursiveArray<Falsy | (ViewStyle | CSSProperties | (CSSProperties & ViewStyle)) | RegisteredStyl…
disabled systemboolean | undefined
disableScrollOnKeyboardHideboolean | undefined
enabledboolean | undefinedToggle keyboard-aware scrolling (native only).
extraKeyboardSpacenumber | undefinedAdditional space (native only) added above the keyboard.
horizontalboolean | undefined
keyboardShouldPersistTapsboolean | "always" | "never" | "handled" | undefined
modestring | undefined
ScrollViewComponentunknown
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
showsHorizontalScrollIndicatorboolean | undefined
showsVerticalScrollIndicatorboolean | 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.