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
e9206a1d
Commit
e9206a1d
authored
May 08, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sending the params paymentType when navigating to the Amount screen and logging it
parent
e79dedad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
HomePageWithPaymentOptions.tsx
src/screens/HomePageWithPaymentOptions.tsx
+6
-1
PaymentAmountInputScreen.tsx
src/screens/PaymentAmountInputScreen.tsx
+5
-0
No files found.
src/screens/HomePageWithPaymentOptions.tsx
View file @
e9206a1d
...
...
@@ -72,7 +72,12 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
<
PaymentOptionContainer
key=
{
paymentType
.
id
}
>
<
PaymentOption
onPress=
{
()
=>
navigation
.
navigate
(
"paymentAmountInputScreen"
)
navigation
.
navigate
(
"paymentAmountInputScreen"
,
{
paymentType
:
paymentType
.
code
,
},
)
}
paymentMethod=
{
paymentType
.
code
}
/>
...
...
src/screens/PaymentAmountInputScreen.tsx
View file @
e9206a1d
...
...
@@ -9,8 +9,13 @@ import Box from "@components/bases/Box";
import
{
SafeAreaView
}
from
"react-native-safe-area-context"
;
const
PaymentAmountInputScreen
:
PaymentStackScreenComponentProps
<
"paymentAmountInputScreen"
>
=
({
route
,
navigation
,
})
=>
{
const
{
paymentType
}
=
route
.
params
;
console
.
log
(
"Payment type :: {}"
,
paymentType
);
return
(
<
BackgroundGreenWhiteContentArea
>
<
SafeAreaView
>
...
...
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