Skip to content

react-native-check-box插件无法使用 #76

Open

Description

@aioros2016

我的技术栈:"react": "16.4.1", "react-native": "0.56.0"

使用你的react-native-check-box插件,版本2.1.0,2.0.2,checkbox点击都没有反应。用了版本1.0.4,import CheckBox from 'react-native-check-box' 就会导致程序报错。

Activity

  1. juviaW commented on Jan 10, 2019

    @juviaW

    @aioros2016 2.1.7. Checkbox clicks also don't respond.I've modified some of the code and it works.

    constructor add
    this.state = {
    isChecked: this.props.isChecked
    };
    onClick() add
    this.setState({
    isChecked: !this.state.isChecked
    });
    _renderImage() change 'this.props.isChecked' to 'this.state.isChecked'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions