Skip to content
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

[V2][IOS] Resolve 'push'-command with next componentId for ios #4229

Closed
wants to merge 4 commits into from
Closed

[V2][IOS] Resolve 'push'-command with next componentId for ios #4229

wants to merge 4 commits into from

Conversation

Hesowcharov
Copy link

Behavior of Navigation.push(someComponentId, layout) between android and ios is different.
In android promise resolves with next componentId (id of component that was pushed), but on ios - componentId on which we pushed.
Android: https://github.com/wix/react-native-navigation/blob/v2/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java#L145
Motivation of this PR - keep api behavior more consistent.

@henrikra
Copy link
Contributor

Good catch!

@henrikra
Copy link
Contributor

Can you also fix the return type of push to the TypeScript file? https://github.com/wix/react-native-navigation/blob/v2/lib/src/Navigation.ts#L114

@yogevbd yogevbd self-requested a review November 5, 2018 10:11
@stale
Copy link

stale bot commented Dec 20, 2018

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 🏚 stale label Dec 20, 2018
@guyca guyca added this to the tbd milestone Dec 22, 2018
@guyca guyca self-assigned this Dec 22, 2018
@Hesowcharov Hesowcharov changed the base branch from v2 to master February 28, 2019 10:20
@Hesowcharov
Copy link
Author

Sorry for long inactivity.
Updated PR according to new interfaces and fix failed tests (ios, type-error). Also, in current version 'setStackRoot' promise resolves with last child componentId.

@hannojg
Copy link
Contributor

hannojg commented Jul 29, 2020

Hey! This really needs to be merged!

@hannojg
Copy link
Contributor

hannojg commented Jul 29, 2020

I created a new, conflict-free, PR: #6445

@danilobuerger
Copy link
Collaborator

This was addressed in #6422 and has been released in v7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
React Native Navigation
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

6 participants