futurepress/epubjs-rn

Android Loading Forever

burak4ydin opened this issue · 1 comments

Hello, i got error when i looked android. I use @ottofeller/epubjs-rn and could not render epub, i just see loading circle :(
I added permissions manifest.xml and also added these
android:requestLegacyExternalStorage="true"
android:usesCleartextTraffic="true"

package.json

{ "name": "AppName", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." },

"dependencies": { "@fawazahmed/react-native-read-more": "^1.1.4", "@lightbase/react-native-orientation": "^3.1.3", "@loopspeed/epubjs-rn": "^0.3.0", "@ottofeller/epubjs-rn": "^0.2.41", "@react-native-community/async-storage": "^1.12.1", "@react-navigation/bottom-tabs": "^5.11.7", "@react-navigation/native": "^5.9.2", "@react-navigation/stack": "^5.14.2", "async-storage": "^0.1.0", "axios": "^0.21.1", "epubjs-rn": "^0.1.5", "epubjs-rn-62": "^0.2.46", "formik": "^2.2.6", "mobx": "^6.1.5", "mobx-react": "^7.1.0", "native-base": "^2.15.2", "popup-ui": "^1.2.2", "react": "^17.0.1", "react-native": "0.63.4", "react-native-animatable": "^1.3.3", "react-native-background-downloader": "^2.3.4", "react-native-dropdown-picker": "^4.0.2", "react-native-fs": "^2.16.6", "react-native-gesture-handler": "^1.10.0", "react-native-modal": "^11.7.0", "react-native-progress": "^4.1.2", "react-native-ratings": "^7.4.0", "react-native-responsive-screen": "^1.4.2", "react-native-safe-area-context": "^3.1.9", "react-native-screens": "^2.17.1", "react-native-static-server": "^0.5.0", "react-native-vector-icons": "^8.0.0", "react-native-webview": "^9.0.2", "react-native-zip-archive": "^6.0.2", "rn-fetch-blob": "^0.12.0", "stream": "0.0.2", "yup": "^0.32.8" },

"devDependencies": { "@babel/core": "7.12.13", "@babel/plugin-proposal-decorators": "^7.12.13", "@babel/preset-flow": "^7.12.13", "@babel/runtime": "7.12.13", "@react-native-community/eslint-config": "1.1.0", "babel-jest": "25.5.1", "eslint": "6.8.0", "jest": "25.5.4", "metro-react-native-babel-preset": "^0.59.0", "react-test-renderer": "16.13.1" },

"peerDependencies": { "react": ">=16.0.0", "react-dom": ">=16.0.0" },

"jest": { "preset": "react-native" } }
import
`import {Epub, Streamer} from '@ottofeller/epubjs-rn';`
Usage
`Epub src={"https://s3.amazonaws.com/epubjs/books/moby-dick/OPS/package.opf"} flow={"paginated"} `

Screen Shot 2021-02-27 at 17 18 10

I re-installed Android-Emulator-M1 and fixed!