react-native-chart-kit
Version:
Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.
10 lines (9 loc) • 464 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { useMemo } from "react";
import { View } from "react-native";
import { BarChart } from "./BarChart";
import { buildStackedBarChartCompatProps } from "./stackedCompat";
export const StackedBarChart = (props) => {
const { barChartProps, style } = useMemo(() => buildStackedBarChartCompatProps(props), [props]);
return (_jsx(View, { style: style, children: _jsx(BarChart, { ...barChartProps }) }));
};