-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Checkbox on iOS is not visible #2334
Comments
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
expo and NPM is in the issue description |
https://callstack.github.io/react-native-paper/checkbox.html As you can see, it's the typical behavior. You have to wrap a box or anything by yourself. Edit: Or just use |
Hi @Selfmade-RuLeZ and thanks for your reply.
can you, please, elaborate a bit more on what is the typical behaviour? If a user cannot see the element, where he should tap? I also tried to wrap the checkbox into the
On iOS? Why? |
The thing that I was pointing to, is that it's not a bug, it's a well formed implementation. Edit:
As mentioned on the material.io website |
As I mentioned one post above, the CheckBox is implemented correctly, as iOS should not show boxes around CheckBoxes. On iOS you should use switches for most things. |
@Selfmade-RuLeZ ok so I'll need some specific iOS Code for each boolean form values ? |
Depends on the use case. You could life with the missing box, use switches for android too or implement specific code. |
alright, thanks for the quick answer, maybe it'd be good to mention it inside documentation |
|
type mode="android" |
but when false not show check? on ios |
You can always use <Checkbox.Android /> to just use the Android properties (ie. outlined unchecked box) on iOS devices. |
This was solved for me by implementing Example:
|
Worked perfectly. Thanks |
solved my problem |
Current behaviour
Checkbox on iOS is no visible if not checked.
Expected behaviour
Code sample
Use the demo from docs
Screenshots (if applicable)
Unchecked state:
Checked state:
What have you tried
Used official docs https://callstack.github.io/react-native-paper/checkbox.html
Also not
style
property to checkbox?Your Environment
The text was updated successfully, but these errors were encountered: