-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation simply doesn't work #2948
Comments
Have you tried putting ‘initial’ to any of the example scenes' props? Might be irrelevant but worth a try. |
Unfortunately, I still have the same error. My
I even tried explicitly typing |
This is an android-specific issue and there is usually something wrong with your syntax (technically ios is extremely lenient and lets you get away with shit that doesn't work). This is because Android's Yoga is much more strict than IOS when it comes to formatting/syntax - sometimes you will get this error just for having extra whitespace and it can be horrendous to track down. In the original code you pasted above @syntaxiom , you may have to wrap the text inside your TouchableOpacity in Thats the only thing I can spot that should offer up a yoga node error. |
Just as an update (sorry to anyone viewing this from Google), I don't use React Native anymore. I'll leave this issue open in case someone properly solves it later on however. It wouldn't be fair to close it if someone could benefit from this. Thanks everyone so far for the suggestions. |
Version
Tell us which versions you are using:
I am testing this on an Android phone.
Expected behaviour
A simple navigation from one scene to another. I've looked at the example app and I've followed tutorials similar to this one: https://www.tutorialspoint.com/react_native/react_native_router.htm.
Actual behaviour
Steps to reproduce
Here's my code in
App.js
:Here's my code in
Example1.js
:Here's my code in
Example2.js
(Only difference is going to the other example):###Other notes
I've tried several iterations of using the
Actions
keyword. I've doneActions.example1
as per the RNRF Example App, andActions["example1"].call()
as per the API documentation. If anyone could guide me as to what I'm doing wrong, that would be appreciated 😄The text was updated successfully, but these errors were encountered: