Replace deprecated onChange with onContentSizeChange (#500)

This commit is contained in:
devjaw
2017-07-10 21:58:54 +04:00
committed by Kevin Cooper
parent 5d36dca1d0
commit 632c4564b3

View File

@@ -28,7 +28,7 @@ export default class Composer extends React.Component {
placeholderTextColor={this.props.placeholderTextColor}
multiline={this.props.multiline}
onChange={(e) => this.onChange(e)}
onContentSizeChange={(e) => this.onChange(e)}
onChangeText={text => this.onChangeText(text)}
style={[styles.textInput, this.props.textInputStyle, {height: this.props.composerHeight}]}