{"_id":"@antoine-wbr/epubjs-react-native-core","_rev":"4-645ba3921b7e5ef601ff9a7c8cfde2e1","name":"@antoine-wbr/epubjs-react-native-core","dist-tags":{"latest":"1.4.11"},"versions":{"1.4.8":{"name":"@antoine-wbr/epubjs-react-native-core","version":"1.4.8","keywords":["react","ios","android","react-native","epub","epub-reader","epubjs"],"author":{"url":"https://github.com/victorsoares96","name":"Victor Soares","email":"vitorsoares96@hotmail.com"},"license":"MIT","_id":"@antoine-wbr/epubjs-react-native-core@1.4.8","maintainers":[{"name":"antoine-wbr","email":"antoine@wallburners.art"}],"homepage":"https://github.com/victorsoares96/epubjs-react-native#readme","bugs":{"url":"https://github.com/victorsoares96/epubjs-react-native/issues"},"dist":{"shasum":"049fcf4c34e7009c015d9920a7201b531a681f47","tarball":"https://registry.npmjs.org/@antoine-wbr/epubjs-react-native-core/-/epubjs-react-native-core-1.4.8.tgz","fileCount":433,"integrity":"sha512-tJQ+FGea8t4D1RGMdruWJAY6yGZOxxxIeV0cj7CR1/8575ODmYnWLCXs1z939ByIhus0HWb/T/4dh6dZwW7HZQ==","signatures":[{"sig":"MEYCIQDIx0v2yfMJPZ45KeyoAhFbiGwn0xYkYdwE9IVyavb1ZQIhAKd6QrK66uk419sfx+fVTDvf0xbWC/6klfuYXdNJUQPM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42060592},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","config":{"commitizen":{"path":"./node_modules/commitizen-emoji"},"commitizenEmoji":{"conventionalFormat":true}},"module":"lib/module/index","source":"lib/commonjs/index","scripts":{"lint":"eslint ./src/ --ext .ts,.tsx,.js,.json","test":"jest --watch --runInBand --passWithNoTests","build":"bob build","prepare":"bob build","release":"yarn build && npm publish","lint:fix":"eslint --fix ./src/ --ext .ts,.tsx,.js,.json","bootstrap":"yarn example-bare && yarn example-expo && yarn","type-check":"tsc -p tsconfig.build.json --noEmit --pretty","example-bare":"yarn --cwd example-bare","example-expo":"yarn --cwd example-expo","release:beta":"yarn build && npm publish --tag beta","release-local":"yarn build && npm link && echo [FINISH]: Run \"npm link @epubjs-react-native/core\" to link the package to your project","release:alpha":"yarn build && npm publish --tag alpha","test:coverage":"jest --coverage --no-cache --runInBand --passWithNoTests --forceExit","prettier:format":"prettier --write .","release-to-examples":"yarn build && node ./scripts/release-to-examples.js"},"_npmUser":{"name":"antoine-wbr","email":"antoine@wallburners.art"},"repository":{"url":"https://github.com/victorsoares96/epubjs-react-native","type":"git"},"description":"A digital book reader in .opf .epub format for react native using epub.js library inside a webview.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2021 Victor Soares\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","resolutions":{"@types/react":"~18.3.0"},"react-native":"lib/commonjs/index","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"29.7.0","husky":"9.0.11","react":"18.3.1","eslint":"8.57.1","ts-jest":"29.1.4","ts-node":"10.9.2","prettier":"3.2.5","commitizen":"4.3.1","typescript":"^5.4.5","@types/jest":"29.5.12","lint-staged":"15.2.5","pod-install":"0.2.2","@types/react":"~18.3.0","react-native":"0.75.2","commitizen-emoji":"1.0.5","eslint-plugin-jest":"^28.0.0","eslint-plugin-react":"7.35.0","react-test-renderer":"18.3.1","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.29.1","react-native-webview":"13.11.1","eslint-config-prettier":"9.1.0","eslint-plugin-jsx-a11y":"6.9.0","eslint-plugin-prettier":"5.2.1","react-native-builder-bob":"0.23.2","@typescript-eslint/parser":"7.18.0","eslint-plugin-react-hooks":"4.6.2","@types/react-test-renderer":"18.3.0","@testing-library/jest-native":"5.4.3","react-native-gesture-handler":"^2.12.0","@testing-library/react-native":"12.6.0","eslint-plugin-testing-library":"6.2.2","eslint-config-airbnb-typescript":"18.0.0","metro-react-native-babel-preset":"^0.77.0","@typescript-eslint/eslint-plugin":"7.18.0","@react-native-community/eslint-config":"3.2.0"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*","react-native-gesture-handler":"*"},"_npmOperationalInternal":{"tmp":"tmp/epubjs-react-native-core_1.4.8_1750024831165_0.664855045683689","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["commonjs",{"sourceMaps":false}],["module",{"sourceMaps":false}],["typescript",{"project":"tsconfig.build.json"}]]}},"1.4.9":{"name":"@antoine-wbr/epubjs-react-native-core","version":"1.4.9","keywords":["react","ios","android","react-native","epub","epub-reader","epubjs"],"author":{"url":"https://github.com/victorsoares96","name":"Victor Soares","email":"vitorsoares96@hotmail.com"},"license":"MIT","_id":"@antoine-wbr/epubjs-react-native-core@1.4.9","maintainers":[{"name":"antoine-wbr","email":"antoine@wallburners.art"}],"homepage":"https://github.com/victorsoares96/epubjs-react-native#readme","bugs":{"url":"https://github.com/victorsoares96/epubjs-react-native/issues"},"dist":{"shasum":"c9bde38611effcade666bfc8f9d3376bed06a453","tarball":"https://registry.npmjs.org/@antoine-wbr/epubjs-react-native-core/-/epubjs-react-native-core-1.4.9.tgz","fileCount":434,"integrity":"sha512-DiH9QCjFx2KOrh4C5O9aKew0CrxQ6g2V1eyXBMzOTCBFL/AbAcfFBJONcQ45FqiyQTr3E7VzuWzjPV8MCyfPRA==","signatures":[{"sig":"MEYCIQCQ3Oa9/SOU6YO74Hb1MmaSYaf5qqmhnE7fDrdlX/4IvgIhAMdT9sXxZ6+Dj6uwKh7OLiSJjA6OTrKqxkGrcx8s6bey","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42077069},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","config":{"commitizen":{"path":"./node_modules/commitizen-emoji"},"commitizenEmoji":{"conventionalFormat":true}},"module":"lib/module/index","source":"lib/commonjs/index","scripts":{"lint":"eslint ./src/ --ext .ts,.tsx,.js,.json","test":"jest --watch --runInBand --passWithNoTests","build":"bob build","prepare":"bob build","release":"yarn build && npm publish","lint:fix":"eslint --fix ./src/ --ext .ts,.tsx,.js,.json","bootstrap":"yarn example-bare && yarn example-expo && yarn","type-check":"tsc -p tsconfig.build.json --noEmit --pretty","example-bare":"yarn --cwd example-bare","example-expo":"yarn --cwd example-expo","release:beta":"yarn build && npm publish --tag beta","release-local":"yarn build && npm link && echo [FINISH]: Run \"npm link @epubjs-react-native/core\" to link the package to your project","release:alpha":"yarn build && npm publish --tag alpha","test:coverage":"jest --coverage --no-cache --runInBand --passWithNoTests --forceExit","prettier:format":"prettier --write .","release-to-examples":"yarn build && node ./scripts/release-to-examples.js"},"_npmUser":{"name":"antoine-wbr","email":"antoine@wallburners.art"},"repository":{"url":"https://github.com/victorsoares96/epubjs-react-native","type":"git"},"description":"A digital book reader in .opf .epub format for react native using epub.js library inside a webview.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2021 Victor Soares\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","resolutions":{"@types/react":"~18.3.0"},"react-native":"lib/commonjs/index","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"29.7.0","husky":"9.0.11","react":"18.3.1","eslint":"8.57.1","ts-jest":"29.1.4","ts-node":"10.9.2","prettier":"3.2.5","commitizen":"4.3.1","typescript":"^5.4.5","@types/jest":"29.5.12","lint-staged":"15.2.5","pod-install":"0.2.2","@types/react":"~18.3.0","react-native":"0.75.2","commitizen-emoji":"1.0.5","eslint-plugin-jest":"^28.0.0","eslint-plugin-react":"7.35.0","react-test-renderer":"18.3.1","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.29.1","react-native-webview":"13.11.1","eslint-config-prettier":"9.1.0","eslint-plugin-jsx-a11y":"6.9.0","eslint-plugin-prettier":"5.2.1","react-native-builder-bob":"0.23.2","@typescript-eslint/parser":"7.18.0","eslint-plugin-react-hooks":"4.6.2","@types/react-test-renderer":"18.3.0","@testing-library/jest-native":"5.4.3","react-native-gesture-handler":"^2.12.0","@testing-library/react-native":"12.6.0","eslint-plugin-testing-library":"6.2.2","eslint-config-airbnb-typescript":"18.0.0","metro-react-native-babel-preset":"^0.77.0","@typescript-eslint/eslint-plugin":"7.18.0","@react-native-community/eslint-config":"3.2.0"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*","react-native-gesture-handler":"*"},"_npmOperationalInternal":{"tmp":"tmp/epubjs-react-native-core_1.4.9_1750025576545_0.5691231246381461","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["commonjs",{"sourceMaps":false}],["module",{"sourceMaps":false}],["typescript",{"project":"tsconfig.build.json"}]]}},"1.4.10":{"name":"@antoine-wbr/epubjs-react-native-core","version":"1.4.10","keywords":["react","ios","android","react-native","epub","epub-reader","epubjs"],"author":{"url":"https://github.com/victorsoares96","name":"Victor Soares","email":"vitorsoares96@hotmail.com"},"license":"MIT","_id":"@antoine-wbr/epubjs-react-native-core@1.4.10","maintainers":[{"name":"antoine-wbr","email":"antoine@wallburners.art"}],"homepage":"https://github.com/victorsoares96/epubjs-react-native#readme","bugs":{"url":"https://github.com/victorsoares96/epubjs-react-native/issues"},"dist":{"shasum":"9779bbda204efe2dd8e885046be291190ad7325a","tarball":"https://registry.npmjs.org/@antoine-wbr/epubjs-react-native-core/-/epubjs-react-native-core-1.4.10.tgz","fileCount":433,"integrity":"sha512-HB5M3GjzeQYdCLlik4z8EraNbXhtiNXbUab6V3ovT/yJ4dpbScFdwg5v5w/6nLHdlA/igkzGLfqDaLDObB/OXQ==","signatures":[{"sig":"MEYCIQDvnWfjcWiRhX1olZ9ocPCcZS9R+P1V0zPU9BvtAJ33+QIhAJ8o9M3BiUh9rFq51exu/f5JDgAAgWVopQ+morQszldm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42060596},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","config":{"commitizen":{"path":"./node_modules/commitizen-emoji"},"commitizenEmoji":{"conventionalFormat":true}},"module":"lib/module/index","source":"lib/commonjs/index","scripts":{"lint":"eslint ./src/ --ext .ts,.tsx,.js,.json","test":"jest --watch --runInBand --passWithNoTests","build":"bob build","prepare":"bob build","release":"yarn build && npm publish","lint:fix":"eslint --fix ./src/ --ext .ts,.tsx,.js,.json","bootstrap":"yarn example-bare && yarn example-expo && yarn","type-check":"tsc -p tsconfig.build.json --noEmit --pretty","example-bare":"yarn --cwd example-bare","example-expo":"yarn --cwd example-expo","release:beta":"yarn build && npm publish --tag beta","release-local":"yarn build && npm link && echo [FINISH]: Run \"npm link @epubjs-react-native/core\" to link the package to your project","release:alpha":"yarn build && npm publish --tag alpha","test:coverage":"jest --coverage --no-cache --runInBand --passWithNoTests --forceExit","prettier:format":"prettier --write .","release-to-examples":"yarn build && node ./scripts/release-to-examples.js"},"_npmUser":{"name":"antoine-wbr","email":"antoine@wallburners.art"},"repository":{"url":"https://github.com/victorsoares96/epubjs-react-native","type":"git"},"description":"A digital book reader in .opf .epub format for react native using epub.js library inside a webview.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2021 Victor Soares\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","resolutions":{"@types/react":"~18.3.0"},"react-native":"lib/commonjs/index","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"29.7.0","husky":"9.0.11","react":"18.3.1","eslint":"8.57.1","ts-jest":"29.1.4","ts-node":"10.9.2","prettier":"3.2.5","commitizen":"4.3.1","typescript":"^5.4.5","@types/jest":"29.5.12","lint-staged":"15.2.5","pod-install":"0.2.2","@types/react":"~18.3.0","react-native":"0.75.2","commitizen-emoji":"1.0.5","eslint-plugin-jest":"^28.0.0","eslint-plugin-react":"7.35.0","react-test-renderer":"18.3.1","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.29.1","react-native-webview":"13.11.1","eslint-config-prettier":"9.1.0","eslint-plugin-jsx-a11y":"6.9.0","eslint-plugin-prettier":"5.2.1","react-native-builder-bob":"0.23.2","@typescript-eslint/parser":"7.18.0","eslint-plugin-react-hooks":"4.6.2","@types/react-test-renderer":"18.3.0","@testing-library/jest-native":"5.4.3","react-native-gesture-handler":"^2.12.0","@testing-library/react-native":"12.6.0","eslint-plugin-testing-library":"6.2.2","eslint-config-airbnb-typescript":"18.0.0","metro-react-native-babel-preset":"^0.77.0","@typescript-eslint/eslint-plugin":"7.18.0","@react-native-community/eslint-config":"3.2.0"},"peerDependencies":{"react":"*","react-native":"*","react-native-webview":"*","react-native-gesture-handler":"*"},"_npmOperationalInternal":{"tmp":"tmp/epubjs-react-native-core_1.4.10_1750026494265_0.7214640861144177","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":[["commonjs",{"sourceMaps":false}],["module",{"sourceMaps":false}],["typescript",{"project":"tsconfig.build.json"}]]}},"1.4.11":{"name":"@antoine-wbr/epubjs-react-native-core","version":"1.4.11","description":"A digital book reader in .opf .epub format for react native using epub.js library inside a webview.","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"lib/commonjs/index","source":"lib/commonjs/index","scripts":{"prepare":"bob build","prettier:format":"prettier --write .","lint":"eslint ./src/ --ext .ts,.tsx,.js,.json","lint:fix":"eslint --fix ./src/ --ext .ts,.tsx,.js,.json","type-check":"tsc -p tsconfig.build.json --noEmit --pretty","test":"jest --watch --runInBand --passWithNoTests","test:coverage":"jest --coverage --no-cache --runInBand --passWithNoTests --forceExit","build":"bob build","release":"yarn build && npm publish","release:beta":"yarn build && npm publish --tag beta","release:alpha":"yarn build && npm publish --tag alpha","release-local":"yarn build && npm link && echo [FINISH]: Run \"npm link @epubjs-react-native/core\" to link the package to your project","release-to-examples":"yarn build && node ./scripts/release-to-examples.js","example-bare":"yarn --cwd example-bare","example-expo":"yarn --cwd example-expo","bootstrap":"yarn example-bare && yarn example-expo && yarn"},"keywords":["react","ios","android","react-native","epub","epub-reader","epubjs"],"repository":{"type":"git","url":"git+https://github.com/victorsoares96/epubjs-react-native.git"},"author":{"name":"Victor Soares","email":"vitorsoares96@hotmail.com","url":"https://github.com/victorsoares96"},"license":"MIT","bugs":{"url":"https://github.com/victorsoares96/epubjs-react-native/issues"},"homepage":"https://github.com/victorsoares96/epubjs-react-native#readme","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"devDependencies":{"@react-native-community/eslint-config":"3.2.0","@testing-library/jest-native":"5.4.3","@testing-library/react-native":"12.6.0","@types/jest":"29.5.12","@types/react":"~18.3.0","@types/react-test-renderer":"18.3.0","@typescript-eslint/eslint-plugin":"7.18.0","@typescript-eslint/parser":"7.18.0","commitizen":"4.3.1","commitizen-emoji":"1.0.5","eslint":"8.57.1","eslint-config-airbnb":"19.0.4","eslint-config-airbnb-typescript":"18.0.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.29.1","eslint-plugin-jest":"^28.0.0","eslint-plugin-jsx-a11y":"6.9.0","eslint-plugin-prettier":"5.2.1","eslint-plugin-react":"7.35.0","eslint-plugin-react-hooks":"4.6.2","eslint-plugin-testing-library":"6.2.2","husky":"9.0.11","jest":"29.7.0","lint-staged":"15.2.5","metro-react-native-babel-preset":"^0.77.0","pod-install":"0.2.2","prettier":"3.2.5","react":"18.3.1","react-native":"0.75.2","react-native-builder-bob":"0.23.2","react-native-gesture-handler":"^2.12.0","react-native-webview":"13.11.1","react-test-renderer":"18.3.1","ts-jest":"29.1.4","ts-node":"10.9.2","typescript":"^5.4.5"},"resolutions":{"@types/react":"~18.3.0"},"peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":"*","react-native-webview":"*"},"config":{"commitizen":{"path":"./node_modules/commitizen-emoji"},"commitizenEmoji":{"conventionalFormat":true}},"react-native-builder-bob":{"source":"src","output":"lib","targets":[["commonjs",{"sourceMaps":false}],["module",{"sourceMaps":false}],["typescript",{"project":"tsconfig.build.json"}]]},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","_id":"@antoine-wbr/epubjs-react-native-core@1.4.11","gitHead":"1283c37cd9c34867de57258889e9bd2c2a0a0367","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-scY4+51e/C9Az+RkgzZeYIUVRUp6lgE9vh/LneIu+GRAM2F4yq3VrD3lgwVW/uuWyloduVfyjm5yw13NRhXQCw==","shasum":"03c9625f60c113e70fde83c664c8aa630309d920","tarball":"https://registry.npmjs.org/@antoine-wbr/epubjs-react-native-core/-/epubjs-react-native-core-1.4.11.tgz","fileCount":107,"unpackedSize":2401635,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDRRCfAIQKr6H8vMJKVP9PSWJhq0xnE/HxkzJGUKTzvTwIgJyjN15Ed8Vf8p00UX41+tQtu1gs3r1EucUrUQAGWnno="}]},"_npmUser":{"name":"antoine-wbr","email":"antoine@wallburners.art","actor":{"name":"antoine-wbr","email":"antoine@wallburners.art","type":"user"}},"directories":{},"maintainers":[{"name":"antoine-wbr","email":"antoine@wallburners.art"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/epubjs-react-native-core_1.4.11_1750800007199_0.4165408818728875"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-15T22:00:31.095Z","modified":"2025-06-24T21:20:07.691Z","1.4.8":"2025-06-15T22:00:31.833Z","1.4.9":"2025-06-15T22:12:57.200Z","1.4.10":"2025-06-15T22:28:14.911Z","1.4.11":"2025-06-24T21:20:07.508Z"},"bugs":{"url":"https://github.com/victorsoares96/epubjs-react-native/issues"},"author":{"name":"Victor Soares","email":"vitorsoares96@hotmail.com","url":"https://github.com/victorsoares96"},"license":"MIT","homepage":"https://github.com/victorsoares96/epubjs-react-native#readme","keywords":["react","ios","android","react-native","epub","epub-reader","epubjs"],"repository":{"type":"git","url":"git+https://github.com/victorsoares96/epubjs-react-native.git"},"description":"A digital book reader in .opf .epub format for react native using epub.js library inside a webview.","maintainers":[{"name":"antoine-wbr","email":"antoine@wallburners.art"}],"readme":"# epubjs-react-native\n\nA digital book reader in .opf .epub format for react native using epub.js library inside a webview.\n\n## Installation\n\n```sh\nnpm install @epubjs-react-native/core\n```\n\n```sh\nyarn add @epubjs-react-native/core\n```\n\nfollow these steps below based on the type of project you want to apply this library:\n\n#### Bare Installation\n\n```sh\nnpm install @epubjs-react-native/file-system react-native-fs react-native-webview react-native-gesture-handler\n```\n\n```sh\nyarn add @epubjs-react-native/file-system react-native-fs react-native-webview react-native-gesture-handler\n```\n\n#### Expo Installation\n\n```sh\nnpx expo install @epubjs-react-native/expo-file-system react-native-fs react-native-webview react-native-gesture-handler\n```\n\n#### If you develop for iOS use this command for install CocoaPods deps (if you use an expo managed project you don't need this)\n\nIn your ios project folder run:\n\n```sh\nnpx pod-install\n```\n\nFor bare react-native projects, add the following permissions to `Info.plist`:\n\n```sh\n<key>LSSupportsOpeningDocumentsInPlace</key>\n<true/>\n```\n\n## Usage\n\nWrap 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.\n\n```tsx\nimport * as React from 'react';\nimport { AppRegistry } from 'react-native';\nimport { ReaderProvider } from '@epubjs-react-native/core';\nimport { name as appName } from './app.json';\nimport App from './src/App';\n\nexport default function Main() {\n  return (\n    <ReaderProvider>\n      <App />\n    </ReaderProvider>\n  );\n}\n\nAppRegistry.registerComponent(appName, () => Main);\n```\n\nThe `<ReaderProvider>` component provides `<Reader>` manipulation methods for all components of the framework.\n**Without this the `useReader` hook will not work.**\n\nAfter the above step you can initialize the reader as follows:\n\n```tsx\nimport * as React from 'react';\n\nimport { SafeAreaView } from 'react-native';\nimport { Reader, useReader } from '@epubjs-react-native/core';\n// import { useFileSystem } from '@epubjs-react-native/file-system'; // for Bare React Native project\n// import { useFileSystem } from '@epubjs-react-native/expo-file-system'; // for Expo project\n\nexport default function App() {\n  const { goToLocation } = useReader();\n  return (\n    <SafeAreaView style={{ flex: 1 }}>\n      <Reader\n        src=\"https://s3.amazonaws.com/moby-dick/OPS/package.opf\"\n        fileSystem={useFileSystem}\n      />\n    </SafeAreaView>\n  );\n}\n```\n\n## Reader Params\n\n| Param                        | Type          | Description                                                  |\n| ---------------------------- | ------------- | ------------------------------------------------------------ |\n| `src`                        | `string`      | Can be a `base64`, `epub`, `opf`. Required.                  |\n| `width`                      | `number` `string`      | The width of the ePub Rendition. Optional.                   |\n| `height`                     | `number` `string`      | The height of the ePub Rendition. Optional.                  |\n| `fileSystem`                 | `function`    | A function that returns a `FileSystem` object. Required.     |\n| `initialLocation`            | `ePubCfi`     | Can be an ePubCfi or chapter url. Optional.                  |\n| `enableSwipe`                | `boolean`     | Enable swipe actions. Default is `true`.                     |\n| `enableSelection`            | `boolean`     | Enable text selection feature on the book. Default is `true`.|\n| `onSwipeLeft`                | `function`    | Called when swipe left gesture is detected. Optional.        |\n| `onSwipeRight`               | `function`    | Called when swipe right gesture is detected. Optional.       |\n| `renderLoadingFileComponent` | `JSX.Element` | Render when the book is loading. Optional.                   |\n| `renderOpeningBookComponent` | `JSX.Element` | Appears when the book is been rendering. Optional.           |\n| `onStarted`                  | `function`    | Called once the book loads is started. Optional.             |\n| `onReady`                    | `function`    | Called once book has been displayed. Optional.               |\n| `onDisplayError`             | `function`    | Called once book has not been displayed. Optional.           |\n| `onRendered`                 | `function`    | Emit that a section has been rendered. Optional.             |\n| `onChangeSection`            | `function`    | Called when section has been change. Optional.               |\n| `onResized`                  | `function`    | Called when occurred a page change. Optional.                |\n| `onLocationChange`           | `function`    | Called when occurred a page change. Optional.                |\n| `onSearch`                   | `function`    | Called once when the book has been searched. Optional.       |\n| `onLocationsReady`           | `function`    | Called once the locations has been generated. Optional.      |\n| `onSelected`                 | `function`    | Called once a text selection has occurred. Optional.         |\n| `onOrientationChange`        | `function`    | Called when screen orientation change is detected. Optional. |\n| `onPress`                    | `function`    | Called when the book was pressed. Optional.                  |\n| `onDoublePress`              | `function`    | Called when the book was double pressed. Optional.           |\n| `onBeginning`                | `function`    | Called when the book is on the homepage. Optional.           |\n| `onFinish`                   | `function`    | Called when the book is on the final page. Optional.         |\n| `onLayout`                   | `function`    | Called when book layout is change. Optional.                 |\n| `defaultTheme`               | `object`      | Theme object. Optional.                                      |\n| `allowScriptedContent`       | `boolean`     | Allow run scripted content on sandbox. *Default is false on Android and true in iOS* |\n| `allowPopups`                | `boolean`     | Epubjs is rendering the epub-content inside and iframe which defaults to sandbox=\"allow-same-origin\", to enable opening links or running javascript in an epub, you will need to pass this param. |\n| `onPressExternalLink`        | `function`    | Function that is invoked when external link is pressed. When used, the `allowPopups` property is automatically enabled |\n| `menuItems`                  | `array`       | An array of objects which will be shown when selecting text. An empty array will suppress the menu.                    |\n| `onAddAnnotation`            | `function`    | Function that is invoked when annotation is added in book.                                                             |\n| `onChangeAnnotations`        | `function`    | Function that is invoked when annotations array is modified.                                                           |\n| `onPressAnnotation`          | `function`    | Function that is invoked when annotation is pressed.                                                                   |\n| `initialAnnotations`         | `array`       | Used for load book with annotations attached                                                                           |\n| `onAddBookmark`              | `function`    |                                                              |\n| `onRemoveBookmark`           | `function`    |                                                              |\n| `onRemoveBookmarks`          | `function`    |                                                              |\n| `onUpdateBookmark`           | `function`    |                                                              |\n| `onChangeBookmarks`          | `function`    | Function that is invoked when bookmarks array is modified.                                                           |\n| `initialBookmarks`           | `array`       | load bookmarks after render book                                                                           |\n| `injectedJavascript`         | `string`      | Provide JavaScript that will be injected after the book loads.                                  |\n| `getInjectionJavascriptFn`   | `function`    | Provides injectJavascript function, is same the webView function                                           |\n| `onWebViewMessage`           | `function`    | A webview event listener, is same the webView onMessage                                                                           |\n| `manager`                    | `default` `continuous`    |                                                                            |\n| `flow`           | `auto` `paginated` `scrolled` `scrolled-doc` `scrolled-continuous`    |                                                                   |\n| `snap`           | `boolean`    |                                                          |\n| `spread`           | `auto` `none` `always`    |                                                                           |\n| `fullsize`           | `boolean`    |                                                                           |\n| `waitForLocationsReady`           |  `boolean`    | only render book after locations generated                                                                           |\n| `keepScrollOffsetOnLocationChange` | `boolean` | Prevents scroll top when change location. Works with `scrolled-doc` flow.\n| `charactersPerLocation`           | `number`    | Default is 1600                                                                          |\n\n## Hooks\n\n#### useReader\n\n`useReader()` is a customized hook that will return all Book states and the methods that will help you. **Make sure you use it within the ReaderProvider**\n\n```tsx\nconst { changeFontSize, goToLocation, ... } = useReader();\n```\n\n##### Methods\n\n| Method               | Receives | Description                                                               |\n| -------------------- | -------- | ------------------------------------------------------------------------- |\n| `changeFontSize`     | `size`   | Change font size of all elements in the book. Can be a px, pt or percent. |\n| `changeFontFamily`   | `font`   | Change font family of all elements in the book                            |\n| `goToLocation`       | `cfi`    | Go to specific location in the book                                       |\n| `getLocations`       |          | Get the total locations of the book                                       |\n| `goPrevious`         | `PaginateOptions`        | Go to previous page in the book                                           |\n| `goNext`             | `PaginateOptions`         | Go to next page in the book                                               |\n| `search`             | `query`  | Search for a specific text in the book                                    |\n| `clearSearchResults` | `void`   | Clear search results                                                      |\n| `changeTheme`        | `theme`  | Change active theme                                                       |\n| `getCurrentLocation` |          | Returns the current location of the book                                  |\n| `getMeta`            |          | Returns an object containing the book's metadata.                         |\n| `addAnnotation`      |    `annotation`      | Attach annotation in the book.                                            |\n| `addAnnotationByTagId`      |    `annotation`      | Attach annotation in the book by dom element tag id.                                            |\n| `updateAnnotation`   |     `annotation, data, styles`     | Update annotation data and style                                          |\n| `updateAnnotationByTagId`   |     `annotation, data, styles`     | Update annotation data and style by dom element tag id                                          |\n| `removeAnnotation`   |  `annotation`        | Detach annotation in the book.                                            |\n| `removeAnnotationByTagId`   |  `annotation`        | Detach annotation in the book by dom element tag id.                                            |\n| `removeAnnotationByCfi`  `cfi`          |          | Detach annotations in the book by provided cfi.                         |\n| `removeAnnotations`  |    `type?: optional`      | Detach all annotations in the book. Can be detach by type                 |\n| `removeSelection`    |          | Remove selection                 |\n| `addBookmark`        |    `bookmark`      | Attach bookmark                                            |\n| `updateBookmark`     |     `id, data`     | Update bookmark data                                          |\n| `removeBookmark`     |  `bookmark`        | Remove bookmark                                            |\n| `removeBookmarks`    |          | Remove all bookmarks                 |\n| `injectJavascript`   |`function`| Provide JavaScript that will be injected after the book loads.                 |\n| `changeFlow`   |`Flow`| Adjust the flow of the rendition to paginated or scrolled (scrolled-continuous vs scrolled-doc are handled by different view managers)                 |\n\n##### States\n\n- `theme`: A object containing theme.\n- `key`: Works like a unique id for book.\n- `atStart`: Indicates if you are at the beginning of the book.\n- `atEnd`: Indicates if you are at the end of the book.\n- `currentLocation`: The current location of the book.\n- `totalLocations`: The total number of locations.\n- `progress`: The progress of the book.\n- `isLoading`: Indicates if the book is loading.\n- `searchResults`: Search results.\n- `meta`: A object containing the book's metadata.\n- `annotations`: A array containing the book's annotations.\n- `section`: A current section(chapter) of the book.\n- `toc`: Also called table of contents, is an ordered list of links into the content.\n- `landmarks`: Containing a array of major sections of the content\n- `bookmarks`: A array containing the bookmarks.\n- `isBookmarked`: Indicates if current location is bookmarked.\n\nThe `meta` object contains:\n\n- **cover** *(string, ArrayBuffer, null or undefined)*: The book's cover image `e.g.data:image/jpeg;base64,/9j/4AAQSkZJ...`\n- **author** *(string)*: The name of the book's creator/author `e.g. Herman Melville`\n- **title** *(string)*: The book's title `e.g. Moby-Dick`\n- **description** *(string)*: The book's description/summary.\n- **language** *(string)* : The book's language `e.g. en-US`\n- **publisher** *(string)*: The eBook's publisher `e.g. Harper & Brothers, Publishers`\n- **rights** *(string)*: The book's rights `e.g. This work is shared with the public using the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.`\n\n#### Examples\n\n- [You can see the examples demo here](docs/EXAMPLES.md)\n\n- [Examples running on Expo Project](example-expo/App.tsx)\n- [Examples running on Bare React Native Project](example-bare/App.tsx)\n\nDid you like this project? Consider [sponsoring](https://www.paypal.com/donate/?business=YNAUBS5LFN5KN&no_recurring=1&currency_code=USD) the development of this project to keep it alive! ❤️\n\n## License\n\nMIT\n","readmeFilename":"README.md"}