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

[Nav] Add support for bar button icons and left buttons #81

Closed
wants to merge 1 commit into from
Closed

[Nav] Add support for bar button icons and left buttons #81

wants to merge 1 commit into from

Conversation

ide
Copy link
Contributor

@ide ide commented Feb 20, 2015

NavigatorIOS supports four new properties:

  • rightButtonImageSource: The source of an image to display in the top right. This must be a static image since UINavigationController only supports UIImages. Adding support for UIImageViews (or arbitrary views) is more complicated because custom views do not fade on touch and do not have hit slop the same way that UIImage buttons do. Usage: rightButtonImageSource: ix('ImageName')
  • backButtonImageSource: Use a custom image for the back button. This does not replace the back caret (<) but instead replaces the text next to it.
  • leftButtonTitle: Text for the left nav button, which supersedes the previous nav item's back button when specified. The main use case for this is your initial screen/UIVC which has nothing to go back to (since it is the first VC on the stack) but need to display a left button. This does hide the back button if there would have been one otherwise.
  • leftButtonImageSource: Image source for the left button, supersedes the left button title.

Added UIExplorer example to demonstrate.

NavigatorIOS supports four new properties:

  - **rightButtonImageSource:** The source of an image to display in the top right. This must be a static image since UINavigationController only supports UIImages. Adding support for UIImageViews (or arbitrary views) is more complicated because custom views do not fade on touch and do not have hit slop the same way that UIImage buttons do. Usage: `rightButtonImageSource: ix('ImageName')`
  - **backButtonImageSource:** Use a custom image for the back button. This does not replace the back caret (`<`) but instead replaces the text next to it.
  - **leftButtonTitle**: Text for the left nav button, which supersedes the previous nav item's back button when specified. The main use case for this is your initial screen/UIVC which has nothing to go back to (since it is the first VC on the stack) but need to display a left button. This does hide the back button if there would have been one otherwise.
  - **leftButtonImageSource:** Image source for the left button, supersedes the left button title.

Added UIExplorer example to demonstrate.
@arasmussen arasmussen force-pushed the master branch 5 times, most recently from 9b61be2 to 41453a5 Compare March 26, 2015 02:57
@ide
Copy link
Contributor Author

ide commented Mar 26, 2015

Superseded by #263

@ide ide closed this Mar 26, 2015
harrykiselev pushed a commit to harrykiselev/react-native that referenced this pull request Aug 5, 2015
Update link to TodoMVC tutorial in README
acoates-ms pushed a commit to acoates-ms/react-native that referenced this pull request Jun 10, 2019
facebook#81)

* Adding back the Accessibility Actions that were mistakenly remove in the last merge - RN57

* Add back performAccessibilityAction that was accidentaly removed during merge on RN57

* Adding More methods removed during last Merge on RN57
react-one pushed a commit to react-one/react-native that referenced this pull request Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant