mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-27 01:34:17 +08:00
Implements the CheckBox component and adds a web-only 'color' prop to allow the color of the checkbox to be customized.
21 lines
398 B
JavaScript
Executable File
21 lines
398 B
JavaScript
Executable File
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import styles from './styles';
|
|
import { CheckBox, View } from 'react-native';
|
|
|
|
const CheckBoxValueExample = () => (
|
|
<View style={styles.row}>
|
|
<View style={styles.marginRight}>
|
|
<CheckBox value={false} />
|
|
</View>
|
|
<View style={styles.marginRight}>
|
|
<CheckBox value />
|
|
</View>
|
|
</View>
|
|
);
|
|
|
|
export default CheckBoxValueExample;
|