Skip to content

Commit

Permalink
fix: update useNativeDriver to true in toggle button to avoid animati…
Browse files Browse the repository at this point in the history
…on hang after changing pin (#1394)

Signed-off-by: Christian Lippa <[email protected]>
  • Loading branch information
LippaC-OPS authored Jan 14, 2025
1 parent 44b7483 commit 4c4f078
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ToggleButton: React.FC<ToggleButtonProps> = ({
Animated.timing(toggleAnim, {
toValue: isEnabled ? 1 : 0,
duration: 200,
useNativeDriver: false,
useNativeDriver: true,
}).start()
}, [isEnabled, toggleAnim])

Expand Down

0 comments on commit 4c4f078

Please sign in to comment.