react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Agenda View is breaking Android

Open Nemesisesq opened this issue 8 years ago • 5 comments

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 ?

Nemesisesq avatar May 07 '18 03:05 Nemesisesq

Hello, looks like this is not related to calendars library

tautvilas avatar May 10 '18 08:05 tautvilas

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

globsecure avatar Jun 05 '18 00:06 globsecure

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.

aivarsliepa avatar Aug 29 '18 14:08 aivarsliepa

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

aivarsliepa avatar Aug 30 '18 07:08 aivarsliepa

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.

swe-jack avatar Oct 22 '18 20:10 swe-jack