botton navi...
This commit is contained in:
@@ -15,6 +15,9 @@ import Transaction from "../screens/profile/Transaction";
|
||||
import GroupDetails from "../screens/home/user-home/GroupDetails";
|
||||
import EditGroupScreen from "../screens/management/EditGroupScreen";
|
||||
import EditBankDetails from "../screens/profile/EditBankDetails";
|
||||
import ManageJoinedGroup from "../screens/management/ManageJoinedGroup";
|
||||
import InviteScreen from "../screens/InviteScreen";
|
||||
import ManagementTabNavigation from "../screens/management/ManagementTabNavigation";
|
||||
|
||||
export type RootStackParamList = {
|
||||
Splash: undefined;
|
||||
@@ -32,22 +35,39 @@ export type RootStackParamList = {
|
||||
YourContacts: undefined;
|
||||
Transaction: undefined;
|
||||
EditBankDetails: { currentBankName: string | null; currentAccountNumber: string | null; currentBranchCode: string | null };
|
||||
ManageJoinedGroup: { groupId: string | number };
|
||||
Invite: { groupId: string | number; code: string | number };
|
||||
ManagementTabs:any
|
||||
};
|
||||
|
||||
const Stack = createNativeStackNavigator<RootStackParamList>();
|
||||
|
||||
export default function AppNavigator() {
|
||||
const linking = {
|
||||
prefixes: [
|
||||
"myapp://", // A custom scheme for internal or test links.
|
||||
"https://192.168.1.19" // Your production domain for verified App Links.
|
||||
const linking = {
|
||||
prefixes: [
|
||||
"myapp://", // Your custom scheme
|
||||
"https://your-production-domain.com" // Your website for Universal Links/App Links
|
||||
],
|
||||
config: {
|
||||
screens: {
|
||||
GroupDetails: "invite/:inviteCode",
|
||||
config: {
|
||||
screens: {
|
||||
// Define the route for the InviteScreen
|
||||
Invite: {
|
||||
// This path matches the part after the "://" and before the "?"
|
||||
path: "invite",
|
||||
|
||||
// This block tells React Navigation how to handle the query parameters
|
||||
parse: {
|
||||
groupId: (groupId: string | number) => `${groupId}`,
|
||||
code: (code: string | number) => `${code}`,
|
||||
},
|
||||
},
|
||||
|
||||
// Other screens in your navigator can be defined here
|
||||
// e.g., GroupDetails: "group/:id"
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<NavigationContainer linking={linking}>
|
||||
@@ -66,6 +86,9 @@ export default function AppNavigator() {
|
||||
<Stack.Screen name="GroupDetails" component={GroupDetails} options={{ headerShown: false }} />
|
||||
<Stack.Screen name="EditGroup" component={EditGroupScreen} options={{ headerShown: false }} />
|
||||
<Stack.Screen name="EditBankDetails" component={EditBankDetails} options={{ headerShown: false }} />
|
||||
<Stack.Screen name="ManageJoinedGroup" component={ManageJoinedGroup} options={{ headerShown: false }} />
|
||||
<Stack.Screen name="Invite" component={InviteScreen} options={{ headerShown: false }} />
|
||||
<Stack.Screen name="ManagementTabs" component={ManagementTabNavigation} options={{ headerShown: false }} />
|
||||
</Stack.Navigator>
|
||||
</NavigationContainer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user