Skip to main content

Function: swipeAction()

function swipeAction(start?): Promise<void>;

Defined in: packages/core/src/helpers/native/gestures.ts:527

Swipe from coordinates (from) to the new coordinates (to). The given coordinates are in pixels. This is the newer version of swipe that uses the actions API.

Parameters​

start?​

SwipeActionOptions = {}

&#123; x: 50, y: 50 }

Returns​

Promise<void>

Example​

// This is a swipe to the left
const from = { x: 50, y:50 }
const to = { x: 25, y:50 }