From 2306e26287b1864ae5b7837a37ff8a78ecb30e1e Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Wed, 29 Nov 2017 10:21:49 -0600 Subject: [PATCH] [RN] Fix assigning Dialog state --- react/features/base/dialog/components/Dialog.native.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react/features/base/dialog/components/Dialog.native.js b/react/features/base/dialog/components/Dialog.native.js index 5be943e86..c041a3ef7 100644 --- a/react/features/base/dialog/components/Dialog.native.js +++ b/react/features/base/dialog/components/Dialog.native.js @@ -67,6 +67,10 @@ type State = { * Implements {@code AbstractDialog} on react-native using {@code Prompt}. */ class Dialog extends AbstractDialog { + state = { + text: '' + }; + /** * Initailizes a new {@code Dialog} instance. * @@ -76,10 +80,6 @@ class Dialog extends AbstractDialog { constructor(props: Object) { super(props); - this.state = { - text: '' - }; - // Bind event handlers so they are only bound once per instance. this._onChangeText = this._onChangeText.bind(this); this._onSubmit = this._onSubmit.bind(this);