From 3633f2aac534cbab3356c28a040c2abd488fe0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 29 Nov 2017 14:41:13 +0100 Subject: [PATCH] [RN] Fix assigning Dialog state 75bf7638b353cf09c4fc35bb071b6ecb69fc2b14 introduced this regression, state must be assigned as an object, even though one would think it's automagically initialized to an object. Oh well! --- react/features/base/dialog/components/Dialog.native.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react/features/base/dialog/components/Dialog.native.js b/react/features/base/dialog/components/Dialog.native.js index 501396d46..5be943e86 100644 --- a/react/features/base/dialog/components/Dialog.native.js +++ b/react/features/base/dialog/components/Dialog.native.js @@ -76,7 +76,9 @@ class Dialog extends AbstractDialog { constructor(props: Object) { super(props); - this.state.text = ''; + this.state = { + text: '' + }; // Bind event handlers so they are only bound once per instance. this._onChangeText = this._onChangeText.bind(this);