Expo Web
Search…
Expo Web
Awesome Web!
Intro
FAQ
Anti-Pitch
Primitives
Intro to Primitives
View
TextInput
Styling
Animations
Aspect Ratio
Grids
Interactions
Text
Transforms
Transitions
View
Powered By
GitBook
TextInput
React Native for web adds the following features to the React Native <TextInput /> element.
Props
caretColor
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!
Primitives - Previous
View
Next - Styling
Animations
Last modified
2yr ago
Copy link
Contents
Props
caretColor
resize