React-native-router-flux: onEnter not always fired

Created on 10 Apr 2018  路  2Comments  路  Source: aksonov/react-native-router-flux

Version

v4.0.0-beta.28
0.44.2

Expected behaviour

onEnter should be called everytime i switch tab

Actual behaviour

gets called first, but not everytime

Most helpful comment

@aksonov Does this mean onEnter is never called inside any scene inside tabs?

I have this setup:

                  <Tabs key='tabbar'>
                    <Stack key='tab_1'>
                      <Scene key='home'
                             component={HomeView}/>
                    </Stack>
                    <Stack key='tab_2'>
                     <Scene key='start_create'
                            component={HomeCreateView}/>
                    </Stack>
                  </Tabs>

and basically in ever Scene

  static onEnter() {
    console.log('On Enter')
  };

gets not fired.

All 2 comments

Please give me more details and reopen the ticket if any. It may not called if you have stack inside your tab

@aksonov Does this mean onEnter is never called inside any scene inside tabs?

I have this setup:

                  <Tabs key='tabbar'>
                    <Stack key='tab_1'>
                      <Scene key='home'
                             component={HomeView}/>
                    </Stack>
                    <Stack key='tab_2'>
                     <Scene key='start_create'
                            component={HomeCreateView}/>
                    </Stack>
                  </Tabs>

and basically in ever Scene

  static onEnter() {
    console.log('On Enter')
  };

gets not fired.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xnog picture xnog  路  3Comments

sarovin picture sarovin  路  3Comments

tonypeng picture tonypeng  路  3Comments

moaxaca picture moaxaca  路  3Comments

sylvainbaronnet picture sylvainbaronnet  路  3Comments