Skip to content

Commit 7a900a5

Browse files
feat: add FloatingDonationButton to BottomNavigation and DonationBanner to Settings (#57)
Co-authored-by: Prem Kumar Sharma <premsharma12com@gmail.com>
1 parent f4ebadc commit 7a900a5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/Navigation/BottomNavigation.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import React, {useEffect, useState} from 'react';
1+
import React from 'react';
22
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
3-
import {getVersion, getBuildNumber} from 'react-native-device-info';
3+
import {getVersion} from 'react-native-device-info';
44

55
import Feather from 'react-native-vector-icons/Feather';
66
import FontAwesome6 from 'react-native-vector-icons/FontAwesome6';
77
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
88

9-
import {Settings, Sources} from '../Screens';
9+
import {Settings} from '../Screens';
1010
import {NAVIGATION} from '../Constants';
1111
import {useSelector} from 'react-redux';
1212
import {ComicBookmarks, Home, OfflineComic} from '../Screens/Comic';
1313
import {View, StyleSheet} from 'react-native';
14-
import DownTime from '../Components/UIComp/DownTime';
1514
import {useFeatureFlag} from 'configcat-react';
1615
import LinkListScreen from '../InkNest-Externals/Screens/Webview/LinkListScreen';
16+
import FloatingDonationButton from '../InkNest-Externals/Donation/FloatingDonationButton';
1717

1818
const BottomTab = createBottomTabNavigator();
1919

@@ -81,6 +81,7 @@ export function BottomNavigation() {
8181
const {value: forIosValue} = useFeatureFlag('forIos', 'Default');
8282

8383
return (
84+
<>
8485
<BottomTab.Navigator
8586
screenOptions={{
8687
tabBarBackground: () => (
@@ -174,5 +175,7 @@ export function BottomNavigation() {
174175
/>
175176
)}
176177
</BottomTab.Navigator>
178+
<FloatingDonationButton />
179+
</>
177180
);
178181
}

src/Screens/Settings/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import {useDispatch, useSelector} from 'react-redux';
3333
import {AnimeHostName} from '../../Utils/APIs';
3434
import {SwtichBaseUrl, SwtichToAnime, setScrollPreference} from '../../Redux/Reducers';
3535
import {showRewardedAd} from '../../InkNest-Externals/Redux/Actions/Download';
36+
import DonationBanner from '../../InkNest-Externals/Donation/DonationBanner';
3637

3738
export function Settings({navigation}) {
3839
let Tag = View;
@@ -79,6 +80,7 @@ export function Settings({navigation}) {
7980
return (
8081
<SafeAreaView style={{flex: 1, backgroundColor: '#14142A'}} edges={['top']}>
8182
<Header title="Settings" />
83+
<DonationBanner />
8284

8385
<ScrollView showsVerticalScrollIndicator={false}>
8486
<TouchableOpacity

0 commit comments

Comments
 (0)