victorsoares96 / epubjs-react-native

ePub.js Reader for React Native
MIT License
129 stars 44 forks source link

Infinitely Loading Spinner #262

Closed myeh98 closed 1 month ago

myeh98 commented 1 month ago

Summary

I am trying to use your package! I see you are actively maintaining it, thank you so much! I ideally would like to use a local file, but in the meantime I am using your sample.

Currently, I am just getting an infinitely loading spinner and it's stuck at "Loading 0%".

https://github.com/victorsoares96/epubjs-react-native/assets/20234204/bc9f5a95-4f44-40d3-a3ac-db27aabc50aa

What platform(s) does this occur on?

Android, iOS

Environment

Using vanilla React Native.

Minimal reproducible example

import React from 'react';
import {Reader, useReader} from '@epubjs-react-native/core';
import {useFileSystem} from '@epubjs-react-native/file-system';
import {SafeAreaView} from 'react-native';

export default function App() {
  return (
    <SafeAreaView style={{flex: 1}}>
      <Reader
        src="https://s3.amazonaws.com/moby-dick/OPS/package.opf"
        fileSystem={useFileSystem}
      />
    </SafeAreaView>
  );
}
myeh98 commented 1 month ago

wrapped in ReaderProvider, closing