-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79192d9
commit 4e44662
Showing
20 changed files
with
307 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as Navigator } from "./navigator"; | ||
export { default as Tab } from "./tabnavigator/Tab"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; | ||
import React from "react"; | ||
import { Home, Profile } from "@screens"; | ||
import { View, Image, TouchableOpacity } from "react-native"; | ||
import { Text } from "@components"; | ||
|
||
const Tab = createBottomTabNavigator(); | ||
|
||
const Tabs = () => { | ||
return ( | ||
<Tab.Navigator | ||
screenOptions={{ | ||
headerShown: false, | ||
tabBarShowLabel: false, | ||
tabBarStyle: { | ||
position: "absolute", | ||
bottom: 25, | ||
left: 20, | ||
right: 20, | ||
elevation: 0, | ||
borderRadius: 10, | ||
height: 80, | ||
backgroundColor: "#389FFE" | ||
} | ||
}} | ||
> | ||
<Tab.Screen | ||
name="Home" | ||
component={Home} | ||
options={{ | ||
tabBarIcon: ({ focused }) => ( | ||
<View style={{ alignItems: "center", justifyContent: "center" }}> | ||
<Image | ||
source={require("@assets/homeicon.png")} | ||
resizeMode="contain" | ||
style={{ | ||
height: 25, | ||
width: 25, | ||
marginBottom: 5, | ||
tintColor: focused ? "#1C32F3" : "#FFF" | ||
}} | ||
/> | ||
<Text | ||
weight="200" | ||
style={{ | ||
color: focused ? "#1C32F3" : "#FFF", | ||
fontFamily: "Chillax-Medium" | ||
}} | ||
> | ||
HOME | ||
</Text> | ||
</View> | ||
) | ||
}} | ||
/> | ||
<Tab.Screen | ||
name="Profile" | ||
component={Profile} | ||
options={{ | ||
tabBarIcon: ({ focused }) => ( | ||
<View style={{ alignItems: "center", justifyContent: "center" }}> | ||
<Image | ||
source={require("@assets/profileicon.png")} | ||
resizeMode="contain" | ||
style={{ | ||
height: 25, | ||
width: 25, | ||
marginBottom: 5, | ||
tintColor: focused ? "#1C32F3" : "#FFF" | ||
}} | ||
/> | ||
<Text | ||
weight="200" | ||
style={{ | ||
color: focused ? "#1C32F3" : "#FFF", | ||
fontFamily: "Chillax-Medium" | ||
}} | ||
> | ||
PROFILE | ||
</Text> | ||
</View> | ||
) | ||
}} | ||
/> | ||
</Tab.Navigator> | ||
); | ||
}; | ||
export default Tabs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from "react"; | ||
import { View, Image } from "react-native"; | ||
import { Background, Text } from "@components"; | ||
import { StyleSheet } from "react-native"; | ||
import { LanguageNavigationProps } from "@types"; | ||
|
||
export function Home({ navigation }: LanguageNavigationProps<"Home">) { | ||
return ( | ||
<Background> | ||
<View style={styles.view}> | ||
<Text style={styles.text} onPress={() => navigation.navigate("Profile")}> | ||
{" "} | ||
Complaints | ||
</Text> | ||
<Image source={require("@assets/home.png")} /> | ||
</View> | ||
</Background> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
view: { | ||
alignItems: "center", | ||
justifyContent: "center", | ||
height: "100%" | ||
}, | ||
text: { | ||
color: "#fff", | ||
|
||
marginBottom: 60 | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
import React from "react"; | ||
import { Background, Text } from "@components"; | ||
import { Image, View } from "react-native"; | ||
import { StyleSheet } from "react-native"; | ||
|
||
export function Profile() { | ||
return ( | ||
<Background> | ||
<View style={styles.view}> | ||
<Image style={styles.img} source={require("@assets/prachit.png")} /> | ||
<View> | ||
<Text | ||
weight="400" | ||
style={{ | ||
color: "#FFF", | ||
textAlign: "center", | ||
backgroundColor: "#1D0ECC", | ||
height: 50, | ||
width: 320, | ||
borderTopLeftRadius: 10, | ||
borderTopRightRadius: 10, | ||
paddingVertical: 9 | ||
}} | ||
> | ||
prachit bipin gharat | ||
</Text> | ||
<View | ||
style={{ | ||
display: "flex", | ||
flexDirection: "row", | ||
borderTopColor: "#FFF", | ||
borderTopWidth: 1 | ||
}} | ||
> | ||
<Text | ||
weight="400" | ||
style={{ | ||
color: "#FFF", | ||
textAlign: "center", | ||
backgroundColor: "#1D0ECC", | ||
height: 50, | ||
width: 160, | ||
borderBottomLeftRadius: 10, | ||
paddingVertical: 9 | ||
}} | ||
> | ||
citizen | ||
</Text> | ||
<Text | ||
weight="400" | ||
style={{ | ||
color: "#FFF", | ||
textAlign: "center", | ||
backgroundColor: "#1D0ECC", | ||
height: 50, | ||
width: 160, | ||
borderBottomRightRadius: 10, | ||
paddingVertical: 9 | ||
}} | ||
> | ||
<Image source={require("@assets/percent.png")} /> | ||
90% | ||
</Text> | ||
</View> | ||
</View> | ||
<View> | ||
<Text weight="400" style={styles.text}> | ||
Edit Profile | ||
</Text> | ||
<Text weight="400" style={styles.text}> | ||
Complaints | ||
</Text> | ||
<Text weight="400" style={styles.text}> | ||
Setting | ||
</Text> | ||
<Text weight="400" style={styles.text}> | ||
Help | ||
</Text> | ||
<Text weight="400" style={styles.text}> | ||
Logout | ||
</Text> | ||
</View> | ||
</View> | ||
</Background> | ||
); | ||
} | ||
const styles = StyleSheet.create({ | ||
view: { | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
height: "100%" | ||
}, | ||
img: { | ||
height: 170, | ||
width: 170, | ||
borderRadius: 95, | ||
marginBottom: 30 | ||
}, | ||
// protext: { | ||
// color: "#FFF", | ||
// textAlign: "center", | ||
// backgroundColor: "#1D0ECC", | ||
// height: 50, | ||
// width: 320, | ||
// borderTopLeftRadius: 10, | ||
// borderTopRightRadius: 10, | ||
|
||
// paddingVertical: 9 | ||
// }, | ||
text: { | ||
color: "#FFF", | ||
textAlign: "center", | ||
backgroundColor: "#1D0ECC", | ||
height: 50, | ||
width: 320, | ||
borderRadius: 10, | ||
marginVertical: 10, | ||
paddingVertical: 9 | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.