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