From 586bbde2d8f0e66115017bea60fa7359b0719979 Mon Sep 17 00:00:00 2001 From: Stanley Ugwu Date: Mon, 20 Jun 2022 02:59:36 +0100 Subject: [PATCH 1/3] fix: change to accurate package name in installation command The specified installation command: `npm i @opengeekslab/react-native-paper-onboarding` fails because the package `@opengeekslab/react-native-paper-onboarding` doesn't exist in npm registry. However, `react-native-paper-onboarding` exists and works so this commit replaces the missing package name with existing one. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25c36ac..efe1947 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ This project is developed and maintained by From 103b5aafef057626ec1342cec859d263a6f30138 Mon Sep 17 00:00:00 2001 From: Stanley Ugwu Date: Mon, 20 Jun 2022 03:30:31 +0100 Subject: [PATCH 3/3] feat: set `useNativeDriver` to `true` for animation function Added `useNativeDriver:true` to `Animation.timing` config object. Without specifying this property, react-natives shows a warning as it's a required option. Adding this property clears the warning and hopefully improves performance. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c207f5e..7b78113 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:true }, ).start(() => { backgroundAnimation.setValue(0); this.nextBackground = screens[currentScreen].backgroundColor;