React Native · Components
Textarea
Multi-line text field: label, description, error and the same appearances as fields on web.
2 exports
Live example
The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.
Preview
Code
Events
- Events appear here when you interact with the preview.
Import
Textarea
componentMulti-line text field: label, description, error and the same appearances as fields on web. Same line height and padding on both platforms.
Examples
TextareaProps
interfaceTextarea props.
Extends: FieldProps, Omit<TextInputProps, "editable" | "style" | "multiline">
| Name | Type | Default | Description |
|---|---|---|---|
ref? | Ref<TextInputRef> | Ref of the underlying native element. | |
variant? | FieldVariant | "outline" | Appearance. See FieldVariant. |
rows? | number | 3 | Number of visible rows (minimum height). |
autoResize? | boolean | false | Height grows with content (up to maxRows). |
maxRows? | number | Maximum rows with autoResize; then it scrolls inside. | |
readOnly? | boolean | Read-only. | |
style? | StyleProp<ViewStyle> | Style of the box. |