Files
react-native-paper/__ts-tests__/TextInput.test.tsx
2019-03-19 11:26:11 +02:00

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 })}
/>
);
}
}