Skip to content

Instantly share code, notes, and snippets.

@artyorsh
Last active October 22, 2019 14:33
Show Gist options
  • Save artyorsh/7c092d00e2348f5aad0ed82b75776583 to your computer and use it in GitHub Desktop.
Save artyorsh/7c092d00e2348f5aad0ed82b75776583 to your computer and use it in GitHub Desktop.
Auth Navigator (Binding React Navigation 5 to Eva Design System)
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { SignInScreen, SignUpScreen, ResetPasswordScreen } from '@app-scenes/auth';
import { AppRoute } from './app-routes';
const Stack = createStackNavigator();
export const AuthNavigator = (): React.ReactElement => (
<Stack.Navigator headerMode='none'>
<Stack.Screen name={AppRoute.SIGN_IN} component={SignInScreen}/>
<Stack.Screen name={AppRoute.SIGN_UP} component={SignUpScreen}/>
<Stack.Screen name={AppRoute.RESET_PASSWORD} component={ResetPasswordScreen}/>
</Stack.Navigator>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment