From 67c4edf8387a2d86e45502996366525050b737de Mon Sep 17 00:00:00 2001 From: apiaget Date: Sun, 2 Feb 2025 00:06:21 +0100 Subject: [PATCH] Bugfix - React 76 - Thumb button stayed behind the bar --- src/toggle.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toggle.tsx b/src/toggle.tsx index 8cc4b0e..c755bcc 100644 --- a/src/toggle.tsx +++ b/src/toggle.tsx @@ -156,7 +156,7 @@ const ReactNativeToggleElement = (props: ReactNativeToggleElementProps) => { style={StyleSheet.flatten([ { transform: [{ translateX: fadeAnim }], - zIndex: -1, + zIndex: 1, backgroundColor: toggleValue ? activeBackgroundColor : inActiveBackgroundColor,