Files
lnreader/src/native/epubParser.ts
T
nyagami 7fbdd92117 feat: Import EPUB (#833)
* implement classes for plugins

* feat: plugin manages UA, cookie itself

* fix: repo path

* safer regexString

* feat: EpubParser native module

* add reject to parser

* local category, better insert category trigger

* add isLocal field to Novel

* category update logic for local novels

* feat: import epub

* delete downloaded folder when delete novel

* local novel screen

* update build.yml

* fix: novel without cover
2023-11-10 18:31:09 +05:30

9 lines
293 B
TypeScript

import { SourceNovel } from '@plugins/types';
import { NativeModules } from 'react-native';
interface EpubParserInterface {
parse: (epubFilePath: string, epubDirPath: string) => Promise<SourceNovel>;
}
const { EpubParser } = NativeModules;
export default EpubParser as EpubParserInterface;