-
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
Cannot pass params to screens on navigate #3005
Comments
If anybody had this issue, please use the I wasn't really sure about what the documentation meant when it mentions the API... I guess for people familiar with the package there wouldn't be any need to mention it but the react-navigation API is accessible from Actions object. Something along the lines of:
|
It is because A quick look at the API would have helped you. |
I try to change title using
|
Same @kholiavko-roman did you end up finding a solution? |
@d7laungani, I did like this: |
I confirm this. |
Version
Tell us which versions you are using:
Expected behaviour
For the app to navigate to the new screen with the params as props.
Actual behaviour
Error code
undefined is not a function (evaluating '_this2[type](routeName, res)')
Steps to reproduce
The code for my router looks like this:
In my Filters screen, I want to navigate to the FiltersList and pass props but I get the error code I mentioned.
This is what my action looks like:
Whenever I remove the params, then the app navigates to FiltersList without a problem but if I try to add the params I need then my app crash.
Any solutions around this problem?
The text was updated successfully, but these errors were encountered: