Skip to content

Instantly share code, notes, and snippets.

@reime005
Created January 8, 2021 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/63e89db56c3946f6fed7c9264839ccea to your computer and use it in GitHub Desktop.
Save reime005/63e89db56c3946f6fed7c9264839ccea to your computer and use it in GitHub Desktop.
<Animated.View
style={{
paddingHorizontal: 16,
transform: [
{
translateY: pan.y.interpolate({
inputRange: [-1000, 0],
outputRange: [48 * 20, -80],
extrapolate: 'clamp',
}),
},
],
}}>
{/* other children, except the image */}
</Animated.View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment