rersistesiion integraytion api impolement

This commit is contained in:
Jaanu423
2025-09-11 16:27:53 +05:30
11 changed files with 4067 additions and 32 deletions
+46
View File
@@ -0,0 +1,46 @@
import * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { View, Text, Button } from "react-native";
import LoginScreen from "../screens/LoginScreen";
import OtpVerificationScreen from "../screens/OtpVarificationScreen";
import BottomTabs from "./BottomTabs";
import SplashScreen from "../screens/SplashScreen";
import Profile from "../screens/profile/Profile";
const Stack = createNativeStackNavigator();
export type RootStackParamList = {
Login: undefined;
OtpVarify: { mobile: string };
Home: undefined
HomeTabs: undefined
splash: undefined
};
function HomeScreen() {
return (
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<Text>Home Screen</Text>
<Button
title="Go to Profile"
/>
</View>
);
}
export default function AppNavigator() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Splash">
<Stack.Screen name="Splash" component={SplashScreen} options={{ headerShown: false }} />
<Stack.Screen name="Home" component={BottomTabs} options={{ headerShown: false }} />
<Stack.Screen name="Login" component={LoginScreen} options={{ headerShown: false }} />
<Stack.Screen name="OtpVarify" component={OtpVerificationScreen} options={{ headerShown: false }} />
<Stack.Screen name="Profile" component={Profile} />
</Stack.Navigator>
</NavigationContainer>
);
}