Skip to content

Commit

Permalink
Bottom Navbar icons fixed in order for UG view
Browse files Browse the repository at this point in the history
  • Loading branch information
tharindug99 committed Mar 1, 2024
1 parent 2640689 commit 1f7c18d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions Navigation/UndergraduateView/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,25 @@ const Tabs = () => {
},
}}
>
<Tab.Screen name="Home" component={Home} options = {{
<Tab.Screen name="Register" component={RegisterScreen} options = {{
tabBarIcon: ({focused}) => (
<View style={{alignItems: 'center', justifyContent: 'center', top: 10}}>
<Image
source={HomeIcon}
source={SettingsIcon}
resizeMode="contain"
style={{
width: 25,
height: 25,
tintColor: focused ? '#019F99' : '#748c94'
}}
/>
<Text style={{color: focused ? '#019F99' : '#748c94', fontSize: 12}}>
Home
<Text style={{color: focused ? '#019F99' : '#748c94', fontSize: 12,textAlign:'center'}}>
Settings
</Text>
</View>
)
}} />
}}
/>
<Tab.Screen name="Login" component={LoginScreen} options = {{
tabBarIcon: ({focused}) => (
<View style={{alignItems: 'center', justifyContent: 'center', top: 10}}>
Expand All @@ -71,26 +72,26 @@ const Tabs = () => {
</View>
)
}}
/>
<Tab.Screen name="Register" component={RegisterScreen} options = {{
/>
<Tab.Screen name="Home" component={Home} options = {{
tabBarIcon: ({focused}) => (
<View style={{alignItems: 'center', justifyContent: 'center', top: 10}}>
<Image
source={SettingsIcon}
source={HomeIcon}
resizeMode="contain"
style={{
width: 25,
height: 25,
tintColor: focused ? '#019F99' : '#748c94'
}}
/>
<Text style={{color: focused ? '#019F99' : '#748c94', fontSize: 12,textAlign:'center'}}>
Settings
<Text style={{color: focused ? '#019F99' : '#748c94', fontSize: 12}}>
Home
</Text>
</View>
)
}}
/>
/>
<Tab.Screen name="Options" component={OptionsSelection} options = {{
tabBarIcon: ({focused}) => (
<View style={{alignItems: 'center', justifyContent: 'center', top: 10}}>
Expand All @@ -109,7 +110,7 @@ const Tabs = () => {
</View>
)
}}
/>
/>
<Tab.Screen name="Job" component={JobSelection} options = {{
tabBarIcon: ({focused}) => (
<View style={{alignItems: 'center', justifyContent: 'center', top: 10}}>
Expand All @@ -128,7 +129,7 @@ const Tabs = () => {
</View>
)
}}
/>
/>
</Tab.Navigator>
);
}
Expand Down

0 comments on commit 1f7c18d

Please sign in to comment.