I would like to make a switch on my app with react-native. The switch should look like this switch as demonstrated below:
I've tried with Linear Gradient with unsuccessful
<Switch trackColor={{ false: Colors.GrayTransparent, true: Colors.GrayTransparent }} ios_backgroundColor='#3e3e3e' onValueChange={toggleSwitch} value={isEnabled} thumbColor={ isEnabled ? (<LinearGradient start={{ x: 0, y: 0 }} end={{ x: 1, y: 1 }} colors={['#EED02D', '#9A4A90', '#EB9D27', '#4B77B6', '#C43438', '#C43438']} /> ) : ( Colors.Blue ) } />
Thank you a lot :)