【发布时间】:2019-04-07 08:46:59
【问题描述】:
在我关闭应用程序并再次打开之前,屏幕不会获取新数据
我想在标签按下时重新渲染屏幕以刷新屏幕并获取新数据
请看我下面的代码
const DashboardTabNavigator = createBottomTabNavigator({
Home: { screen: Home,
navigationOptions: {
tabBarIcon: (
<Image style={{ width: 30, height: 30,tintColor:'white' }}
source={require('./assets/IconBootomTabNavigation/home_icon.png')} />
)
}
},
Category: { screen: Category,
navigationOptions: {
tabBarIcon: (
<Image style={{ width: 30, height: 30,tintColor:'white' }}
source={require('./assets/IconBootomTabNavigation/cat_icon.png')} />
)
}
}
【问题讨论】:
标签: reactjs react-native navigation react-navigation