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:
parent
a3138c48b5
commit
051df31925
|
@ -27,6 +27,7 @@ export default function Switch({
|
||||||
style={{marginRight: MARGIN}}
|
style={{marginRight: MARGIN}}
|
||||||
value={value}
|
value={value}
|
||||||
onValueChange={onChange}
|
onValueChange={onChange}
|
||||||
|
trackColor={{true: colors.primary + '80', false: colors.disabled}}
|
||||||
/>
|
/>
|
||||||
<Text>{children}</Text>
|
<Text>{children}</Text>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user