react-native-chart-kit
Version:
Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.
19 lines (18 loc) • 879 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import "./ensureConsole";
import { ClipPath, LinearGradient, Rect, Stop } from "react-native-svg";
export { createClipPathRef } from "./clipPath";
export const SvgClipRect = ({ id, x, y, width, height }) => (_jsx(ClipPath, { id: id, children: _jsx(Rect, { x: x, y: y, width: width, height: height }) }));
export const SvgLinearGradientDef = ({ stops, ...props }) => (_jsx(LinearGradient, { ...props, children: stops.map((stop, index) => {
const stopProps = stop.opacity === undefined
? {
offset: stop.offset,
stopColor: stop.color
}
: {
offset: stop.offset,
stopColor: stop.color,
stopOpacity: stop.opacity
};
return _jsx(Stop, { ...stopProps }, `${stop.offset}-${index}`);
}) }));