Giter Site home page Giter Site logo

Comments (9)

ritzblogs avatar ritzblogs commented on May 30, 2024 5

This solution worked for me
https://abodeofmystories.blogspot.com/2021/07/ReactNative-Checkbox-cant-be-pressed-more-than-1-time-Android.html

from react-native-checkbox.

balagurubaran avatar balagurubaran commented on May 30, 2024 2

Am also facing the same problem in my android project. In iOS is working as expected.

The below piece of code, Am using to render the Check box.

  <CheckBox
                                style = {{marginLeft:0 , height:20}}
                                onFillColor = { Color_Constant.color.app_yellow }
                                onCheckColor = 'white'
                                onTintColor = { Color_Constant.color.app_yellow }
                                tintColor = { Color_Constant.color.app_yellow }
                                tintColors={{ true: Color_Constant.color.app_yellow, false: Color_Constant.color.app_yellow }}
                                disabled={false}
                                value={this.state.CheckBoxStatus}
                                onValueChange={(value) => {
                                 
                                }}
                            />

Found the solution
https://www.youtube.com/watch?time_continue=9&v=N1I67FaluFE&feature=emb_logo

from react-native-checkbox.

venkateshgbabu avatar venkateshgbabu commented on May 30, 2024

I can't reproduce this. Can you please link a repo so I can test this issue.

from react-native-checkbox.

Ozeias01Nunes avatar Ozeias01Nunes commented on May 30, 2024

I have the same problem

from react-native-checkbox.

lomirus avatar lomirus commented on May 30, 2024

I've also had the same problem and now it's solved by the solution @balagurubaran offered

from react-native-checkbox.

aim8526 avatar aim8526 commented on May 30, 2024

Is this issue solved?

I am facing the same issue, tried, both onChange() and onValueChange() events, both are work once in a single render.
if I re-render then it works one more time.

Thanks in advance for any suggestions.

from react-native-checkbox.

on3dd avatar on3dd commented on May 30, 2024

@aim8526 Same 😢

UPD: Nope, the problem was in my code

from react-native-checkbox.

developeromI89 avatar developeromI89 commented on May 30, 2024

not worked when checkbox is in flatlist

from react-native-checkbox.

imhassanjaved avatar imhassanjaved commented on May 30, 2024

I had same issue, I did this to solve it.
You just need to change any used/unused state variable in the onValueChange listener.

onValueChange={(newValue) => { setValue(newValue); this.setState({ check: !check }); } }

from react-native-checkbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.