Files
react-native-code-push/ios/CodePush/RCTConvert+CodePushUpdateState.m
Christopher Dro 25851d24a1 Update header imports for RN 0.40 (#670)
This PR has been tested with the other two PRs for the RN 0.40.
2017-01-23 18:21:03 -08:00

16 lines
683 B
Objective-C

#import "CodePush.h"
#import <React/RCTConvert.h>
// Extending the RCTConvert class allows the React Native
// bridge to handle args of type "CodePushUpdateState"
@implementation RCTConvert (CodePushUpdateState)
RCT_ENUM_CONVERTER(CodePushUpdateState, (@{ @"codePushUpdateStateRunning": @(CodePushUpdateStateRunning),
@"codePushUpdateStatePending": @(CodePushUpdateStatePending),
@"codePushUpdateStateLatest": @(CodePushUpdateStateLatest)
}),
CodePushUpdateStateRunning, // Default enum value
integerValue)
@end