forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information
Showing
4 changed files
with
4 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters