jmurzy / jmurzy/react-router-native

Router not passed to children

Open
#69 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
639
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm using your package for an hybrid app working on both browser and mobile and I've discovered that this.props.router is undefined when on mobile when calling console.log(this.props) in the render method of a Route :
Using ReactRouter

![image](https://cloud.githubusercontent.com/assets/1362505/21075005/e7a4fea2-bf07-11e6-9e46-70aa46f6ead3.png)

Using ReactRouterNative

![image](https://cloud.githubusercontent.com/assets/1362505/21075008/f7a66eda-bf07-11e6-89d5-54e3bfdd8fac.png)

I've fixed the problem temporarily by using withRouter.

I'm using nativeHistory on mobile and browserHistory on browser

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.