Skip to content
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

Readium viewer in react-native android and ios webview #599

Open
NicolasdeTiesenhausen opened this issue Jan 11, 2017 · 4 comments
Open

Comments

@NicolasdeTiesenhausen
Copy link

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

@vichenze
Copy link

vichenze commented Feb 8, 2017

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 ?

@danielweck
Copy link
Member

Related?
#628

@danielweck
Copy link
Member

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?

@nidhinprathap
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants