-
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
v4 replace behaves different to v3? #2102
Comments
Looks like it is the problem of React Navigation: If you could find solution how to do 'replace' correctly with react-navigation I could implement it with RNRF. |
I have one idea - do Actions.pop and Actions.push for 'replace'. I will try to implement this. |
I tried pop and then push, but I'm not sure if it was my components or what, but I was running in a "max execution callstack" error. |
OK, I will try for Example. |
#2102) * call BLUR/FOCUS actions for custom reducer
@compojoom Could you check latest master? |
@aksonov Have you unpublished beta11 and beta12? We got an empty folder after "npm install" of an other library and while reinstalling neither beta11 nor beta12 can be found on npm. |
Have you tried |
ooops.... thx! don't know how it could work without the dot yesterday (or the dev was on del-key)^^ |
It would be a little bit strange to remove beta if react-navigation is still in beta, what do you think?
I would like to remove beta once we will have one week without bugs. But how to deal with react-navigation bugs (like bugs with tab bar)
… On 25 Jul 2017, at 11:19, Hagen Hübel ***@***.***> wrote:
ooops.... thx! don't know how it could work without the dot yesterday (or the dev was on del-key)^^
However, can you tell pls the roadmap for 4.0.0 - non-beta?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2102 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQpcc6ybHio2zuYBmgva3xyn0neCaZ_ks5sRbMNgaJpZM4OhNE1>.
|
yes, wouldn't think that. thats why i was asking :) with |
Should be fixed with 4.0.0-beta.14 |
I've just added ActionConst.POP_AND_PUSH action for this (previous REPLACE could be useful to replace root scene) |
The normal navigation between my scenes is:
A->B->C
on scene B, you can press and add button and this would send you to scene D. When you click save, then you are sent to scene C. Now clicking the back button on scene C shouldn't send you back to scene D, but to B.
A->B->D->C
back is
C->B->A
I was able to achieve this with v3 by using type replace. Now on v4 if I use Actions.replace('D') -> then all the scenes in the stack are replaced with scene D and not just the last one. Is there a way to just replace the last one?
The text was updated successfully, but these errors were encountered: