You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create something like Instagram. When tab is active and you press on it's icon, it refreshes. <Scene key = "tabBar" tabs> <Scene key = "news" onPress = { () => { if (this.state.active[0]) { //if this tab is active refreshNews(); //fetching to get new data } else { this.setState({active: [true, false, false, false]}); Actions.news(); // just open this tab } }}> ... </Scene> .... </Scene>
Expected behaviour
In previous version (3.37.0 for example) everithing worked fine.
Actual behaviour
In current version onPress function is not performed.
So do I need to downgrade the version or are there any other solutions?
The text was updated successfully, but these errors were encountered:
Unfortunately v4 tabbar is breaking change (because it is based on react-navigation TabNavigator now). It looks like duplicate of react-navigation/react-navigation#314, please check maxmcd's workaround from there. I think we could integrate it somehow into RNRF, need to think about it. PR is welcome.
Version
I'm trying to create something like Instagram. When tab is active and you press on it's icon, it refreshes.
<Scene key = "tabBar" tabs>
<Scene key = "news" onPress = { () => {
if (this.state.active[0]) { //if this tab is active
refreshNews(); //fetching to get new data
} else {
this.setState({active: [true, false, false, false]});
Actions.news(); // just open this tab
}
}}>
...
</Scene>
....
</Scene>
Expected behaviour
In previous version (3.37.0 for example) everithing worked fine.
Actual behaviour
In current version onPress function is not performed.
So do I need to downgrade the version or are there any other solutions?
The text was updated successfully, but these errors were encountered: