Skip to content

Commit

Permalink
feat: EPUB Export (#646)
Browse files Browse the repository at this point in the history
* Export to Epub

* removed uneccessary css

* updated dependency
  • Loading branch information
CD-Z authored Jun 10, 2023
1 parent dd0ab52 commit c0b4610
Show file tree
Hide file tree
Showing 11 changed files with 564 additions and 7 deletions.
237 changes: 237 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"prepare": "husky install"
},
"dependencies": {
"@cd-z/react-native-epub-creator": "^2.0.0",
"@gorhom/bottom-sheet": "^4.4.5",
"@react-native-async-storage/async-storage": "^1.18.1",
"@react-native-community/clipboard": "^1.5.1",
Expand Down Expand Up @@ -60,13 +61,15 @@
"react-native-pager-view": "^6.2.0",
"react-native-paper": "^5.7.2",
"react-native-reanimated": "~2.9.1",
"react-native-saf-x": "^2.2.1",
"react-native-safe-area-context": "4.3.1",
"react-native-screens": "~3.15.0",
"react-native-shimmer-placeholder": "^2.0.9",
"react-native-tab-view": "^3.1.1",
"react-native-tts": "^4.1.0",
"react-native-vector-icons": "^9.0.0",
"react-native-webview": "11.23.0",
"react-native-zip-archive": "^6.0.9",
"react-redux": "^7.2.6",
"redux-persist": "^6.0.0",
"rn-fetch-blob": "^0.12.0",
Expand Down
13 changes: 9 additions & 4 deletions src/screens/novel/NovelScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ import NovelInfoHeader from './components/Info/NovelInfoHeader';
import NovelBottomSheet from './components/NovelBottomSheet';
import TrackSheet from './components/Tracker/TrackSheet';
import { Row } from '../../components/Common';
import JumpToChapterModal from './components/JumpToChapterModal';
import JumpToChapterModal from './components/Modal/JumpToChapterModal';
import { Actionbar } from '../../components/Actionbar/Actionbar';
import EditInfoModal from './components/EditInfoModal';
import EditInfoModal from './components/Modal/EditInfoModal';
import { pickCustomNovelCover } from '../../database/queries/NovelQueries';
import DownloadCustomChapterModal from './components/DownloadCustomChapterModal';
import DownloadCustomChapterModal from './components/Modal/DownloadCustomChapterModal';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import useBoolean from '@hooks/useBoolean';
import { useCategorySettings } from '@hooks/useSettings';
import { openChapter } from '../../utils/handleNavigateParams';
import NovelScreenLoading from './components/LoadingAnimation/NovelScreenLoading';
import { useTrackerReducer } from '@redux/hooks';
import EpubIconButton from './components/EpubIconButton';

const Novel = ({ route, navigation }) => {
const item = route.params;
Expand Down Expand Up @@ -535,7 +536,11 @@ const Novel = ({ route, navigation }) => {
}
/>
</Menu>

<EpubIconButton
theme={theme}
style={{ marginTop: StatusBar.currentHeight + 8 }}
novel={novel}
/>
<Menu
visible={extraMenu}
onDismiss={() => showExtraMenu(false)}
Expand Down
Loading

0 comments on commit c0b4610

Please sign in to comment.