Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
8ac868d2
Commit
8ac868d2
authored
Apr 26, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
payment workflow stack navigation
parent
6ec0f031
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
PaymentStackNavigation.tsx
src/navigations/PaymentStackNavigation.tsx
+28
-0
Types.ts
src/navigations/Types.ts
+17
-0
No files found.
src/navigations/PaymentStackNavigation.tsx
0 → 100644
View file @
8ac868d2
import
{
createNativeStackNavigator
}
from
"@react-navigation/native-stack"
;
import
HomePageWithPaymentOptions
from
"@screens/HomePageWithPaymentOptions"
;
import
NumberAndOtpForPaymentScreen
from
"@screens/NumberAndOtpForPaymentScreen"
;
import
PaymentAmountInputScreen
from
"@screens/PaymentAmountInputScreen"
;
import
type
{
PaymentStackParamList
}
from
"./Types"
;
const
Stack
=
createNativeStackNavigator
<
PaymentStackParamList
>
();
const
PaymentStackNavigator
=
()
=>
{
return
(
<
Stack
.
Navigator
initialRouteName=
"homePageWithPaymentOptions"
screenOptions=
{
{
headerShown
:
false
}
}
>
<
Stack
.
Screen
name=
"homePageWithPaymentOptions"
component=
{
HomePageWithPaymentOptions
}
/>
<
Stack
.
Screen
name=
"numberAndOtpForPaymentScreen"
component=
{
NumberAndOtpForPaymentScreen
}
/>
<
Stack
.
Screen
name=
"paymentAmountInputScreen"
component=
{
PaymentAmountInputScreen
}
/>
</
Stack
.
Navigator
>
);
};
export
default
PaymentStackNavigator
;
src/navigations/Types.ts
0 → 100644
View file @
8ac868d2
import
type
{
NativeStackScreenProps
}
from
"@react-navigation/native-stack"
;
export
type
PaymentStackParamList
=
{
homePageWithPaymentOptions
:
undefined
;
numberAndOtpForPaymentScreen
:
undefined
;
paymentAmountInputScreen
:
undefined
;
};
export
type
PaymentStackScreenProps
<
T
extends
keyof
PaymentStackParamList
>
=
NativeStackScreenProps
<
PaymentStackParamList
,
T
,
"PaymentStackParamList"
>
;
export
type
PaymentStackScreenComponentProps
<
T
extends
keyof
PaymentStackParamList
>
=
React
.
FC
<
PaymentStackScreenProps
<
T
>
>
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment