Skip to content

Commit

Permalink
Remove react-native-navigation-bar-color
Browse files Browse the repository at this point in the history
  • Loading branch information
pnthach95 committed Nov 29, 2022
1 parent 32fe95a commit e7f7710
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"react-native-image-viewing": "^0.2.2",
"react-native-localize": "^2.2.4",
"react-native-mmkv-storage": "^0.8.0",
"react-native-navigation-bar-color": "MoOx/react-native-navigation-bar-color#patch-1",
"react-native-offline": "^6.0.0",
"react-native-paper": "^4.12.5",
"react-native-reanimated": "^2.13.0",
Expand Down
6 changes: 0 additions & 6 deletions src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {BottomSheetModalProvider} from '@gorhom/bottom-sheet';
import {setRootViewBackgroundColor} from '@pnthach95/react-native-root-view-background';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {colord} from 'colord';
import BlurStatusBar from 'components/blurstatusbar';
import Kirin from 'components/kirin';
import dayjs from 'dayjs';
Expand All @@ -14,7 +13,6 @@ import React, {useEffect} from 'react';
import {useTranslation} from 'react-i18next';
import RNBootSplash from 'react-native-bootsplash';
import ErrorBoundary from 'react-native-error-boundary';
import NavigationBarColor from 'react-native-navigation-bar-color';
import {NetworkProvider} from 'react-native-offline';
import {Provider as PaperProvider} from 'react-native-paper';
import {SafeAreaProvider} from 'react-native-safe-area-context';
Expand Down Expand Up @@ -45,9 +43,6 @@ const Routes = () => {
const options = useStore(s => s.options);
const language = useStore(s => s.language);
const theme = options.isDark ? Dark : Light;
const statusBarColor = colord(
options.isDark ? Dark.colors.card : Light.colors.card,
);

useEffect(() => {
const getData = async () => {
Expand All @@ -67,7 +62,6 @@ const Routes = () => {
setRootViewBackgroundColor(
options.isDark ? Dark.colors.background : Light.colors.background,
);
NavigationBarColor(statusBarColor.toHex(), !options.isDark, true);
}, [options.isDark]);

return (
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5958,10 +5958,6 @@ react-native-mmkv-storage@^0.8.0:
resolved "https://registry.yarnpkg.com/react-native-mmkv-storage/-/react-native-mmkv-storage-0.8.0.tgz#2ece5f441a6a818224a85315c68e105e0d6446b5"
integrity sha512-L782Le5IuDYlDLGXF/qimbnzvkbYsSmV5PiDleo1DSS8Kr8Q31UK8YWtUICrDGQ9Fm7Xx4PxP9ffe2XzGeWaHQ==

react-native-navigation-bar-color@MoOx/react-native-navigation-bar-color#patch-1:
version "2.0.1"
resolved "https://codeload.github.com/MoOx/react-native-navigation-bar-color/tar.gz/6cca5e47f79112dbc410de3eb8b154d992b64dd3"

react-native-offline@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/react-native-offline/-/react-native-offline-6.0.0.tgz#d28f747117903c232f58055bb55d21decbe612a9"
Expand Down

0 comments on commit e7f7710

Please sign in to comment.