Skip to content

Commit

Permalink
Update AnimatedLineGraph.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Apr 29, 2022
1 parent 4df40be commit 17cbb94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/AnimatedLineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import { GestureDetector } from 'react-native-gesture-handler'
import { useHoldOrPanGesture } from './hooks/useHoldOrPanGesture'
import { getYForX } from './GetYForX'

// weird rea type bug
const ReanimatedView = Reanimated.View as any

export function AnimatedLineGraph({
points,
color,
Expand Down Expand Up @@ -225,7 +228,7 @@ export function AnimatedLineGraph({
return (
<View {...props}>
<GestureDetector gesture={enablePanGesture ? gesture : undefined}>
<Reanimated.View style={styles.container}>
<ReanimatedView style={styles.container}>
{/* Top Label (max price) */}
{TopAxisLabel != null && (
<View style={styles.axisRow}>
Expand Down Expand Up @@ -281,7 +284,7 @@ export function AnimatedLineGraph({
<BottomAxisLabel />
</View>
)}
</Reanimated.View>
</ReanimatedView>
</GestureDetector>
</View>
)
Expand Down

0 comments on commit 17cbb94

Please sign in to comment.