Skip to content

Instantly share code, notes, and snippets.

@reime005
Last active January 13, 2021 00:56
Show Gist options
  • Save reime005/8cc499876fac27fa592af184d2d597b4 to your computer and use it in GitHub Desktop.
Save reime005/8cc499876fac27fa592af184d2d597b4 to your computer and use it in GitHub Desktop.
...
<Animated.View
style={{
opacity: pan.y.interpolate({
inputRange: [screenHeight - MODAL_HEIGHT, screenHeight],
outputRange: [1, 0.5],
}),
transform: [
{
translateY: pan.y,
},
],
}}>
<View
style={{
width: '100%',
height: MODAL_HEIGHT
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment