This repository was archived by the owner on Dec 3, 2024. It is now read-only.
navigation.goBack(null) and fix SearchBar cancelButtonText#7
Open
alangumer wants to merge 4 commits intoreact-navigation:masterfrom
Open
navigation.goBack(null) and fix SearchBar cancelButtonText#7alangumer wants to merge 4 commits intoreact-navigation:masterfrom
alangumer wants to merge 4 commits intoreact-navigation:masterfrom
Conversation
Add null parameter, If null parameter is not present it won't go back when the Search Screen is a part of a top-level Navigator.
HeaderBackButton has been moved to react-navigation-stack
brentvatne
suggested changes
Feb 19, 2020
Member
brentvatne
left a comment
There was a problem hiding this comment.
if you can revert the thing i mentioned then otherwise this is good
| if (this.props.onCancelPress) { | ||
| this.props.onCancelPress(this.props.navigation.goBack); | ||
| } else { | ||
| this.props.navigation.goBack(); |
Member
There was a problem hiding this comment.
i think we should probably just let the user override it with onCancelPress rather than default to goBack(null) here
Author
There was a problem hiding this comment.
reverted goBack(null) to goBack().
Member
|
i think at this point this library needs to be updated for react-navigation v5 now :) |
Member
|
@brentvatne yeah :), I'm planning to do that next week. |
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.