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
  • cursor
  • userSelect
  • willChange
  • touchAction

Was this helpful?

  1. Styling

Interactions

PreviousGridsNextText

Last updated 5 years ago

Was this helpful?

Props

Sets the type of cursor, if any, to show when the mouse pointer is over an element.

Type: string

Conversion

// CSS
- cursor: help;

// React Native
+ cursor: "help",

Controls whether the user can select text. This doesn't have any effect on content loaded as , except in textboxes.

Type: string

Conversion

// CSS
- user-select: text;

// React Native
+ userSelect: "text",

Hints to browsers how an element is expected to change. Browsers may set up optimizations before an element is actually changed. These kinds of optimizations can increase the responsiveness of a page by doing potentially expensive work before they are actually required.

Type: string

Conversion

// CSS
- will-change: transform;

// React Native
+ willChange: "transform",

Sets how an element's region can be manipulated by a touchscreen user (for example, by zooming features built into the browser).

Type: 'auto' | 'inherit' | 'manipulation' | 'none' | 'pan-down' | 'pan-left' | 'pan-right' | 'pan-up' | 'pan-x' | 'pan-y' | 'pinch-zoom'

Conversion

// CSS
- touch-action: pan-down;

// React Native
+ touchAction: "pan-down",

cursor
userSelect
chrome
willChange
touchAction