From 319d08b330b5fa73fb158c6b578b30c389fabaa0 Mon Sep 17 00:00:00 2001 From: Julfikar Mahmud Date: Mon, 29 Apr 2019 18:32:12 +0800 Subject: [PATCH] `ref` is not available `ref` should be available --- src/MentionsTextInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MentionsTextInput.js b/src/MentionsTextInput.js index 41d9d6b..57dd4d6 100644 --- a/src/MentionsTextInput.js +++ b/src/MentionsTextInput.js @@ -124,7 +124,7 @@ export default class MentionsTextInput extends Component { textInputHeight: this.props.textInputMinHeight >= event.nativeEvent.contentSize.height ? this.props.textInputMinHeight : event.nativeEvent.contentSize.height + 10, }); }} - ref={component => this._textInput = component} + ref={component => this.props.onRef(component)} onChangeText={this.onChangeText.bind(this)} multiline={true} value={this.props.value}