Description
epubjs-react-native is a React Native library for reading digital books in the .epub and .opf formats. It renders the book with the epub.js library inside a webview, so your app gets a reader component that can be styled and controlled from code. The package set is split for different project types. Bare React Native projects use @epubjs-react-native/file-system, which depends on @dr.pogodin/react-native-fs, and Expo projects use @epubjs-react-native/expo-file-system. The README includes a note that version 2.40.1 or newer of react-native-fs is needed for iOS linking with dynamic frameworks, and gives the rebuild steps after changing it. Usage starts by wrapping your root component in ReaderProvider, and the library exposes hooks and reader parameters for controlling the book. The Info.plist permissions for bare projects are also described. The package is published on GitHub under the author's name.…
Highlights
- Reads .epub and .opf books inside React Native
- Renders with epub.js in a webview
- Separate packages for bare React Native and Expo
- ReaderProvider with hooks and reader parameters
- iOS linking notes for react-native-fs
Ratings & Reviews
No ratings yet
Be the first to rate Epubjs React Native.
People also visit

react-native-pdf
A react native PDF view component, support ios and android platform
Epubjs React Native FAQ
What is epubjs-react-native?
A React Native library for displaying epub and opf books in a mobile app, built on the epub.js library.
Does it work with Expo?
Yes. Expo projects install @epubjs-react-native/expo-file-system and should leave react-native-fs out of the install.
How do I use it?
Wrap your root component in ReaderProvider, usually in the file that registers your app or in your App component for Expo, and then use the reader component and its hooks.
Why does iOS fail to build?
The README says @dr.pogodin/react-native-fs must be version 2.40.1 or newer with dynamic frameworks. After upgrading, rebuild the native app and run npx pod-install.
Is it free?
The source is public on GitHub and the README covers installation from the repository.
What are the best Epubjs React Native alternatives?
Popular alternatives to Epubjs React Native include React Reader, Epub.js and RN PDF Reader JS. See all Epubjs React Native alternatives


