Adding Navigation to an app #14273
-
I've just started with RNW and have successfully built and modified an app (based on the 'old architecture' template). However the resulting app doesn't work; metro starts and the app screen appears briefly then disappears with no errors displayed. I have put my progress so far into a repository: https://github.com/pedro-w/navigation-test Would anyone be able to tell me, is this supposed to work? Have I made a mistake or is this combination of navigation and react native for windows not supported? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Here are the dependencies that got installed: "dependencies": {
"@react-navigation/elements": "^2.2.5",
"@react-navigation/native": "^7.0.14",
"@react-navigation/native-stack": "^7.2.0",
"react": "18.3.1",
"react-native": "0.76.6",
"react-native-safe-area-context": "^5.1.0",
"react-native-screens": "^4.5.0",
"react-native-windows": "0.76.3",
"tslib": "^2.8.1"
}, |
Beta Was this translation helpful? Give feedback.
-
@pedro-w did you get any errors logged in the terminal that launched metro with the app? Can you paste those logs? |
Beta Was this translation helpful? Give feedback.
It's definitely supposed to work. You can see a functioning example here: https://github.com/microsoft/react-native-gallery
There are possibly compatibility issues between specific versions. I believe I've heard that about react-native-screens in particular. At this point effort would be put into getting this to work with the new architecture (it doesn't yet), so as a mitigation maybe you can drop to an older version of the modules to get unblocked? Try the versions the gallery app uses.