Repository navigation
|
I was trying to use @react-navigation/native 6.0.11 and I got the following error when building "react-scripts build": Attempted import error: 'default'.'interpolate' is not exported from 'react-native-reanimated' (imported as 'Animated'). using: "react-native-web": "^0.18.7" + "@react-navigation/drawer@6.4.3" + "react-native-reanimated": "^2.9.1" |
Answered by
zoontek
Oct 7, 2026
Replies: 2 comments
|
I had same issue because i was using interpolate from reanimated. Updating some packages, I needed to use the new interpolateNode from reanimated //old way
const scale = Animated.interpolate(drawerProgress, {
inputRange: [0, 1],
outputRange: [1, 0.8],
});
//new way
const scale = Animated.interpolateNode(drawerProgress, {
inputRange: [0, 1],
outputRange: [1, 0.8],
});Hope this helps you |
0 replies
|
This comes from a |
0 replies
Answer selected by
zoontek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comes from a
react-native-reanimatedAPI change, not react-native-web. See the reply above. Closing.