UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

10 lines (9 loc) 240 B
import { measure } from './NativeMethods'; export function getRelativeCoords(parentRef, x, y) { 'worklet'; const parentCoords = measure(parentRef); return { x: x - parentCoords.x, y: y - parentCoords.y, }; }