Skip to content

Commit

Permalink
v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 4, 2021
1 parent 176b318 commit 0be6784
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-wagmi-charts",
"version": "1.6.0",
"version": "1.7.0",
"description": "A sweet candlestick chart for React Native",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/charts/line/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function flattenChildren(
keys: (string | number)[] = []
): ReactChild[] {
return Children.toArray(children).reduce(
// eslint-disable-next-line
(acc: ReactChild[], node: any, nodeIndex) => {
if (node.type === React.Fragment) {
acc.push.apply(
Expand Down Expand Up @@ -56,6 +57,7 @@ export function LineChartGroup({ children, ...props }: Props) {
const flatChildrenCount = Children.count(flatChildren);
return (
<View {...props}>
{/* eslint-disable-next-line */}
{Children.map(flatChildren, (child: any, index) => {
const isLast = index === flatChildrenCount - 1;
if (!isLast && child.type === LineChart) {
Expand Down

0 comments on commit 0be6784

Please sign in to comment.