Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Router not passed to children #69

Open
VinceBT opened this issue Dec 10, 2016 · 3 comments
Open

Router not passed to children #69

VinceBT opened this issue Dec 10, 2016 · 3 comments

Comments

@VinceBT
Copy link

VinceBT commented Dec 10, 2016

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

Using ReactRouterNative

image

I've fixed the problem temporarily by using withRouter.

I'm using nativeHistory on mobile and browserHistory on browser

@the-mold
Copy link

@VinceBT I am having the same issue. could you please share how did you manage to overcome it?

@VinceBT
Copy link
Author

VinceBT commented May 15, 2017

I've used the withRouter function if I can remember.
You call it and get the router I think.
I've stopped using their package since they don't want to fix these kind of essential issues.

@the-mold
Copy link

@VinceBT thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants