From be30ec3e3cd6149e0bdb4284342a9ed2690e653c Mon Sep 17 00:00:00 2001 From: xmflsct Date: Sun, 4 Dec 2022 00:38:15 +0100 Subject: [PATCH] Fix Android crashing --- src/components/Sparkline.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Sparkline.tsx b/src/components/Sparkline.tsx index f0eb6aa0..21792069 100644 --- a/src/components/Sparkline.tsx +++ b/src/components/Sparkline.tsx @@ -1,6 +1,7 @@ import { useTheme } from '@utils/styles/ThemeManager' import { maxBy, minBy } from 'lodash' import React from 'react' +import { Platform } from 'react-native' import Svg, { G, Path } from 'react-native-svg' export interface Props { @@ -68,7 +69,7 @@ const Sparkline: React.FC = ({ data, width, height, margin = 0 }) => { const fillPoints = linePoints.concat(closePolyPoints) return ( - +