RCTConvert+RNPStatus.m 1.2KB

123456789101112131415161718192021222324252627282930
  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+RNPStatus.h"
  9. @implementation RCTConvert (RNPStatus)
  10. RCT_ENUM_CONVERTER(RNPType, (@{ @"location" : @(RNPTypeLocation),
  11. @"camera" : @(RNPTypeCamera),
  12. @"microphone" : @(RNPTypeMicrophone),
  13. @"photo" : @(RNPTypePhoto),
  14. @"contacts" : @(RNPTypeContacts),
  15. @"event" : @(RNPTypeEvent),
  16. @"reminder" : @(RNPTypeReminder),
  17. @"bluetooth" : @(RNPTypeBluetooth),
  18. @"notification" : @(RNPTypeNotification),
  19. @"backgroundRefresh": @(RNPTypeBackgroundRefresh),
  20. @"speechRecognition": @(RNPTypeSpeechRecognition),
  21. @"mediaLibrary": @(RNPTypeMediaLibrary),
  22. @"motion": @(RNPTypeMotion)
  23. }),
  24. RNPTypeUnknown, integerValue)
  25. @end