-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
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
Labels
No labels