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] Polyfill Symbol

Saúl Ibarra Corretgé5304660e1449
diff --git a/react/features/app/actionTypes.js b/react/features/app/actionTypes.js
index 7e5f2da8bf..eebf1122d4 100644
--- a/react/features/app/actionTypes.js
+++ b/react/features/app/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of the actions which signals that a specific App will mount (in the
* terms of React).
diff --git a/react/features/base/conference/actionTypes.js b/react/features/base/conference/actionTypes.js
index fc016ecb1d..4f52abeb0d 100644
--- a/react/features/base/conference/actionTypes.js
+++ b/react/features/base/conference/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of (redux) action which signals that a specific conference failed.
*
diff --git a/react/features/base/config/actionTypes.js b/react/features/base/config/actionTypes.js
index 0f5898d5d6..46d115ebf4 100644
--- a/react/features/base/config/actionTypes.js
+++ b/react/features/base/config/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The redux action which sets the configuration represented by the feature
* base/config. The configuration is defined and consumed by the library
diff --git a/react/features/base/connection/actionTypes.js b/react/features/base/connection/actionTypes.js
index 0ceb346632..d628453a24 100644
--- a/react/features/base/connection/actionTypes.js
+++ b/react/features/base/connection/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of (redux) action which signals that a connection disconnected.
*
diff --git a/react/features/base/devices/actionTypes.js b/react/features/base/devices/actionTypes.js
index a828d08dd4..b2d17089bf 100644
--- a/react/features/base/devices/actionTypes.js
+++ b/react/features/base/devices/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of Redux action which signals that the currently used audio
* input device should be changed.
diff --git a/react/features/base/dialog/actionTypes.js b/react/features/base/dialog/actionTypes.js
index 9fcbdb0064..487414d787 100644
--- a/react/features/base/dialog/actionTypes.js
+++ b/react/features/base/dialog/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of Redux action which closes a dialog
*
diff --git a/react/features/base/lib-jitsi-meet/actionTypes.js b/react/features/base/lib-jitsi-meet/actionTypes.js
index eeaa070548..25f9a44f51 100644
--- a/react/features/base/lib-jitsi-meet/actionTypes.js
+++ b/react/features/base/lib-jitsi-meet/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of Redux action which signals that {@link JitsiMeetJS} was disposed.
*
diff --git a/react/features/base/logging/actionTypes.js b/react/features/base/logging/actionTypes.js
index bdce0536b5..bcdf064ed4 100644
--- a/react/features/base/logging/actionTypes.js
+++ b/react/features/base/logging/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of redux action which sets the configuration of the feature
* base/logging.
diff --git a/react/features/base/media/actionTypes.js b/react/features/base/media/actionTypes.js
index c201b774cb..10a8f791d3 100644
--- a/react/features/base/media/actionTypes.js
+++ b/react/features/base/media/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* The type of (redux) action to set the muted state of the local audio.
*
diff --git a/react/features/base/participants/actionTypes.js b/react/features/base/participants/actionTypes.js
index 746cdd6c64..ef7a23079d 100644
--- a/react/features/base/participants/actionTypes.js
+++ b/react/features/base/participants/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* Create an action for when dominant speaker changes.
*
diff --git a/react/features/base/react/Symbol.js b/react/features/base/react/Symbol.js
deleted file mode 100644
index d66ec9ba8b..0000000000
--- a/react/features/base/react/Symbol.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// XXX React Native 0.41.2 does not polyfill Symbol. The React source code of
-// jitsi/jitsi-meet does utilize Symbol though. However, it is satisfied with a
-// ponyfill.
-import Symbol from 'es6-symbol';
-export { Symbol as default };
diff --git a/react/features/base/react/index.js b/react/features/base/react/index.js
index d24d9a7766..b8b8c16c86 100644
--- a/react/features/base/react/index.js
+++ b/react/features/base/react/index.js
@@ -2,4 +2,3 @@ export * from './components';
export * from './functions';
export { default as Platform } from './Platform';
export { default as RouteRegistry } from './RouteRegistry';
-export { default as Symbol } from './Symbol';
diff --git a/react/features/base/tracks/actionTypes.js b/react/features/base/tracks/actionTypes.js
index a51c90b633..163a261ad2 100644
--- a/react/features/base/tracks/actionTypes.js
+++ b/react/features/base/tracks/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../react';
-
/**
* Action for when a track has been added to the conference,
* local or remote.
diff --git a/react/features/desktop-picker/actionTypes.js b/react/features/desktop-picker/actionTypes.js
index 722dd51887..28f11a11e6 100644
--- a/react/features/desktop-picker/actionTypes.js
+++ b/react/features/desktop-picker/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* Action to remove known DesktopCapturerSources.
*
diff --git a/react/features/dial-out/actionTypes.js b/react/features/dial-out/actionTypes.js
index 0f3b7c0274..5cd257faaa 100644
--- a/react/features/dial-out/actionTypes.js
+++ b/react/features/dial-out/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of the action which signals a check for a dial-out phone number has
* succeeded.
diff --git a/react/features/filmstrip/actionTypes.js b/react/features/filmstrip/actionTypes.js
index 14f7ea6112..cc32cae7e4 100644
--- a/react/features/filmstrip/actionTypes.js
+++ b/react/features/filmstrip/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of action which signals to change the visibility of remote videos in
* the filmstrip.
diff --git a/react/features/invite/actionTypes.js b/react/features/invite/actionTypes.js
index f0bdeaf8ef..303745fadc 100644
--- a/react/features/invite/actionTypes.js
+++ b/react/features/invite/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of the action which signals an error occurred while requesting dial-
* in numbers.
@@ -23,5 +21,3 @@ export const UPDATE_DIAL_IN_NUMBERS_FAILED
*/
export const UPDATE_DIAL_IN_NUMBERS_SUCCESS
= Symbol('UPDATE_DIAL_IN_NUMBERS_SUCCESS');
-
-
diff --git a/react/features/jwt/actionTypes.js b/react/features/jwt/actionTypes.js
index 8b21d65b00..c95ee71c19 100644
--- a/react/features/jwt/actionTypes.js
+++ b/react/features/jwt/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of redux action which stores a specific JSON Web Token (JWT) into
* the redux store.
diff --git a/react/features/large-video/actionTypes.js b/react/features/large-video/actionTypes.js
index 003cd07dfb..76664df360 100644
--- a/react/features/large-video/actionTypes.js
+++ b/react/features/large-video/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* Action to select the participant to be displayed in LargeVideo.
*
diff --git a/react/features/mobile/background/actionTypes.js b/react/features/mobile/background/actionTypes.js
index 3234b6e938..3f8fe6d880 100644
--- a/react/features/mobile/background/actionTypes.js
+++ b/react/features/mobile/background/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../../base/react';
-
/**
* The type of redux action to set the AppState API change event listener.
*
diff --git a/react/features/overlay/actionTypes.js b/react/features/overlay/actionTypes.js
index 3d5efb7d46..55baf662cd 100644
--- a/react/features/overlay/actionTypes.js
+++ b/react/features/overlay/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of the Redux action which signals that the prompt for media
* permission is visible or not.
diff --git a/react/features/share-room/actionTypes.js b/react/features/share-room/actionTypes.js
index 83151550af..ae2da9604c 100644
--- a/react/features/share-room/actionTypes.js
+++ b/react/features/share-room/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of (redux) action which begins the UI procedure to share the current
* conference/room URL.
diff --git a/react/features/toolbox/actionTypes.js b/react/features/toolbox/actionTypes.js
index aaf091d308..7ed2be5ecb 100644
--- a/react/features/toolbox/actionTypes.js
+++ b/react/features/toolbox/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of the action which clears the Toolbox visibility timeout.
*
diff --git a/react/features/unsupported-browser/actionTypes.js b/react/features/unsupported-browser/actionTypes.js
index 599fa4d946..95d9af9a81 100644
--- a/react/features/unsupported-browser/actionTypes.js
+++ b/react/features/unsupported-browser/actionTypes.js
@@ -1,5 +1,3 @@
-import { Symbol } from '../base/react';
-
/**
* The type of the Redux action which signals that the React Component
* UnsupportedMobileBrowser which was rendered as a promotion of the mobile app
diff --git a/react/index.native.js b/react/index.native.js
index 6a479c96f4..0fae6971f8 100644
--- a/react/index.native.js
+++ b/react/index.native.js
@@ -1,3 +1,4 @@
+import 'es6-symbol/implement';
import React, { Component } from 'react';
import { AppRegistry, Linking } from 'react-native';