-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d5ff78
commit 403a5fd
Showing
14 changed files
with
183 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
|
||
import Carts from '../screens/Carts'; | ||
import { CartStackParamList } from '../types/navigation'; | ||
|
||
const CartsNavigator = createNativeStackNavigator<CartStackParamList>(); | ||
|
||
const CartsStack = () => { | ||
return ( | ||
<CartsNavigator.Navigator> | ||
<CartsNavigator.Screen | ||
name='Carts.Main' | ||
component={Carts} | ||
options={{ headerTitle: 'Carts' }} | ||
/> | ||
</CartsNavigator.Navigator> | ||
); | ||
}; | ||
|
||
export default CartsStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
|
||
import StoreStack from './StoreStack'; | ||
import Explore from '../screens/Explore'; | ||
import { ExploreStackParamList } from '../types/navigation'; | ||
|
||
const ExploreNavigator = createNativeStackNavigator<ExploreStackParamList>(); | ||
|
||
const ExploreStack = () => { | ||
return ( | ||
<ExploreNavigator.Navigator> | ||
<ExploreNavigator.Screen | ||
name='Explore.Main' | ||
component={Explore} | ||
options={{ headerShown: false }} | ||
/> | ||
<ExploreNavigator.Screen | ||
name='Store' | ||
component={StoreStack} | ||
options={{ headerShown: false }} | ||
/> | ||
</ExploreNavigator.Navigator> | ||
); | ||
}; | ||
|
||
export default ExploreStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
|
||
import StoreStack from './StoreStack'; | ||
import Home from '../screens/Home'; | ||
import Notifications from '../screens/Notifications'; | ||
import Order from '../screens/Order'; | ||
import { HomeStackParamList } from '../types/navigation'; | ||
|
||
const HomeNavigator = createNativeStackNavigator<HomeStackParamList>(); | ||
|
||
const HomeStack = () => { | ||
return ( | ||
<HomeNavigator.Navigator> | ||
<HomeNavigator.Screen name='Home' component={Home} /> | ||
<HomeNavigator.Screen name='Order' component={Order} /> | ||
<HomeNavigator.Screen name='Notifications' component={Notifications} /> | ||
<HomeNavigator.Screen | ||
name='Store' | ||
component={StoreStack} | ||
options={{ headerShown: false }} | ||
/> | ||
</HomeNavigator.Navigator> | ||
); | ||
}; | ||
|
||
export default HomeStack; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { useTheme } from '@habiti/components'; | ||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | ||
import React from 'react'; | ||
|
||
import ExploreStack from './ExploreStack'; | ||
import HomeStack from './HomeStack'; | ||
import { MainTabParamList } from '../types/navigation'; | ||
import { tabScreenOptions } from '../utils/navigation'; | ||
|
||
const MainTab = createBottomTabNavigator<MainTabParamList>(); | ||
|
||
const MainTabNavigator = () => { | ||
const { name } = useTheme(); | ||
|
||
return ( | ||
<MainTab.Navigator screenOptions={tabScreenOptions(name)}> | ||
<MainTab.Screen name='For You' component={HomeStack} /> | ||
<MainTab.Screen name='Explore' component={ExploreStack} /> | ||
<MainTab.Screen name='Carts' component={CartsStack} /> | ||
<MainTab.Screen name='Profile' component={ProfileStack} /> | ||
</MainTab.Navigator> | ||
); | ||
}; | ||
|
||
export default MainTabNavigator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
|
||
import AccountSettings from '../screens/AccountSettings'; | ||
import DeliveryAddress from '../screens/DeliveryAddress'; | ||
import NotificationSettings from '../screens/NotificationSettings'; | ||
import PaymentMethods from '../screens/PaymentMethods'; | ||
import Profile from '../screens/Profile'; | ||
import SettingsTheme from '../screens/SettingsTheme'; | ||
import { ProfileStackParamList } from '../types/navigation'; | ||
const ProfileNavigator = createNativeStackNavigator<ProfileStackParamList>(); | ||
|
||
const ProfileStack = () => { | ||
return ( | ||
<ProfileNavigator.Navigator> | ||
<ProfileNavigator.Screen | ||
name='Profile.Main' | ||
component={Profile} | ||
options={{ headerTitle: 'Profile' }} | ||
/> | ||
<ProfileNavigator.Screen name='Edit Profile' component={EditProfile} /> | ||
<ProfileNavigator.Screen | ||
name='Payment Methods' | ||
component={PaymentMethods} | ||
/> | ||
<ProfileNavigator.Screen | ||
name='DeliveryAddress' | ||
component={DeliveryAddress} | ||
options={{ headerTitle: 'Delivery Address' }} | ||
/> | ||
<ProfileNavigator.Screen | ||
name='NotificationSettings' | ||
component={NotificationSettings} | ||
options={{ headerTitle: 'Notifications' }} | ||
/> | ||
<ProfileNavigator.Screen name='Appearance' component={SettingsTheme} /> | ||
<ProfileNavigator.Screen | ||
name='Profile.AccountSettings' | ||
component={AccountSettings} | ||
options={{ headerTitle: 'Account Settings' }} | ||
/> | ||
</ProfileNavigator.Navigator> | ||
); | ||
}; | ||
|
||
export default ProfileStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
|
||
import SearchStore from '../screens/SearchStore'; | ||
import Store from '../screens/Store'; | ||
import { StoreStackParamList } from '../types/navigation'; | ||
|
||
const StoreNavigator = createNativeStackNavigator<StoreStackParamList>(); | ||
|
||
const StoreStack = () => { | ||
return ( | ||
<StoreNavigator.Navigator> | ||
<StoreNavigator.Screen | ||
name='Store.Main' | ||
component={Store} | ||
options={{ headerTitle: '' }} | ||
/> | ||
<StoreNavigator.Screen | ||
name='Store.Search' | ||
component={SearchStore} | ||
options={{ headerShown: false }} | ||
/> | ||
</StoreNavigator.Navigator> | ||
); | ||
}; | ||
|
||
export default StoreStack; |
Oops, something went wrong.