readium-js-viewer icon indicating copy to clipboard operation
readium-js-viewer copied to clipboard

Readium viewer in react-native android and ios webview

Open NicolasdeTiesenhausen opened this issue 7 years ago • 4 comments

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 :

screenshot_20170111-103434

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

NicolasdeTiesenhausen avatar Jan 11 '17 12:01 NicolasdeTiesenhausen

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 ?

vichenze avatar Feb 08 '17 10:02 vichenze

Related? https://github.com/readium/readium-js-viewer/issues/628

danielweck avatar Jul 13 '17 19:07 danielweck

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?

danielweck avatar Jul 17 '17 14:07 danielweck

any update on this?

nidhinprathap avatar Jun 23 '20 06:06 nidhinprathap