Skip to content

Commit dc8d3d8

Browse files
Bilal-Abdeensatya164
authored andcommitted
A note about using interpolateNode, instead of interpolate
A note about using interpolateNode, instead of interpolate - for reanimated version 2
1 parent a17a067 commit dc8d3d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

versioned_docs/version-6.x/drawer-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ The `progress` object can be used to do interesting animations in your `drawerCo
187187
function CustomDrawerContent(props) {
188188
const progress = useDrawerProgress();
189189

190+
// If you use react-native-reanimated - V2, Animated.interpolate (below) should be changed to Animated.interpolateNode
190191
const translateX = Animated.interpolate(progress, {
191192
inputRange: [0, 1],
192193
outputRange: [-100, 0],

0 commit comments

Comments
 (0)