RCTConvert+RNPStatus.h 904B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #if __has_include(<React/RCTConvert.h>)
  9. #import <React/RCTConvert.h>
  10. #elif __has_include("React/RCTConvert.h")
  11. #import "React/RCTConvert.h"
  12. #else
  13. #import "RCTConvert.h"
  14. #endif
  15. static NSString* RNPStatusUndetermined = @"undetermined";
  16. static NSString* RNPStatusDenied = @"denied";
  17. static NSString* RNPStatusAuthorized = @"authorized";
  18. static NSString* RNPStatusRestricted = @"restricted";
  19. typedef NS_ENUM(NSInteger, RNPType) {
  20. RNPTypeUnknown,
  21. RNPTypeLocation,
  22. RNPTypeCamera,
  23. RNPTypeMicrophone,
  24. RNPTypePhoto,
  25. RNPTypeContacts,
  26. RNPTypeEvent,
  27. RNPTypeReminder,
  28. RNPTypeBluetooth,
  29. RNPTypeNotification,
  30. RNPTypeBackgroundRefresh,
  31. RNPTypeSpeechRecognition
  32. };
  33. @interface RCTConvert (RNPStatus)
  34. @end