Problems using the navigator can not property 'push' of unedefined

0

When I try to click on the accept button to move to a navigation window through the browsers, I get the can not property error 'push' of unedefined which refers to the following code lines.

aceptar(){
      this.props.navigator.push ({
      title: 'Dashboard',
      name: 'Dashboard',
      passProps:{}
});
}
    
asked by Marcelrama 11.11.2016 в 21:46
source

1 answer

0

You are not passing the navigator object to your component through props

<MiEscena navigator={miNavigatorEnElComponenteSuperior} />
    
answered by 28.12.2016 / 19:16
source