forked from zoontek/react-native-permissions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RCTConvert+RNPStatus.m
27 lines (22 loc) · 1023 Bytes
/
RCTConvert+RNPStatus.m
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
//
// RCTConvert+RNPermissionsStatus.m
// ReactNativePermissions
//
// Created by Yonah Forst on 23/03/16.
// Copyright © 2016 Yonah Forst. All rights reserved.
//
#import "RCTConvert+RNPStatus.h"
@implementation RCTConvert (RNPStatus)
RCT_ENUM_CONVERTER(RNPType, (@{ @"location" : @(RNPTypeLocation),
@"camera" : @(RNPTypeCamera),
@"microphone" : @(RNPTypeMicrophone),
@"photo" : @(RNPTypePhoto),
@"contacts" : @(RNPTypeContacts),
@"event" : @(RNPTypeEvent),
@"reminder" : @(RNPTypeReminder),
@"bluetooth" : @(RNPTypeBluetooth),
@"notification" : @(RNPTypeNotification),
@"backgroundRefresh": @(RNPTypeBackgroundRefresh)
}),
RNPTypeUnknown, integerValue)
@end