I found a mistake in CancelAnimation flow type. It makes no sense it takes a number as an argument and in original ts types it takes a SharedValue: https://github.com/software-mansion/react-native-reanimated/blob/2.17.0/src/reanimated2/animation/util.ts#L281. I fixed it because I'll need this in later diff.
Details
Details
Flow and swipe a message.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Thanks for finding this. Just wondering – did you find out because something was broken through testing, or because you observed that Flow was printing an error when the code looked right?
Comment Actions
It went like this:
- I used cancelAnimation without .value
- Flow raised an error
- I investigated it and found out the type was not right
- Flow complained again in swipeable-message.react.js
- I fixed it there and tested in the app to make sure nothing is broken