[RN] Drop no longer needed polyfills
They were required only on Android because of its old JSC version. With the JSC version bump they are no longer required.
This commit is contained in:
parent
8d3cecad86
commit
a1cc9bce91
|
@ -1,26 +1,2 @@
|
||||||
// The type field of react-native application loader's React Element is created
|
|
||||||
// as number and not Symbol, because it's not been defined by the polyfill yet.
|
|
||||||
// We import the application renderer, before Symbol is defined, in order to use
|
|
||||||
// number types as well. Otherwise this will result in the invariant exception,
|
|
||||||
// because fiber thingy will not recognise root react-native component as React
|
|
||||||
// Element, but as an Object.
|
|
||||||
//
|
|
||||||
// See node_modules/react-native/Libraries/polyfills/babelHelpers.js
|
|
||||||
// :babelHelpers.createRawReactElement - that's where first react-native element
|
|
||||||
// is created (super early - it's the app loader).
|
|
||||||
//
|
|
||||||
// See node_modules/react-native/Libraries/Renderer/ReactNativeFiber-dev.js
|
|
||||||
// and look for REACT_ELEMENT_TYPE definition - it's defined later when Symbol
|
|
||||||
// has been defined and type will not match.
|
|
||||||
//
|
|
||||||
// As an alternative solution we could stop using/polyfilling Symbols and
|
|
||||||
// replace with classpath string constants or some kind of a wrapper around
|
|
||||||
// that.
|
|
||||||
|
|
||||||
import 'react-native/Libraries/ReactNative/renderApplication';
|
|
||||||
|
|
||||||
// Android doesn't provide Symbol
|
|
||||||
import 'es6-symbol/implement';
|
|
||||||
|
|
||||||
import './react/index.native';
|
import './react/index.native';
|
||||||
|
|
||||||
|
|
|
@ -5727,6 +5727,7 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz",
|
||||||
"integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=",
|
"integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"es5-ext": "^0.10.9"
|
"es5-ext": "^0.10.9"
|
||||||
}
|
}
|
||||||
|
@ -6231,6 +6232,7 @@
|
||||||
"version": "0.10.39",
|
"version": "0.10.39",
|
||||||
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.39.tgz",
|
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.39.tgz",
|
||||||
"integrity": "sha512-AlaXZhPHl0po/uxMx1tyrlt1O86M6D5iVaDH8UgLfgek4kXTX6vzsRfJQWC2Ku+aG8pkw1XWzh9eTkwfVrsD5g==",
|
"integrity": "sha512-AlaXZhPHl0po/uxMx1tyrlt1O86M6D5iVaDH8UgLfgek4kXTX6vzsRfJQWC2Ku+aG8pkw1XWzh9eTkwfVrsD5g==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"es6-iterator": "~2.0.3",
|
"es6-iterator": "~2.0.3",
|
||||||
"es6-symbol": "~3.1.1"
|
"es6-symbol": "~3.1.1"
|
||||||
|
@ -6240,6 +6242,7 @@
|
||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
||||||
"integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=",
|
"integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"d": "1",
|
"d": "1",
|
||||||
"es5-ext": "^0.10.35",
|
"es5-ext": "^0.10.35",
|
||||||
|
@ -6277,6 +6280,7 @@
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz",
|
||||||
"integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=",
|
"integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"d": "1",
|
"d": "1",
|
||||||
"es5-ext": "~0.10.14"
|
"es5-ext": "~0.10.14"
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
"@atlaskit/tooltip": "9.1.1",
|
"@atlaskit/tooltip": "9.1.1",
|
||||||
"@webcomponents/url": "0.7.1",
|
"@webcomponents/url": "0.7.1",
|
||||||
"autosize": "1.18.13",
|
"autosize": "1.18.13",
|
||||||
"es6-iterator": "2.0.3",
|
|
||||||
"es6-symbol": "3.1.1",
|
|
||||||
"i18next": "8.4.3",
|
"i18next": "8.4.3",
|
||||||
"i18next-browser-languagedetector": "2.0.0",
|
"i18next-browser-languagedetector": "2.0.0",
|
||||||
"i18next-xhr-backend": "1.4.2",
|
"i18next-xhr-backend": "1.4.2",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import Iterator from 'es6-iterator';
|
|
||||||
import BackgroundTimer from 'react-native-background-timer';
|
import BackgroundTimer from 'react-native-background-timer';
|
||||||
import '@webcomponents/url'; // Polyfill for URL constructor
|
import '@webcomponents/url'; // Polyfill for URL constructor
|
||||||
|
|
||||||
|
@ -123,18 +122,6 @@ function _visitNode(node, callback) {
|
||||||
global.removeEventListener = () => {};
|
global.removeEventListener = () => {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Array.prototype[@@iterator]
|
|
||||||
//
|
|
||||||
// Required by:
|
|
||||||
// - for...of statement use(s) in lib-jitsi-meet
|
|
||||||
const arrayPrototype = Array.prototype;
|
|
||||||
|
|
||||||
if (typeof arrayPrototype['@@iterator'] === 'undefined') {
|
|
||||||
arrayPrototype['@@iterator'] = function() {
|
|
||||||
return new Iterator(this);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// document
|
// document
|
||||||
//
|
//
|
||||||
// Required by:
|
// Required by:
|
||||||
|
|
Loading…
Reference in New Issue