Skip to content

Commit

Permalink
[RN] Polyfill __filename ASAP
Browse files Browse the repository at this point in the history
  • Loading branch information
lyubomir committed Feb 2, 2018
1 parent c087e90 commit f35578c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 0 additions & 1 deletion react/features/base/lib-jitsi-meet/native/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import './polyfills-browser';
import './polyfills-browserify';
import './WiFiStats';
16 changes: 13 additions & 3 deletions react/index.native.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit f35578c

Please sign in to comment.