mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 08:26:23 +00:00
Removed nullability attributes until Infer supports them
This commit is contained in:
parent
61c1631cbd
commit
2ee8410a71
@ -22,7 +22,7 @@
|
|||||||
#import "RCTLog.h"
|
#import "RCTLog.h"
|
||||||
#import "RCTUtils.h"
|
#import "RCTUtils.h"
|
||||||
|
|
||||||
static void RCTDispatchCallbackOnMainQueue(void (^ __nonnull callback)(NSError *, id), NSError *error, UIImage *image)
|
static void RCTDispatchCallbackOnMainQueue(void (^callback)(NSError *, id), NSError *error, UIImage *image)
|
||||||
{
|
{
|
||||||
if ([NSThread isMainThread]) {
|
if ([NSThread isMainThread]) {
|
||||||
callback(error, image);
|
callback(error, image);
|
||||||
|
@ -42,7 +42,7 @@ typedef void (^RCTHTTPQueryResult)(NSError *error, NSDictionary *result);
|
|||||||
NSString *boundary;
|
NSString *boundary;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)process:(NSArray *)formData callback:(nonnull void (^)(NSError *error, NSDictionary *result))callback
|
- (void)process:(NSArray *)formData callback:(void (^)(NSError *error, NSDictionary *result))callback
|
||||||
{
|
{
|
||||||
if (![formData count]) {
|
if (![formData count]) {
|
||||||
callback(nil, nil);
|
callback(nil, nil);
|
||||||
@ -298,7 +298,7 @@ RCT_EXPORT_MODULE()
|
|||||||
* - @"contentType" (NSString): the content type header of the request
|
* - @"contentType" (NSString): the content type header of the request
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
- (void)processDataForHTTPQuery:(NSDictionary *)query callback:(nonnull void (^)(NSError *error, NSDictionary *result))callback
|
- (void)processDataForHTTPQuery:(NSDictionary *)query callback:(void (^)(NSError *error, NSDictionary *result))callback
|
||||||
{
|
{
|
||||||
if (!query) {
|
if (!query) {
|
||||||
callback(nil, nil);
|
callback(nil, nil);
|
||||||
|
@ -18,21 +18,6 @@
|
|||||||
#define RCT_EXTERN extern __attribute__((visibility("default")))
|
#define RCT_EXTERN extern __attribute__((visibility("default")))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* Nullability for Xcode 6.2
|
|
||||||
*/
|
|
||||||
#if !__has_feature(nullability)
|
|
||||||
#define NS_ASSUME_NONNULL_BEGIN
|
|
||||||
#define NS_ASSUME_NONNULL_END
|
|
||||||
#define nullable
|
|
||||||
#define nonnull
|
|
||||||
#define null_unspecified
|
|
||||||
#define null_resettable
|
|
||||||
#define __nullable
|
|
||||||
#define __nonnull
|
|
||||||
#define __null_unspecified
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The RCT_DEBUG macro can be used to exclude error checking and logging code
|
* The RCT_DEBUG macro can be used to exclude error checking and logging code
|
||||||
* from release builds to improve performance and reduce binary size.
|
* from release builds to improve performance and reduce binary size.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user