React-native-navigation: When are events for clicking tab items going to be done?

Created on 13 Oct 2016  ·  8Comments  ·  Source: wix/react-native-navigation

I am really not able to use react-native-navigation because when I click on the different icons at the bottom I can't fire an event or events. Really need this ability. ETA on this?

Most helpful comment

Done, N-Joy!

All 8 comments

It's actually been implemented on Android for quit some time, and wasn't implemented on iOS due to time constraints.

class FirstTabScreen extends Component {
  ...

  onNavigatorEvent(event) {
    if (event.id === 'tabSelected') {
      // Handle tab selected
    }
  }
}

I am working on iOS and would really like the feature to be available on iOS as well. Thanks a lot!

We implemented this on iOS (kind of) using about 10 lines of code, see branch here: https://github.com/3sidedcube/react-native-navigation/tree/feature/view_lifecycle

@simonmitchell Will it accept as official release?

Thanks a lot guys!
Please place a pull request. It will helps us to review your changes.

Have any plan for adding this feature? Great Thanks ! @guyca

Done, N-Joy!

Awesome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nbolender picture nbolender  ·  3Comments

henrikra picture henrikra  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments

yedidyak picture yedidyak  ·  3Comments

yayanartha picture yayanartha  ·  3Comments