UNPKG

react-native-qrcode-styled

Version:

A fully customizable QR Code generator for React Native based on react-native-svg and javascript-qrcode.

29 lines (28 loc) 745 B
"use strict"; import React from 'react'; import { RadialGradient, Stop } from 'react-native-svg'; import { jsx as _jsx } from "react/jsx-runtime"; export default function SVGRadialGradient({ id, size, origin = [0, 0], center = [0.5, 0.5], radius = [1, 1], colors = ['black', 'white'], locations = [0, 1] }) { return /*#__PURE__*/_jsx(RadialGradient, { id: id, gradientUnits: "userSpaceOnUse", cx: center[0] * size + origin[0], cy: center[1] * size + origin[1], rx: radius[0] * size, ry: radius[1] * size, children: colors?.map((c, i) => /*#__PURE__*/_jsx(Stop, { offset: locations?.[i], stopColor: c, stopOpacity: "1" }, i)) }); } //# sourceMappingURL=SVGRadialGradient.js.map