Releases: xxsnakerxx/react-native-ya-navigator
Releases · xxsnakerxx/react-native-ya-navigator
0.6.7
- added ability to listen scene
willfocus
anddidfocus
events
class MyScene extends React.Component {
...
willfocus() {
console.log('Scene will focus');
}
didfocus() {
console.log('Scene did focus');
}
render() {
return (
<YANavigator.Scene
delegate={this}>
{this.props.children}
</YANavigator.Scene>
)
}
static navigationDelegate = {
id: 'myScene',
...
}
0.6.5
- Added ability to enable/disable handling android back press programmatically
this.props.navigator.setShouldHandleAndroidBack(false);
...
// don't forget to turn on it later
0.6.4
- added
shouldHandleAndroidBack
prop (useful with tabs navigation, set it to false for navigator into an inactive tab)
0.6.3
Bumped to 0.6.3
0.6.2
- passing
isBack
param to onBlur handler
...
onLinkPress = (link) => {
tabBar.hide(),
this.props.navigator.push({
component: Browser,
props: {
url: link,
onBlur: (isBack) => isBack && tabBar.show(),
},
})
}
...
0.6.1
- added ability to listen when a scene will lose focus via route prop
onBlur
(onBackBtnPress
defined in the previous release was removed)
...
onLinkPress = (link) => {
tabBar.hide(),
this.props.navigator.push({
component: Browser,
props: {
url: link,
onBlur: () => tabBar.show(),
},
})
}
...
0.6.0
- added ability to listen
back button press
via route proponBackBtnPress
...
onLinkPress = (link) => {
tabBar.hide(),
this.props.navigator.push({
component: Browser,
props: {
url: link,
onBackBtnPress: () => tabBar.show(),
},
})
}
...
0.5.11
- updated RN Vector Icons
2.0
0.5.10
- RN >=
0.25.1
0.5.9
Bumbed to 0.5.9