UNPKG

react-native-wishlist

Version:
17 lines (16 loc) 467 B
import { Worklets } from 'react-native-worklets'; function getWorkletContext() { const ctx = global.__wishlistWorkletContext; if (!ctx) { throw new Error('Worklet context not initialized'); } return ctx; } export function createRunInWishlistFn(fn) { return Worklets.createRunInContextFn(fn, getWorkletContext()); } export function createRunInJsFn(fn) { 'worklet'; return Worklets.createRunInJsFn(fn); } //# sourceMappingURL=WishlistJsRuntime.js.map