jmurzy / jmurzy/react-router-native
Unnecessary warning: An <IndexRoute> is not allowed for <TabsRoute>?
- Dominant language
- JavaScript
- Stars
- 639
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
This project contains components that are currently under active development and considered experimental. If it is something you can debug and fix, please consider submitting a pull request instead!
***
### Version
| Dependency | Version |
| ------------------- | ------------------- |
| react-router-native | 2.0.0-beta.0 |
| react-router | 3.0.0 |
| react-native | 0.37.0 |
### Expected Behavior
First of all, thank you for creating this library and sharing with the community.
We are migrating from the `react-router-native-flux` library. I have an IndexRoute in a TabsRoute that sets the initial active route, similar to an `IndexRedirect` from react-router.
```
const to = (value) => (nextState, replace) => replace(value);
...
```
The `IndexRoute` definition is working just fine, except I am seeing a warning:
```
Warning: An is not allowed for
```
### Actual Behavior
I believe an IndexRoute should continue to work in this configuration, but with no warning.
### Steps to Reproduce
See router configuration above.
Contributor guide
Assessment
This issue has not been assessed yet.