Reading contents from current EPUB rendition view in React-Native - react-native

I'm trying to do some stuff using react-native and epubjs-rn but I'm facing some problems.
After loading the book on the app, I want to get the text or xhtml that's being currently displayed on the view. In AngularJS with the usual epubjs I could do it using the renditions.view() method.
But, from what I understand right now, I can't get whats on the rendition like that with epubjs-rn, since there's no view() method. Is there any way possible to get the contents of a view/ebook as some sort of xhtml/html structurer?
Right now I really don't know if it's possible in react-native.
Here's the github page for the epub library I'm trying to use: https://github.com/futurepress/epubjs-rn
Thanks in Advance

Related

PDF annotation in React-native mobile app

I want to create a PDF annotation app with react-native, without using third-party libraries. If you guys have any idea how can I build that, please give your suggestion.
Basically, I want to add text selection and highlight in any available PDF without using a third-party library. If you have any idea then, please tell me. If it is not possible in react-native then kindly suggest me native solution.

React native image annotations containing a link to a site

I am a complete beginner at react-native. I am trying to create an app where i can take multiple photos and add a tag/label with a link to a website to each of the photos. These links when tapped need to take the user to the specified website. I also want to be able to save all of the tags along with the images for later in the app. I have found some resources(components) regarding this but as a beginner, i do not know how to use any of them. I am listing these below. If anyone can help to use these or give me any direction as to how i can make this project, i would be really grateful.
resources i found:
https://github.com/skicson/react-native-image-annotation
https://github.com/JimmyDaddy/react-native-image-marker

What is the best approach for building a Quran reading app?

I'm building a Quran reading option in an React-native app. I have some troubles finding the right approche concerning using pdf or png images.
I have tried react-native-pdf but i have some issues. The png option gives the best rendering result in 'PORTRAIT' but in 'LANDSCAPE' the image cant be scrolled vertically to see the entire image; ive tried scrollView inside FlatList.
Thanks!
Avoid PDF.
Check this repository:
https://github.com/semarketir/quranjson
It contains everything you need to build a quran app in react and host everything in your own server or offline
Use this if you want more control:
https://alquran.cloud/api
But it will require the user to be online

QuickLook plugin displaying an image and some infos

I'm currently writing a QuickLook plugin, and I wondering how I can display an image and some information about that image at the same time, similar to http://www.code-line.com/software/sneakpeekphoto/ .
There is only one way to do so: Convert your content to an already supported one. This means either PDF or HTML. There are two options you have:
For static information you create a simple PDF preview by rendering a view into a PDF. (Use -dataWithPDFInsideRect: method of NSView)
For dynamic information create a HTML page with links and so on. QuickLook will then show it. (I think this is also the way your example does it.)
We have not found a way to create complex previews on ur own and had to stick to one of the methods, too. Keynote and Pages do the same -- they convert their presentations to multi-page PDF previews...

Search and Highlight text in PDF for IPad

I am working on the PDF App for iPad and facing an issue: how to search a text in PDF and also how to highlight that text?
Yours is the same big problem I'm having. My understanding is that, currently on iOS 4.0, the main public API is CGPDF . It allows us to parse PDF, and with it we can search strings in it. See also this Quartz 2D document. It also allows us to render it on the screen using CGContextDrawPage. However, it's not yet possible to get the position of a text in the rendered image. (On OS X it's possible using PDFKit.)
So, I'm afraid that you need to implement the PDF spec yourself to get that info. I think GoodReader etc. is working very very hard to implement these.
I had the same trouble recently and then I found FastPDFKit. Have tested the package and it's working great.
http://mobfarm.eu/fastpdfkit