Reputation: 41665
I think the default path being matched is /
for the react native view.
Is there a way to set the initial path so that react router's Route
component can match the path?
Upvotes: 1
Views: 1117
Reputation: 281696
What you could do is use Redirect
to redirect to the default Route like
<Router>
<Switch>
<Route path="/home" component={Home}
<Redirect to="/home"/>
</Switch>
</Router>
Upvotes: 2