React-native-calendars: Agenda View is breaking Android

Created on 7 May 2018  路  5Comments  路  Source: wix/react-native-calendars

Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.

Description

when I try to load the adgenda on android this is the error I get
screenshot_1525663969

undefined is not a function(evaluating '_iteratortypeof Symbol === "function"?Symbol.iterator:"@@iterator"')

I have attached a screen shot of expo. I know the problem involves JS engine not being able to support
"for of" I have tried polyfills but nothing works does anyone have any idea of what to do ?

Most helpful comment

If anyone stumbles on the same issue.
These polyfills helped for me https://github.com/facebook/react-native/issues/15902#issuecomment-375521246

All 5 comments

Hello, looks like this is not related to calendars library

Hello @tautvilas I have the same problem mentioned above, I just added the example inside the project, my project uses React Navigation and Redux.

How is it not related to this library?
One of the first sentences in README.md is

The package is both Android and iOS compatible.

But library contains code that is not compatible with Android.

If anyone stumbles on the same issue.
These polyfills helped for me https://github.com/facebook/react-native/issues/15902#issuecomment-375521246

I saw this, which worked out smoothly.

https://github.com/facebook/react-native/issues/20902#issuecomment-431177779

I upgraded to 0.57.2 from 0.55.4 and the only thing that worked for me was to add babel-polyfill.

npm i --save-dev babel-polyfill

then in my index.js:

import 'babel-polyfill';

I did not try what @dungps suggested.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filippoitaliano picture filippoitaliano  路  3Comments

moiiiiit picture moiiiiit  路  4Comments

AleksandrZhukov picture AleksandrZhukov  路  3Comments

chapeljuice picture chapeljuice  路  3Comments

MrAlekhin picture MrAlekhin  路  4Comments