question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checkbox doesn't work on Android

See original GitHub issue

I’m trying to do work the checkboxes but they are not working. Other things like TextField or Slider are working.

I import the component:

import {
  MKCheckbox,
} from 'react-native-material-kit';

And put inside a View:

<View>
<MKCheckbox checked={true} />
</View>

But the only thing showing is: login

I use Android 5.1 and RN 0.24

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
vladpcommented, May 12, 2016

checkboxes are working for me. I suspect you need a style

pick styles from example’s style.js


const styles = require('../mylocationOfMDKExampleCode/styles');

        <View  style={styles.col}> 
                   <View  style={styles.row}  >
                     <MKCheckbox
                         checked=true
                         onCheckedChange= {(e) => {yourFunctionToReactToChange(e)}}
                     />
                     <Text style={styles.legendLabel}>CheckBoxLabel</Text>
                   </View>
        </View>

0reactions
colorhaakecommented, Jun 1, 2016

@Crash-- It works! Thanks for your help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checkbox android not working - Stack Overflow
When i tap on the checkbox, it becomes checked but the texview doesn't appear. i've set the visibility of the textview to be...
Read more >
CheckBox - Android Developers
A example usage of a checkbox inside your activity would be the following: ... FOCUS_DOWN If the reference refers to a view that...
Read more >
Form doesn't work with checkbox on mobile view
Hi there, I use WPForms Lite and have the problem that as soon as I install a checkbox, there is a gray overlay...
Read more >
CheckBox and accesibility behavior is unexpeted in Android ...
The CheckBox doesn't have Text property. But if I use AutomationProperties.Name the text is shown in Android and I can't set it's color, ......
Read more >
Checkboxes don't work on mobile app - Trailhead - Salesforce
Just wondering if anyone else has the problem of the SF app not allowing me ... Checkboxes don't work on mobile app ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found