Commit 72ac6b1c authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

implement router page

parent fe514b49
import React from "react";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Home from "../screen/Home";
import Register from "../screen/auth/Register";
import Login from "../screen/auth/Login";
import Splash from "../screen/splash/Splash";
const Stack = createNativeStackNavigator();
const AppRouter = () => {
return(
<NavigationContainer>
<Stack.Navigator initialRouteName="Splash">
<Stack.Screen options={{headerShown:false}} name="Home" component={Home} />
<Stack.Screen options={{headerShown:false}} name="Splash" component={Splash} />
<Stack.Screen options={{headerShown:false}} name="Register" component={Register} />
<Stack.Screen options={{headerShown:false}} name="Login" component={Login} />
</Stack.Navigator>
</NavigationContainer>
)
}
export default AppRouter;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment