You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you ran the project on iOS 8, and most of the Android OSs (tested on Android 7.0), you will run into this issue.
This is due to the fact, that Symbol is not supported with the JavaScriptCore that comes with those OSs. This was not fixed in the react-native to be properly polyfilled for all supported platforms (iOS 8 and above, Android 4.1 and above as stated in RN README.md).
Solution should be to include either the babel-polyfill or parts of core-js in the root of the application files (index.ios.js, index.android.js):
import 'babel-polyfill'
// or
import 'core-js/modules/es6.symbol';
Shell we document this requirement?
Is there a eslint rule that might catch usage of those, so that we can check them?
Example, for Android, in one project we needed to also import some of the core data structure, having the following at the top of index.android.js:
If you ran the project on iOS 8, and most of the Android OSs (tested on Android 7.0), you will run into this issue.
This is due to the fact, that
Symbol
is not supported with the JavaScriptCore that comes with those OSs. This was not fixed in the react-native to be properly polyfilled for all supported platforms (iOS 8 and above, Android 4.1 and above as stated in RN README.md).Solution should be to include either the
babel-polyfill
or parts ofcore-js
in the root of the application files (index.ios.js
,index.android.js
):Shell we document this requirement?
Is there a eslint rule that might catch usage of those, so that we can check them?
Example, for Android, in one project we needed to also import some of the core data structure, having the following at the top of
index.android.js
:The text was updated successfully, but these errors were encountered: