Checkbox
Checkboxes allow the selection of multiple options from a set.
Usage
import * as React from 'react';
import { Checkbox } from 'react-native-paper';
export default class MyComponent extends React.Component {
state = {
checked: false,
};
render() {
const { checked } = this.state;
return (
<Checkbox
status={checked ? 'checked' : 'unchecked'}
onPress={() => { this.setState({ checked: !checked }); }}
/>
);
}
}
Props
theme
Type:
Theme
Static properties
These properties can be accessed on Checkbox
by using the dot notation, e.g. Checkbox.Android
.