RCTConvert+RNPermissionsStatus.m 739B

12345678910111213141516171819202122
  1. //
  2. // RCTConvert+RNPermissionsStatus.m
  3. // ReactNativePermissions
  4. //
  5. // Created by Yonah Forst on 23/03/16.
  6. // Copyright © 2016 Yonah Forst. All rights reserved.
  7. //
  8. #import "RCTConvert+RNPermissionsStatus.h"
  9. @implementation RCTConvert (RNPermissionsStatus)
  10. RCT_ENUM_CONVERTER(RNPermissionsStatus, (@{ @"StatusUndetermined" : @(RNPermissionsStatusUndetermined),
  11. @"StatusDenied" : @(RNPermissionsStatusDenied),
  12. @"StatusAuthorized" : @(RNPermissionsStatusAuthorized),
  13. @"StatusRestricted" : @(RNPermissionsStatusRestricted)}),
  14. RNPermissionsStatusUndetermined, integerValue)
  15. @end