[RN] Polyfill __filename ASAP

This commit is contained in:
Lyubo Marinov 2018-01-30 14:57:36 -06:00
parent c087e90099
commit f35578c803
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,2 @@
import './polyfills-browser';
import './polyfills-browserify';
import './WiFiStats';

View File

@ -1,6 +1,16 @@
// FIXME: remove once react-native-webrtc and react-native-prompt imports
// PropTypes from the 'prop-types' lib instead of 'react'.
import './features/base/react/prop-types-polyfill.js';
// FIXME The bundler-related (and the browser-related) polyfills were born at
// the very early days of prototyping the execution of lib-jitsi-meet on
// react-native. Today, the feature base/lib-jitsi-meet should not be
// responsible for such polyfills because it is not the only feature relying on
// them. Additionally, the polyfills are usually necessary earlier than the
// execution of base/lib-jitsi-meet (which is understandable given that the
// polyfills are globals). The remaining problem to be solved here is where to
// collect the polyfills' files.
import './features/base/lib-jitsi-meet/native/polyfills-bundler';
// FIXME: Remove once react-native-webrtc and react-native-prompt import
// PropTypes from 'prop-types' instead of 'react'.
import './features/base/react/prop-types-polyfill';
import PropTypes from 'prop-types';
import React, { Component } from 'react';