Mobile › Inputs

TextArea

Several lines of text, for feedback, notes and messages, with an optional character count.

Installation

npx expo install plankui-mobile react-native-safe-area-context expo-haptics

Usage

import { TextArea } from "plankui-mobile";

<TextArea label="Feedback" value={text} onChangeText={setText} maxLength={200} counter />

API reference

PropTypeDefaultDescription
labelstringAlways visible above the field.
rowsnumber4Visible lines before it scrolls; it grows to twice that.
counterbooleanfalseShows a count under the field. Needs maxLength; turns red near the limit.
hintstring–Help text under the field.
errorstring–Shown instead of the hint and read out by screen readers.
...TextInputPropsTextInputProps–Any React Native TextInput prop.