A React Native checkbox using the stock android widget
npm install --save react-native-android-checkbox
react-native link react-native-android-checkbox
The checkbox component works in exactly the same way as React.Switch
import React from 'react'
import Checkbox from 'react-native-android-checkbox'
class ExampleComponent extends React.Component {
constructor() {
super()
this.state = {
value: false
}
}
render() {
return (
<Checkbox
value={this.state.value}
disabled={false}
onValueChange={(value) => {
this.setState({ value })
}}
/>
)
}
}