Skip to content
Advertisement

undefined is not an object (evaluating ‘_this.props.navigation’) in react native when passing parameter

im passing parameter from screen A to screen B

Screen A :

JavaScript

Screen B :

JavaScript

but theres an error on screen B that say ‘undefined is not an object (evaluating ‘_this.props.navigation’)’

im using react-native-jitst-meet to create simple confrence app for class project. I really hope you guys can give the solution. Thankyou before

Advertisement

Answer

You are using a functional component. So you cant access it as this.props.navigation

First you have to add the props like below

JavaScript

Then you can access it like below

JavaScript
Advertisement