├── .codeclimate.yml ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .jshintrc ├── .npmignore ├── .travis.yml ├── README.md ├── SafariViewManager.h ├── SafariViewManager.ios.js ├── SafariViewManager.js ├── SafariViewManager.m ├── SafariViewManager.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── examples └── SafariViewExample │ ├── .buckconfig │ ├── .flowconfig │ ├── .gitattributes │ ├── .gitignore │ ├── .watchmanconfig │ ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── safariviewexample │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── keystores │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle │ ├── app.json │ ├── index.android.js │ ├── index.ios.js │ ├── ios │ ├── SafariViewExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── SafariViewExample.xcscheme │ ├── SafariViewExample │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── SafariViewExampleTests │ │ ├── Info.plist │ │ └── SafariViewExampleTests.m │ ├── package.json │ └── yarn.lock ├── index.js ├── package.json └── react-native-safari-view.podspec /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | exclude_paths: 2 | - "TouchID.xcodeproj" 3 | - "**/*.h" 4 | - "**/*.m" 5 | - "**/*.swift" 6 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | examples/ 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "array-bracket-spacing": [2, "never"], 4 | "brace-style": [2, "1tbs"], 5 | "comma-dangle": [2, "never"], 6 | "comma-spacing": [2, { 7 | "before": false, 8 | "after": true 9 | }], 10 | "comma-style": [2, "last"], 11 | "eol-last": 2, 12 | "indent": [2, 2], 13 | "key-spacing": [2, { 14 | "beforeColon": false, 15 | "afterColon": true 16 | }], 17 | "linebreak-style": [2, "unix"], 18 | "max-nested-callbacks": [2, 2], 19 | "new-parens": 2, 20 | "no-nested-ternary": 2, 21 | "no-new-object": 2, 22 | "no-spaced-func": 2, 23 | "no-trailing-spaces": 2, 24 | "no-unneeded-ternary": 2, 25 | "object-curly-spacing": [2, "never"], 26 | "padded-blocks": [2, "never"], 27 | "quote-props": [2, "as-needed"], 28 | "quotes": [2, "single"], 29 | "semi": [2, "always"], 30 | "semi-spacing": [2, { 31 | "before": false, 32 | "after": true 33 | }], 34 | "keyword-spacing": [2, { "before": true, "after": true }], 35 | "space-before-blocks": [2, "always"], 36 | "space-before-function-paren": [2, "never"], 37 | "space-in-parens": [2, "never"], 38 | "space-infix-ops": 2, 39 | "space-unary-ops": [2, { 40 | "words": true, 41 | "nonwords": false 42 | }], 43 | "spaced-comment": [2, "always"], 44 | "wrap-regex": 2 45 | }, 46 | "env": { 47 | "amd": true, 48 | "es6": true, 49 | "node": true 50 | }, 51 | "ecmaFeatures": { 52 | "jsx": true, 53 | "modules": true 54 | }, 55 | "parserOptions": { 56 | "sourceType": "module" 57 | }, 58 | "plugins": [ 59 | "react" 60 | ] 61 | } 62 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # npm 21 | # 22 | node_modules/ 23 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "esnext": true, 3 | "node": true 4 | } 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | examples/ 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: node 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native Safari View 2 | 3 | [![react-native version](https://img.shields.io/badge/react--native-0.40-blue.svg?style=flat-square)](http://facebook.github.io/react-native/releases/0.40) 4 | [![npm version](https://img.shields.io/npm/v/react-native-safari-view.svg?style=flat-square)](https://www.npmjs.com/package/react-native-safari-view) 5 | [![npm downloads](https://img.shields.io/npm/dm/react-native-safari-view.svg?style=flat-square)](https://www.npmjs.com/package/react-native-safari-view) 6 | [![Code Climate](https://img.shields.io/codeclimate/github/naoufal/react-native-safari-view.svg?style=flat-square)](https://codeclimate.com/github/naoufal/react-native-safari-view) 7 | 8 | React Native Safari View is a [Safari View Controller](https://developer.apple.com/videos/wwdc/2015/?id=504) wrapper for [React Native](https://facebook.github.io/react-native/). 9 | 10 | ![react-native-safari-view](https://cloud.githubusercontent.com/assets/1627824/8345135/ed5f7fc4-1ab8-11e5-814a-a3e9df0ede06.gif) 11 | 12 | ## Documentation 13 | - [Install](https://github.com/naoufal/react-native-safari-view#install) 14 | - [Usage](https://github.com/naoufal/react-native-safari-view#usage) 15 | - [Example](https://github.com/naoufal/react-native-safari-view#example) 16 | - [Methods](https://github.com/naoufal/react-native-safari-view#methods) 17 | - [Events](https://github.com/naoufal/react-native-safari-view#events) 18 | - [License](https://github.com/naoufal/react-native-safari-view#license) 19 | 20 | ## Install 21 | ```shell 22 | npm i --save react-native-safari-view 23 | ``` 24 | 25 | ## Support 26 | Due to the rapid changes being made in the React Native ecosystem, we are not officially going to support this module on anything but the latest version of React Native. The current supported version is indicated on the React Native badge at the top of this README. If it's out of date, we encourage you to submit a pull request! 27 | 28 | ## Usage 29 | ### Linking the Library 30 | In order to use Safari View, you must first link the library your project. There's excellent documentation on how to do this in the [React Native Docs](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#content). 31 | 32 | ### Displaying the Safari View 33 | Once you've linked the library, you'll want to make it available to your app by requiring it: 34 | 35 | ```js 36 | var SafariView = require('react-native-safari-view'); 37 | ``` 38 | 39 | Displaying the Safari View is as simple as calling: 40 | ```js 41 | SafariView.show({ 42 | url: 'https://github.com/naoufal' 43 | }); 44 | ``` 45 | 46 | ### URL Change Notifications 47 | There isn't an API for retrieving URL changes provided by SFSafariViewController or its delegate in iOS, so there's no way to know where the user is navigating to. However, it is possible to get a notification when the Safari View navigates to an URL scheme specified by your app (e.g. `your-app-name://`). This is especially useful for implementing callback oriented flows such as in OAuth2 / OpenID Connect. 48 | 49 | To get URL notifications for your URL scheme you'll need to: 50 | 1. Register an [URL scheme](https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html#//apple_ref/doc/uid/TP40007072-CH6-SW10) in your Xcode Project 51 | 2. Make sure you've set up [Linking](https://facebook.github.io/react-native/docs/linking.html) in your react-native project. 52 | 3. Listen for URL changes in your react-native code (i.e. `Linking.addEventListener('url', eventHandler)`); 53 | 54 | 55 | ## Example 56 | Using Safari View in your app will usually look like this: 57 | ```js 58 | import React, { Component } from "react"; 59 | import SafariView from "react-native-safari-view"; 60 | 61 | class YourComponent extends Component { 62 | constructor(props) { 63 | super(props); 64 | } 65 | 66 | _pressHandler() { 67 | SafariView.isAvailable() 68 | .then(SafariView.show({ 69 | url: "https://github.com/naoufal" 70 | })) 71 | .catch(error => { 72 | // Fallback WebView code for iOS 8 and earlier 73 | }); 74 | } 75 | 76 | render() { 77 | return ( 78 | 79 | ... 80 | 83 | 84 | ); 85 | } 86 | } 87 | ``` 88 | 89 | ## Methods 90 | 91 | ### show(safariOptions) 92 | Displays a Safari View with the provided url. 93 | 94 | __Arguments__ 95 | - `safariOptions` - An `Object` containing a `url` key and optionally a `readerMode` key, a `tintColor`, and/or a `barTintColor`. 96 | 97 | __safariOptions__ 98 | - `url` - A `String` containing the url you want to load in the Safari View 99 | - `readerMode` - A `Boolean` indicating to use Safari's Reader Mode if available 100 | - `tintColor` - A `String` containing a hex, rgba or rgba color to use for the browser controls 101 | - `barTintColor` - A `String` containing a hex, rgba or rgba color to use for the background of the browser controls (only available on iOS 10 and higher) 102 | - `fromBottom` - A 'Boolean' indicating to open the Safari View from the bottom 103 | 104 | __Examples__ 105 | ```js 106 | SafariView.show({ 107 | url: "http://facebook.github.io/react/blog/2015/03/26/introducing-react-native.html", 108 | readerMode: true // optional, 109 | tintColor: "#000" // optional 110 | barTintColor: "#fff" // optional 111 | }); 112 | ``` 113 | 114 | ### isAvailable() 115 | Checks if Safari View is available on the device. 116 | 117 | __Example__ 118 | ```js 119 | SafariView.isAvailable() 120 | .then(available => { 121 | console.log("SafariView is available."); 122 | }) 123 | .catch(error => { 124 | console.log(error); 125 | }); 126 | ``` 127 | 128 | ### dismiss() 129 | Dismisses the currently active Safari View. 130 | 131 | __Example__ 132 | ```js 133 | SafariView.dismiss() 134 | ``` 135 | 136 | ## Events 137 | The following events are fired by the Safari View. 138 | 139 | ### onShow 140 | __Example__ 141 | ```js 142 | let showSubscription = SafariView.addEventListener( 143 | "onShow", 144 | () => { 145 | StatusBar.setBarStyle("light-content"); 146 | } 147 | ); 148 | ``` 149 | 150 | ### onDismiss 151 | __Example__ 152 | ```js 153 | let dismissSubscription = SafariView.addEventListener( 154 | "onDismiss", 155 | () => { 156 | StatusBar.setBarStyle("default"); 157 | } 158 | ); 159 | ``` 160 | 161 | ## License 162 | Copyright (c) 2015, [Naoufal Kadhom](http://naoufal.com) 163 | 164 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 165 | 166 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 167 | 168 | -------------------------------------------------------------------------------- /SafariViewManager.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @import SafariServices; 5 | 6 | @interface SafariViewManager : RCTEventEmitter 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /SafariViewManager.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @providesModule SafariViewManager 3 | */ 4 | 'use strict'; 5 | import { 6 | NativeModules, 7 | NativeEventEmitter, 8 | processColor 9 | } from 'react-native'; 10 | 11 | const NativeSafariViewManager = NativeModules.SafariViewManager; 12 | const eventEmitter = new NativeEventEmitter(NativeSafariViewManager); 13 | 14 | export default { 15 | show(options) { 16 | if (options && options.tintColor) { 17 | options.tintColor = processColor(options.tintColor); 18 | } 19 | if (options && options.barTintColor) { 20 | options.barTintColor = processColor(options.barTintColor); 21 | } 22 | 23 | return NativeSafariViewManager.show(options); 24 | }, 25 | 26 | dismiss() { 27 | NativeSafariViewManager.dismiss(); 28 | }, 29 | 30 | isAvailable() { 31 | return NativeSafariViewManager.isAvailable(); 32 | }, 33 | 34 | addEventListener(event, listener) { 35 | if (event === 'onShow') { 36 | return eventEmitter.addListener('SafariViewOnShow', listener); 37 | } else if (event === 'onDismiss') { 38 | return eventEmitter.addListener('SafariViewOnDismiss', listener); 39 | } else { 40 | console.warn(`Trying to subscribe to unknown event: ${event}`); 41 | return { 42 | remove: () => {} 43 | }; 44 | } 45 | }, 46 | 47 | removeEventListener(event, listener) { 48 | if (event === 'onShow') { 49 | eventEmitter.removeListener('SafariViewOnShow', listener); 50 | } else if (event === 'onDismiss') { 51 | eventEmitter.removeListener('SafariViewOnDismiss', listener); 52 | } 53 | } 54 | }; 55 | -------------------------------------------------------------------------------- /SafariViewManager.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Stub of SafariViewManager for everything but iOS. 3 | * 4 | * @providesModule SafariViewManager 5 | */ 6 | 'use strict'; 7 | 8 | export default { 9 | isAvailable() { 10 | return Promise.reject(new Error('SafariView is available only on iOS')); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /SafariViewManager.m: -------------------------------------------------------------------------------- 1 | 2 | #import "SafariViewManager.h" 3 | #import 4 | #import 5 | #import 6 | 7 | @implementation SafariViewManager 8 | { 9 | bool hasListeners; 10 | SFSafariViewController *_safariView; 11 | } 12 | 13 | RCT_EXPORT_MODULE() 14 | 15 | - (dispatch_queue_t)methodQueue 16 | { 17 | return dispatch_get_main_queue(); 18 | } 19 | 20 | - (void)startObserving 21 | { 22 | hasListeners = YES; 23 | } 24 | 25 | - (void)stopObserving 26 | { 27 | hasListeners = NO; 28 | } 29 | 30 | - (NSArray *)supportedEvents 31 | { 32 | return @[@"SafariViewOnShow", @"SafariViewOnDismiss"]; 33 | } 34 | 35 | RCT_EXPORT_METHOD(show:(NSDictionary *)args resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) 36 | { 37 | // Error if no url is passed 38 | if (!args[@"url"]) { 39 | reject(@"E_SAFARI_VIEW_NO_URL", @"You must specify a url.", nil); 40 | return; 41 | } 42 | 43 | NSURL *url = [RCTConvert NSURL:args[@"url"]]; 44 | BOOL readerMode = [args[@"readerMode"] boolValue]; 45 | UIColor *tintColorString = args[@"tintColor"]; 46 | UIColor *barTintColorString = args[@"barTintColor"]; 47 | BOOL fromBottom = [args[@"fromBottom"] boolValue]; 48 | 49 | // Initialize the Safari View 50 | _safariView = [[SFSafariViewController alloc] initWithURL:url entersReaderIfAvailable:readerMode]; 51 | _safariView.delegate = self; 52 | 53 | // Set tintColor if available 54 | if (tintColorString) { 55 | UIColor *tintColor = [RCTConvert UIColor:tintColorString]; 56 | if ([_safariView respondsToSelector:@selector(setPreferredControlTintColor:)]) { 57 | [_safariView setPreferredControlTintColor:tintColor]; 58 | } else { 59 | [_safariView.view setTintColor:tintColor]; 60 | } 61 | } 62 | 63 | // Set barTintColor if available 64 | if (barTintColorString) { 65 | UIColor *barTintColor = [RCTConvert UIColor:barTintColorString]; 66 | if ([_safariView respondsToSelector:@selector(setPreferredBarTintColor:)]) { 67 | [_safariView setPreferredBarTintColor:barTintColor]; 68 | } 69 | } 70 | 71 | // Set modal transition style 72 | if (fromBottom) { 73 | _safariView.modalPresentationStyle = UIModalPresentationOverFullScreen; 74 | } 75 | 76 | // get the view controller closest to the foreground 77 | UIViewController *ctrl = RCTPresentedViewController(); 78 | 79 | // Display the Safari View 80 | [ctrl presentViewController:_safariView animated:YES completion:nil]; 81 | 82 | if (hasListeners) { 83 | [self sendEventWithName:@"SafariViewOnShow" body:nil]; 84 | } 85 | 86 | resolve(@YES); 87 | } 88 | 89 | RCT_EXPORT_METHOD(isAvailable:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) 90 | { 91 | if (@available(iOS 9.0, *)) { 92 | // SafariView is available 93 | resolve(@YES); 94 | } else { 95 | reject(@"E_SAFARI_VIEW_UNAVAILABLE", @"SafariView is unavailable", nil); 96 | } 97 | } 98 | 99 | RCT_EXPORT_METHOD(dismiss) 100 | { 101 | [_safariView dismissViewControllerAnimated:true completion:nil]; 102 | } 103 | 104 | -(void)safariViewControllerDidFinish:(nonnull SFSafariViewController *)controller 105 | { 106 | _safariView = nil; 107 | NSLog(@"[SafariView] SafariView dismissed."); 108 | if (hasListeners) { 109 | [self sendEventWithName:@"SafariViewOnDismiss" body:nil]; 110 | } 111 | } 112 | @end 113 | -------------------------------------------------------------------------------- /SafariViewManager.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13BE3DEE1AC21097009241FE /* SafariViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BE3DED1AC21097009241FE /* SafariViewManager.m */; }; 11 | /* End PBXBuildFile section */ 12 | 13 | /* Begin PBXCopyFilesBuildPhase section */ 14 | 58B511D91A9E6C8500147676 /* 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 | 134814201AA4EA6300B7C361 /* libSafariViewManager.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSafariViewManager.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 13BE3DEC1AC21097009241FE /* SafariViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SafariViewManager.h; sourceTree = ""; }; 28 | 13BE3DED1AC21097009241FE /* SafariViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SafariViewManager.m; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 134814211AA4EA7D00B7C361 /* Products */ = { 43 | isa = PBXGroup; 44 | children = ( 45 | 134814201AA4EA6300B7C361 /* libSafariViewManager.a */, 46 | ); 47 | name = Products; 48 | sourceTree = ""; 49 | }; 50 | 58B511D21A9E6C8500147676 = { 51 | isa = PBXGroup; 52 | children = ( 53 | 13BE3DEC1AC21097009241FE /* SafariViewManager.h */, 54 | 13BE3DED1AC21097009241FE /* SafariViewManager.m */, 55 | 134814211AA4EA7D00B7C361 /* Products */, 56 | ); 57 | sourceTree = ""; 58 | }; 59 | /* End PBXGroup section */ 60 | 61 | /* Begin PBXNativeTarget section */ 62 | 58B511DA1A9E6C8500147676 /* SafariViewManager */ = { 63 | isa = PBXNativeTarget; 64 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "SafariViewManager" */; 65 | buildPhases = ( 66 | 58B511D71A9E6C8500147676 /* Sources */, 67 | 58B511D81A9E6C8500147676 /* Frameworks */, 68 | 58B511D91A9E6C8500147676 /* CopyFiles */, 69 | ); 70 | buildRules = ( 71 | ); 72 | dependencies = ( 73 | ); 74 | name = SafariViewManager; 75 | productName = RCTDataManager; 76 | productReference = 134814201AA4EA6300B7C361 /* libSafariViewManager.a */; 77 | productType = "com.apple.product-type.library.static"; 78 | }; 79 | /* End PBXNativeTarget section */ 80 | 81 | /* Begin PBXProject section */ 82 | 58B511D31A9E6C8500147676 /* Project object */ = { 83 | isa = PBXProject; 84 | attributes = { 85 | LastUpgradeCheck = 0610; 86 | ORGANIZATIONNAME = Facebook; 87 | TargetAttributes = { 88 | 58B511DA1A9E6C8500147676 = { 89 | CreatedOnToolsVersion = 6.1.1; 90 | }; 91 | }; 92 | }; 93 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SafariViewManager" */; 94 | compatibilityVersion = "Xcode 3.2"; 95 | developmentRegion = English; 96 | hasScannedForEncodings = 0; 97 | knownRegions = ( 98 | en, 99 | ); 100 | mainGroup = 58B511D21A9E6C8500147676; 101 | productRefGroup = 58B511D21A9E6C8500147676; 102 | projectDirPath = ""; 103 | projectRoot = ""; 104 | targets = ( 105 | 58B511DA1A9E6C8500147676 /* SafariViewManager */, 106 | ); 107 | }; 108 | /* End PBXProject section */ 109 | 110 | /* Begin PBXSourcesBuildPhase section */ 111 | 58B511D71A9E6C8500147676 /* Sources */ = { 112 | isa = PBXSourcesBuildPhase; 113 | buildActionMask = 2147483647; 114 | files = ( 115 | 13BE3DEE1AC21097009241FE /* SafariViewManager.m in Sources */, 116 | ); 117 | runOnlyForDeploymentPostprocessing = 0; 118 | }; 119 | /* End PBXSourcesBuildPhase section */ 120 | 121 | /* Begin XCBuildConfiguration section */ 122 | 58B511ED1A9E6C8500147676 /* Debug */ = { 123 | isa = XCBuildConfiguration; 124 | buildSettings = { 125 | ALWAYS_SEARCH_USER_PATHS = NO; 126 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 127 | CLANG_CXX_LIBRARY = "libc++"; 128 | CLANG_ENABLE_MODULES = YES; 129 | CLANG_ENABLE_OBJC_ARC = YES; 130 | CLANG_WARN_BOOL_CONVERSION = YES; 131 | CLANG_WARN_CONSTANT_CONVERSION = YES; 132 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 133 | CLANG_WARN_EMPTY_BODY = YES; 134 | CLANG_WARN_ENUM_CONVERSION = YES; 135 | CLANG_WARN_INT_CONVERSION = YES; 136 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 137 | CLANG_WARN_UNREACHABLE_CODE = YES; 138 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 139 | COPY_PHASE_STRIP = NO; 140 | ENABLE_STRICT_OBJC_MSGSEND = YES; 141 | GCC_C_LANGUAGE_STANDARD = gnu99; 142 | GCC_DYNAMIC_NO_PIC = NO; 143 | GCC_OPTIMIZATION_LEVEL = 0; 144 | GCC_PREPROCESSOR_DEFINITIONS = ( 145 | "DEBUG=1", 146 | "$(inherited)", 147 | ); 148 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 149 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 150 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 151 | GCC_WARN_UNDECLARED_SELECTOR = YES; 152 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 153 | GCC_WARN_UNUSED_FUNCTION = YES; 154 | GCC_WARN_UNUSED_VARIABLE = YES; 155 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 156 | MTL_ENABLE_DEBUG_INFO = YES; 157 | ONLY_ACTIVE_ARCH = YES; 158 | SDKROOT = iphoneos; 159 | }; 160 | name = Debug; 161 | }; 162 | 58B511EE1A9E6C8500147676 /* Release */ = { 163 | isa = XCBuildConfiguration; 164 | buildSettings = { 165 | ALWAYS_SEARCH_USER_PATHS = NO; 166 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 167 | CLANG_CXX_LIBRARY = "libc++"; 168 | CLANG_ENABLE_MODULES = YES; 169 | CLANG_ENABLE_OBJC_ARC = YES; 170 | CLANG_WARN_BOOL_CONVERSION = YES; 171 | CLANG_WARN_CONSTANT_CONVERSION = YES; 172 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 173 | CLANG_WARN_EMPTY_BODY = YES; 174 | CLANG_WARN_ENUM_CONVERSION = YES; 175 | CLANG_WARN_INT_CONVERSION = YES; 176 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 177 | CLANG_WARN_UNREACHABLE_CODE = YES; 178 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 179 | COPY_PHASE_STRIP = YES; 180 | ENABLE_NS_ASSERTIONS = NO; 181 | ENABLE_STRICT_OBJC_MSGSEND = YES; 182 | GCC_C_LANGUAGE_STANDARD = gnu99; 183 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 184 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 185 | GCC_WARN_UNDECLARED_SELECTOR = YES; 186 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 187 | GCC_WARN_UNUSED_FUNCTION = YES; 188 | GCC_WARN_UNUSED_VARIABLE = YES; 189 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 190 | MTL_ENABLE_DEBUG_INFO = NO; 191 | SDKROOT = iphoneos; 192 | VALIDATE_PRODUCT = YES; 193 | }; 194 | name = Release; 195 | }; 196 | 58B511F01A9E6C8500147676 /* Debug */ = { 197 | isa = XCBuildConfiguration; 198 | buildSettings = { 199 | HEADER_SEARCH_PATHS = ( 200 | "$(inherited)", 201 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 202 | "$(SRCROOT)/../../React/**", 203 | "$(SRCROOT)/../../node_modules/react-native/React/**", 204 | ); 205 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 206 | OTHER_LDFLAGS = "-ObjC"; 207 | PRODUCT_NAME = SafariViewManager; 208 | SKIP_INSTALL = YES; 209 | }; 210 | name = Debug; 211 | }; 212 | 58B511F11A9E6C8500147676 /* Release */ = { 213 | isa = XCBuildConfiguration; 214 | buildSettings = { 215 | HEADER_SEARCH_PATHS = ( 216 | "$(inherited)", 217 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 218 | "$(SRCROOT)/../../React/**", 219 | "$(SRCROOT)/../../node_modules/react-native/React/**", 220 | ); 221 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 222 | OTHER_LDFLAGS = "-ObjC"; 223 | PRODUCT_NAME = SafariViewManager; 224 | SKIP_INSTALL = YES; 225 | }; 226 | name = Release; 227 | }; 228 | /* End XCBuildConfiguration section */ 229 | 230 | /* Begin XCConfigurationList section */ 231 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SafariViewManager" */ = { 232 | isa = XCConfigurationList; 233 | buildConfigurations = ( 234 | 58B511ED1A9E6C8500147676 /* Debug */, 235 | 58B511EE1A9E6C8500147676 /* Release */, 236 | ); 237 | defaultConfigurationIsVisible = 0; 238 | defaultConfigurationName = Release; 239 | }; 240 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "SafariViewManager" */ = { 241 | isa = XCConfigurationList; 242 | buildConfigurations = ( 243 | 58B511F01A9E6C8500147676 /* Debug */, 244 | 58B511F11A9E6C8500147676 /* Release */, 245 | ); 246 | defaultConfigurationIsVisible = 0; 247 | defaultConfigurationName = Release; 248 | }; 249 | /* End XCConfigurationList section */ 250 | }; 251 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 252 | } 253 | -------------------------------------------------------------------------------- /SafariViewManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/SafariViewExample/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /examples/SafariViewExample/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | emoji=true 26 | 27 | module.system=haste 28 | 29 | munge_underscores=true 30 | 31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 32 | 33 | suppress_type=$FlowIssue 34 | suppress_type=$FlowFixMe 35 | suppress_type=$FixMe 36 | 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 41 | 42 | unsafe.enable_getters_and_setters=true 43 | 44 | [version] 45 | ^0.49.1 46 | -------------------------------------------------------------------------------- /examples/SafariViewExample/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /examples/SafariViewExample/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 50 | 51 | fastlane/report.xml 52 | fastlane/Preview.html 53 | fastlane/screenshots 54 | package-lock.json 55 | -------------------------------------------------------------------------------- /examples/SafariViewExample/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.safariviewexample", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.safariviewexample", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | apply from: "../../node_modules/react-native/react.gradle" 76 | 77 | /** 78 | * Set this to true to create two separate APKs instead of one: 79 | * - An APK that only works on ARM devices 80 | * - An APK that only works on x86 devices 81 | * The advantage is the size of the APK is reduced by about 4MB. 82 | * Upload all the APKs to the Play Store and people will download 83 | * the correct one based on the CPU architecture of their device. 84 | */ 85 | def enableSeparateBuildPerCPUArchitecture = false 86 | 87 | /** 88 | * Run Proguard to shrink the Java bytecode in release builds. 89 | */ 90 | def enableProguardInReleaseBuilds = false 91 | 92 | android { 93 | compileSdkVersion 23 94 | buildToolsVersion "23.0.1" 95 | 96 | defaultConfig { 97 | applicationId "com.safariviewexample" 98 | minSdkVersion 16 99 | targetSdkVersion 22 100 | versionCode 1 101 | versionName "1.0" 102 | ndk { 103 | abiFilters "armeabi-v7a", "x86" 104 | } 105 | } 106 | splits { 107 | abi { 108 | reset() 109 | enable enableSeparateBuildPerCPUArchitecture 110 | universalApk false // If true, also generate a universal APK 111 | include "armeabi-v7a", "x86" 112 | } 113 | } 114 | buildTypes { 115 | release { 116 | minifyEnabled enableProguardInReleaseBuilds 117 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 118 | } 119 | } 120 | // applicationVariants are e.g. debug, release 121 | applicationVariants.all { variant -> 122 | variant.outputs.each { output -> 123 | // For each separate APK per architecture, set a unique version code as described here: 124 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 125 | def versionCodes = ["armeabi-v7a":1, "x86":2] 126 | def abi = output.getFilter(OutputFile.ABI) 127 | if (abi != null) { // null for the universal-debug, universal-release variants 128 | output.versionCodeOverride = 129 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 130 | } 131 | } 132 | } 133 | } 134 | 135 | dependencies { 136 | compile fileTree(dir: "libs", include: ["*.jar"]) 137 | compile "com.android.support:appcompat-v7:23.0.1" 138 | compile "com.facebook.react:react-native:+" // From node_modules 139 | } 140 | 141 | // Run this once to be able to run the application with BUCK 142 | // puts all compile dependencies into folder libs for BUCK to use 143 | task copyDownloadableDepsToLibs(type: Copy) { 144 | from configurations.compile 145 | into 'libs' 146 | } 147 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/java/com/safariviewexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.safariviewexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "SafariViewExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/java/com/safariviewexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.safariviewexample; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | 11 | import java.util.Arrays; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | return Arrays.asList( 25 | new MainReactPackage() 26 | ); 27 | } 28 | }; 29 | 30 | @Override 31 | public ReactNativeHost getReactNativeHost() { 32 | return mReactNativeHost; 33 | } 34 | 35 | @Override 36 | public void onCreate() { 37 | super.onCreate(); 38 | SoLoader.init(this, /* native exopackage */ false); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naoufal/react-native-safari-view/fc343b037ed5b91c85cfae5d9adac32839a9b04b/examples/SafariViewExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naoufal/react-native-safari-view/fc343b037ed5b91c85cfae5d9adac32839a9b04b/examples/SafariViewExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naoufal/react-native-safari-view/fc343b037ed5b91c85cfae5d9adac32839a9b04b/examples/SafariViewExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naoufal/react-native-safari-view/fc343b037ed5b91c85cfae5d9adac32839a9b04b/examples/SafariViewExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SafariViewExample 3 | 4 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naoufal/react-native-safari-view/fc343b037ed5b91c85cfae5d9adac32839a9b04b/examples/SafariViewExample/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /examples/SafariViewExample/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /examples/SafariViewExample/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'SafariViewExample' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /examples/SafariViewExample/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SafariViewExample", 3 | "displayName": "SafariViewExample" 4 | } -------------------------------------------------------------------------------- /examples/SafariViewExample/index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | export default class SafariViewExample extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | Welcome to React Native! 21 | 22 | 23 | To get started, edit index.android.js 24 | 25 | 26 | Double tap R on your keyboard to reload,{'\n'} 27 | Shake or press menu button for dev menu 28 | 29 | 30 | ); 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | container: { 36 | flex: 1, 37 | justifyContent: 'center', 38 | alignItems: 'center', 39 | backgroundColor: '#F5FCFF', 40 | }, 41 | welcome: { 42 | fontSize: 20, 43 | textAlign: 'center', 44 | margin: 10, 45 | }, 46 | instructions: { 47 | textAlign: 'center', 48 | color: '#333333', 49 | marginBottom: 5, 50 | }, 51 | }); 52 | 53 | AppRegistry.registerComponent('SafariViewExample', () => SafariViewExample); 54 | -------------------------------------------------------------------------------- /examples/SafariViewExample/index.ios.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React, { Component } from 'react' 4 | import { 5 | AlertIOS, 6 | AppRegistry, 7 | processColor, 8 | StatusBar, 9 | StyleSheet, 10 | Text, 11 | TouchableHighlight, 12 | View 13 | } from 'react-native'; 14 | 15 | import SafariView from 'react-native-safari-view'; 16 | 17 | class SafariViewExample extends Component { 18 | componentDidMount() { 19 | this.showSubscription= () => { 20 | console.log("SafariView onShow") 21 | StatusBar.setBarStyle("light-content"); 22 | }; 23 | this.dismissSubscription = () => { 24 | console.log("SafariView onDismiss"); 25 | StatusBar.setBarStyle("default"); 26 | }; 27 | SafariView.addEventListener("onShow", this.showSubscription); 28 | SafariView.addEventListener("onDismiss", this.dismissSubscription); 29 | } 30 | 31 | componentWillUnmount() { 32 | SafariView.removeEventListener("onShow", this.showSubscription); 33 | SafariView.removeEventListener("onDismiss", this.dismissSubscription); 34 | } 35 | 36 | render() { 37 | return ( 38 | 39 | 40 | react-native-safari-view 41 | 42 | 43 | github.com/naoufal/react-native-safari-view 44 | 45 | 51 | 55 | Show Safari View 56 | 57 | 58 | 59 | ); 60 | } 61 | 62 | _clickHandler() { 63 | SafariView.show({ 64 | url: 'http://twitter.com/naoufal', 65 | readerMode: true, 66 | tintColor: "rgb(0, 0, 0)", 67 | fromBottom: true 68 | }); 69 | } 70 | 71 | _isAvailable() { 72 | SafariView.isAvailable() 73 | .then(success => { 74 | AlertIOS.alert('SFSafariView available.'); 75 | }) 76 | .catch(error => { 77 | AlertIOS.alert('SFSafariView not available.'); 78 | }); 79 | } 80 | } 81 | 82 | const styles = StyleSheet.create({ 83 | container: { 84 | flex: 1, 85 | justifyContent: 'center', 86 | alignItems: 'center', 87 | backgroundColor: '#F5FCFF' 88 | }, 89 | welcome: { 90 | margin: 10, 91 | fontSize: 20, 92 | fontWeight: '600', 93 | textAlign: 'center' 94 | }, 95 | instructions: { 96 | marginBottom: 5, 97 | color: '#333333', 98 | fontSize: 13, 99 | textAlign: 'center' 100 | }, 101 | btn: { 102 | borderRadius: 3, 103 | marginTop: 200, 104 | paddingTop: 15, 105 | paddingBottom: 15, 106 | paddingLeft: 15, 107 | paddingRight: 15, 108 | backgroundColor: '#0391D7' 109 | } 110 | }); 111 | 112 | AppRegistry.registerComponent('SafariViewExample', () => SafariViewExample); 113 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* SafariViewExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* SafariViewExampleTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 5E8BD12C1F8126A800CDDCC5 /* libSafariViewManager.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E8BD12A1F81269C00CDDCC5 /* libSafariViewManager.a */; }; 26 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 27 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 28 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 35 | proxyType = 2; 36 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 37 | remoteInfo = RCTActionSheet; 38 | }; 39 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 40 | isa = PBXContainerItemProxy; 41 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 42 | proxyType = 2; 43 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 44 | remoteInfo = RCTGeolocation; 45 | }; 46 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 47 | isa = PBXContainerItemProxy; 48 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 49 | proxyType = 2; 50 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 51 | remoteInfo = RCTImage; 52 | }; 53 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 54 | isa = PBXContainerItemProxy; 55 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 56 | proxyType = 2; 57 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 58 | remoteInfo = RCTNetwork; 59 | }; 60 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 61 | isa = PBXContainerItemProxy; 62 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 63 | proxyType = 2; 64 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 65 | remoteInfo = RCTVibration; 66 | }; 67 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 68 | isa = PBXContainerItemProxy; 69 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 70 | proxyType = 1; 71 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 72 | remoteInfo = SafariViewExample; 73 | }; 74 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 75 | isa = PBXContainerItemProxy; 76 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 77 | proxyType = 2; 78 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 79 | remoteInfo = RCTSettings; 80 | }; 81 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 82 | isa = PBXContainerItemProxy; 83 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 84 | proxyType = 2; 85 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 86 | remoteInfo = RCTWebSocket; 87 | }; 88 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 89 | isa = PBXContainerItemProxy; 90 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 91 | proxyType = 2; 92 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 93 | remoteInfo = React; 94 | }; 95 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 96 | isa = PBXContainerItemProxy; 97 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 98 | proxyType = 2; 99 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 100 | remoteInfo = "RCTImage-tvOS"; 101 | }; 102 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 103 | isa = PBXContainerItemProxy; 104 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 105 | proxyType = 2; 106 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 107 | remoteInfo = "RCTLinking-tvOS"; 108 | }; 109 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 110 | isa = PBXContainerItemProxy; 111 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 112 | proxyType = 2; 113 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 114 | remoteInfo = "RCTNetwork-tvOS"; 115 | }; 116 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 117 | isa = PBXContainerItemProxy; 118 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 119 | proxyType = 2; 120 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 121 | remoteInfo = "RCTSettings-tvOS"; 122 | }; 123 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 124 | isa = PBXContainerItemProxy; 125 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 126 | proxyType = 2; 127 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 128 | remoteInfo = "RCTText-tvOS"; 129 | }; 130 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 131 | isa = PBXContainerItemProxy; 132 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 133 | proxyType = 2; 134 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 135 | remoteInfo = "RCTWebSocket-tvOS"; 136 | }; 137 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 138 | isa = PBXContainerItemProxy; 139 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 140 | proxyType = 2; 141 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 142 | remoteInfo = "React-tvOS"; 143 | }; 144 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 145 | isa = PBXContainerItemProxy; 146 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 147 | proxyType = 2; 148 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 149 | remoteInfo = yoga; 150 | }; 151 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 152 | isa = PBXContainerItemProxy; 153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 154 | proxyType = 2; 155 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 156 | remoteInfo = "yoga-tvOS"; 157 | }; 158 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 159 | isa = PBXContainerItemProxy; 160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 161 | proxyType = 2; 162 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 163 | remoteInfo = cxxreact; 164 | }; 165 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 166 | isa = PBXContainerItemProxy; 167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 168 | proxyType = 2; 169 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 170 | remoteInfo = "cxxreact-tvOS"; 171 | }; 172 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 173 | isa = PBXContainerItemProxy; 174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 175 | proxyType = 2; 176 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 177 | remoteInfo = jschelpers; 178 | }; 179 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 180 | isa = PBXContainerItemProxy; 181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 182 | proxyType = 2; 183 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 184 | remoteInfo = "jschelpers-tvOS"; 185 | }; 186 | 5E8BD1181F81269C00CDDCC5 /* PBXContainerItemProxy */ = { 187 | isa = PBXContainerItemProxy; 188 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 189 | proxyType = 2; 190 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 191 | remoteInfo = "RCTBlob-tvOS"; 192 | }; 193 | 5E8BD1291F81269C00CDDCC5 /* PBXContainerItemProxy */ = { 194 | isa = PBXContainerItemProxy; 195 | containerPortal = 5E8BD1101F81269C00CDDCC5 /* SafariViewManager.xcodeproj */; 196 | proxyType = 2; 197 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 198 | remoteInfo = SafariViewManager; 199 | }; 200 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 201 | isa = PBXContainerItemProxy; 202 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 203 | proxyType = 2; 204 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 205 | remoteInfo = RCTAnimation; 206 | }; 207 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 208 | isa = PBXContainerItemProxy; 209 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 210 | proxyType = 2; 211 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 212 | remoteInfo = "RCTAnimation-tvOS"; 213 | }; 214 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 215 | isa = PBXContainerItemProxy; 216 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 217 | proxyType = 2; 218 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 219 | remoteInfo = RCTLinking; 220 | }; 221 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 222 | isa = PBXContainerItemProxy; 223 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 224 | proxyType = 2; 225 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 226 | remoteInfo = RCTText; 227 | }; 228 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 229 | isa = PBXContainerItemProxy; 230 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 231 | proxyType = 2; 232 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 233 | remoteInfo = RCTBlob; 234 | }; 235 | /* End PBXContainerItemProxy section */ 236 | 237 | /* Begin PBXFileReference section */ 238 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 239 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 240 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 241 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 242 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 243 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 244 | 00E356EE1AD99517003FC87E /* SafariViewExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SafariViewExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 245 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 246 | 00E356F21AD99517003FC87E /* SafariViewExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SafariViewExampleTests.m; sourceTree = ""; }; 247 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 248 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 249 | 13B07F961A680F5B00A75B9A /* SafariViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SafariViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 250 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SafariViewExample/AppDelegate.h; sourceTree = ""; }; 251 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = SafariViewExample/AppDelegate.m; sourceTree = ""; }; 252 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 253 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SafariViewExample/Images.xcassets; sourceTree = ""; }; 254 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SafariViewExample/Info.plist; sourceTree = ""; }; 255 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SafariViewExample/main.m; sourceTree = ""; }; 256 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 257 | 5E8BD1101F81269C00CDDCC5 /* SafariViewManager.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SafariViewManager.xcodeproj; path = "../node_modules/react-native-safari-view/SafariViewManager.xcodeproj"; sourceTree = ""; }; 258 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 259 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 260 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 261 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 262 | /* End PBXFileReference section */ 263 | 264 | /* Begin PBXFrameworksBuildPhase section */ 265 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 266 | isa = PBXFrameworksBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 274 | isa = PBXFrameworksBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | 5E8BD12C1F8126A800CDDCC5 /* libSafariViewManager.a in Frameworks */, 278 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 279 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 280 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 281 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 282 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 283 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 284 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 285 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 286 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 287 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 288 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 289 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 290 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | }; 294 | /* End PBXFrameworksBuildPhase section */ 295 | 296 | /* Begin PBXGroup section */ 297 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 298 | isa = PBXGroup; 299 | children = ( 300 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 301 | ); 302 | name = Products; 303 | sourceTree = ""; 304 | }; 305 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 306 | isa = PBXGroup; 307 | children = ( 308 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 309 | ); 310 | name = Products; 311 | sourceTree = ""; 312 | }; 313 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 314 | isa = PBXGroup; 315 | children = ( 316 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 317 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 318 | ); 319 | name = Products; 320 | sourceTree = ""; 321 | }; 322 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 323 | isa = PBXGroup; 324 | children = ( 325 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 326 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 327 | ); 328 | name = Products; 329 | sourceTree = ""; 330 | }; 331 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 332 | isa = PBXGroup; 333 | children = ( 334 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 335 | ); 336 | name = Products; 337 | sourceTree = ""; 338 | }; 339 | 00E356EF1AD99517003FC87E /* SafariViewExampleTests */ = { 340 | isa = PBXGroup; 341 | children = ( 342 | 00E356F21AD99517003FC87E /* SafariViewExampleTests.m */, 343 | 00E356F01AD99517003FC87E /* Supporting Files */, 344 | ); 345 | path = SafariViewExampleTests; 346 | sourceTree = ""; 347 | }; 348 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 349 | isa = PBXGroup; 350 | children = ( 351 | 00E356F11AD99517003FC87E /* Info.plist */, 352 | ); 353 | name = "Supporting Files"; 354 | sourceTree = ""; 355 | }; 356 | 139105B71AF99BAD00B5F7CC /* Products */ = { 357 | isa = PBXGroup; 358 | children = ( 359 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 360 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 361 | ); 362 | name = Products; 363 | sourceTree = ""; 364 | }; 365 | 139FDEE71B06529A00C62182 /* Products */ = { 366 | isa = PBXGroup; 367 | children = ( 368 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 369 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 370 | ); 371 | name = Products; 372 | sourceTree = ""; 373 | }; 374 | 13B07FAE1A68108700A75B9A /* SafariViewExample */ = { 375 | isa = PBXGroup; 376 | children = ( 377 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 378 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 379 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 380 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 381 | 13B07FB61A68108700A75B9A /* Info.plist */, 382 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 383 | 13B07FB71A68108700A75B9A /* main.m */, 384 | ); 385 | name = SafariViewExample; 386 | sourceTree = ""; 387 | }; 388 | 146834001AC3E56700842450 /* Products */ = { 389 | isa = PBXGroup; 390 | children = ( 391 | 146834041AC3E56700842450 /* libReact.a */, 392 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 393 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 394 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 395 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 396 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 397 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 398 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */, 399 | ); 400 | name = Products; 401 | sourceTree = ""; 402 | }; 403 | 5E8BD1111F81269C00CDDCC5 /* Products */ = { 404 | isa = PBXGroup; 405 | children = ( 406 | 5E8BD12A1F81269C00CDDCC5 /* libSafariViewManager.a */, 407 | ); 408 | name = Products; 409 | sourceTree = ""; 410 | }; 411 | 5E8BD12B1F8126A800CDDCC5 /* Frameworks */ = { 412 | isa = PBXGroup; 413 | children = ( 414 | ); 415 | name = Frameworks; 416 | sourceTree = ""; 417 | }; 418 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 419 | isa = PBXGroup; 420 | children = ( 421 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 422 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 423 | ); 424 | name = Products; 425 | sourceTree = ""; 426 | }; 427 | 78C398B11ACF4ADC00677621 /* Products */ = { 428 | isa = PBXGroup; 429 | children = ( 430 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 431 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 432 | ); 433 | name = Products; 434 | sourceTree = ""; 435 | }; 436 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 437 | isa = PBXGroup; 438 | children = ( 439 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 440 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 441 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 442 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 443 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 444 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 445 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 446 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 447 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 448 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 449 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 450 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 451 | 5E8BD1101F81269C00CDDCC5 /* SafariViewManager.xcodeproj */, 452 | ); 453 | name = Libraries; 454 | sourceTree = ""; 455 | }; 456 | 832341B11AAA6A8300B99B32 /* Products */ = { 457 | isa = PBXGroup; 458 | children = ( 459 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 460 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 461 | ); 462 | name = Products; 463 | sourceTree = ""; 464 | }; 465 | 83CBB9F61A601CBA00E9B192 = { 466 | isa = PBXGroup; 467 | children = ( 468 | 13B07FAE1A68108700A75B9A /* SafariViewExample */, 469 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 470 | 00E356EF1AD99517003FC87E /* SafariViewExampleTests */, 471 | 83CBBA001A601CBA00E9B192 /* Products */, 472 | 5E8BD12B1F8126A800CDDCC5 /* Frameworks */, 473 | ); 474 | indentWidth = 2; 475 | sourceTree = ""; 476 | tabWidth = 2; 477 | usesTabs = 0; 478 | }; 479 | 83CBBA001A601CBA00E9B192 /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 13B07F961A680F5B00A75B9A /* SafariViewExample.app */, 483 | 00E356EE1AD99517003FC87E /* SafariViewExampleTests.xctest */, 484 | ); 485 | name = Products; 486 | sourceTree = ""; 487 | }; 488 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 489 | isa = PBXGroup; 490 | children = ( 491 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 492 | 5E8BD1191F81269C00CDDCC5 /* libRCTBlob-tvOS.a */, 493 | ); 494 | name = Products; 495 | sourceTree = ""; 496 | }; 497 | /* End PBXGroup section */ 498 | 499 | /* Begin PBXNativeTarget section */ 500 | 00E356ED1AD99517003FC87E /* SafariViewExampleTests */ = { 501 | isa = PBXNativeTarget; 502 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SafariViewExampleTests" */; 503 | buildPhases = ( 504 | 00E356EA1AD99517003FC87E /* Sources */, 505 | 00E356EB1AD99517003FC87E /* Frameworks */, 506 | 00E356EC1AD99517003FC87E /* Resources */, 507 | ); 508 | buildRules = ( 509 | ); 510 | dependencies = ( 511 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 512 | ); 513 | name = SafariViewExampleTests; 514 | productName = SafariViewExampleTests; 515 | productReference = 00E356EE1AD99517003FC87E /* SafariViewExampleTests.xctest */; 516 | productType = "com.apple.product-type.bundle.unit-test"; 517 | }; 518 | 13B07F861A680F5B00A75B9A /* SafariViewExample */ = { 519 | isa = PBXNativeTarget; 520 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SafariViewExample" */; 521 | buildPhases = ( 522 | 13B07F871A680F5B00A75B9A /* Sources */, 523 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 524 | 13B07F8E1A680F5B00A75B9A /* Resources */, 525 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 526 | ); 527 | buildRules = ( 528 | ); 529 | dependencies = ( 530 | ); 531 | name = SafariViewExample; 532 | productName = "Hello World"; 533 | productReference = 13B07F961A680F5B00A75B9A /* SafariViewExample.app */; 534 | productType = "com.apple.product-type.application"; 535 | }; 536 | /* End PBXNativeTarget section */ 537 | 538 | /* Begin PBXProject section */ 539 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 540 | isa = PBXProject; 541 | attributes = { 542 | LastUpgradeCheck = 0610; 543 | ORGANIZATIONNAME = Facebook; 544 | TargetAttributes = { 545 | 00E356ED1AD99517003FC87E = { 546 | CreatedOnToolsVersion = 6.2; 547 | TestTargetID = 13B07F861A680F5B00A75B9A; 548 | }; 549 | }; 550 | }; 551 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SafariViewExample" */; 552 | compatibilityVersion = "Xcode 3.2"; 553 | developmentRegion = English; 554 | hasScannedForEncodings = 0; 555 | knownRegions = ( 556 | en, 557 | Base, 558 | ); 559 | mainGroup = 83CBB9F61A601CBA00E9B192; 560 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 561 | projectDirPath = ""; 562 | projectReferences = ( 563 | { 564 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 565 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 566 | }, 567 | { 568 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 569 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 570 | }, 571 | { 572 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 573 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 574 | }, 575 | { 576 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 577 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 578 | }, 579 | { 580 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 581 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 582 | }, 583 | { 584 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 585 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 586 | }, 587 | { 588 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 589 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 590 | }, 591 | { 592 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 593 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 594 | }, 595 | { 596 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 597 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 598 | }, 599 | { 600 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 601 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 602 | }, 603 | { 604 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 605 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 606 | }, 607 | { 608 | ProductGroup = 146834001AC3E56700842450 /* Products */; 609 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 610 | }, 611 | { 612 | ProductGroup = 5E8BD1111F81269C00CDDCC5 /* Products */; 613 | ProjectRef = 5E8BD1101F81269C00CDDCC5 /* SafariViewManager.xcodeproj */; 614 | }, 615 | ); 616 | projectRoot = ""; 617 | targets = ( 618 | 13B07F861A680F5B00A75B9A /* SafariViewExample */, 619 | 00E356ED1AD99517003FC87E /* SafariViewExampleTests */, 620 | ); 621 | }; 622 | /* End PBXProject section */ 623 | 624 | /* Begin PBXReferenceProxy section */ 625 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 626 | isa = PBXReferenceProxy; 627 | fileType = archive.ar; 628 | path = libRCTActionSheet.a; 629 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 630 | sourceTree = BUILT_PRODUCTS_DIR; 631 | }; 632 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 633 | isa = PBXReferenceProxy; 634 | fileType = archive.ar; 635 | path = libRCTGeolocation.a; 636 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 637 | sourceTree = BUILT_PRODUCTS_DIR; 638 | }; 639 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 640 | isa = PBXReferenceProxy; 641 | fileType = archive.ar; 642 | path = libRCTImage.a; 643 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 644 | sourceTree = BUILT_PRODUCTS_DIR; 645 | }; 646 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 647 | isa = PBXReferenceProxy; 648 | fileType = archive.ar; 649 | path = libRCTNetwork.a; 650 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 651 | sourceTree = BUILT_PRODUCTS_DIR; 652 | }; 653 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 654 | isa = PBXReferenceProxy; 655 | fileType = archive.ar; 656 | path = libRCTVibration.a; 657 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 658 | sourceTree = BUILT_PRODUCTS_DIR; 659 | }; 660 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 661 | isa = PBXReferenceProxy; 662 | fileType = archive.ar; 663 | path = libRCTSettings.a; 664 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 665 | sourceTree = BUILT_PRODUCTS_DIR; 666 | }; 667 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 668 | isa = PBXReferenceProxy; 669 | fileType = archive.ar; 670 | path = libRCTWebSocket.a; 671 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 672 | sourceTree = BUILT_PRODUCTS_DIR; 673 | }; 674 | 146834041AC3E56700842450 /* libReact.a */ = { 675 | isa = PBXReferenceProxy; 676 | fileType = archive.ar; 677 | path = libReact.a; 678 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 679 | sourceTree = BUILT_PRODUCTS_DIR; 680 | }; 681 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 682 | isa = PBXReferenceProxy; 683 | fileType = archive.ar; 684 | path = "libRCTImage-tvOS.a"; 685 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 686 | sourceTree = BUILT_PRODUCTS_DIR; 687 | }; 688 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 689 | isa = PBXReferenceProxy; 690 | fileType = archive.ar; 691 | path = "libRCTLinking-tvOS.a"; 692 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 693 | sourceTree = BUILT_PRODUCTS_DIR; 694 | }; 695 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 696 | isa = PBXReferenceProxy; 697 | fileType = archive.ar; 698 | path = "libRCTNetwork-tvOS.a"; 699 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 700 | sourceTree = BUILT_PRODUCTS_DIR; 701 | }; 702 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 703 | isa = PBXReferenceProxy; 704 | fileType = archive.ar; 705 | path = "libRCTSettings-tvOS.a"; 706 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 707 | sourceTree = BUILT_PRODUCTS_DIR; 708 | }; 709 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 710 | isa = PBXReferenceProxy; 711 | fileType = archive.ar; 712 | path = "libRCTText-tvOS.a"; 713 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 714 | sourceTree = BUILT_PRODUCTS_DIR; 715 | }; 716 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 717 | isa = PBXReferenceProxy; 718 | fileType = archive.ar; 719 | path = "libRCTWebSocket-tvOS.a"; 720 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 721 | sourceTree = BUILT_PRODUCTS_DIR; 722 | }; 723 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */ = { 724 | isa = PBXReferenceProxy; 725 | fileType = archive.ar; 726 | path = "libReact-tvOS.a"; 727 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 728 | sourceTree = BUILT_PRODUCTS_DIR; 729 | }; 730 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 731 | isa = PBXReferenceProxy; 732 | fileType = archive.ar; 733 | path = libyoga.a; 734 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 735 | sourceTree = BUILT_PRODUCTS_DIR; 736 | }; 737 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 738 | isa = PBXReferenceProxy; 739 | fileType = archive.ar; 740 | path = libyoga.a; 741 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 742 | sourceTree = BUILT_PRODUCTS_DIR; 743 | }; 744 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 745 | isa = PBXReferenceProxy; 746 | fileType = archive.ar; 747 | path = libcxxreact.a; 748 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 749 | sourceTree = BUILT_PRODUCTS_DIR; 750 | }; 751 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 752 | isa = PBXReferenceProxy; 753 | fileType = archive.ar; 754 | path = libcxxreact.a; 755 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 756 | sourceTree = BUILT_PRODUCTS_DIR; 757 | }; 758 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 759 | isa = PBXReferenceProxy; 760 | fileType = archive.ar; 761 | path = libjschelpers.a; 762 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 763 | sourceTree = BUILT_PRODUCTS_DIR; 764 | }; 765 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 766 | isa = PBXReferenceProxy; 767 | fileType = archive.ar; 768 | path = libjschelpers.a; 769 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 770 | sourceTree = BUILT_PRODUCTS_DIR; 771 | }; 772 | 5E8BD1191F81269C00CDDCC5 /* libRCTBlob-tvOS.a */ = { 773 | isa = PBXReferenceProxy; 774 | fileType = archive.ar; 775 | path = "libRCTBlob-tvOS.a"; 776 | remoteRef = 5E8BD1181F81269C00CDDCC5 /* PBXContainerItemProxy */; 777 | sourceTree = BUILT_PRODUCTS_DIR; 778 | }; 779 | 5E8BD12A1F81269C00CDDCC5 /* libSafariViewManager.a */ = { 780 | isa = PBXReferenceProxy; 781 | fileType = archive.ar; 782 | path = libSafariViewManager.a; 783 | remoteRef = 5E8BD1291F81269C00CDDCC5 /* PBXContainerItemProxy */; 784 | sourceTree = BUILT_PRODUCTS_DIR; 785 | }; 786 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 787 | isa = PBXReferenceProxy; 788 | fileType = archive.ar; 789 | path = libRCTAnimation.a; 790 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 791 | sourceTree = BUILT_PRODUCTS_DIR; 792 | }; 793 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 794 | isa = PBXReferenceProxy; 795 | fileType = archive.ar; 796 | path = libRCTAnimation.a; 797 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 798 | sourceTree = BUILT_PRODUCTS_DIR; 799 | }; 800 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 801 | isa = PBXReferenceProxy; 802 | fileType = archive.ar; 803 | path = libRCTLinking.a; 804 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 805 | sourceTree = BUILT_PRODUCTS_DIR; 806 | }; 807 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 808 | isa = PBXReferenceProxy; 809 | fileType = archive.ar; 810 | path = libRCTText.a; 811 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 812 | sourceTree = BUILT_PRODUCTS_DIR; 813 | }; 814 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 815 | isa = PBXReferenceProxy; 816 | fileType = archive.ar; 817 | path = libRCTBlob.a; 818 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 819 | sourceTree = BUILT_PRODUCTS_DIR; 820 | }; 821 | /* End PBXReferenceProxy section */ 822 | 823 | /* Begin PBXResourcesBuildPhase section */ 824 | 00E356EC1AD99517003FC87E /* Resources */ = { 825 | isa = PBXResourcesBuildPhase; 826 | buildActionMask = 2147483647; 827 | files = ( 828 | ); 829 | runOnlyForDeploymentPostprocessing = 0; 830 | }; 831 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 832 | isa = PBXResourcesBuildPhase; 833 | buildActionMask = 2147483647; 834 | files = ( 835 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 836 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 837 | ); 838 | runOnlyForDeploymentPostprocessing = 0; 839 | }; 840 | /* End PBXResourcesBuildPhase section */ 841 | 842 | /* Begin PBXShellScriptBuildPhase section */ 843 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 844 | isa = PBXShellScriptBuildPhase; 845 | buildActionMask = 2147483647; 846 | files = ( 847 | ); 848 | inputPaths = ( 849 | ); 850 | name = "Bundle React Native code and images"; 851 | outputPaths = ( 852 | ); 853 | runOnlyForDeploymentPostprocessing = 0; 854 | shellPath = /bin/sh; 855 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 856 | }; 857 | /* End PBXShellScriptBuildPhase section */ 858 | 859 | /* Begin PBXSourcesBuildPhase section */ 860 | 00E356EA1AD99517003FC87E /* Sources */ = { 861 | isa = PBXSourcesBuildPhase; 862 | buildActionMask = 2147483647; 863 | files = ( 864 | 00E356F31AD99517003FC87E /* SafariViewExampleTests.m in Sources */, 865 | ); 866 | runOnlyForDeploymentPostprocessing = 0; 867 | }; 868 | 13B07F871A680F5B00A75B9A /* Sources */ = { 869 | isa = PBXSourcesBuildPhase; 870 | buildActionMask = 2147483647; 871 | files = ( 872 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 873 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 874 | ); 875 | runOnlyForDeploymentPostprocessing = 0; 876 | }; 877 | /* End PBXSourcesBuildPhase section */ 878 | 879 | /* Begin PBXTargetDependency section */ 880 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 881 | isa = PBXTargetDependency; 882 | target = 13B07F861A680F5B00A75B9A /* SafariViewExample */; 883 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 884 | }; 885 | /* End PBXTargetDependency section */ 886 | 887 | /* Begin PBXVariantGroup section */ 888 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 889 | isa = PBXVariantGroup; 890 | children = ( 891 | 13B07FB21A68108700A75B9A /* Base */, 892 | ); 893 | name = LaunchScreen.xib; 894 | path = SafariViewExample; 895 | sourceTree = ""; 896 | }; 897 | /* End PBXVariantGroup section */ 898 | 899 | /* Begin XCBuildConfiguration section */ 900 | 00E356F61AD99517003FC87E /* Debug */ = { 901 | isa = XCBuildConfiguration; 902 | buildSettings = { 903 | BUNDLE_LOADER = "$(TEST_HOST)"; 904 | GCC_PREPROCESSOR_DEFINITIONS = ( 905 | "DEBUG=1", 906 | "$(inherited)", 907 | ); 908 | INFOPLIST_FILE = SafariViewExampleTests/Info.plist; 909 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 910 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 911 | OTHER_LDFLAGS = ( 912 | "-ObjC", 913 | "-lc++", 914 | ); 915 | PRODUCT_NAME = "$(TARGET_NAME)"; 916 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SafariViewExample.app/SafariViewExample"; 917 | }; 918 | name = Debug; 919 | }; 920 | 00E356F71AD99517003FC87E /* Release */ = { 921 | isa = XCBuildConfiguration; 922 | buildSettings = { 923 | BUNDLE_LOADER = "$(TEST_HOST)"; 924 | COPY_PHASE_STRIP = NO; 925 | INFOPLIST_FILE = SafariViewExampleTests/Info.plist; 926 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 927 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 928 | OTHER_LDFLAGS = ( 929 | "-ObjC", 930 | "-lc++", 931 | ); 932 | PRODUCT_NAME = "$(TARGET_NAME)"; 933 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SafariViewExample.app/SafariViewExample"; 934 | }; 935 | name = Release; 936 | }; 937 | 13B07F941A680F5B00A75B9A /* Debug */ = { 938 | isa = XCBuildConfiguration; 939 | buildSettings = { 940 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 941 | CURRENT_PROJECT_VERSION = 1; 942 | DEAD_CODE_STRIPPING = NO; 943 | INFOPLIST_FILE = SafariViewExample/Info.plist; 944 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 945 | OTHER_LDFLAGS = ( 946 | "$(inherited)", 947 | "-ObjC", 948 | "-lc++", 949 | ); 950 | PRODUCT_NAME = SafariViewExample; 951 | VERSIONING_SYSTEM = "apple-generic"; 952 | }; 953 | name = Debug; 954 | }; 955 | 13B07F951A680F5B00A75B9A /* Release */ = { 956 | isa = XCBuildConfiguration; 957 | buildSettings = { 958 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 959 | CURRENT_PROJECT_VERSION = 1; 960 | INFOPLIST_FILE = SafariViewExample/Info.plist; 961 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 962 | OTHER_LDFLAGS = ( 963 | "$(inherited)", 964 | "-ObjC", 965 | "-lc++", 966 | ); 967 | PRODUCT_NAME = SafariViewExample; 968 | VERSIONING_SYSTEM = "apple-generic"; 969 | }; 970 | name = Release; 971 | }; 972 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 973 | isa = XCBuildConfiguration; 974 | buildSettings = { 975 | ALWAYS_SEARCH_USER_PATHS = NO; 976 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 977 | CLANG_CXX_LIBRARY = "libc++"; 978 | CLANG_ENABLE_MODULES = YES; 979 | CLANG_ENABLE_OBJC_ARC = YES; 980 | CLANG_WARN_BOOL_CONVERSION = YES; 981 | CLANG_WARN_CONSTANT_CONVERSION = YES; 982 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 983 | CLANG_WARN_EMPTY_BODY = YES; 984 | CLANG_WARN_ENUM_CONVERSION = YES; 985 | CLANG_WARN_INT_CONVERSION = YES; 986 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 987 | CLANG_WARN_UNREACHABLE_CODE = YES; 988 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 989 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 990 | COPY_PHASE_STRIP = NO; 991 | ENABLE_STRICT_OBJC_MSGSEND = YES; 992 | GCC_C_LANGUAGE_STANDARD = gnu99; 993 | GCC_DYNAMIC_NO_PIC = NO; 994 | GCC_OPTIMIZATION_LEVEL = 0; 995 | GCC_PREPROCESSOR_DEFINITIONS = ( 996 | "DEBUG=1", 997 | "$(inherited)", 998 | ); 999 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1000 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1001 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1002 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1003 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1004 | GCC_WARN_UNUSED_FUNCTION = YES; 1005 | GCC_WARN_UNUSED_VARIABLE = YES; 1006 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1007 | MTL_ENABLE_DEBUG_INFO = YES; 1008 | ONLY_ACTIVE_ARCH = YES; 1009 | SDKROOT = iphoneos; 1010 | }; 1011 | name = Debug; 1012 | }; 1013 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1014 | isa = XCBuildConfiguration; 1015 | buildSettings = { 1016 | ALWAYS_SEARCH_USER_PATHS = NO; 1017 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1018 | CLANG_CXX_LIBRARY = "libc++"; 1019 | CLANG_ENABLE_MODULES = YES; 1020 | CLANG_ENABLE_OBJC_ARC = YES; 1021 | CLANG_WARN_BOOL_CONVERSION = YES; 1022 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1023 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1024 | CLANG_WARN_EMPTY_BODY = YES; 1025 | CLANG_WARN_ENUM_CONVERSION = YES; 1026 | CLANG_WARN_INT_CONVERSION = YES; 1027 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1028 | CLANG_WARN_UNREACHABLE_CODE = YES; 1029 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1030 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1031 | COPY_PHASE_STRIP = YES; 1032 | ENABLE_NS_ASSERTIONS = NO; 1033 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1034 | GCC_C_LANGUAGE_STANDARD = gnu99; 1035 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1036 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1037 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1038 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1039 | GCC_WARN_UNUSED_FUNCTION = YES; 1040 | GCC_WARN_UNUSED_VARIABLE = YES; 1041 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1042 | MTL_ENABLE_DEBUG_INFO = NO; 1043 | SDKROOT = iphoneos; 1044 | VALIDATE_PRODUCT = YES; 1045 | }; 1046 | name = Release; 1047 | }; 1048 | /* End XCBuildConfiguration section */ 1049 | 1050 | /* Begin XCConfigurationList section */ 1051 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SafariViewExampleTests" */ = { 1052 | isa = XCConfigurationList; 1053 | buildConfigurations = ( 1054 | 00E356F61AD99517003FC87E /* Debug */, 1055 | 00E356F71AD99517003FC87E /* Release */, 1056 | ); 1057 | defaultConfigurationIsVisible = 0; 1058 | defaultConfigurationName = Release; 1059 | }; 1060 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SafariViewExample" */ = { 1061 | isa = XCConfigurationList; 1062 | buildConfigurations = ( 1063 | 13B07F941A680F5B00A75B9A /* Debug */, 1064 | 13B07F951A680F5B00A75B9A /* Release */, 1065 | ); 1066 | defaultConfigurationIsVisible = 0; 1067 | defaultConfigurationName = Release; 1068 | }; 1069 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SafariViewExample" */ = { 1070 | isa = XCConfigurationList; 1071 | buildConfigurations = ( 1072 | 83CBBA201A601CBA00E9B192 /* Debug */, 1073 | 83CBBA211A601CBA00E9B192 /* Release */, 1074 | ); 1075 | defaultConfigurationIsVisible = 0; 1076 | defaultConfigurationName = Release; 1077 | }; 1078 | /* End XCConfigurationList section */ 1079 | }; 1080 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1081 | } 1082 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample.xcodeproj/xcshareddata/xcschemes/SafariViewExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"SafariViewExample" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | SafariViewExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/SafariViewExample/ios/SafariViewExampleTests/SafariViewExampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface SafariViewExampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation SafariViewExampleTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /examples/SafariViewExample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SafariViewExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "postinstall": "rm -rf node_modules/react-native-safari-view/{node_modules,examples}", 7 | "start": "node node_modules/react-native/local-cli/cli.js start" 8 | }, 9 | "dependencies": { 10 | "react": "16.0.0-alpha.12", 11 | "react-native": "0.48.4", 12 | "react-native-safari-view": "file:../.." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import SafariViewManager from './SafariViewManager'; 2 | 3 | export default SafariViewManager; 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-safari-view", 3 | "version": "2.1.0", 4 | "description": "A React Native wrapper for Safari View Controller", 5 | "main": "index", 6 | "scripts": { 7 | "lint": "node_modules/.bin/eslint .", 8 | "test": "npm run lint" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/naoufal/react-native-safari-view.git" 13 | }, 14 | "keywords": [ 15 | "react-native", 16 | "react", 17 | "native", 18 | "webview", 19 | "web", 20 | "view", 21 | "safari", 22 | "safariview", 23 | "react-component", 24 | "react-native-component" 25 | ], 26 | "author": "Naoufal Kadhom (https://github.com/naoufal)", 27 | "license": "ISC", 28 | "bugs": { 29 | "url": "https://github.com/naoufal/react-native-safari-view/issues" 30 | }, 31 | "homepage": "https://github.com/naoufal/react-native-safari-view", 32 | "devDependencies": { 33 | "eslint": "2.0.0", 34 | "eslint-plugin-react": "3.0.0" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /react-native-safari-view.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = "react-native-safari-view" 4 | s.version = "1.0.0" 5 | s.summary = "A React Native wrapper for Safari View Controller" 6 | s.requires_arc = true 7 | s.author = { 'Naoufal Kadhom' => 'naoufalkadhom@gmail.com' } 8 | s.license = 'MIT' 9 | s.homepage = 'https://github.com/naoufal/react-native-safari-view' 10 | s.source = { :git => "https://github.com/naoufal/react-native-safari-view.git" } 11 | s.platform = :ios, "7.0" 12 | s.dependency 'React' 13 | s.source_files = "*.{h,m}" 14 | s.preserve_paths = "*.js" 15 | end 16 | --------------------------------------------------------------------------------