mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +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
422 B
JavaScript
Executable File
21 lines
422 B
JavaScript
Executable File
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import styles from './styles';
|
|
import { CheckBox, View } from 'react-native';
|
|
|
|
const CheckBoxDisabledExample = () => (
|
|
<View style={styles.row}>
|
|
<View style={styles.marginRight}>
|
|
<CheckBox disabled value={false} />
|
|
</View>
|
|
<View style={styles.marginRight}>
|
|
<CheckBox disabled value />
|
|
</View>
|
|
</View>
|
|
);
|
|
|
|
export default CheckBoxDisabledExample;
|