So I have a file called LoginScreen.js that calls the component PhoneLogin.js. From LoginScreen.js I can run this code this.props.navigation.navigate('App') and the app properly navigates, however when I run that code from PhoneLogin.js I get the following error:
TypeError: Cannot read property 'navigate' of undefined
I believe this is because the component PhonLogin doesn't have the props of navigation, but how can I extend the props?