New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-book-reader

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-book-reader

ReactBookReader

latest
Source
npmnpm
Version
1.1.9
Version published
Maintainers
1
Created
Source

ReactBookReader

Introduction

react-book-reader is a react wrapper for foliate-js - library for rendering e-books in the browser. Supports EPUB, MOBI, KF8 (AZW3), FB2, CBZ, PDF (experimental; requires PDF.js), or add support for other formats yourself by implementing the book interface

Basic usage

npm install react-book-reader --save

And in your react-component...

import { ReactReader } from 'react-book-reader'

export default () => (
  <div style={{ height: '100vh' }}>
    {/* Supports EPUB, MOBI, KF8 (AZW3), FB2, CBZ, PDF */}
    <ReactReader url="/files/啼笑因缘.epub" />
  </div>
);

ReactReader Attributes

NameDescriptionTypeDefault
urlbook url or Filestring/File
locationset / update location of the bookstring/number
titlethe title of the bookstring/ReactElement
showTocwhether to show the tocbooleantrue

ReactReader props passed to inner BookView

NameDescriptionTypeDefault
urlbook url or Filestring/File
tocChangedwhen the reader has parsed the book you will receive an array of the chaptersfunction(toc)
nextPagedisplay next pagefunction
prevPagedisplay previous pagefunction
setLocationSet the pagefunction(href)
LoadingViewif you want to customize the LoadingViewelement
ErrorViewif you want to customize the ErrorViewelement

Keywords

react

FAQs

Package last updated on 25 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts