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