RCTConvert+RNPStatus.h 721B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // RCTConvert+RNPStatus
  3. // ReactNativePermissions
  4. //
  5. // Created by Yonah Forst on 23/03/16.
  6. // Copyright © 2016 Yonah Forst. All rights reserved.
  7. //
  8. #import <React/RCTConvert.h>
  9. static NSString* RNPStatusUndetermined = @"undetermined";
  10. static NSString* RNPStatusDenied = @"denied";
  11. static NSString* RNPStatusAuthorized = @"authorized";
  12. static NSString* RNPStatusRestricted = @"restricted";
  13. typedef NS_ENUM(NSInteger, RNPType) {
  14. RNPTypeUnknown,
  15. RNPTypeLocation,
  16. RNPTypeCamera,
  17. RNPTypeMicrophone,
  18. RNPTypePhoto,
  19. RNPTypeContacts,
  20. RNPTypeEvent,
  21. RNPTypeReminder,
  22. RNPTypeBluetooth,
  23. RNPTypeNotification,
  24. RNPTypeBackgroundRefresh
  25. };
  26. @interface RCTConvert (RNPStatus)
  27. @end