diff --git a/package.json b/package.json index d61bd23..9260626 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 5da515b..3a344e1 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -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'; @@ -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'; @@ -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 () => { @@ -67,7 +62,6 @@ const Routes = () => { setRootViewBackgroundColor( options.isDark ? Dark.colors.background : Light.colors.background, ); - NavigationBarColor(statusBarColor.toHex(), !options.isDark, true); }, [options.isDark]); return ( diff --git a/yarn.lock b/yarn.lock index ae2b7b6..e68b108 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"