JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 236
  • Score
    100M100P100Q91694F
  • License MIT

Epub viewer for React.js powered by Epub.js

Package Exports

  • react-epub-viewer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-epub-viewer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-epub-viewer

Epub Viewer for React.js powered by Epub.js

EpubViewer

If you put ref as an argument, the module will register the viewer as an iframe in the ref. Also, there are some functions written in the ref by default.

  • handleKeyPress Function
  • onLocationChange Function
  • selectionChanged Function

ReactViewer

  • onTocChange Event
  • onBookInfoChange Event
  • onPageChange Event
  • onSelection Event
    • Fire with mouseup event
  • Custom Loading Component