mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-05-30 17:43:29 +08:00
20 lines
329 B
TypeScript
20 lines
329 B
TypeScript
|
|
import * as React from 'react';
|
|
import { TextInput } from '..';
|
|
|
|
export default class MyComponent extends React.Component {
|
|
state = {
|
|
text: ''
|
|
};
|
|
|
|
render(){
|
|
return (
|
|
<TextInput
|
|
label='Email'
|
|
value={this.state.text}
|
|
onChangeText={text => this.setState({ text })}
|
|
/>
|
|
);
|
|
}
|
|
}
|