-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
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
How to show text (YES/NO) inside a switch in react-native #16
Comments
Have you tried
|
yes thank u ,but i solved my issue |
@lavarajallu, please post the solution and/or close ticket :-) |
First Install this: in Your Js file <Switch |
did not worked for me. It get stuck when after first toggle |
@Monivic state = { switchValue: false }; and inside render
|
const [automaticdischarge, setAutomaticDischarge] = useState(true); <Switch |
I am new to react-native. In my app, I'm using a switch and changing the tint color to differentiate ON and OFF, but my actual requirement is to show "YES" or "NO" text inside the switch like below.
Here is my Code:
Please give me suggestions to solve this issue, Any help much appreciated.
The text was updated successfully, but these errors were encountered: