mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-16 18:03:14 +03:00
added reanimated in toggleSwitch
This commit is contained in:
parent
68e942ac88
commit
685376fe87
@ -1,5 +1,6 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, TouchableOpacity, Animated, NativeModules } from 'react-native';
|
||||
import { View, TouchableOpacity, NativeModules } from 'react-native';
|
||||
import Animated, { Easing } from 'react-native-reanimated';
|
||||
|
||||
// Constants
|
||||
|
||||
@ -97,7 +98,7 @@ class ToggleSwitchView extends PureComponent {
|
||||
Animated.timing(this.offsetX, {
|
||||
toValue,
|
||||
duration,
|
||||
useNativeDriver: true,
|
||||
easing: Easing.inOut(Easing.ease),
|
||||
}).start();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user