question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symbol() not a thing on Android/iOS < 9 in React Native

See original GitHub issue

When using redux-saga in React Native on the Android platform, the Javascript environment doesn’t seem to support Symbols.

I fired up an older version (0.3.3) of redux-saga and replaced all the Symbol() calls with strings and everything worked great.

In the later codebases (0.5.0), Symbols are used much more for iterators and stuff.

Was wondering if you’d had any thoughts about perhaps supporting execution environments without Symbol() support.

I haven’t dug into why it isn’t available, but I can if you need more context.

Thanks! 😃

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:23 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
yelouaficommented, Jan 24, 2016

You include import babel-polyfill at the top of your entry point file. Like in the examples

https://github.com/yelouafi/redux-saga/blob/master/examples/counter/src/main.js#L2

1reaction
skellockcommented, Feb 22, 2016
npm install es6-symbol --save

index.android.js & index.ios.js

import 'es6-symbol/implement'

Just until either the React Native polyfill works or Symbols get removed from redux-saga.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Platform Specific Code - React Native
When building a cross-platform app, you'll want to re-use as much code as possible. Scenarios may arise where it makes sense for the...
Read more >
Could not connect to React Native development server on ...
In my case the problem was with Android security policies. According to the documentation: Starting with Android 9.0 (API level 28), cleartext support...
Read more >
Image Icon Inside the React Native Button
So to start showing Image Icon Inside the React Native Button we are expecting you understand the Button and Touchable, If not then...
Read more >
React Native Tutorial for Beginners - Build a React Native App
React Native Tutorial for Beginners - Learn to build an amazing React Native app for iOS & Android.🚀 Get the full React Native...
Read more >
react-native-share - npm
Start using react-native-share in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found