Expo Web
  • Awesome Web!
  • Intro
  • FAQ
  • Anti-Pitch
  • Primitives
    • Intro to Primitives
    • View
    • TextInput
  • Styling
    • Animations
      • animationDelay
      • animationDirection
      • animationDuration
      • animationFillMode
      • animationIterationCount
      • animationKeyframes
      • animationPlayState
      • animationTimingFunction
      • animationDelay
      • animationDirection
      • animationDuration
      • animationFillMode
      • animationIterationCount
      • animationKeyframes
      • animationPlayState
      • animationTimingFunction
    • Aspect Ratio
    • Grids
    • Interactions
    • Text
    • Transforms
    • Transitions
    • View
Powered by GitBook
On this page
  • Props
  • caretColor
  • resize

Was this helpful?

  1. Primitives

TextInput

React Native for web adds the following features to the React Native <TextInput /> element.

PreviousViewNextAnimations

Last updated 5 years ago

Was this helpful?

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

// HTML & CSS
- <input style="caret-color: red;" />

// React Native
+ <TextInput caretColor="red" />

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

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

Default: 'none'

Conversion

// HTML & CSS
- <textarea style="resize: both;" />

// React Native
+ <TextInput resize="both" />
caretColor
resize