useNativeDriver in toggleSwitch

This commit is contained in:
Sadaqat Ali 2022-09-25 11:20:31 +05:00
parent 991283f9fd
commit 3a346d6b7c

View File

@ -97,6 +97,7 @@ class ToggleSwitchView extends PureComponent {
Animated.timing(this.offsetX, {
toValue,
duration,
useNativeDriver: true,
}).start();
};