mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix theme changing issue
This commit is contained in:
@ -127,7 +127,7 @@ const ScreenImagesViewer = ({
|
||||
|
||||
return (
|
||||
<SafeAreaProvider>
|
||||
<StatusBar backgroundColor='rgb(0,0,0)' />
|
||||
<StatusBar hidden />
|
||||
<ImageViewer
|
||||
images={imageUrls}
|
||||
imageIndex={initialIndex}
|
||||
|
@ -31,7 +31,7 @@ const Tab = createBottomTabNavigator<ScreenTabsStackParamList>()
|
||||
|
||||
const ScreenTabs = React.memo(
|
||||
({ navigation }: RootStackScreenProps<'Screen-Tabs'>) => {
|
||||
const { colors } = useTheme()
|
||||
const { colors, theme } = useTheme()
|
||||
|
||||
const instanceActive = useSelector(getInstanceActive)
|
||||
const instanceAccount = useSelector(
|
||||
@ -87,7 +87,7 @@ const ScreenTabs = React.memo(
|
||||
}
|
||||
}
|
||||
}),
|
||||
[instanceAccount?.avatarStatic, instanceActive]
|
||||
[instanceAccount?.avatarStatic, instanceActive, theme]
|
||||
)
|
||||
|
||||
const composeListeners = useMemo(
|
||||
|
@ -23,7 +23,7 @@ const Stack = createNativeStackNavigator<TabPublicStackParamList>()
|
||||
const TabPublic = React.memo(
|
||||
({ navigation }: ScreenTabsScreenProps<'Tab-Public'>) => {
|
||||
const { t, i18n } = useTranslation('screenTabs')
|
||||
const { mode } = useTheme()
|
||||
const { mode, theme } = useTheme()
|
||||
|
||||
const [segment, setSegment] = useState(0)
|
||||
const pages: {
|
||||
@ -67,7 +67,7 @@ const TabPublic = React.memo(
|
||||
/>
|
||||
)
|
||||
}),
|
||||
[mode, segment, i18n.language]
|
||||
[theme, segment, i18n.language]
|
||||
)
|
||||
|
||||
const routes = pages.map(p => ({ key: p.key }))
|
||||
|
Reference in New Issue
Block a user