-
Notifications
You must be signed in to change notification settings - Fork 29
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
Easing InOut #9
Comments
Easing option was removed in react-native-marquee/index.tsx Line 61 in 49db5bf
Could easing option please be added again? Linear looks a bit cheap... |
Easing InOut still missing in v0.5.0, @kyo504 any plans to bring it back or add a parameter to choose easing? I am using the following package-patch for now: diff --git a/node_modules/react-native-marquee/src/index.tsx b/node_modules/react-native-marquee/src/index.tsx
index 8c86195..e8379a3 100644
--- a/node_modules/react-native-marquee/src/index.tsx
+++ b/node_modules/react-native-marquee/src/index.tsx
@@ -68,7 +68,7 @@ const createAnimation = (
},
): Animated.CompositeAnimation => {
const baseAnimation = Animated.timing(animatedValue, {
- easing: Easing.linear,
+ easing: Easing.inOut(Easing.ease),
useNativeDriver: true,
...config,
});
@@ -85,7 +85,7 @@ const createAnimation = (
useNativeDriver: true,
}),
Animated.timing(animatedValue, {
- easing: Easing.linear,
+ easing: Easing.inOut(Easing.ease),
useNativeDriver: true,
...config,
duration: consecutive.duration,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would appear that the easing options that go in reverse (inOut or back) result in an exception.
The text was updated successfully, but these errors were encountered: