UNPKG

react-native-gesture-handler

Version:

Declarative API exposing native platform touch and gesture system to React Native

22 lines (18 loc) 473 B
import { Reanimated, Worklets, } from '../../../handlers/gestures/reanimatedWrapper'; export type LastUpdateEventMap = Map<number, { lastUpdateEvent: unknown }>; export function createLastUpdateEventMap() { if ( Worklets?.createShareable === undefined || Worklets.UIRuntimeId === undefined || Reanimated === undefined ) { return undefined; } return Worklets.createShareable<LastUpdateEventMap>( Worklets.UIRuntimeId, new Map() ); }