Skip to content

onEnter #78

@skeie

Description

@skeie

Hi,

In the example below, the onEnter works for Route with the name routeDetail, but now fot the Route with name home

<Router hideNavBar>
                <Route  onEnter={(route)=>{console.log(route.getName()); return true;}} name="routeDetail" component={RouteDetail} {...props} schema="withoutAnimation" />
                <Route name="map" component={Map} {...props} schema="default" />
                 .......
                <Route name="tabbar" initial>
                    <Router footer={TabBar} style={{backgroundColor: vars.navColor}} hideNavBar>
                        <Route onEnter={(route)=>{console.log(route.getName()); return true;}} name="home" schema="tab" component={Home} {...props} imageSource={require('image!home')} />
                  ......
                </Route>
            </Router>

Is it possible to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions