Open Grewer opened 4 years ago
dep:
"react-native-animatable": "^1.3.3"
RN latest definition: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native/index.d.ts
when I use:
<Animatable.View style={{ transform: [{ rotate: `${rotation}deg` }] }} transition="rotate"> <Icon name="up" color="#9B9B9B" size={16} /> </Animatable.View>
Although transition =" rotate " gives an error, it still runs successfully
transition =" rotate "
I looked at the definition: transition:
transition = keyof ViewStyle // => interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle{} interface TransformsStyle { transform?: ( RotateTransform | RotateXTransform | RotateYTransform | RotateZTransform)[]; rotation?: number; } // Omitted some definitions
transition ="rotate" will only report an error if it is transition ="rotation", but it will not run
transition ="rotate"
transition ="rotation"
dep:
RN latest definition: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native/index.d.ts
when I use:
Although
transition =" rotate "
gives an error, it still runs successfullyI looked at the definition: transition:
transition ="rotate"
will only report an error if it istransition ="rotation"
, but it will not run