1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Some basic styling

This commit is contained in:
Zhiyuan Zheng
2020-11-23 00:07:32 +01:00
parent 6d6b808af2
commit fba1d0d531
40 changed files with 1381 additions and 270 deletions

View File

@ -14,12 +14,17 @@ import ScreenPublic from 'src/screens/Public'
import ScreenNotifications from 'src/screens/Notifications'
import ScreenMe from 'src/screens/Me'
import { themes } from 'src/utils/styles/themes'
import { useTheme } from 'src/utils/styles/ThemeManager'
enableScreens()
const Tab = createBottomTabNavigator()
export const Index: React.FC = () => {
const { mode, theme } = useTheme()
return (
<NavigationContainer>
<NavigationContainer theme={themes[mode]}>
<Tab.Navigator
screenOptions={({ route }) => ({
tabBarIcon: ({ focused, color, size }) => {
@ -48,8 +53,8 @@ export const Index: React.FC = () => {
}
})}
tabBarOptions={{
activeTintColor: 'black',
inactiveTintColor: 'gray',
activeTintColor: theme.primary,
inactiveTintColor: theme.secondary,
showLabel: false
}}
>