@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
15 lines • 555 B
JavaScript
/**
* 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
*/
export const Selector = (value, selector) => {
return {
selector,
value
};
};
//# sourceMappingURL=selector.js.map