Skip to content

Textarea

Demo


Shows an textarea component.

Installation

Terminal window
npx @react-native-reusables/cli@latest add textarea

Usage

import { Textarea } from '~/components/ui/textarea';
import { Text } from '~/components/ui/text';
function Example() {
const [value, setValue] = React.useState('');
return (
<Textarea
ref={inputRef}
placeholder='Write some stuff...'
value={value}
onChangeText={setValue}
aria-labelledby='textareaLabel'
/>
);
}

Props

Textarea

Extends Text Input props