Skip to content
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

Cannot read property 'bool' of undefined #10

Open
tuannguyenhoangit opened this issue Nov 18, 2017 · 3 comments
Open

Cannot read property 'bool' of undefined #10

tuannguyenhoangit opened this issue Nov 18, 2017 · 3 comments

Comments

@tuannguyenhoangit
Copy link

tuannguyenhoangit commented Nov 18, 2017

import Switch from 'react-native-customisable-switch';

        <Switch
            value={this.state.onChangeValue}
            onChangeValue={() => this.setState({ switchOneValue: !this.state.onChangeValue})}
        />
@allantorres92
Copy link
Contributor

propTypes not coming anymore from React, you have to import and install them separately,
Did a PR for this fix hopefully it gets merged

@DanGDroid
Copy link

great waiting for a new release.

@AlekseyLeshko
Copy link
Contributor

Master branch ready to work with React 16

npm install baderahmed/react-native-customisable-switch#master
yarn add baderahmed/react-native-customisable-switch#master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants