3.0.0 • Published 7 years ago

@jamieparkinson/react-native-android-checkbox v3.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

react-native-android-checkbox

A React Native checkbox using the stock android widget

Checkbox Example App

Installation

Install the npm package

npm install --save react-native-android-checkbox

Link the android library

react-native link react-native-android-checkbox

Basic Usage

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 })
        }}
      />
    )
  }
}
3.0.0

7 years ago

2.0.1-rc3

7 years ago

2.0.1-rc2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago