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
168ea949
Commit
168ea949
authored
Sep 05, 2025
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remade the user not logged in screen
parent
b15b75e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
55 deletions
+28
-55
HomeUserNotLoggedIn.tsx
src/screens/HomeUserNotLoggedIn.tsx
+28
-55
No files found.
src/screens/HomeUserNotLoggedIn.tsx
View file @
168ea949
import
{
asp
as
g
}
from
"@asp/asp"
;
import
*
as
Button
from
"@components/ButtonNew"
;
import
{
Image
}
from
"expo-image"
;
import
{
Text
,
View
}
from
"react-native"
;
import
type
{
MainStackScreenComponentProps
}
from
"@/navigations/Types"
;
import
type
{
MainStackScreenComponentProps
}
from
"@/navigations/Types"
;
import
Button
from
"@components/Button"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
{
Image
,
StyleSheet
}
from
"react-native"
;
const
HomeUserNotLoggedIn
:
MainStackScreenComponentProps
<
"homeUserNotLoggedIn"
>
=
({
const
HomeUserNotLoggedIn
:
MainStackScreenComponentProps
<
"homeUserNotLoggedIn"
>
=
({
navigation
,
navigation
,
})
=>
{
})
=>
{
return
(
return
(
<>
<
View
style=
{
[
g
.
flex_1
,
g
.
p_5xl
,
g
.
gap_lg
]
}
>
<
Box
style=
{
style
.
container
}
p=
{
"xl"
}
backgroundColor=
{
"white"
}
>
<
View
style=
{
[{
height
:
400
}]
}
>
<
Box
mt=
{
"s"
}
>
<
Image
<
Box
source=
{
require
(
"@assets/payment_processing.png"
)
}
height=
{
300
}
style=
{
{
width
:
"100%"
,
height
:
"100%"
}
}
width=
{
300
}
contentFit=
"contain"
backgroundColor=
{
"primary"
}
cachePolicy=
{
"memory-disk"
}
mb=
{
"l"
}
/>
alignItems=
{
"center"
}
</
View
>
justifyContent=
{
"center"
}
<
Text
style=
{
[
g
.
text_center
,
{
color
:
"gray"
}]
}
>
>
Acceptez des paiements en magasin et en ligne et recevez votre argent en quelques
<
Image
secondes
source=
{
require
(
"../../assets/payment_processing.png"
)
}
</
Text
>
style=
{
style
.
image
}
/>
<
Button
.
Container
</
Box
>
onPress=
{
()
=>
navigation
.
navigate
(
"userLoginScreen"
)
}
<
Text
color=
{
"gray"
}
fontSize=
{
16
}
textAlign=
{
"center"
}
>
style=
{
[
g
.
mt_5xl
]
}
Acceptez des paiements en magasin et en ligne et recevez votre argent en
>
quelques secondes
<
Button
.
Label
style=
{
{
color
:
"white"
}
}
>
Se connecter
</
Button
.
Label
>
</
Text
>
</
Button
.
Container
>
<
Box
mt=
{
"xl"
}
>
<
Button
.
Container
style=
{
[{
backgroundColor
:
"transparent"
}]
}
>
<
Button
<
Button
.
Label
style=
{
{
color
:
"green"
}
}
>
Créer un compte
</
Button
.
Label
>
variant=
{
"full"
}
</
Button
.
Container
>
textVariants=
{
"primary"
}
</
View
>
label=
"Se connecter"
onPress=
{
()
=>
navigation
.
navigate
(
"userLoginScreen"
)
}
/>
<
Button
variant=
{
"clean"
}
textVariants=
{
"secondary"
}
label=
"Creer un compte"
onPress=
{
()
=>
{}
}
/>
</
Box
>
</
Box
>
</
Box
>
</>
);
);
};
};
const
style
=
StyleSheet
.
create
({
container
:
{
width
:
"100%"
,
height
:
"100%"
,
flex
:
1
,
alignItems
:
"center"
,
justifyContent
:
"center"
,
},
image
:
{
width
:
"100%"
,
height
:
"100%"
,
},
});
export
default
HomeUserNotLoggedIn
;
export
default
HomeUserNotLoggedIn
;
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