【发布时间】:2015-09-30 20:56:47
【问题描述】:
有谁知道在打开响应式应用程序时如何触发事件?例如。每当用户再次打开应用时刷新数据。
【问题讨论】:
标签: reactjs react-native
有谁知道在打开响应式应用程序时如何触发事件?例如。每当用户再次打开应用时刷新数据。
【问题讨论】:
标签: reactjs react-native
【讨论】:
转到导航开始的那个文件。
import React, { Component } from 'react';
import { Root } from './config/router';
class Index extends Component {
componentWillMount(){
//your event function code
}
render() {
return <Root />;
}
}
export default Index;
Here Root contains all screens where navigation starts.
【讨论】: