...
|
...
|
@@ -12,6 +12,7 @@ import ReactNative, { |
|
|
InteractionManager,
|
|
|
Platform,
|
|
|
RefreshControl,
|
|
|
DeviceEventEmitter,
|
|
|
} from 'react-native';
|
|
|
|
|
|
import TimerMixin from 'react-timer-mixin';
|
...
|
...
|
@@ -29,7 +30,16 @@ export default class Message extends Component { |
|
|
});
|
|
|
}
|
|
|
componentDidMount() {
|
|
|
this.trigggePullToRefresh();
|
|
|
this.viewDidAppear = DeviceEventEmitter.addListener(
|
|
|
'VCDidAppear',
|
|
|
() => {
|
|
|
this.trigggePullToRefresh();
|
|
|
}
|
|
|
);
|
|
|
}
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
this.viewDidAppear && this.viewDidAppear.remove();
|
|
|
}
|
|
|
|
|
|
trigggePullToRefresh() {
|
...
|
...
|
|