feat: add auth route typing
This commit is contained in:
parent
4f12c7da5d
commit
1603a452af
1 changed files with 9 additions and 2 deletions
|
|
@ -1,9 +1,16 @@
|
||||||
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
import { createNativeStackNavigator, NativeStackNavigationProp } from '@react-navigation/native-stack';
|
||||||
|
|
||||||
import { SignIn } from '@screens/SignIn';
|
import { SignIn } from '@screens/SignIn';
|
||||||
import { SignUp } from '@screens/SignUp';
|
import { SignUp } from '@screens/SignUp';
|
||||||
|
|
||||||
const { Navigator, Screen } = createNativeStackNavigator();
|
type AuthRoutes = {
|
||||||
|
SignIn: undefined,
|
||||||
|
SignUp: undefined,
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AuthNavigatorRoutesProps = NativeStackNavigationProp<AuthRoutes>;
|
||||||
|
|
||||||
|
const { Navigator, Screen } = createNativeStackNavigator<AuthRoutes>();
|
||||||
|
|
||||||
export function AuthRoutes() {
|
export function AuthRoutes() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue