{"repo":"victorsoares96/epubjs-react-native","free":true,"listed":false,"github":"https://github.com/victorsoares96/epubjs-react-native","clone":"git clone https://github.com/victorsoares96/epubjs-react-native.git","description":"ePub.js Reader for React Native","language":"TypeScript","stars":251,"topics":["epub","epubjs","epub-reader","react-native","ios","react"],"license":"MIT","category":"mobile-apps","readme_excerpt":"epubjs-react-native A digital book reader in .opf .epub format for react native using epub.js library inside a webview. Installation follow these steps below based on the type of project you want to apply this library: Bare Installation Expo Installation If you develop for iOS use this command for install CocoaPods deps (if you use an expo managed project you don't need this) In your ios project folder run: For bare react-native projects, add the following permissions to Info.plist : Usage Wrap your root component in ReaderProvider. If you have a vanilla React Native project, it's a good idea to add it in the component which is passed to AppRegistry.registerComponent. This will usually be in the index.js file. If you have an Expo project, you can do this inside the exported component in the App.js file. The component provides manipulation methods for all components of the framework. Without this the useReader hook will not work. After the above step you can initialize the reader as follows: Reader Params Param Type Description ---------------------------- ------------- ------------------------------------------------------------ src string Can be a base64 , epub , opf . Required. width number string The width of the ePub Rendition. Optional. height number string The height of the ePub Rendition. Optional. fileSystem function A function that returns a FileSystem object. Required. initialLocation ePubCfi Can be an ePubCfi or chapter url. Optional. enableSwipe boolean Enable swi","default_branch":null,"files":null,"tree":[],"storefront":"/r/victorsoares96","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/victorsoares96/epubjs-react-native/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}