I have component whose Props interface extends ViewProps from React Native, i.e:
export interface Props extends ViewProps { // Custom props}Naturally, this extends the style prop. There is one caveat, I am using Animated.View and have style like this:
style={{ opacity: animationCharacter.interpolate({ inputRange: [0, 1], outputRange: [0, 1] }), transform: [ { scale: animationCharacter.interpolate({ inputRange: [0, 1], outputRange: [1.2, 1] }) } ]}}I think the interpolate call is incompatible with style typings from ViewProps, but there is no AnimatedViewProps I can extend.
Is there a solution here or will I have to set style: any?