Why receiving error 'should be push route with duplicated key' with Regact Native's NavigationExperimental?
问题 My navigation reducer set up as such: const { StateUtils: NavigationStateUtils } = NavigationExperimental const initialState = { index: 0, key: 'root', routes: [{ key: 'login', title: 'Login', component: Login }] } function navigationState (state = initialState, action) { switch(action.type) { case PUSH_ROUTE: if (state.routes[state.index].key === (action.route && action.route.key)) return state return NavigationStateUtils.push(state, action.route) case POP_ROUTE: if (state.index === 0 ||