mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b8f0e975b7
Summary: as title in practice, this doesn't make any difference, but this is to follow the apple recommendation and for us to have a more consistent codebase. https://developer.apple.com/library/content/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObjective-C/AdoptingModernObjective-C.html >The NS_ENUM macro helps define both the name and type of the enumeration, in this case named UITableViewCellStyle of type NSInteger. The type for enumerations should be NSInteger. >Like enumerations, the NS_OPTIONS macro defines both a name and a type. However, the type for options should usually be NSUInteger. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D32641990 fbshipit-source-id: 56e4cd44cdefe54f61c90844665a685ee2d6ffad
15 lines
334 B
Objective-C
15 lines
334 B
Objective-C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef NS_ENUM(NSInteger, RCTNullability) {
|
|
RCTNullabilityUnspecified,
|
|
RCTNullable,
|
|
RCTNonnullable,
|
|
};
|