RCTConvert+RNPStatus.h 740 B

123456789101112131415161718192021222324252627282930313233
  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. RNPTypePhoto,
  24. RNPTypeNotification,
  25. };
  26. @interface RCTConvert (RNPStatus)
  27. @end