在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:futurepress/epubjs-rn开源软件地址:https://github.com/futurepress/epubjs-rn开源编程语言:JavaScript 86.8%开源软件介绍:Epub.js React Native ComponentsUses EPUB.js to parse and render epubs on iOS and Android using React Native. Getting StartedTo use the components in your own app install via npm or yarn npm install --save epubjs-rn then link the required libraries with react-native link react-native-static-server && react-native link react-native-webview && react-native link react-native-zip-archive && RNFB_ANDROID_PERMISSIONS=true react-native link rn-fetch-blob && react-native link @lightbase/react-native-orientation && react-native link @react-native-community/async-storage then require the
Then you can add the reader element in your code: <Epub src={"https://s3.amazonaws.com/epubjs/books/moby-dick/OPS/package.opf"}
flow={"paginated"} />
Using a local file serverTo unzip compressed epubs locally and use http to stream them to epubjs,
you will want to use the An example of this method is provided in the example app.
Running the example appInstall with yarn. (Don't use NPM unless you flatten the packages after install) cd EpubReader/
yarn global add react-native-cli
yarn install Then start the iOS or Android App yarn start
react-native run-ios
react-native run-android OtherEPUB is a registered trademark of the IDPF. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论