Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
鹿亮亮
8 years ago
Commit
811eeae56b474cd84b3523bad7d413647f7153de
1 parent
05dc6527
修改android swiper 为RecyclerSwiper review by 李犇
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
js/home/components/floor/TrendgoodsTopic.js
js/home/components/floor/TrendgoodsTopic.js
View file @
811eeae
...
...
@@ -6,6 +6,7 @@ import Swiper from 'react-native-swiper';
import
HeadTitleCell
from
'../cell/HeadTitleCell'
;
import
YH_Image
from
'../../../common/components/YH_Image'
;
import
Immutable
,
{
Map
}
from
'immutable'
;
import
RecyclerSwiper
from
'../../../common/recycler-swiper/recyclerswiper'
;
const
{
View
,
...
...
@@ -17,6 +18,8 @@ const {
Platform
,
}
=
ReactNative
;
const
YH_Swiper
=
(
Platform
.
OS
===
'ios'
)
?
Swiper
:
RecyclerSwiper
;
export
default
class
TrendgoodsTopic
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -84,7 +87,7 @@ export default class TrendgoodsTopic extends React.Component {
return
(
<
View
style
=
{
styles
.
container
}
>
<
HeadTitleCell
yh_exposureData
=
{
yh_exposureData_more
}
title
=
{
title
.
title
}
moreUrl
=
{
title
.
more_url
}
onPressTitleMore
=
{
this
.
props
.
onPressTitleMore
}
/
>
<
Swiper
<
YH_
Swiper
showsButtons
=
{
false
}
loop
=
{
true
}
autoplay
=
{
true
}
...
...
@@ -127,7 +130,7 @@ export default class TrendgoodsTopic extends React.Component {
<
/TouchableOpacity
>
);
})}
<
/Swiper
>
<
/
YH_
Swiper
>
<
/View
>
);
}
...
...
Please
register
or
login
to post a comment