/* @flow */ import React, { Component } from 'react'; import { View, StyleSheet } from 'react-native'; import { Paragraph, Checkbox, Colors, TouchableRipple, } from 'react-native-paper'; export default class CheckboxExample extends Component { static title = 'Checkbox'; state = { checkedNormal: true, checkedCustom: true, }; render() { return ( this.setState(state => ({ checkedNormal: !state.checkedNormal, }))} > Normal this.setState(state => ({ checkedCustom: !state.checkedCustom, }))} > Custom Checked (Disabled) Unchecked (Disabled) ); } } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: Colors.white, paddingVertical: 8, }, row: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', paddingVertical: 8, paddingHorizontal: 16, }, });