소스 검색

[RN] Polyfill __filename ASAP

master
Lyubo Marinov 7 년 전
부모
커밋
f35578c803
3개의 변경된 파일13개의 추가작업 그리고 4개의 파일을 삭제
  1. 0
    1
      react/features/base/lib-jitsi-meet/native/index.js
  2. 0
    0
      react/features/base/lib-jitsi-meet/native/polyfills-bundler.js
  3. 13
    3
      react/index.native.js

+ 0
- 1
react/features/base/lib-jitsi-meet/native/index.js 파일 보기

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

react/features/base/lib-jitsi-meet/native/polyfills-browserify.js → react/features/base/lib-jitsi-meet/native/polyfills-bundler.js 파일 보기


+ 13
- 3
react/index.native.js 파일 보기

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

Loading…
취소
저장