From 89607d90aa3a9e29d50fde8c132187fc3be12e07 Mon Sep 17 00:00:00 2001 From: Hailey <153161762+haileyok@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:13:29 -0800 Subject: set proper content style to fix background color (#2575) * set the proper content style * lint --- src/Navigation.tsx | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'src') diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 08cdd1d89..3689cfc90 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -1,5 +1,4 @@ import * as React from 'react' -import {StyleSheet} from 'react-native' import { NavigationContainer, createNavigationContainerRef, @@ -25,7 +24,6 @@ import { import {BottomBar} from './view/shell/bottom-bar/BottomBar' import {buildStateObject} from 'lib/routes/helpers' import {State, RouteParams} from 'lib/routes/types' -import {colors} from 'lib/styles' import {isAndroid, isNative} from 'platform/detection' import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' import {router} from './routes' @@ -299,7 +297,7 @@ function TabsNavigator() { } function HomeTabNavigator() { - const contentStyle = useColorSchemeStyle(styles.bgLight, styles.bgDark) + const pal = usePalette('default') return ( SearchScreen} /> {commonScreens(SearchTab as typeof HomeTab)} @@ -340,7 +338,7 @@ function SearchTabNavigator() { } function FeedsTabNavigator() { - const contentStyle = useColorSchemeStyle(styles.bgLight, styles.bgDark) + const pal = usePalette('default') return ( { fullScreenGestureEnabled: true, headerShown: false, animationDuration: 250, - contentStyle: [pal.view], + contentStyle: pal.view, }}>