RCTConvert+RNPStatus.m 1.1KB

12345678910111213141516171819202122232425262728
  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. }),
  22. RNPTypeUnknown, integerValue)
  23. @end