epubjs-react-native: Loading stuck at 0%
I’m trying to load in an epub file from a google storage bucket and it is stuck at 0%. I get this warning
Possible Unhandled Promise Rejection (id: 0): TypeError: source.includes is not a function. (In 'source.includes('base64,')', 'source.includes' is undefined) getSourceType@http://10.0.0.87:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&a
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (4 by maintainers)
I’m currently using “react”: “17.0.2” and “react-native”: “0.68.2” which still has the issue.
So I did have the issue where I was passing it as a URI which I forgot about from my updating. Now that I’ve updated it to just be a string it doesn’t want to open an epub but will open opf files fine. When i try to do epub files it will load up to 100% but stay stuck on “Opening” page.
I currently use the @epubjs-react-native/file-system for the useFileSystem and have tried the expo one as well.