We β€οΈ open source. We work on the things that are important to us when we're able to work on them. Have an issue you care about?
An ebook reader for React Native, built on the Readium toolkits, on iOS, Android and web.
- Render EPUB 2, EPUB 3 and PDF publications in a
ReadiumView. - Track the reading position, and jump to any location, chapter or bookmark.
- Read the table of contents, positions and metadata.
- Control the reader: themes (light, dark, sepia), font size, margins and more.
- Highlights and notes, with custom text-selection actions.
- Full-text search.
- DRM: Readium LCP through a companion package.
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
yarn add react-native-readium react-native-nitro-modules| Platform | Requirements |
|---|---|
| iOS | iOS 15.1+, Xcode 16.4+. Add Readium's spec repo and the readium_pods / readium_post_install helpers to your Podfile. |
| Android | compileSdkVersion 31+, JDK 17, Kotlin 2.3.20+. |
| Web | file.url points to the manifest.json of an unpacked EPUB served over HTTP. |
See Installation for the full setup on each platform.
import { ReadiumView } from 'react-native-readium';
export function Reader({ path }: { path: string }) {
return (
<ReadiumView
file={{ url: path }} // a local EPUB or PDF on native
onLocationChange={(locator) => console.log(locator)}
onPublicationReady={({ metadata, tableOfContents }) =>
console.log(metadata.title, tableOfContents)
}
/>
);
}The documentation covers preferences, highlights, search, LCP and the full API.
| Package | Description |
|---|---|
react-native-readium |
The reader: EPUB and PDF on iOS, Android and web. |
react-native-readium-lcp |
Readium LCP DRM for iOS and Android, as a companion to react-native-readium. |
| Format | Support | Notes |
|---|---|---|
| EPUB 2 | β | |
| EPUB 3 | β | |
| β | Scrolling, fitted to width. | |
| CBZ | β | On the roadmap. |
For LCP-protected publications, add
react-native-readium-lcp.
| App | Description |
|---|---|
apps/example-native |
iOS and Android example, including LCP. |
apps/example-nextjs |
Web example. |
apps/common-app |
UI shared by both examples. |
yarn # install all workspaces
yarn typescript # type-check every package
yarn test # run every package's tests
yarn lint
yarn nitrogen # regenerate Nitro bindings after editing a *.nitro.ts spec
yarn example ios # or: yarn example android
yarn docs # run the documentation site locallyEach package releases on its own, from its own directory:
cd packages/react-native-readium # or packages/react-native-readium-lcp
yarn release # or: yarn release minor / major / 5.3.0That runs release-it, which:
- works out the next version from the commits since the last tag, and writes
CHANGELOG.mdfrom them β so a release is only as good as the commit messages, which follow conventional commits; - snapshots the documentation for a new major or minor, via the
after:bumphook (docs/scripts/cut-docs-version.js) βX.Y.0becomes docs versionX.Y, and the snapshot is staged so it lands in the release commit. Patches and prereleases don't cut one; - commits as
chore: release X.Y.Z, tagsvX.Y.Z, and publishes to npm. It does not create a GitHub release; the tag is the record.
Nothing else needs doing by hand: the package's prepare script builds lib/ before publishing,
and the tag is what the docs site builds from.
See the contributing guide for the development workflow.
We work on what matters to us when we can. If you'd like to sponsor a feature, a fix, or the library in general, open an issue and we'll talk.
MIT

