-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Rendition is not defined while opening and reopening epub book several times #287
Comments
hi @victorsoares96 , I appreciate your help I am working on a project for the client and the client is in a hurry, I am also facing a problem while adding or managing bookmarks because my App is available for both mobile and desktop |
if I can just get a way to change the characters per location which are right now 1600 ( I checked that from node_modules) then that would be a help |
@TalhaAbbas55 you need a way to change this parameter is that it? source: https://github.com/victorsoares96/epubjs-react-native/blob/master/src/template.ts#L167 |
yes, you got it right |
but this is a separate issue, the issue which I mentioned in title is something else which is unknown to me |
this "rendition is not defined" issue is very serious, did you get the solution for this @victorsoares96 ? |
I believe the problem "rendition is not defined" is being caused by you calling |
hi @victorsoares96 , no still after removing that error "rendition is not defined" after removing |
This issue is stale because it has been open for 90 days with no activity. |
Summary
I am getting an issue of rendition is not defined in both Android and IOS, it shows at random times mostly on real devices and less time on Android and IOS emulator
the message appears differently in IOS and Android, sometimes when I open the book for the first time, it does not appear but when I open the book for a second time, no matter whether it is same book or different from my app, the message appears then there,
a
What platform(s) does this occur on?
Android, iOS
What workflow(s) does this occur on?
Bare Workflow
Environment (or package.json)
{
"name": "aabBooksMobile",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "patch-package && react-native start",
"test": "jest",
"android-wifi": "adb kill-server && adb tcpip 5555 && adb connect 192.168.0.32:5555 && adb devices",
"postinstall": "patch-package"
},
"dependencies": {
"@epubjs-react-native/core": "^1.4.4",
"@epubjs-react-native/file-system": "^1.1.2",
"@react-native-async-storage/async-storage": "^1.22.3",
"@react-native-clipboard/clipboard": "^1.14.1",
"@react-navigation/bottom-tabs": "^6.5.19",
"@react-navigation/native": "^6.1.16",
"@react-navigation/native-stack": "^6.9.25",
"@reduxjs/toolkit": "^2.2.2",
"axios": "^1.6.8",
"eventemitter3": "^5.0.1",
"patch-package": "^8.0.0",
"react": "18.2.0",
"react-native": "0.73.6",
"react-native-bouncy-checkbox": "^3.0.7",
"react-native-dropdown-select-list": "^2.0.5",
"react-native-element-dropdown": "^2.10.4",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.16.0",
"react-native-global-font": "^1.0.3",
"react-native-popup-menu": "^0.16.1",
"react-native-range-slider": "^0.1.2",
"react-native-raw-bottom-sheet": "^3.0.0",
"react-native-reanimated": "^3.8.1",
"react-native-reanimated-carousel": "^3.5.1",
"react-native-safe-area-context": "^4.9.0",
"react-native-screens": "^3.29.0",
"react-native-simple-dialogs": "^2.0.3",
"react-native-snap-carousel": "^4.0.0-beta.6",
"react-native-swipe-gestures": "^1.0.5",
"react-native-webview": "^13.8.4",
"react-redux": "^9.1.0",
"rn-range-slider": "^2.2.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.73.21",
"@react-native/eslint-config": "0.73.2",
"@react-native/js-polyfills": "^0.75.0-main",
"@react-native/metro-babel-transformer": "^0.75.0-main",
"@react-native/metro-config": "^0.73.5",
"@react-native/typescript-config": "0.73.1",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"metro-config": "^0.80.7",
"metro-runtime": "^0.80.7",
"prettier": "2.8.8",
"react-native-svg": "^15.1.0",
"react-native-svg-transformer": "^1.3.0",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
Your .epub file
https://aab-book-stag.s3.eu-west-2.amazonaws.com/65718a24835592f22a309948/9780853304029.epub
Minimal reproducible example
I produced this bug while working on this code
Also, I am not finding the method to inject the javascript in the component as we do in our web app this way
EpubBookWeb
because if I find that way then I can control this by myself
the
I confirm that i have
The text was updated successfully, but these errors were encountered: