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

[Bugfix] Within NavigatorIOS, navigator.replace doesn't update the navigation bar. #3516

Closed

Conversation

rocman
Copy link
Contributor

@rocman rocman commented Oct 19, 2015

  1. let the RCTNavItem refer to the NavigationBar and the NavigtaionItem, so that it can forward the modifications to them. And such, to fix the bug that props.navigator.replace does not update the NavigationBar.
  2. Provide a update method to modify the current route

…vigation bar.

1. let the RCTNavItem refers to the NavigationBar and the
NavigtaionItem,
so that it can forward the modifications to them. And such, to fix the
bug that props.navigator.replace does not update the NavigationBar.
2. Provide a update method to modify the current route
When there is no component or passProps on the route,  skip updating
the component. So as to allow modifying the navigation bar without
rerendering the component. And so to make it possible to set up the
navigation bar according to the state in the component render, which is
important.
@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @ide, @nicklockwood and @mrspeaker to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Oct 19, 2015
@rocman rocman changed the title Navigation ios navigation bar update [Bugfix] Within NavigatorIOS, navigator.replace doesn't update the navigation bar. Oct 19, 2015
@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@rocman
Copy link
Contributor Author

rocman commented Oct 23, 2015

Somebody?

@@ -13,6 +13,9 @@

@interface RCTNavItem : UIView

@property (nonatomic, assign) UINavigationBar *navigationBar;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are pointers, they should be strong or possibly weak, but definitely not assign.

following @nicklockwood’s suggestions, i’ve adjusted the property
declarations for navigationBar and navigationItem, and simplified the
logics that adjust the the buttons.
@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

@rocman
Copy link
Contributor Author

rocman commented Oct 28, 2015

I don't understand why the checks failed...

@mhfc007
Copy link

mhfc007 commented Oct 31, 2015

will version 0.14.0 will fix this ?

@rocman
Copy link
Contributor Author

rocman commented Oct 31, 2015

I'm suffering from the failure of ci build checks and don't know how to fix it. So the pull request is still uncommitted.

@facebook-github-bot
Copy link
Contributor

@rocman updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants