I don't understand: Is your Home Screen component in a separate .js file? If so, don't you need to import App from './App' so you can use the stack navigator exported from App.js??????????????? Why is this so impossible?? I simply want to navigate between .js files!!!
EDIT: Oh...you're navigating from App.js to Home.js...What if I want to navigate back from Home.js to App.js?? (What if I want the navigation stack accessible in different .js files???)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't understand: Is your Home Screen component in a separate
.js
file? If so, don't you need toimport App from './App'
so you can use the stack navigator exported fromApp.js
??????????????? Why is this so impossible?? I simply want to navigate between.js
files!!!EDIT: Oh...you're navigating from
App.js
toHome.js
...What if I want to navigate back fromHome.js
toApp.js
?? (What if I want the navigation stack accessible in different.js
files???)