From fc64302b4ffa517e1e09663d30916d0307a3c01c Mon Sep 17 00:00:00 2001 From: zahoruiko <66906889+zahoruiko@users.noreply.github.com> Date: Sat, 28 Oct 2023 10:43:23 +0200 Subject: [PATCH] Fix index.js This change adds a parameter required by the Animated in the React Native library and resolves this error warning:: "WARN Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`" --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c207f5e..fe0b81e 100644 --- a/src/index.js +++ b/src/index.js @@ -137,7 +137,7 @@ class PaperOnboardingContainer extends Component { const { screens } = this.props; Animated.timing( backgroundAnimation, - { toValue: 1, duration: 900 }, + { toValue: 1, duration: 900, useNativeDriver: false }, ).start(() => { backgroundAnimation.setValue(0); this.nextBackground = screens[currentScreen].backgroundColor;