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
6ce2a3d6
Commit
6ce2a3d6
authored
May 23, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a sample page for payment result
parent
2a765568
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
122 additions
and
5 deletions
+122
-5
PaymentResultScreen.tsx
src/screens/PaymentResultScreen.tsx
+122
-5
No files found.
src/screens/PaymentResultScreen.tsx
View file @
6ce2a3d6
import
{
Text
,
View
}
from
"react-native"
;
import
type
{
PaymentStackScreenComponentProps
}
from
"@/navigations/Types"
;
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
Button
from
"@components/Button"
;
import
GoBackIconButton
from
"@components/GoBackIconButton"
;
import
BackgroundDefault
from
"@components/backgrounds/BackgroundDefault"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
{
LOG
}
from
"@logger"
;
// import { Text } from "react-native";
import
{
SafeAreaView
,
useSafeAreaInsets
}
from
"react-native-safe-area-context"
;
const
PaymentResultScreen
=
()
=>
{
const
log
=
LOG
.
extend
(
"PaymentResultScreen"
);
const
PaymentResultScreen
:
PaymentStackScreenComponentProps
<
"paymentResultScreen"
>
=
({
route
,
navigation
,
})
=>
{
const
insets
=
useSafeAreaInsets
();
log
.
debug
(
"insets"
,
insets
);
return
(
return
(
<
View
>
<
BackgroundDefault
>
<
Text
>
PaymentResultScreen
</
Text
>
<
SafeAreaView
edges=
{
[
"top"
,
"left"
,
"right"
]
}
>
</
View
>
<
Box
style=
{
{
height
:
"100%"
,
width
:
"100%"
,
// marginTop: insets.top,
}
}
>
<
Box
px=
{
"l"
}
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
alignItems=
{
"center"
}
mb=
{
"m"
}
>
<
BeasyLogoIcon
/>
<
GoBackIconButton
onPress=
{
()
=>
navigation
.
goBack
()
}
/>
</
Box
>
<
Box
flex=
{
1
}
backgroundColor=
{
"white"
}
borderRadius=
{
20
}
p=
{
"l"
}
flexDirection=
{
"column"
}
gap=
{
"l"
}
>
<
Text
variant=
{
"secondary"
}
fontWeight=
{
"bold"
}
textAlign=
{
"center"
}
>
Transactions effectué avec succès !
</
Text
>
<
Button
width=
{
200
}
alignSelf=
{
"center"
}
variant=
{
"full"
}
textVariants=
{
"white"
}
label=
{
"Imprimer le réçu"
}
onPress=
{
()
=>
{}
}
/>
<
Box
backgroundColor=
{
"lightGray"
}
flex=
{
1
}
borderRadius=
{
20
}
p=
{
"l"
}
>
<
Box
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
borderBottomColor=
{
"gray"
}
borderBottomWidth=
{
1
}
py=
{
"m"
}
>
<
Text
fontWeight=
{
"bold"
}
>
Caisse
</
Text
>
<
Text
variant=
{
"black"
}
>
00147C
</
Text
>
</
Box
>
<
Box
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
borderBottomColor=
{
"gray"
}
borderBottomWidth=
{
1
}
py=
{
"m"
}
>
<
Text
fontWeight=
{
"bold"
}
>
Reference
</
Text
>
<
Text
variant=
{
"black"
}
>
CP...
</
Text
>
</
Box
>
<
Box
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
borderBottomColor=
{
"gray"
}
borderBottomWidth=
{
1
}
py=
{
"m"
}
>
<
Text
fontWeight=
{
"bold"
}
>
Mode de paiement
</
Text
>
<
Text
variant=
{
"black"
}
>
Orange
</
Text
>
</
Box
>
<
Box
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
borderBottomColor=
{
"gray"
}
borderBottomWidth=
{
1
}
py=
{
"m"
}
>
<
Text
fontWeight=
{
"bold"
}
>
Infos client
</
Text
>
<
Text
variant=
{
"black"
}
>
Dogeless Miso
</
Text
>
</
Box
>
<
Box
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
borderBottomColor=
{
"gray"
}
borderBottomWidth=
{
1
}
py=
{
"m"
}
>
<
Text
fontWeight=
{
"bold"
}
>
Montant
</
Text
>
<
Text
variant=
{
"black"
}
>
10
</
Text
>
</
Box
>
<
Box
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
borderBottomColor=
{
"gray"
}
borderBottomWidth=
{
1
}
py=
{
"m"
}
>
<
Text
fontWeight=
{
"bold"
}
>
N° Client
</
Text
>
<
Text
variant=
{
"black"
}
>
Dogeless Misso
</
Text
>
</
Box
>
</
Box
>
</
Box
>
</
Box
>
</
SafeAreaView
>
</
BackgroundDefault
>
);
);
};
};
...
...
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