Files
react-native-web/packages/website/storybook/1-components/TextInput/examples/PropClearButtonMode.js
Nicolas Gallagher a8e5d43db5 Move 'website' to 'packages/website'
Keep all workspaces in the 'packages' directory.
2018-06-03 11:32:55 -07:00

27 lines
761 B
JavaScript

/**
* @flow
*/
import React from 'react';
import { styles, WithLabel } from '../helpers';
import { TextInput, View } from 'react-native';
const TextInputClearButtonModeExample = () => (
<View>
<WithLabel label="never">
<TextInput clearButtonMode="never" style={styles.textinput} />
</WithLabel>
<WithLabel label="while editing">
<TextInput clearButtonMode="while-editing" style={styles.textinput} />
</WithLabel>
<WithLabel label="unless editing">
<TextInput clearButtonMode="unless-editing" style={styles.textinput} />
</WithLabel>
<WithLabel label="always">
<TextInput clearButtonMode="always" style={styles.textinput} />
</WithLabel>
</View>
);
export default TextInputClearButtonModeExample;