A framework for building native macOS apps with React.
Перейти к файлу
James Ide b97ce93cea [Nav] Add support for bar button icons and left buttons
Summary:
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, super
Closes https://github.com/facebook/react-native/pull/263
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-07 08:03:21 -08:00
Examples [Nav] Add support for bar button icons and left buttons 2015-05-07 08:03:21 -08:00
IntegrationTests MapView to support MKPointAnnotation using new attribute annotate in Map... 2015-04-14 18:03:37 -08:00
Libraries [Nav] Add support for bar button icons and left buttons 2015-05-07 08:03:21 -08:00
React [Nav] Add support for bar button icons and left buttons 2015-05-07 08:03:21 -08:00
jestSupport [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
lint [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
packager [react-packager] Use gracful-fs to avoid EMFILE errors 2015-05-05 14:30:43 -08:00
.eslintignore [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
.eslintrc [ReactNative] Turn of lint warning for constant conditions 2015-04-03 10:04:35 -08:00
.flowconfig [Flow] Add versions to fbobjc .flowconfigs 2015-04-24 22:49:51 -08:00
React.podspec [ReactNative] rename Animation to AnimationExperimental with warning docs 2015-04-04 11:20:45 -08:00
linter.js [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
package.json [react-packager] Use gracful-fs to avoid EMFILE errors 2015-05-05 14:30:43 -08:00
runXcodeTests.sh [React Native] Sync from github 2015-03-27 22:09:11 -08:00