Authored by chenl

修复了Android 多次渲染的问题。review by days。

... ... @@ -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();
}
}
);
}
... ...