UNPKG

@shopify/react-native-skia

Version:

High-performance React Native Graphics using Skia

24 lines (21 loc) 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Selector = void 0; /** * Wraps a Skia Value with a selector function. The selector function can access the * inner values of the Skia Value so that we can dynamically ready array values and * object values when doing animations in Skia. * @param value Dependant value * @param selector Selector function to calculate new value from the Skia Value's value * @returns A descriptor that will be used by the reconciler to calculate the value */ const Selector = (value, selector) => { return { selector, value }; }; exports.Selector = Selector; //# sourceMappingURL=selector.js.map