You can create your own.
You will need to install react-native-vector-icons (or you can use images).
yarn add react-native-vector-icons
react-native link react-native-vector-icons
Creating file components/CheckBox/index.js
import React from 'react'
import Icon from 'react-native-vector-icons/MaterialIcons'
import styles from './styles'
import { TouchableOpacity, Text } from 'react-native'
const CheckBox = ({ selected, onPress, style, textStyle, size = 30, color = '#211f30', text = '', ...props}) => (
<TouchableOpacity style={[styles.checkBox, style]} onPress={onPress} {...props}>
<Icon
size={size}
color={color}
name={ selected ? 'check-box' : 'check-box-outline-blank'}
/>
<Text style={textStyle}> {text} </Text>
</TouchableOpacity>
)
export default CheckBox
Creating file components/CheckBox/styles.js
import { StyleSheet } from 'react-native'
const styles = StyleSheet.create({
checkBox: {
flexDirection: 'row',
alignItems: 'center'
}
})
export default styles
How to usage
import React, { Component } from 'react'
import styles from './styles'
import { CheckBox } from '../../components'
import { View } from 'react-native'
class Signup extends Component {
state = {
termsAccepted: false
}
handleCheckBox = () => this.setState({ termsAccepted: !this.state.termsAccepted })
render() {
return (
<View style={{}}>
<CheckBox
selected={this.state.termsAccepted}
onPress={this.handleCheckBox}
text='Accept terms and conditions'
/>
</View>
)
}
}
export default Signup