rn-router
rn-router copied to clipboard
Route order is reverse of what is expected
The priority order of routes is reverse of the expected order. I expect the priority order to look like:
<Route name="test" component={Wrap}>
<IndexRoute name="item1" component={Item1} />
<Route name=":testVar" component={Item2} />
</Route>
but the order is only correct currently if the var path is first which means priority is checked from bottom to top.
<Route name="test" component={Wrap}>
<Route name=":testVar" component={Item2} />
<IndexRoute name="item1" component={Item1} />
</Route>
This needs to be corrected.