forked from samarchyan/react-native-permissions
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRCTConvert+RNPStatus.h
More file actions
41 lines (34 loc) · 905 Bytes
/
RCTConvert+RNPStatus.h
File metadata and controls
41 lines (34 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// RCTConvert+RNPStatus
// ReactNativePermissions
//
// Created by Yonah Forst on 23/03/16.
// Copyright © 2016 Yonah Forst. All rights reserved.
//
#if __has_include(<React/RCTConvert.h>)
#import <React/RCTConvert.h>
#elif __has_include("React/RCTConvert.h")
#import "React/RCTConvert.h"
#else
#import "RCTConvert.h"
#endif
static NSString* RNPStatusUndetermined = @"undetermined";
static NSString* RNPStatusDenied = @"denied";
static NSString* RNPStatusAuthorized = @"authorized";
static NSString* RNPStatusRestricted = @"restricted";
typedef NS_ENUM(NSInteger, RNPType) {
RNPTypeUnknown,
RNPTypeLocation,
RNPTypeCamera,
RNPTypeMicrophone,
RNPTypePhoto,
RNPTypeContacts,
RNPTypeEvent,
RNPTypeReminder,
RNPTypeBluetooth,
RNPTypeNotification,
RNPTypeBackgroundRefresh,
RNPTypeSpeechRecognition
};
@interface RCTConvert (RNPStatus)
@end