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
0db3e2e3
Commit
0db3e2e3
authored
Jun 18, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using the new container component SafeArea. remove marginTop as it will be handled by the wrapper
parent
38463045
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
28 deletions
+20
-28
BackgroundDefault.tsx
src/components/backgrounds/BackgroundDefault.tsx
+9
-10
BackgroundWithBeasyIconAndWhiteContentArea.tsx
...ackgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx
+10
-17
PaymentAmountInputScreen.tsx
src/screens/PaymentAmountInputScreen.tsx
+1
-1
No files found.
src/components/backgrounds/BackgroundDefault.tsx
View file @
0db3e2e3
import
{
containers
,
images
}
from
"@styles/Commons"
;
import
{
ImageBackground
,
View
}
from
"react-native"
;
import
SafeAreaViewTopLeftRightFull
from
"@components/containers/SafeAreaViewTopLeftRightFull"
;
import
{
images
}
from
"@styles/Commons"
;
import
{
ImageBackground
}
from
"react-native"
;
type
Props
=
{
children
:
React
.
ReactNode
};
const
BackgroundDefault
=
({
children
}:
Props
)
=>
{
return
(
<
View
style=
{
containers
.
containerFull
}
>
<
ImageBackground
source=
{
require
(
"../../../assets/beasy_default.png"
)
}
style=
{
images
.
background
}
>
{
children
}
</
ImageBackground
>
</
View
>
<
ImageBackground
source=
{
require
(
"../../../assets/beasy_default.png"
)
}
style=
{
images
.
background
}
>
<
SafeAreaViewTopLeftRightFull
>
{
children
}
</
SafeAreaViewTopLeftRightFull
>
</
ImageBackground
>
);
};
...
...
src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx
View file @
0db3e2e3
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
WrapperTopEdgeCurved
from
"@components/WrapperTopEdgeCurved"
;
import
Box
from
"@components/bases/Box"
;
import
SafeAreaViewTopLeftRightFull
from
"@components/containers/SafeAreaViewTopLeftRightFull"
;
import
type
{
ReactElement
}
from
"react"
;
import
{
SafeAreaView
}
from
"react-native-safe-area-context"
;
import
BackgroundDefault
from
"./BackgroundDefault"
;
const
BackgroundWithBeasyIconAndWhiteContentArea
=
({
children
}:
{
children
?:
ReactElement
})
=>
{
return
(
<
BackgroundDefault
>
<
SafeAreaView
edges=
{
[
"top"
,
"left"
,
"right"
]
}
>
<
SafeAreaView
TopLeftRightFull
>
<
Box
style=
{
{
height
:
"100%"
,
width
:
"100%"
,
}
}
px=
{
"l"
}
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
alignItems=
{
"center"
}
mb=
{
"m"
}
>
<
Box
px=
{
"l"
}
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
alignItems=
{
"center"
}
mb=
{
"m"
}
>
<
BeasyLogoIcon
/>
</
Box
>
<
WrapperTopEdgeCurved
>
{
children
}
</
WrapperTopEdgeCurved
>
<
BeasyLogoIcon
/>
</
Box
>
</
SafeAreaView
>
<
WrapperTopEdgeCurved
>
{
children
}
</
WrapperTopEdgeCurved
>
</
SafeAreaViewTopLeftRightFull
>
</
BackgroundDefault
>
);
};
...
...
src/screens/PaymentAmountInputScreen.tsx
View file @
0db3e2e3
...
...
@@ -82,7 +82,7 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI
style=
{
{
height
:
"100%"
,
width
:
"100%"
,
marginTop
:
insets
.
top
,
//
marginTop: insets.top,
}
}
>
<
Box
...
...
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