Expo Web
Search…
TextInput
React Native for web adds the following features to the React Native <TextInput /> element.

Props

Sets the color of the insertion caret, the visible marker where the next character typed will be inserted. The caret is typically a thin vertical line that flashes to help make it more noticeable.

Type: ColorPropType

Conversion

1
// HTML & CSS
2
- <input style="caret-color: red;" />
3
4
// React Native
5
+ <TextInput caretColor="red" />
Copied!

resize

Whether an element is resizable, and if so, in which directions.

Type: 'none' | 'vertical' | 'horizontal' | 'both'

Default: 'none'

Conversion

1
// HTML & CSS
2
- <textarea style="resize: both;" />
3
4
// React Native
5
+ <TextInput resize="both" />
Copied!
Copy link