React-native-router-flux: componentDidMount not always get called in Tabs

Created on 22 Jun 2017  路  6Comments  路  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

  • react-native-router-flux v3.39.2
  • react-native v0.44.0

Expected behaviour

componentDidMount should be always get called when tap the tabs

Actual behaviour

componentDidMount not always get called , sometimes called , sometimes nothing happened

Steps to reproduce

  1. in tab view
  2. click tab icon
  3. the initial view's componentDidMount sometimes get called , sometimes not.

Hope get your reply , thanks in advance

Most helpful comment

Could you please check v4 beta #1974

All 6 comments

I get same issue with tabs!

componentDidMount not always get called and scene not always refreshes with new props when I switch between tabs.

Same issue using the same versions of react-native and react-native-router-flux

Same problem here, not just with the tabs.

What I've faced, componentDidMount only called when we go to more than 1 scene..I don't think if It's an issue..

It's related to this #1466.
A workaround is to add "duration" to the related route <Router duration={300} ...>. I think 300 is the default..

Could you please check v4 beta #1974

Was this page helpful?
0 / 5 - 0 ratings