Browse Source

feat(route) : new route

master
farhantock 3 months ago
parent
commit
8d4a61147f
  1. 12
      src/navigation/AppRoutes.js
  2. 4
      src/navigation/BottomTabNavigator.js

12
src/navigation/AppRoutes.js

@ -55,6 +55,8 @@ import DialogFormPost from '../screens/activity/projectAset/post/dialogForm';
import ProjectScreen from '../screens/activity/projectAset/project/index'; import ProjectScreen from '../screens/activity/projectAset/project/index';
import DialogFormProject from '../screens/activity/projectAset/project/dialogForm'; import DialogFormProject from '../screens/activity/projectAset/project/dialogForm';
import ProfileScreen from '../screens/Profile'; import ProfileScreen from '../screens/Profile';
import ThemeScreen from '../components/theme'
import LanguageScreen from '../components/language'
const Stack = createNativeStackNavigator(); const Stack = createNativeStackNavigator();
@ -319,6 +321,16 @@ const AppRoutes = () => {
name="ProfileScreen" name="ProfileScreen"
component={ProfileScreen} component={ProfileScreen}
/> />
<Stack.Screen
options={{ headerShown: false }}
name="ThemeScreen"
component={ThemeScreen}
/>
<Stack.Screen
options={{ headerShown: false }}
name="LanguageScreen"
component={LanguageScreen}
/>
</> </>
) )
} }

4
src/navigation/BottomTabNavigator.js

@ -16,9 +16,9 @@ const Tab = createBottomTabNavigator();
export default function BottomTabNavigator() { export default function BottomTabNavigator() {
const { theme, useSystemTheme } = useSelector(state => state.themeReducer); const { theme, useSystemTheme } = useSelector(state => state.themeReducer);
const systemTheme = useColorScheme();
const tabBarColor = useSystemTheme ? (systemTheme === 'dark' ? colors.black : colors.pureWhite) : (theme === 'dark' ? colors.black : colors.pureWhite);
const tabBarColor = theme === 'dark' ? colors.black : colors.pureWhite;
const activeColor = colors.blue; const activeColor = colors.blue;
return ( return (

Loading…
Cancel
Save