Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Giang Tran
InvestCustomer
Commits
65d558bf
Commit
65d558bf
authored
May 06, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit swiper
parent
10902d82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
SwiperComponent.js
src/Screens/Home/SwiperComponent.js
+13
-12
No files found.
src/Screens/Home/SwiperComponent.js
View file @
65d558bf
...
...
@@ -7,12 +7,10 @@ import {HEIGHTXD} from '../../Config/Functions';
const
styles
=
StyleSheet
.
create
({
container
:
{
marginBottom
:
10
,
width
:
'100%'
,
height
:
HEIGHTXD
(
5
00
),
height
:
HEIGHTXD
(
4
00
),
marginTop
:
25
,
marginBottom
:
10
,
borderTopWidth
:
0.5
,
borderBottomWidth
:
0.5
,
borderBottomColor
:
R
.
colors
.
borderGray
,
borderTopColor
:
R
.
colors
.
borderGray
,
shadowColor
:
'#000'
,
...
...
@@ -24,7 +22,6 @@ const styles = StyleSheet.create({
shadowRadius
:
2.84
,
elevation
:
2
,
},
text
:
{
color
:
'#fff'
,
fontSize
:
30
,
...
...
@@ -35,24 +32,28 @@ const styles = StyleSheet.create({
const
SwiperComponent
=
(
props
)
=>
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
Swiper
style
=
{
styles
.
wrapper
}
loop
=
{
true
}
autoplay
=
{
true
}
>
<
View
>
<
Swiper
paginationStyle
=
{{
bottom
:
5
}}
style
=
{
styles
.
wrapper
}
loop
=
{
true
}
autoplay
=
{
true
}
>
<
View
style
=
{{
marginHorizontal
:
20
,
borderRadius
:
10
}}
>
<
Image
style
=
{{
height
:
HEIGHTXD
(
500
),
width
:
'100%'
}}
style
=
{{
height
:
HEIGHTXD
(
400
),
width
:
'100%'
,
borderRadius
:
10
}}
source
=
{{
uri
:
props
.
listImage
[
0
].
url
}}
resizeMode
=
{
'cover'
}
/
>
<
/View
>
<
View
>
<
View
style
=
{{
marginHorizontal
:
20
,
borderRadius
:
10
}}
>
<
Image
style
=
{{
height
:
HEIGHTXD
(
500
),
width
:
'100%'
}}
style
=
{{
height
:
HEIGHTXD
(
400
),
width
:
'100%'
,
borderRadius
:
10
}}
source
=
{{
uri
:
props
.
listImage
[
1
].
url
}}
resizeMode
=
{
'cover'
}
/
>
<
/View
>
<
View
>
<
View
style
=
{{
marginHorizontal
:
20
,
borderRadius
:
10
}}
>
<
Image
style
=
{{
height
:
HEIGHTXD
(
500
),
width
:
'100%'
}}
style
=
{{
height
:
HEIGHTXD
(
400
),
width
:
'100%'
,
borderRadius
:
10
}}
source
=
{{
uri
:
props
.
listImage
[
2
].
url
}}
resizeMode
=
{
'cover'
}
/
>
...
...
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