Skip to content

Commit 17cbb94

Browse files
committed
Update AnimatedLineGraph.tsx
1 parent 4df40be commit 17cbb94

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/AnimatedLineGraph.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ import { GestureDetector } from 'react-native-gesture-handler'
2626
import { useHoldOrPanGesture } from './hooks/useHoldOrPanGesture'
2727
import { getYForX } from './GetYForX'
2828

29+
// weird rea type bug
30+
const ReanimatedView = Reanimated.View as any
31+
2932
export function AnimatedLineGraph({
3033
points,
3134
color,
@@ -225,7 +228,7 @@ export function AnimatedLineGraph({
225228
return (
226229
<View {...props}>
227230
<GestureDetector gesture={enablePanGesture ? gesture : undefined}>
228-
<Reanimated.View style={styles.container}>
231+
<ReanimatedView style={styles.container}>
229232
{/* Top Label (max price) */}
230233
{TopAxisLabel != null && (
231234
<View style={styles.axisRow}>
@@ -281,7 +284,7 @@ export function AnimatedLineGraph({
281284
<BottomAxisLabel />
282285
</View>
283286
)}
284-
</Reanimated.View>
287+
</ReanimatedView>
285288
</GestureDetector>
286289
</View>
287290
)

0 commit comments

Comments
 (0)