mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 04:00:04 +08:00
28 lines
631 B
JavaScript
28 lines
631 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { styles } from '../helpers';
|
|
import { TextInput, View } from 'react-native';
|
|
|
|
const TextInputSelectTextOnFocusExample = () => (
|
|
<View>
|
|
<TextInput
|
|
defaultValue="text is selected on focus"
|
|
placeholder="text is selected on focus"
|
|
selectTextOnFocus={true}
|
|
style={styles.textinput}
|
|
/>
|
|
<TextInput
|
|
defaultValue="text is selected on focus"
|
|
multiline={true}
|
|
placeholder="text is selected on focus"
|
|
selectTextOnFocus={true}
|
|
style={styles.multiline}
|
|
/>
|
|
</View>
|
|
);
|
|
|
|
export default TextInputSelectTextOnFocusExample;
|