react-native-macos/Libraries/Image
Nathaniel Bomberger 3fa648204c Code cleanup - Xcode 9 build warning/issue.
Summary:
Xcode 9 has compiler settings that are more strict.  This can occur if someone updates there project to use the default settings.

This patch declares the default type instead of allowing the compiler to determine it.  Instead of `()` we now say `(void)` in a block call.

<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html

Happy contributing!

-->

It was just annoying me, and it has no side effects.  If there are side effects, then we should fix the type and not go with empty to represent void.

Update project settings in Xcode.  This code doesn't have any known side effects since the compiler assumes the type is void when not declared.

<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAl  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
[DOCS] - Fixed potential compiler build issue on Xcode 9 after updating settings in project.
Closes https://github.com/facebook/react-native/pull/16554

Differential Revision: D6184949

Pulled By: shergin

fbshipit-source-id: 23083248a39c56f5cf50b5ff4390629dd6335f84
2017-10-29 23:17:18 -07:00
..
RCTImage.xcodeproj Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
__tests__ consistent use of URL for resolving asset source 2017-09-08 10:47:22 -07:00
AssetRegistry.js packager: buck library: expose asset content 2017-04-25 12:04:01 -07:00
AssetSourceResolver.js Android: put all non-drawable resources to `res/raw` 2017-10-11 15:11:29 -07:00
Image.android.js Correct logo URL 2017-10-04 14:38:02 -07:00
Image.ios.js Fixed broken image link in example code 2017-10-27 14:53:23 -07:00
ImageBackground.js Correct logo URL 2017-10-04 14:38:02 -07:00
ImageEditor.js Auto-fix lint errors 2016-08-09 06:43:46 -07:00
ImageResizeMode.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
ImageSource.js Make flow types update to date with proptypes with ImageSource 2017-02-16 15:18:43 -08:00
ImageSourcePropType.js Update remaining PropTypes references 2017-06-12 16:03:09 -07:00
ImageStore.js Open sourced <ImageEditor>, <ImageStore> for Android 2016-01-27 10:50:54 -08:00
ImageStylePropTypes.js Update remaining PropTypes references 2017-06-12 16:03:09 -07:00
RCTGIFImageDecoder.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTGIFImageDecoder.m remove unused includes in fbobjc/Libraries 2017-02-19 18:33:49 -08:00
RCTImageBlurUtils.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageBlurUtils.m Add blur effect to RCTImageView 2016-03-17 12:25:40 -07:00
RCTImageCache.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageCache.m Fix build errors exposed by building against clang 5.0 2017-09-14 00:35:02 -07:00
RCTImageEditingManager.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageEditingManager.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageLoader.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageLoader.m Issue #16159 - RCTImageStoreManager's priority 2017-10-09 22:31:25 -07:00
RCTImageShadowView.h Using <Image> with nested content now causes warning (yellowbox) 2017-05-30 20:04:55 -07:00
RCTImageShadowView.m Removed support of nested content inside <Image> on iOS 2017-09-10 21:48:16 -07:00
RCTImageStoreManager.h Code cleanup - Xcode 9 build warning/issue. 2017-10-29 23:17:18 -07:00
RCTImageStoreManager.m Code cleanup - Xcode 9 build warning/issue. 2017-10-29 23:17:18 -07:00
RCTImageUtils.h Fix photo orientation from ImagePickerIOS 2017-07-24 21:51:51 -07:00
RCTImageUtils.m Fix photo orientation from ImagePickerIOS 2017-07-24 21:51:51 -07:00
RCTImageView.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageView.m Fixed typo in comments 2017-10-27 11:05:02 -07:00
RCTImageViewManager.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageViewManager.m Using <Image> with nested content now causes warning (yellowbox) 2017-05-30 20:04:55 -07:00
RCTLocalAssetImageLoader.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTLocalAssetImageLoader.m RCTImage: Use C atomics instead of OSAtomic 2017-08-01 02:51:03 -07:00
RCTResizeMode.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTResizeMode.m Add Image resizeMode center to iOS 2016-07-19 03:43:26 -07:00
RelativeImageStub.js Remove remnants of the packager 2017-07-07 03:06:21 -07:00
nativeImageSource.js Add `deprecated` flag for nativeImageSource 2016-11-28 15:58:36 -08:00
resolveAssetSource.js consistent use of URL for resolving asset source 2017-09-08 10:47:22 -07:00