-
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.
Merge pull request #8 from Mehul2410/features/vallabh
Features/vallabh
- Loading branch information
Showing
34 changed files
with
924 additions
and
36 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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,48 @@ | ||
import React, { ReactElement } from "react"; | ||
import { NavigationContainer } from "@react-navigation/native"; | ||
import { createStackNavigator } from "@react-navigation/stack"; | ||
import { Getstarted, Language, Register } from "@screens"; | ||
import { | ||
Home, | ||
Getstarted, | ||
Language, | ||
Register, | ||
PoliceSignin, | ||
PoliceSignup, | ||
PoliceDetail, | ||
DetailFilled, | ||
CitizenSignin, | ||
CitizenSignup, | ||
Profile | ||
} from "@screens"; | ||
|
||
import { StackNavigatorParams } from "@types"; | ||
|
||
const Stack = createStackNavigator<StackNavigatorParams>(); | ||
|
||
export default function Navigator(): ReactElement { | ||
return ( | ||
<NavigationContainer> | ||
<Stack.Navigator | ||
initialRouteName="Register" | ||
screenOptions={{ | ||
headerMode: "screen", | ||
headerShown: false | ||
}} | ||
> | ||
<Stack.Screen name="Getstarted" component={Getstarted} /> | ||
<Stack.Screen name="Language" component={Language} /> | ||
<Stack.Screen name="Register" component={Register} /> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
<> | ||
<NavigationContainer> | ||
<Stack.Navigator | ||
initialRouteName="Home" | ||
screenOptions={{ | ||
headerMode: "screen", | ||
headerShown: false | ||
}} | ||
> | ||
<Stack.Screen name="Home" component={Home} /> | ||
<Stack.Screen name="Profile" component={Profile} /> | ||
<Stack.Screen name="Getstarted" component={Getstarted} /> | ||
<Stack.Screen name="Language" component={Language} /> | ||
<Stack.Screen name="Register" component={Register} /> | ||
<Stack.Screen name="PoliceSignin" component={PoliceSignin} /> | ||
<Stack.Screen name="PoliceSignup" component={PoliceSignup} /> | ||
<Stack.Screen name="CitizenSignin" component={CitizenSignin} /> | ||
<Stack.Screen name="CitizenSignup" component={CitizenSignup} /> | ||
<Stack.Screen name="PoliceDetail" component={PoliceDetail} /> | ||
<Stack.Screen name="DetailFilled" component={DetailFilled} /> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
</> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
export { Getstarted } from "./home/Getstarted"; | ||
export { Getstarted } from "./splashscreen/Getstarted"; | ||
export { Language } from "./language/Language"; | ||
export { default as Register } from "./register/Register"; | ||
export { PoliceSignin } from "./register/police/signin/PoliceSignin"; | ||
export { PoliceSignup } from "./register/police/signup/PoliceSignup"; | ||
export { CitizenSignin } from "./register/citizen/signin/CitizenSignin"; | ||
export { CitizenSignup } from "./register/citizen/signup/CitizenSignup"; | ||
export { PoliceDetail } from "./register/police/detail/PoliceDetail"; | ||
export { DetailFilled } from "./register/police/detailfilled/DetailFilled"; | ||
export { Home } from "./homescreen/Home"; | ||
export { Profile } from "./profile/Profile"; |
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
Oops, something went wrong.