0.0.3 • Published 4 years ago

epubjs-react v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

React Epubjs v0.0.1

Use epub.js in this package: https://github.com/futurepress/epub.js

Getting Started

npm i react-epubjs

or

yarn add react-epubjs

Create new React Epubjs

interface ReaderProps {
  url: any
  //   fontSize?: string
  //   fontFamily?: string
  //   page?: number
  onLoad?: (rendition?: Rendition) => void
  onNext?: (rendition?: Rendition) => void
  onPrev?: (rendition?: Rendition) => void
}
import Book from './book.epub'
import Reader from 'react-epubjs'

<Reader src={Book} />
<Reader src="https://abc.com/book.epub" />
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago