0.0.5 • Published 5 years ago
react-native-fly-checkbox v0.0.5
react-native-fly-checkbox
Checkbox component for React Native
Installation
Since the library is a JS-based solution, to install the latest version of react-native-fly-checkbox
you only need to run:
npm install --save react-native-fly-checkbox
Basic Usage
import React from 'react';
import { View } from 'react-native';
import FlyCheckbox from 'react-native-fly-checkbox';
import Icon from 'react-native-vector-icons/Feather'; // Load some module you want for the check icon
export default class App extends React.Component {
render() {
return (
<View>
<FlyCheckbox
isChecked={true}
title="Item name"
checkIcon={<Icon name="check" size={24} />}
onPress={() => {/* Something to do */ }}
/>
</View>
);
}
}