Gaëtan Renaudeau c7c98e808c
update demos
2020-12-25 19:11:23 +01:00

25 lines
528 B
JavaScript
Executable File

//@flow
import React, { Component } from "react";
import { TextInput } from "react-native";
export default (style: any) =>
class TextArea extends Component {
props: {
value: string,
onChange: (c: string) => any,
};
render() {
const { onChange, value } = this.props;
return (
<TextInput
style={style}
multiline
autoCapitalize="none"
autoCorrect={false}
value={value}
onChangeText={onChange}
/>
);
}
};