mirror of
https://github.com/zoriya/react-native-web.git
synced 2025-12-18 04:25:29 +00:00
27 lines
566 B
JavaScript
27 lines
566 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { styles } from '../helpers';
|
|
import { TextInput, View } from 'react-native';
|
|
|
|
const TextInputNumberOfLinesExample = () => (
|
|
<View>
|
|
<TextInput
|
|
multiline={true}
|
|
numberOfLines={2}
|
|
placeholder="numberOfLines = 2"
|
|
style={[styles.multiline, { height: 'auto' }]}
|
|
/>
|
|
<TextInput
|
|
multiline={true}
|
|
numberOfLines={3}
|
|
placeholder="numberOfLines = 3"
|
|
style={[styles.multiline, { height: 'auto' }]}
|
|
/>
|
|
</View>
|
|
);
|
|
|
|
export default TextInputNumberOfLinesExample;
|