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
chenl
8 years ago
Commit
3b371c7e67b1f3b3e0713fc280079319e970a05a
1 parent
b4a5be08
修复了Android 多次渲染的问题。review by days。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
js/home/containers/HomeContainer.js
js/home/containers/HomeContainer.js
View file @
3b371c7
...
...
@@ -80,8 +80,11 @@ class HomeContainer extends Component {
this
.
subscription
=
NativeAppEventEmitter
.
addListener
(
'ChannelDidChangeEvent'
,
(
reminder
)
=>
{
this
.
props
.
actions
.
setChannel
(
reminder
.
channel
);
this
.
home
&&
this
.
home
.
trigggePullToRefresh
();
//增加了IOS的判断,Android不需要此方法,因为Android首页的四个频道为四个不同的原生界面,调用此方法会导致重复渲染数据
if
(
Platform
.
OS
===
'ios'
)
{
this
.
props
.
actions
.
setChannel
(
reminder
.
channel
);
this
.
home
&&
this
.
home
.
trigggePullToRefresh
();
}
}
);
}
...
...
Please
register
or
login
to post a comment