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
There is Map that react-native uses internally and was available via require('Map'), OTOH, babel that processes react-native code provides its own polyfill.
The confusion leads to issues such as oney/react-native-gcm-android#4. The fix is ugly, using internal part of react-native. What is the right thing here? Should global Map be used, as babel's version is good enough (in that case, wouldn't it be better to just drop the react-native internal polyfill?). Should Map be exported by react-native (like const {Component, ...., Map} = React;)?
The text was updated successfully, but these errors were encountered:
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!
There is
Map
that react-native uses internally and was available viarequire('Map')
, OTOH, babel that processes react-native code provides its own polyfill.The confusion leads to issues such as oney/react-native-gcm-android#4. The fix is ugly, using internal part of react-native. What is the right thing here? Should global
Map
be used, as babel's version is good enough (in that case, wouldn't it be better to just drop the react-native internal polyfill?). ShouldMap
be exported by react-native (likeconst {Component, ...., Map} = React;
)?The text was updated successfully, but these errors were encountered: