Skip to content

Releases: xxsnakerxx/react-native-ya-navigator

0.6.7

05 Jun 10:45
Compare
Choose a tag to compare
  • added ability to listen scene willfocus and didfocus 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

02 Jun 16:56
Compare
Choose a tag to compare
  • 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

02 Jun 08:35
Compare
Choose a tag to compare
  • added shouldHandleAndroidBack prop (useful with tabs navigation, set it to false for navigator into an inactive tab)

0.6.3

25 May 06:10
Compare
Choose a tag to compare
Bumped to 0.6.3

0.6.2

14 May 12:57
Compare
Choose a tag to compare
  • 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

12 May 13:02
Compare
Choose a tag to compare
  • 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

12 May 09:27
Compare
Choose a tag to compare
  • added ability to listen back button press via route prop onBackBtnPress
...
onLinkPress = (link) => {
  tabBar.hide(),

  this.props.navigator.push({
    component: Browser,
    props: {
      url: link,
      onBackBtnPress: () => tabBar.show(),
    },
  })
}
...

0.5.11

09 May 14:49
Compare
Choose a tag to compare

0.5.10

05 May 18:45
Compare
Choose a tag to compare
  • RN >= 0.25.1

0.5.9

04 May 07:55
Compare
Choose a tag to compare
Bumbed to 0.5.9