-
Notifications
You must be signed in to change notification settings - Fork 84
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
checking CheckBoxes created using map method #169
Comments
Same problem here !! |
|
In the native functions of the library I'm didn't find, so I ended up creating my own example. 1. State with dynamic options
2. Method to select one option.
3.Rendered code.The disabled parameter is
|
You need to put the checkbox in it's own component and put the state inside that component. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
My react native app needs to create list of checkBoxes using map method. User presses button - new checkbox appears (with some text next to it). You can call it a todo list.
I used example from docs:
` const [toggleCheckBox, setToggleCheckBox] = useState(false)
<CheckBox
disabled={false}
value={toggleCheckBox}
onValueChange={(newValue) => setToggleCheckBox(newValue)}
/>`
So lets say i have 3 checkboxes, all with the same value. When i tick on 1 checkbox - all checkboxes are ticked.
So how can I tick only 1 checkbox? Please, note user still should be able to remove and add checkboxes.
The text was updated successfully, but these errors were encountered: