-
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
Can't pass props to scene from Action.key(props). Think this way should work too. #3236
Comments
Where is how is I noticed that with the last release, a lot of issues might be happening due the wrong version match between a lot of dependencies. Could you check if your version is compatible?
Also, check the breaking changes related to the version you are using and the most recent - that might shed a light here: |
React version I've used is 16.3.1. All app was created by create-react-native-app, so it should be ok I guess.
Looked into a changes but do not see what would relate to this issue. |
It seems for RN issues related to this: Libs that might help here: RN Docs: |
Great, thanks for info. I've also found that I'm able to pass params to scene that is not nested deeper e.g. under Tabs. My case scene like |
Just a note about the info, I used the issue as bookmark - and also to encourage someone else to work on it - if available. There is a PR with initial work on that - but I am not sure when I will have the time to finish it. |
Yea, I understand. Maybe I have time someday, not sure. Currently have a lot of work... |
Thanks for reporting this as well. That's because when navigating it does not mount/unmouont the component. That's also being tackled in the PR I am taking a look. In order to concentrate all this information in the same place - I am closing this and encouraging you to continue contributing in #3206 - that's the main issue to handle this issue related with the lifecycle (that seems to be the culprit of the props problems for everyone). |
[email protected] doesn't pass props to all children components anymore. |
I've the same problem. Not with Tab but with Drawer. Using As a solution, I'll probably write to Redux state, and read those prop values from the state when the new page is loaded. |
Hello,
I can't send props to another scene. Was looking into the docs but can't find that could help.
Version
Tell us which versions you are using:
Expected behaviour
Action.scene_key(props) shout pass props to the component
Actual behaviour
No props in the component. I see only Router specific props printed out:
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
App.tsx
FeedItemBox on click action
Selfie component that should get props
The text was updated successfully, but these errors were encountered: