Skip to content

reload make navigator null #28

Description

@wasa4587

first time a route is render navigator is ProxyComponent object
when a route is reloaded the navigator prop is null

    //my code
      <Router
        onDidFocus={(route, router) => {
          if (route.title === 'ViewAll'){
            route.loaded = true;
            router.reload();
          }
        }}
        routes={routes}
        />

I've been debugging, so I'm not sure what and where the problem is
but I noticed on renderScene this.navigator is null after a reload

 //Router.mobile.js
  renderScene(route: $route) {
    console.log('router.mobile', this.navigator)
    return (
      <route.scene
        navigator={this.navigator}
        routes={this.props.routes}
        route={route}
        router={this}
        showIndicator={this.showIndicator}
        />
    );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions