From bc8184b1a402af0c3e54edb79b38ed8e09a6798d Mon Sep 17 00:00:00 2001 From: Leon Jiang <35908040+leonyjiang@users.noreply.github.com> Date: Thu, 25 Jun 2020 16:28:00 -0700 Subject: cleanup file structure, add react-navigation & basic routes --- src/routes/Routes.tsx | 24 ++++++++++++++++++++++++ src/routes/index.ts | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 src/routes/Routes.tsx create mode 100644 src/routes/index.ts (limited to 'src/routes') diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx new file mode 100644 index 00000000..9c2efada --- /dev/null +++ b/src/routes/Routes.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import {createStackNavigator} from '@react-navigation/stack'; + +import {Login, Registration} from '../screens'; + +export type RootStackParams = { + Login: undefined; + Registration: undefined; +}; + +const RootStack = createStackNavigator(); + +interface RoutesProps {} + +const Routes: React.FC = ({}) => { + return ( + + + + + ); +}; + +export default Routes; diff --git a/src/routes/index.ts b/src/routes/index.ts new file mode 100644 index 00000000..cfa05fcb --- /dev/null +++ b/src/routes/index.ts @@ -0,0 +1,2 @@ +export {default} from './Routes'; +export * from './Routes'; -- cgit v1.2.3-70-g09d2