-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (27 loc) · 905 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
Author Name : WeblineIndia | https://www.weblineindia.com/
For more such software development components and code libraries, visit us at
https://www.weblineindia.com/software-development-resources.html
Our Github URL : https://github.com/weblineindia
**/
import React, { Component } from 'react';
import { TextInput } from 'react-native';
export default class ExpandableTextField extends Component {
constructor(props) {
super(props);
}
render() {
return (
<TextInput
{...this.props}
multiline
maxHeight={this.props.maxHeight || 100}
value={this.props.value}
onChangeText={this.props.onChangeText}
style={[this.props.style, { height: 'auto' }]}
ref={this.props.refData}
blurOnSubmit={true}
/>
);
}
}