From d9ff48605c26e5f322a5f2861c963f81641e0d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne?= <46719055+chou34500@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:01:18 +0200 Subject: [PATCH] Update ParallaxScrollView.js Animated.event now requires a second argument for options --- src/ParallaxScrollView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ParallaxScrollView.js b/src/ParallaxScrollView.js index ba115f3..d639dfd 100644 --- a/src/ParallaxScrollView.js +++ b/src/ParallaxScrollView.js @@ -297,7 +297,9 @@ export default class ParallaxScrollView extends Component { style={styles.scrollView} onScroll={Animated.event([ { nativeEvent: { contentOffset: { y: this.state.scrollY } } } - ])} + ], + { useNativeDriver: true} + )} scrollEventThrottle={16} > {this.renderHeaderView()}