mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-27 21:07:26 +08:00
21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { styles } from '../helpers';
|
|
import { Switch, View } from 'react-native';
|
|
|
|
const SwitchDisabledExample = () => (
|
|
<View style={styles.row}>
|
|
<View style={styles.marginRight}>
|
|
<Switch disabled={true} value={false} />
|
|
</View>
|
|
<View style={styles.marginRight}>
|
|
<Switch disabled={true} value={true} />
|
|
</View>
|
|
</View>
|
|
);
|
|
|
|
export default SwitchDisabledExample;
|