mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-29 04:44:52 +08:00
Add TextInput to example
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Image, Text, View } from '../dist/main';
|
import { Image, Text, TextInput, View } from '../dist/main';
|
||||||
|
|
||||||
class Example extends React.Component {
|
class Example extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
@@ -24,6 +24,9 @@ class Example extends React.Component {
|
|||||||
}}>
|
}}>
|
||||||
<Text>This should be centered</Text>
|
<Text>This should be centered</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
<TextInput type="text" autoFocus />
|
||||||
|
<TextInput multiline defaultValue="default value" />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user