We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I implemented a simple Switch:
<View style={{ flexDirection: "row", alignItems: "center" }}> <Text style={{ ...grotesk, marginRight: 5 }}>cm</Text> <Switch trackColor={{ false: blue, true: blue }} onValueChange={() => setMeasurementUnits( measurementUnits === "inches" ? "centimeters" : "inches" ) } value={measurementUnits === "inches"} /> <Text style={{ ...grotesk, marginLeft: 5 }}>inches</Text> </View>
And the thumb color is green when the switch is enabled? I can't figure out how to change this.
The text was updated successfully, but these errors were encountered:
See the docs https://necolas.github.io/react-native-web/docs/?path=/docs/components-switch--active-thumb-color
Sorry, something went wrong.
For people coming from Google, what you're looking for is activeThumbColor and probably implemented for web in such a way like
activeThumbColor
<Switch // ...your other switch props {...Platform.select({web: { activeThumbColor: "white" }})} />
Also, new link as of Nov 5, 2011: https://necolas.github.io/react-native-web/docs/switch/
No branches or pull requests
I implemented a simple Switch:
And the thumb color is green when the switch is enabled? I can't figure out how to change this.
The text was updated successfully, but these errors were encountered: