add NSSet type to RCTConvert
Summary: Add support for NSSet type Closes https://github.com/facebook/react-native/pull/1938 Github Author: Kostiantyn Koval <konstantin.koval1@gmail.com>
This commit is contained in:
parent
ffaf16283f
commit
54c21ac651
|
@ -39,6 +39,7 @@
|
|||
+ (NSUInteger)NSUInteger:(id)json;
|
||||
|
||||
+ (NSArray *)NSArray:(id)json;
|
||||
+ (NSSet *)NSSet:(id)json;
|
||||
+ (NSDictionary *)NSDictionary:(id)json;
|
||||
+ (NSString *)NSString:(id)json;
|
||||
+ (NSNumber *)NSNumber:(id)json;
|
||||
|
|
|
@ -35,6 +35,7 @@ RCT_NUMBER_CONVERTER(NSInteger, integerValue)
|
|||
RCT_NUMBER_CONVERTER(NSUInteger, unsignedIntegerValue)
|
||||
|
||||
RCT_CUSTOM_CONVERTER(NSArray *, NSArray, [NSArray arrayWithArray:json])
|
||||
RCT_CUSTOM_CONVERTER(NSSet *, NSSet, [NSSet setWithArray:json])
|
||||
RCT_CUSTOM_CONVERTER(NSDictionary *, NSDictionary, [NSDictionary dictionaryWithDictionary:json])
|
||||
RCT_CONVERTER(NSString *, NSString, description)
|
||||
|
||||
|
|
Loading…
Reference in New Issue