mirror of
https://github.com/gre/gl-react.git
synced 2026-01-18 16:16:59 +00:00
25 lines
528 B
JavaScript
Executable File
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}
|
|
/>
|
|
);
|
|
}
|
|
};
|