readium-js-viewer
readium-js-viewer copied to clipboard
Readium viewer in react-native android and ios webview
Hello, I have a problem trying to implement a readium-js-viewer in a React-native Webview (for android and iOS devices).
I got a basic HTML file with meta refresh : http-equiv="refresh" content="0; url=reader.html?epub=epub_content/MyBook
While “Mybook“ is the name of my epub folder
But when it refreshes and goes to reader.html I got an infinite loop loading :
on the loading screen i printed a ‘ window.location.href ‘ that give me this url : file:///android_asset/epub/reader.html (missing : ?epub=epub_content/MyBook )
My conclusion is that i cant get epub_content via parameter so my question is :
may i use readium-js-viewer_all_LITE.js without passing parrameter ? Just trigger a script that wil launch the reader ?
Or
Does someone has already make work an epub reader in a react-native webview ?
Question
Product * React-native
I have a similar problem. I'm using the cloud reader lite version, and I'd like to hard code the epub path instead of passing it through the URL. Is there a way to do so in the config ?
Related? https://github.com/readium/readium-js-viewer/issues/628
Do you have to use the <meta http-equiv="refresh" content="0; url=...">
technique? Can you not set the URL to load programmatically on the native API side, or from inside the webview using Javascript?
any update on this?