mirror of
https://github.com/zoriya/react-native-web.git
synced 2025-12-18 04:25:29 +00:00
28 lines
623 B
JavaScript
28 lines
623 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { styles } from '../helpers';
|
|
import { TextInput, View } from 'react-native';
|
|
|
|
const TextInputClearTextOnFocusExample = () => (
|
|
<View>
|
|
<TextInput
|
|
clearTextOnFocus={true}
|
|
defaultValue="text is cleared on focus"
|
|
placeholder="text is cleared on focus"
|
|
style={styles.textinput}
|
|
/>
|
|
<TextInput
|
|
clearTextOnFocus={true}
|
|
defaultValue="text is cleared on focus"
|
|
multiline={true}
|
|
placeholder="text is cleared on focus"
|
|
style={styles.multiline}
|
|
/>
|
|
</View>
|
|
);
|
|
|
|
export default TextInputClearTextOnFocusExample;
|