Textarea
A multiline text input with character counting and error state.
v0.2.2NativeWindStyleSheetiOSAndroidExpo Go
Preview
Installation
npx nativra-cli add textareaWrites Textarea.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | undefined | Form label displayed above textarea |
| placeholder | string | undefined | Placeholder guidance text |
| value | string | undefined | Controlled text value |
| rows | number | 4 | Initial vertical line height count |
| error | boolean | false | Highlights border in destructive red |
| errorMessage | string | undefined | Validation error description |
| disabled | boolean | false | Disables input |
| onChangeText | (text: string) => void | undefined | Text input change callback |
Source
Exactly what the CLI writes, before your import aliases are applied.