mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-26 23:05:55 +08:00
20 lines
435 B
JavaScript
20 lines
435 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;
|