mirror of
https://github.com/zoriya/react-native-web.git
synced 2025-12-18 04:25:29 +00:00
27 lines
761 B
JavaScript
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;
|