React Native Spotlight Tour - API Reference


React Native Spotlight Tour - API Reference / shift

Variable: shift()

const shift: (options?, deps?) => Middleware

Defined in: node_modules/@floating-ui/react-native/dist/floating-ui.react-native.d.ts:170

Optimizes the visibility of the floating element by shifting it in order to keep it in view when it will overflow the clipping boundary.

Parameters

options?

ShiftOptions Derivable<ShiftOptions>

deps?

React.DependencyList

Returns

Middleware

See

https://floating-ui.com/docs/shift