onTintColor has been deprecated try the following.
Custom colors for the switch track. iOS: When the switch value is false, the track shrinks into the border. If you want to change the color of the ...
react-native-bot added the Component: Switch label on Feb 21, 2019
Missing in React Native Switch Documentation… To change the color of the switch when turned ON: Add props onTintColor = color. To resize the size of the ...
I expect the switch's track to change colour to match the props passed in.
Its default value is false. trackColor, It is used to customize the color for switch track. ios_backgroundColor, It set the custom background color in iOS. The ...
Let us try to build a React Native Switch Component working both in iOS
reactnative.dev. Custom colors for the switch track. iOS: When the switch value is false, the track shrinks into the border. If you want to change the color of the .
Color of the foreground switch grip. But works for both, when the switch is turned on and off. Would be nice to have something like " ...
Next, use the hook to create a local state which will keep track of the current theme