├── .gitignore ├── RCTSFSafariViewController.h ├── RCTSFSafariViewController.m ├── RCTSFSafariViewController.podspec ├── RCTSFSafariViewController.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── README.md ├── index.android.js ├── index.ios.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | DerivedData 3 | *.pbxuser 4 | !default.pbxuser 5 | *.mode1v3 6 | !default.mode1v3 7 | *.mode2v3 8 | !default.mode2v3 9 | *.perspectivev3 10 | !default.perspectivev3 11 | xcuserdata 12 | *.xccheckout 13 | *.moved-aside 14 | *.xcuserstate 15 | -------------------------------------------------------------------------------- /RCTSFSafariViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @import SafariServices; 7 | 8 | @interface RCTSFSafariViewController : NSObject 9 | @end 10 | -------------------------------------------------------------------------------- /RCTSFSafariViewController.m: -------------------------------------------------------------------------------- 1 | #import "RCTSFSafariViewController.h" 2 | 3 | @implementation RCTSFSafariViewController 4 | 5 | @synthesize bridge = _bridge; 6 | 7 | RCT_EXPORT_MODULE(); 8 | 9 | - (void)safariViewControllerDidFinish:(SFSafariViewController *)controller { 10 | [self.bridge.eventDispatcher sendAppEventWithName:@"SFSafariViewControllerDismissed" body:nil]; 11 | } 12 | 13 | RCT_EXPORT_METHOD(openURL:(NSString *)urlString params:(NSDictionary *)params) { 14 | NSURL *url = [[NSURL alloc] initWithString:urlString]; 15 | 16 | UIViewController *rootViewController = [[[UIApplication sharedApplication] delegate] window].rootViewController; 17 | while(rootViewController.presentedViewController) { 18 | rootViewController = rootViewController.presentedViewController; 19 | } 20 | 21 | SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:url]; 22 | UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:safariViewController]; 23 | 24 | [navigationController setNavigationBarHidden:YES animated:NO]; 25 | safariViewController.delegate = self; 26 | 27 | if ([params objectForKey:@"tintColor"]) { 28 | UIColor *tintColor = [RCTConvert UIColor:params[@"tintColor"]]; 29 | 30 | if([safariViewController respondsToSelector:@selector(setPreferredControlTintColor:)]) { 31 | safariViewController.preferredControlTintColor = tintColor; 32 | } else { 33 | safariViewController.view.tintColor = tintColor; 34 | } 35 | } 36 | 37 | dispatch_async(dispatch_get_main_queue(), ^{ 38 | [rootViewController presentViewController:navigationController animated:YES completion:^{ 39 | [self.bridge.eventDispatcher sendDeviceEventWithName:@"SFSafariViewControllerDidLoad" body:nil]; 40 | }]; 41 | }); 42 | } 43 | 44 | RCT_EXPORT_METHOD(close) { 45 | dispatch_async(dispatch_get_main_queue(), ^{ 46 | UIViewController *rootViewController = [[[UIApplication sharedApplication] delegate] window].rootViewController; 47 | [rootViewController dismissViewControllerAnimated:YES completion:nil]; 48 | }); 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /RCTSFSafariViewController.podspec: -------------------------------------------------------------------------------- 1 | require 'json' 2 | 3 | Pod::Spec.new do |s| 4 | # NPM package specification 5 | package = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'package.json'))) 6 | 7 | s.name = 'RCTSFSafariViewController' 8 | s.version = package['version'] 9 | s.license = 'MIT' 10 | s.summary = 'An SFSafariViewController wrapper for React Native presenting Safari View in a modal' 11 | s.author = { 'Michał Siwek' => 'mike21@aol.pl' } 12 | s.homepage = "https://github.com/jsierles/react-native-audio" 13 | s.source = { :git => 'https://github.com/n8armstrong/react-native-sfsafariviewcontroller'} 14 | s.platform = :ios, '9.0' 15 | s.preserve_paths = '*.js' 16 | s.frameworks = 'SafariServices' 17 | 18 | s.dependency 'React' 19 | 20 | s.source_files = 'RCTSFSafariViewController.{h,m}' 21 | end 22 | 23 | -------------------------------------------------------------------------------- /RCTSFSafariViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6524D41D1D2FB11A0060C92E /* RCTSFSafariViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6524D41C1D2FB11A0060C92E /* RCTSFSafariViewController.m */; }; 11 | /* End PBXBuildFile section */ 12 | 13 | /* Begin PBXCopyFilesBuildPhase section */ 14 | 6524D40D1D2FAE0F0060C92E /* CopyFiles */ = { 15 | isa = PBXCopyFilesBuildPhase; 16 | buildActionMask = 2147483647; 17 | dstPath = "include/$(PRODUCT_NAME)"; 18 | dstSubfolderSpec = 16; 19 | files = ( 20 | ); 21 | runOnlyForDeploymentPostprocessing = 0; 22 | }; 23 | /* End PBXCopyFilesBuildPhase section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 6524D40F1D2FAE0F0060C92E /* libRCTSFSafariViewController.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTSFSafariViewController.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 6524D41B1D2FB1060060C92E /* RCTSFSafariViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSFSafariViewController.h; sourceTree = ""; }; 28 | 6524D41C1D2FB11A0060C92E /* RCTSFSafariViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSFSafariViewController.m; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 6524D40C1D2FAE0F0060C92E /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 6524D4061D2FAE0F0060C92E = { 43 | isa = PBXGroup; 44 | children = ( 45 | 6524D41B1D2FB1060060C92E /* RCTSFSafariViewController.h */, 46 | 6524D41C1D2FB11A0060C92E /* RCTSFSafariViewController.m */, 47 | 6524D4101D2FAE0F0060C92E /* Products */, 48 | ); 49 | sourceTree = ""; 50 | }; 51 | 6524D4101D2FAE0F0060C92E /* Products */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | 6524D40F1D2FAE0F0060C92E /* libRCTSFSafariViewController.a */, 55 | ); 56 | name = Products; 57 | sourceTree = ""; 58 | }; 59 | /* End PBXGroup section */ 60 | 61 | /* Begin PBXNativeTarget section */ 62 | 6524D40E1D2FAE0F0060C92E /* RCTSFSafariViewController */ = { 63 | isa = PBXNativeTarget; 64 | buildConfigurationList = 6524D4181D2FAE0F0060C92E /* Build configuration list for PBXNativeTarget "RCTSFSafariViewController" */; 65 | buildPhases = ( 66 | 6524D40B1D2FAE0F0060C92E /* Sources */, 67 | 6524D40C1D2FAE0F0060C92E /* Frameworks */, 68 | 6524D40D1D2FAE0F0060C92E /* CopyFiles */, 69 | ); 70 | buildRules = ( 71 | ); 72 | dependencies = ( 73 | ); 74 | name = RCTSFSafariViewController; 75 | productName = RNSFSafariViewController; 76 | productReference = 6524D40F1D2FAE0F0060C92E /* libRCTSFSafariViewController.a */; 77 | productType = "com.apple.product-type.library.static"; 78 | }; 79 | /* End PBXNativeTarget section */ 80 | 81 | /* Begin PBXProject section */ 82 | 6524D4071D2FAE0F0060C92E /* Project object */ = { 83 | isa = PBXProject; 84 | attributes = { 85 | LastUpgradeCheck = 0730; 86 | ORGANIZATIONNAME = "Michał Siwek"; 87 | TargetAttributes = { 88 | 6524D40E1D2FAE0F0060C92E = { 89 | CreatedOnToolsVersion = 7.3.1; 90 | }; 91 | }; 92 | }; 93 | buildConfigurationList = 6524D40A1D2FAE0F0060C92E /* Build configuration list for PBXProject "RCTSFSafariViewController" */; 94 | compatibilityVersion = "Xcode 3.2"; 95 | developmentRegion = English; 96 | hasScannedForEncodings = 0; 97 | knownRegions = ( 98 | en, 99 | ); 100 | mainGroup = 6524D4061D2FAE0F0060C92E; 101 | productRefGroup = 6524D4101D2FAE0F0060C92E /* Products */; 102 | projectDirPath = ""; 103 | projectRoot = ""; 104 | targets = ( 105 | 6524D40E1D2FAE0F0060C92E /* RCTSFSafariViewController */, 106 | ); 107 | }; 108 | /* End PBXProject section */ 109 | 110 | /* Begin PBXSourcesBuildPhase section */ 111 | 6524D40B1D2FAE0F0060C92E /* Sources */ = { 112 | isa = PBXSourcesBuildPhase; 113 | buildActionMask = 2147483647; 114 | files = ( 115 | 6524D41D1D2FB11A0060C92E /* RCTSFSafariViewController.m in Sources */, 116 | ); 117 | runOnlyForDeploymentPostprocessing = 0; 118 | }; 119 | /* End PBXSourcesBuildPhase section */ 120 | 121 | /* Begin XCBuildConfiguration section */ 122 | 6524D4161D2FAE0F0060C92E /* Debug */ = { 123 | isa = XCBuildConfiguration; 124 | buildSettings = { 125 | ALWAYS_SEARCH_USER_PATHS = NO; 126 | CLANG_ANALYZER_NONNULL = YES; 127 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 128 | CLANG_CXX_LIBRARY = "libc++"; 129 | CLANG_ENABLE_MODULES = YES; 130 | CLANG_ENABLE_OBJC_ARC = YES; 131 | CLANG_WARN_BOOL_CONVERSION = YES; 132 | CLANG_WARN_CONSTANT_CONVERSION = YES; 133 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 134 | CLANG_WARN_EMPTY_BODY = YES; 135 | CLANG_WARN_ENUM_CONVERSION = YES; 136 | CLANG_WARN_INT_CONVERSION = YES; 137 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 138 | CLANG_WARN_UNREACHABLE_CODE = YES; 139 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 140 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 141 | COPY_PHASE_STRIP = NO; 142 | DEBUG_INFORMATION_FORMAT = dwarf; 143 | ENABLE_STRICT_OBJC_MSGSEND = YES; 144 | ENABLE_TESTABILITY = YES; 145 | GCC_C_LANGUAGE_STANDARD = gnu99; 146 | GCC_DYNAMIC_NO_PIC = NO; 147 | GCC_NO_COMMON_BLOCKS = YES; 148 | GCC_OPTIMIZATION_LEVEL = 0; 149 | GCC_PREPROCESSOR_DEFINITIONS = ( 150 | "DEBUG=1", 151 | "$(inherited)", 152 | ); 153 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 154 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 155 | GCC_WARN_UNDECLARED_SELECTOR = YES; 156 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 157 | GCC_WARN_UNUSED_FUNCTION = YES; 158 | GCC_WARN_UNUSED_VARIABLE = YES; 159 | HEADER_SEARCH_PATHS = ( 160 | "$(inherited)", 161 | "$(SRCROOT)/../react-native/React/**", 162 | ); 163 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 164 | MTL_ENABLE_DEBUG_INFO = YES; 165 | ONLY_ACTIVE_ARCH = YES; 166 | SDKROOT = iphoneos; 167 | }; 168 | name = Debug; 169 | }; 170 | 6524D4171D2FAE0F0060C92E /* Release */ = { 171 | isa = XCBuildConfiguration; 172 | buildSettings = { 173 | ALWAYS_SEARCH_USER_PATHS = NO; 174 | CLANG_ANALYZER_NONNULL = YES; 175 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 176 | CLANG_CXX_LIBRARY = "libc++"; 177 | CLANG_ENABLE_MODULES = YES; 178 | CLANG_ENABLE_OBJC_ARC = YES; 179 | CLANG_WARN_BOOL_CONVERSION = YES; 180 | CLANG_WARN_CONSTANT_CONVERSION = YES; 181 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 182 | CLANG_WARN_EMPTY_BODY = YES; 183 | CLANG_WARN_ENUM_CONVERSION = YES; 184 | CLANG_WARN_INT_CONVERSION = YES; 185 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 186 | CLANG_WARN_UNREACHABLE_CODE = YES; 187 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 188 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 189 | COPY_PHASE_STRIP = NO; 190 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 191 | ENABLE_NS_ASSERTIONS = NO; 192 | ENABLE_STRICT_OBJC_MSGSEND = YES; 193 | GCC_C_LANGUAGE_STANDARD = gnu99; 194 | GCC_NO_COMMON_BLOCKS = YES; 195 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 196 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 197 | GCC_WARN_UNDECLARED_SELECTOR = YES; 198 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 199 | GCC_WARN_UNUSED_FUNCTION = YES; 200 | GCC_WARN_UNUSED_VARIABLE = YES; 201 | HEADER_SEARCH_PATHS = ( 202 | "$(inherited)", 203 | "$(SRCROOT)/../react-native/React/**", 204 | ); 205 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 206 | MTL_ENABLE_DEBUG_INFO = NO; 207 | SDKROOT = iphoneos; 208 | VALIDATE_PRODUCT = YES; 209 | }; 210 | name = Release; 211 | }; 212 | 6524D4191D2FAE0F0060C92E /* Debug */ = { 213 | isa = XCBuildConfiguration; 214 | buildSettings = { 215 | OTHER_LDFLAGS = "-ObjC"; 216 | PRODUCT_NAME = RCTSFSafariViewController; 217 | SKIP_INSTALL = YES; 218 | }; 219 | name = Debug; 220 | }; 221 | 6524D41A1D2FAE0F0060C92E /* Release */ = { 222 | isa = XCBuildConfiguration; 223 | buildSettings = { 224 | OTHER_LDFLAGS = "-ObjC"; 225 | PRODUCT_NAME = RCTSFSafariViewController; 226 | SKIP_INSTALL = YES; 227 | }; 228 | name = Release; 229 | }; 230 | /* End XCBuildConfiguration section */ 231 | 232 | /* Begin XCConfigurationList section */ 233 | 6524D40A1D2FAE0F0060C92E /* Build configuration list for PBXProject "RCTSFSafariViewController" */ = { 234 | isa = XCConfigurationList; 235 | buildConfigurations = ( 236 | 6524D4161D2FAE0F0060C92E /* Debug */, 237 | 6524D4171D2FAE0F0060C92E /* Release */, 238 | ); 239 | defaultConfigurationIsVisible = 0; 240 | defaultConfigurationName = Release; 241 | }; 242 | 6524D4181D2FAE0F0060C92E /* Build configuration list for PBXNativeTarget "RCTSFSafariViewController" */ = { 243 | isa = XCConfigurationList; 244 | buildConfigurations = ( 245 | 6524D4191D2FAE0F0060C92E /* Debug */, 246 | 6524D41A1D2FAE0F0060C92E /* Release */, 247 | ); 248 | defaultConfigurationIsVisible = 0; 249 | defaultConfigurationName = Release; 250 | }; 251 | /* End XCConfigurationList section */ 252 | }; 253 | rootObject = 6524D4071D2FAE0F0060C92E /* Project object */; 254 | } 255 | -------------------------------------------------------------------------------- /RCTSFSafariViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | react-native-sfsafariviewcontroller 2 | ======================= 3 | An SFSafariViewController wrapper for React Native presenting Safari View in a modal (contrary to slide-in navigation item). 4 | 5 | ## Installation 6 | 7 | 1. Run `npm install react-native-sfsafariviewcontroller --save` in your project directory. 8 | - Make sure you have the `UIKit` framework included in your XCode project 9 | - Open your project in XCode, right click on `Libraries` and click `Add Files to "Your Project Name"` 10 | - Inside your node_modules, find react-native-sfsafariviewcontroller and add `RCTSFSafariViewController.xcodeproj` to your project. 11 | - Add `libRCTFSafariViewController.m.a` to `Build Phases -> Link Binary With Libraries` 12 | - Whenever you want to use it within your React code - `import RCTSFSafariViewController from 'react-native-sfsafariviewcontroller'` 13 | 14 | ## Usage 15 | 16 | ``` 17 | // at the top of your file near the other imports 18 | import RCTSFSafariViewController from 'react-native-sfsafariviewcontroller'; 19 | 20 | ... 21 | 22 | // wherever you want to trigger a browser modal appearing 23 | RCTSFSafariViewController.open('https://google.com/'); 24 | 25 | // or with custom options 26 | RCTSFSafariViewController.open('https://google.com/', { 27 | tintColor: '#90c3d4', 28 | }); 29 | 30 | // Close the browser modal from your React Native code if needed 31 | RCTSFSafariViewController.close(); 32 | 33 | ``` 34 | 35 | ## Events 36 | 37 | ``` 38 | // onLoad (when the modal has fully appeared) 39 | RCTSFSafariViewController.addEventListener('onLoad', () => console.log('RCTSafariViewController is now visible!')); 40 | 41 | // onDismiss (when the user has tapped on 'Done') 42 | RCTSFSafariViewController.addEventListener('onDismiss', () => console.log('RCTSafariViewController will now disappear')); 43 | 44 | // remove listeners once you don't need them anymore 45 | RCTSFSafariViewController.removeEventListener('onLoad', this.someLoadListenerReference); 46 | RCTSFSafariViewController.removeEventListener('onDismiss', this.someDismissListenerReference); 47 | 48 | // alternative approach 49 | const subscription = RCTSFSafariViewController.addEventListener('onLoad', () => console.log('RCTSafariViewController is now visible!')); 50 | subscription.remove(); 51 | 52 | ``` 53 | 54 | ## License 55 | (The MIT License) 56 | 57 | Copyright (c) 2016 Michal Siwek 58 | 59 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 60 | 61 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 62 | 63 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 64 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @providesModule RCTSFSafariViewController 3 | * @flow 4 | */ 5 | 'use strict'; 6 | 7 | var RCTSFSafariViewController = { 8 | test: function() { 9 | alert('Not implemented for Android.'); 10 | } 11 | }; 12 | 13 | module.exports = RCTSFSafariViewController; 14 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @providesModule RCTSFSafariViewController 3 | * @flow 4 | */ 5 | 'use strict'; 6 | 7 | var React = require('react-native'); 8 | var { 9 | NativeModules: { 10 | SFSafariViewController, 11 | }, 12 | NativeAppEventEmitter, 13 | DeviceEventEmitter, 14 | processColor, 15 | } = React; 16 | 17 | var RCTSFSafariViewControllerExport = { 18 | open: function(url, options={}) { 19 | var parsedOptions = {}; 20 | 21 | if(options.tintColor) 22 | parsedOptions.tintColor = processColor(options.tintColor); 23 | 24 | SFSafariViewController.openURL(url, parsedOptions); 25 | }, 26 | 27 | close: function() { 28 | SFSafariViewController.close(); 29 | }, 30 | 31 | addEventListener(eventName, listener) { 32 | if(eventName == 'onLoad') 33 | return NativeAppEventEmitter.addListener('SFSafariViewControllerDidLoad', listener); 34 | 35 | if(eventName == 'onDismiss') 36 | return NativeAppEventEmitter.addListener('SFSafariViewControllerDismissed', listener); 37 | }, 38 | 39 | removeEventListener(eventName, listener) { 40 | if(eventName == 'onLoad') 41 | NativeAppEventEmitter.removeListener('SFSafariViewControllerDidLoad', listener); 42 | 43 | if(eventName == 'onDismiss') 44 | NativeAppEventEmitter.removeListener('SFSafariViewControllerDismissed', listener); 45 | } 46 | }; 47 | 48 | module.exports = RCTSFSafariViewControllerExport; 49 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-sfsafariviewcontroller", 3 | "version": "0.2.6", 4 | "description": "An SFSafariViewController wrapper for React Native presenting Safari View in a modal", 5 | "main": "index.ios.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/skycocker/react-native-sfsafariviewcontroller" 12 | }, 13 | "keywords": [ 14 | "react-component", 15 | "react-native", 16 | "ios", 17 | "react", 18 | "native", 19 | "web", 20 | "browser", 21 | "webbrowser", 22 | "webview", 23 | "uiwebview", 24 | "SFSafariViewController" 25 | ], 26 | "author": "Michal Siwek (https://github.com/skycocker)", 27 | "license": "MIT", 28 | "bugs": { 29 | "url": "https://github.com/skycocker/react-native-sfsafariviewcontroller/issues" 30 | }, 31 | "homepage": "https://github.com/skycocker/react-native-sfsafariviewcontroller#readme", 32 | "peerDependencies": { 33 | "react-native": ">=0.5" 34 | } 35 | } 36 | --------------------------------------------------------------------------------