From a570c500524d0c37cb9e3e0f68e518aa76f763a0 Mon Sep 17 00:00:00 2001 From: Akshay Thakur Date: Tue, 3 Oct 2023 15:04:20 -0700 Subject: [PATCH] cleanup files after nav refactor --- src/{screens => components}/ToastScreen.tsx | 0 src/navigation/TabNavigator.tsx | 57 ------------------- .../stacks/MyContentStackNavigator.tsx | 20 ------- src/screens/MyContent.tsx | 24 -------- src/screens/SearchScreen.tsx | 10 ---- src/types/navigation.tsx | 10 ---- src/types/types.tsx | 0 7 files changed, 121 deletions(-) rename src/{screens => components}/ToastScreen.tsx (100%) delete mode 100644 src/navigation/TabNavigator.tsx delete mode 100644 src/navigation/stacks/MyContentStackNavigator.tsx delete mode 100644 src/screens/MyContent.tsx delete mode 100644 src/screens/SearchScreen.tsx delete mode 100644 src/types/navigation.tsx delete mode 100644 src/types/types.tsx diff --git a/src/screens/ToastScreen.tsx b/src/components/ToastScreen.tsx similarity index 100% rename from src/screens/ToastScreen.tsx rename to src/components/ToastScreen.tsx diff --git a/src/navigation/TabNavigator.tsx b/src/navigation/TabNavigator.tsx deleted file mode 100644 index aa225797..00000000 --- a/src/navigation/TabNavigator.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import { Ionicons } from '@expo/vector-icons'; -import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs'; -import { ReactElement } from 'react'; -import HomeScreen from '../screens/HomeScreen'; -import SearchScreen from '../screens/SearchScreen'; -import { RootStackParamsList } from '../types/navigation'; -import MyContentStackNavigator from './stacks/MyContentStackNavigator'; - -function HomeIcon({ color }: { color: string }) { - return ; -} - -function SearchIcon({ color }: { color: string }) { - return ; -} - -function MyContentIcon({ color }: { color: string }) { - return ; -} - -const Tab = createMaterialBottomTabNavigator(); - -function TabNavigator(): ReactElement { - return ( - - - - - - ); -} - -export default TabNavigator; diff --git a/src/navigation/stacks/MyContentStackNavigator.tsx b/src/navigation/stacks/MyContentStackNavigator.tsx deleted file mode 100644 index 808eb254..00000000 --- a/src/navigation/stacks/MyContentStackNavigator.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { createStackNavigator } from '@react-navigation/stack'; -import React from 'react'; -import MyContentScreen from '../../screens/MyContent'; -import StoryScreen from '../../screens/StoryScreen'; -import { MyContentStackParamList } from '../../types/navigation'; - -const MyContentStack = createStackNavigator(); - -export default function MyContentStackNavigator() { - return ( - - - - - ); -} diff --git a/src/screens/MyContent.tsx b/src/screens/MyContent.tsx deleted file mode 100644 index fe9d668e..00000000 --- a/src/screens/MyContent.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { NativeStackScreenProps } from '@react-navigation/native-stack'; -import React from 'react'; -import { Button, Text, View } from 'react-native'; -import { MyContentStackParamList } from '../types/navigation'; - -type MyContentScreenProps = NativeStackScreenProps< - MyContentStackParamList, - 'MyContent' ->; - -export default function MyContentScreen(props: MyContentScreenProps) { - const { navigation } = props; - return ( - - My Content - -