|
@@ -47,6 +47,15 @@ RCT_EXPORT_MODULE();
|
47
|
47
|
@"StatusRestricted" : @(RNPermissionsStatusRestricted)};
|
48
|
48
|
};
|
49
|
49
|
|
|
50
|
+RCT_EXPORT_METHOD(openSettings)
|
|
51
|
+{
|
|
52
|
+ BOOL canOpenSettings = (&UIApplicationOpenSettingsURLString != NULL);
|
|
53
|
+ if (canOpenSettings) {
|
|
54
|
+ NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
|
55
|
+ [[UIApplication sharedApplication] openURL:url];
|
|
56
|
+ }
|
|
57
|
+}
|
|
58
|
+
|
50
|
59
|
|
51
|
60
|
RCT_REMAP_METHOD(locationPermissionStatus, locationPermission:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
52
|
61
|
{
|