mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
getComponentForState made more generic (#2498)
This commit is contained in:
@@ -239,7 +239,7 @@ export default (routeConfigs, config = {}) => {
|
||||
},
|
||||
|
||||
getComponentForState(state) {
|
||||
const routeName = order[state.index];
|
||||
const routeName = state.routes[state.index].routeName;
|
||||
invariant(
|
||||
routeName,
|
||||
`There is no route defined for index ${state.index}. Check that
|
||||
|
||||
Reference in New Issue
Block a user