Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Fix assigning Dialog state

Lyubo Marinov2306e26287b1
diff --git a/react/features/base/dialog/components/Dialog.native.js b/react/features/base/dialog/components/Dialog.native.js
index 5be943e86f..c041a3ef72 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<Props, State> {
+ state = {
+ text: ''
+ };
+
/**
* Initailizes a new {@code Dialog} instance.
*
@@ -76,10 +80,6 @@ class Dialog extends AbstractDialog<Props, State> {
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);