mirror of
https://github.com/zoriya/react-native-web.git
synced 2025-12-19 21:15:17 +00:00
Move 'website' to 'packages/website'
Keep all workspaces in the 'packages' directory.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { styles, WithLabel } from '../helpers';
|
||||
import { TextInput, View } from 'react-native';
|
||||
|
||||
const TextInputMaxLengthExample = () => (
|
||||
<View>
|
||||
<WithLabel label="maxLength: 5">
|
||||
<TextInput maxLength={5} style={styles.textinput} />
|
||||
</WithLabel>
|
||||
<WithLabel label="maxLength: 5 with placeholder">
|
||||
<TextInput maxLength={5} placeholder="ZIP code entry" style={styles.textinput} />
|
||||
</WithLabel>
|
||||
<WithLabel label="maxLength: 5 with default value already set">
|
||||
<TextInput defaultValue="94025" maxLength={5} style={styles.textinput} />
|
||||
</WithLabel>
|
||||
<WithLabel label="maxLength: 5 with very long default value already set">
|
||||
<TextInput defaultValue="9402512345" maxLength={5} style={styles.textinput} />
|
||||
</WithLabel>
|
||||
</View>
|
||||
);
|
||||
|
||||
export default TextInputMaxLengthExample;
|
||||
Reference in New Issue
Block a user