mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-07 19:00:20 +00:00
Add GlobalProfileScreen and integrate global user management features
- Introduced GlobalProfileScreen for user profile management. - Implemented user data fetching and updating via global API. - Added session handling for global user state. - Updated navigation to include profile access from the top navbar. - Created global data caching mechanisms for improved performance.
This commit is contained in:
1 parent
2a83d0608f
commit
53fddc8220
15 files changed
+1129
-210
No files matched your search
@@ -25,12 +25,14 @@ const Screen = ({children, style, showBack = false}) => {
|
||||
GlobalMapScreen: 'Global Map',
|
||||
GlobalCacheViewScreen: 'Cache Details',
|
||||
GlobalLeaderboardScreen: 'Global Leaderboard',
|
||||
GlobalProfileScreen: 'Global Profile',
|
||||
};
|
||||
|
||||
// State ----------------------
|
||||
|
||||
const routeName = route.name;
|
||||
const isAuthScreen = routeName === 'LoginScreen' || routeName === 'RegisterScreen';
|
||||
const isGlobalRoute = routeName.startsWith('Global');
|
||||
const pageTitle = titleMap[routeName] || 'Treasure Hunt';
|
||||
|
||||
// Handlers -------------------
|
||||
@@ -50,6 +52,7 @@ const Screen = ({children, style, showBack = false}) => {
|
||||
<TopNavbar
|
||||
title={pageTitle}
|
||||
showBack={showBack}
|
||||
showProfile={isGlobalRoute}
|
||||
navigation={navigation}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user