AnimatableProperties' animation prop is described as Animation | string in react-native-animatable.d.ts. Passing a custom animation object then displays a typescript "Type X is not assignable to string" error.
But it's kind of a quick fix without true robustness. Should we add field checking to assure that at least 0 and 1 are present, and that each field has properties shared from react-native's ViewStyle ? Or would a | object be enough ?
AnimatableProperties
'animation
prop is described asAnimation | string
in react-native-animatable.d.ts. Passing a custom animation object then displays a typescript "Type X is not assignable to string" error.I could make a PR adding
But it's kind of a quick fix without true robustness. Should we add field checking to assure that at least 0 and 1 are present, and that each field has properties shared from react-native's ViewStyle ? Or would a
| object
be enough ?Thanks for the great library btw 👍