mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-07 19:00:20 +00:00
Add GameSettings and Players screens; implement cache management features in MapScreen
This commit is contained in:
1 parent
b8efe987af
commit
8008a9b6fe
22 files changed
+926
-101
No files matched your search
@@ -5,7 +5,7 @@ import {useSafeAreaInsets} from "react-native-safe-area-context";
|
||||
import TopNavbar from "./TopNavbar";
|
||||
import BottomNavbar from "./BottomNavbar";
|
||||
|
||||
const Screen = ({ children, style }) => {
|
||||
const Screen = ({ children, style, showBack = false }) => {
|
||||
// Initialisation -------------
|
||||
|
||||
const navigation = useNavigation();
|
||||
@@ -24,13 +24,14 @@ const Screen = ({ children, style }) => {
|
||||
MapScreen: "Map",
|
||||
AdminHubScreen: "Admin Hub",
|
||||
ManageSubgroupsScreen: "Manage Subgroups",
|
||||
GameSettingsScreen: "Game Settings",
|
||||
PlayersScreen: "Players",
|
||||
};
|
||||
|
||||
// State ----------------------
|
||||
|
||||
const routeName = route.name;
|
||||
const isAuthScreen = routeName === "LoginScreen" || routeName === "RegisterScreen";
|
||||
const showBack = !isAuthScreen && navigation.canGoBack();
|
||||
const pageTitle = titleMap[routeName] || "Treasure Hunt";
|
||||
|
||||
// Handlers -------------------
|
||||
|
||||
Reference in new issue
Block a user