I am currently using the expo/ui/jetpack-compose package for native Jetpack compose UI component. Specifically, I need to use the Switch. However, only 4 properties are currently implemented for the type SwitchElementColors (@expo/ui/src/jetpack-compose/Switch/index.tsx) which is :
type SwitchElementColors = {
checkedThumbColor?: string;
checkedTrackColor?: string;
uncheckedThumbColor?: string;
uncheckedTrackColor?: string;
};
In Android documentation (https://developer.android.com/reference/kotlin/androidx/compose/material3/SwitchColors), I have seen that SwitchColors have a constructor with all these options:
SwitchColors(
checkedThumbColor: Color,
checkedTrackColor: Color,
checkedBorderColor: Color,
checkedIconColor: Color,
uncheckedThumbColor: Color,
uncheckedTrackColor: Color,
uncheckedBorderColor: Color,
uncheckedIconColor: Color,
disabledCheckedThumbColor: Color,
disabledCheckedTrackColor: Color,
disabledCheckedBorderColor: Color,
disabledCheckedIconColor: Color,
disabledUncheckedThumbColor: Color,
disabledUncheckedTrackColor: Color,
disabledUncheckedBorderColor: Color,
disabledUncheckedIconColor: Color
)
Is it possible for you to add the other options to the type SwitchElementColors in order to be able to modify the borders of the Switch ? It is very important for us as the default borders when the switch is unchecked are dark grey and this is not very sexy within our app (and a lot of apps to come I think ;)).
Thanks by advance!