-
Hi, I've a React Native Animated API with this: const fadeAnim = useRef(new Animated.Value(0.5)).current;
const animationLastStyle = {
opacity: fadeAnim,
transform: [
{
translateY: fadeAnim.interpolate({
inputRange: [0, 1],
outputRange: [-100, 0],
}),
},
],
}; After upgrade Expo SDK, I'm bound to use Reanimated 2. But when I change |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Check which package the Animated has been imported from. Look like from 'react-native', not from 'react-native-reanimated'. |
Beta Was this translation helpful? Give feedback.
-
Could you explain why it is so? You don't have to use Reanimated if you don't want to, RN Animated API should work just fine. Instructions on migration are for people using Reanimated 1. |
Beta Was this translation helpful? Give feedback.
-
Thank you @NikitaDudin and @jakub-gonet for your replies. I've removed the views in my project where I use Animated (not Reanimated). I've relodaded the app... and the interpolate error is still there!
Maybe is an issue of React Navigation 4. |
Beta Was this translation helpful? Give feedback.
Thank you @NikitaDudin and @jakub-gonet for your replies.
I've removed the views in my project where I use Animated (not Reanimated). I've relodaded the app... and the interpolate error is still there!