File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ import { GestureDetector } from 'react-native-gesture-handler'
2626import { useHoldOrPanGesture } from './hooks/useHoldOrPanGesture'
2727import { getYForX } from './GetYForX'
2828
29+ // weird rea type bug
30+ const ReanimatedView = Reanimated . View as any
31+
2932export 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 )
You can’t perform that action at this time.
0 commit comments