UNPKG

react-native-fiesta

Version:

A set of celebration animations powered by Skia. Engage more with your users by celebrating in your React Native application.

20 lines 751 B
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } import React, { forwardRef } from 'react'; import { Heart } from './Heart'; import { Popper } from './Popper'; export const Hearts = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React.createElement(Popper, _extends({ renderItem: ({ x, y, colors }, index) => /*#__PURE__*/React.createElement(Heart, { key: index, x: x, y: y, color: colors[index], autoplay: false }) }, props, { ref: ref }))); //# sourceMappingURL=Hearts.js.map