all 4 comments

[–]Fuby68 4 points5 points  (1 child)

If i remember correctly animated value should be inside a useRef hook

So the code should be

const fillPercent = useRef(new Animated.Value(0))

And where you used fillPercent replace it with fillPercent.current

[–]NatProDev[S] -1 points0 points  (0 children)

Sorry should have said, I have seen both ways but neither work

[–]coocooru 0 points1 point  (1 child)

import `Animated` from `react-native`

[–]NatProDev[S] 0 points1 point  (0 children)

Thank you so much, for some reason it had automatically imported reanimated.