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.
This commit is contained in:
Brandon Presley 2022-12-29 19:30:26 +13:00
parent a3138c48b5
commit 051df31925
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export default function Switch({
style={{marginRight: MARGIN}}
value={value}
onValueChange={onChange}
trackColor={{true: colors.primary + '80', false: colors.disabled}}
/>
<Text>{children}</Text>
</Pressable>