Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
<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