Last active
January 26, 2021 09:46
-
-
Save rutvikbhatt9/5242a89760ac2bb76e93eb7ea0cedddf to your computer and use it in GitHub Desktop.
Setting Animated.ScrollView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Animated.ScrollView | |
overScrollMode={'never'} | |
style={{zIndex: 10}} | |
scrollEventThrottle={16} | |
onScroll={Animated.event([{ | |
nativeEvent: {contentOffset: {y: this.state.scrollY}}, | |
}], { | |
listener: (event) => { | |
}, | |
useNativeDriver: false, | |
})}> | |
//child here | |
</Animated.ScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment