From 051df3192597e8b87d5ac301bf81809e633ae3f5 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Thu, 29 Dec 2022 19:30:26 +1300 Subject: [PATCH] Fix inactive track color on mismatched themes Before if your system theme was dark and your app theme was set to light, the track colors were wrong. --- Switch.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/Switch.tsx b/Switch.tsx index 198b1bd..33edb7b 100644 --- a/Switch.tsx +++ b/Switch.tsx @@ -27,6 +27,7 @@ export default function Switch({ style={{marginRight: MARGIN}} value={value} onValueChange={onChange} + trackColor={{true: colors.primary + '80', false: colors.disabled}} /> {children}