-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlay #372
Comments
let fall = new Animated.Value(1) const animatedHeaderContentOpacity = Animated.interpolate(fall, {
inputRange: [0.75, 1],
outputRange: [0, 1],
extrapolate: Animated.Extrapolate.CLAMP,
}) const renderShadow = () => {
// `react-native-reanimated` v2: Animated.interpolateNode
const animatedShadowOpacity = Animated.interpolate(fall, {
inputRange: [0, 1],
outputRange: [0.5, 0],
})
return (
<AnimatedView
pointerEvents="none"
style={[
styles.shadowContainer,
{
opacity: animatedShadowOpacity,
},
]}
/>
)
} <BottomSheet
...
callbackNode={fall}
...
/>
{renderShadow()} |
thanks needed an overlay as well! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to add a transparent overlay to the screen when the Bottom Sheet is open to a particular snap point?
The text was updated successfully, but these errors were encountered: