From 94a5fa4ac741f92252727d89b5fefd7f25dae3c9 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 22 Aug 2023 11:53:12 +1200 Subject: [PATCH] Remove track color setting from Switch This must have been considered a bug in the React Native Paper codebase, but this was me fixing the track color being wrong when system theme and app theme weren't the same. --- Switch.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Switch.tsx b/Switch.tsx index 3cbf73d..9dc5503 100644 --- a/Switch.tsx +++ b/Switch.tsx @@ -29,10 +29,6 @@ function Switch({ style={{ marginRight: MARGIN }} value={value} onValueChange={onChange} - trackColor={{ - true: colors.primary + "80", - false: colors.surfaceDisabled, - }} /> {title}