futurepress / epubjs-rn

EpubJS React Native Example
Other
270 stars 151 forks source link

Wont work on Android (Object.assign is not a function) #129

Open mqtik opened 5 years ago

mqtik commented 5 years ago

Hi. I want to know what direction to go for, and I really, really like this library. But I have problems in Android 6.0 (stays in loading forever), or in release version it crashes, and it's a bit hard to debug, because no error shows.

Could it be a size problem? Since I know AsynStorage has a limit of 6mb in Android. I increase it to 100MB.

Is there's something I'm not seeing here? On iOS works amazing.

mqtik commented 5 years ago

Apparently, it renders the book: image

But I can see the table of contents image

Yet, nothing (not even a console, onReady, onLocationsReady, ...) is firing up from the params passed on the Epub component.

It continues to loading the epub

mqtik commented 5 years ago

After adding a width and height as params, now all the params are firing.

Including onError image

@fchasen any ideas?

mqtik commented 5 years ago

I tried this commit: https://github.com/futurepress/epubjs-rn/pull/107 from this issue: https://github.com/futurepress/epubjs-rn/issues/95

with no luck. still showing the error.

mqtik commented 5 years ago

Anyone?

thekuom commented 5 years ago

I'm also experiencing intermittent issues on Android with no errors being reported