├── .gitignore ├── LICENSE ├── README.md ├── common ├── config.json └── media │ └── logo.png ├── example ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── __tests__ │ └── App.js ├── android │ ├── .project │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── app │ │ ├── .classpath │ │ ├── .project │ │ ├── .settings │ │ │ └── org.eclipse.buildship.core.prefs │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ ├── 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.js ├── ios │ ├── Example-tvOS │ │ └── Info.plist │ ├── Example-tvOSTests │ │ └── Info.plist │ ├── Example.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── Example-tvOS.xcscheme │ │ │ └── Example.xcscheme │ ├── Example │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── ExampleTests │ │ ├── ExampleTests.m │ │ └── Info.plist ├── jsconfig.json ├── package.json └── yarn.lock ├── lerna.json ├── package.json ├── packages ├── react-native-actions │ ├── .gitattributes │ ├── README.md │ ├── android │ │ ├── build.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── lucasbento │ │ │ └── RNActions │ │ │ ├── RNActionsModule.java │ │ │ └── RNActionsPackage.java │ ├── index.js │ ├── ios │ │ ├── RNActions.h │ │ ├── RNActions.m │ │ ├── RNActions.podspec │ │ ├── RNActions.xcodeproj │ │ │ └── project.pbxproj │ │ └── RNActions.xcworkspace │ │ │ └── contents.xcworkspacedata │ ├── package.json │ └── yarn.lock └── vscode-react-native-actions │ ├── .babelrc │ ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── settings.json │ ├── .vscodeignore │ ├── README.md │ ├── jsconfig.json │ ├── package.json │ ├── src │ └── index.js │ └── yarn.lock ├── tasks ├── build.sh └── prepublish.sh └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # OSX 3 | .DS_Store 4 | 5 | # node.js 6 | node_modules/ 7 | npm-debug.log 8 | yarn-error.log 9 | 10 | # Xcode 11 | build/ 12 | *.pbxuser 13 | !default.pbxuser 14 | *.mode1v3 15 | !default.mode1v3 16 | *.mode2v3 17 | !default.mode2v3 18 | *.perspectivev3 19 | !default.perspectivev3 20 | xcuserdata 21 | *.xccheckout 22 | *.moved-aside 23 | DerivedData 24 | *.hmap 25 | *.ipa 26 | *.xcuserstate 27 | project.xcworkspace 28 | 29 | 30 | # Android/IntelliJ 31 | build/ 32 | .idea 33 | .gradle 34 | local.properties 35 | *.iml 36 | 37 | # BUCK 38 | buck-out/ 39 | \.buckd/ 40 | *.keystore 41 | 42 | # Build 43 | dist 44 | 45 | # Lerna 46 | lerna-debug.log 47 | 48 | # Common folder 49 | packages/**/common/* -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Lucas Bento 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 |  React Native Actions 3 |

4 | 5 |

react-native-actions

6 |

7 | Run React Native actions from within VSCode. 8 |

9 | 10 |

11 | 12 | 13 |

14 | 15 | ## Quick start 16 | 17 | ### Installation 18 | 19 | ### VScode 20 | 21 | Add the extension on terminal: 22 | ```bash 23 | code --install-extension lucasbento.react-native-actions 24 | ``` 25 | > Or [click here to install from the marketplace](https://marketplace.visualstudio.com/items?itemName=lucasbento.react-native-actions). 26 | 27 | ### React Native 28 | 29 | 1. Install the dependency 30 | ```bash 31 | yarn add react-native-actions --dev 32 | ``` 33 | 34 | 2. Link 35 | ```bash 36 | react-native link react-native-actions 37 | ``` 38 | 39 | > You can check out the [manual installation here](https://github.com/lucasbento/react-native-actions/blob/master/packages/react-native-actions/README.md#manual-installation). 40 | 41 | 3. Simply wrap your root component with `withActions` [HOC](https://reactjs.org/docs/higher-order-components.html): 42 | ```jsx 43 | // Your main component 44 | 45 | import withActions from 'react-native-actions'; 46 | 47 | class Application extends Component { 48 | // ... 49 | } 50 | 51 | export default withActions(Application); 52 | ``` 53 | 54 | ### Usage 55 | 56 | - + Shift + R: to reload the code on device; 57 | - + Shift + D: to open developer menu; 58 | - + Shift + T: to show network requests in console (requires remote debugging). 59 | -------------------------------------------------------------------------------- /common/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": 4444 3 | } -------------------------------------------------------------------------------- /common/media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasbento/react-native-actions/2a479f6ff54b47821790831c3d214c6ce8e415f9/common/media/logo.png -------------------------------------------------------------------------------- /example/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /example/.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 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | [include] 20 | 21 | [libs] 22 | node_modules/react-native/Libraries/react-native/react-native-interface.js 23 | node_modules/react-native/flow/ 24 | 25 | [options] 26 | emoji=true 27 | 28 | module.system=haste 29 | 30 | munge_underscores=true 31 | 32 | 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' 33 | 34 | suppress_type=$FlowIssue 35 | suppress_type=$FlowFixMe 36 | suppress_type=$FlowFixMeProps 37 | suppress_type=$FlowFixMeState 38 | suppress_type=$FixMe 39 | 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 42 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 43 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 44 | 45 | unsafe.enable_getters_and_setters=true 46 | 47 | [version] 48 | ^0.53.0 49 | -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/.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://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/App.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 | Platform, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | if (__DEV__) { 16 | require('react-native-actions'); 17 | } 18 | 19 | const instructions = Platform.select({ 20 | ios: 'Press Cmd+R to reload,\n' + 21 | 'Cmd+D or shake for dev menu', 22 | android: 'Double tap R on your keyboard to reload,\n' + 23 | 'Shake or press menu button for dev menu', 24 | }); 25 | 26 | export default class App extends Component<{}> { 27 | render() { 28 | return ( 29 | 30 | 31 | Welcome to React Native! 32 | 33 | 34 | To get started, edit App.js 35 | 36 | 37 | {instructions} 38 | 39 | 40 | ); 41 | } 42 | } 43 | 44 | const styles = StyleSheet.create({ 45 | container: { 46 | flex: 1, 47 | justifyContent: 'center', 48 | alignItems: 'center', 49 | backgroundColor: '#F5FCFF', 50 | }, 51 | welcome: { 52 | fontSize: 20, 53 | textAlign: 'center', 54 | margin: 10, 55 | }, 56 | instructions: { 57 | textAlign: 'center', 58 | color: '#333333', 59 | marginBottom: 5, 60 | }, 61 | }); 62 | -------------------------------------------------------------------------------- /example/__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /example/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Example 4 | Project Example created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /example/android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | #Sat Oct 07 19:13:40 CEST 2017 2 | connection.project.dir= 3 | -------------------------------------------------------------------------------- /example/android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /example/android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /example/android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | #Sat Oct 07 19:13:40 CEST 2017 2 | connection.project.dir=.. 3 | -------------------------------------------------------------------------------- /example/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.example", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.example", 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 | -------------------------------------------------------------------------------- /example/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 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion 23 98 | buildToolsVersion '25.0.0' 99 | 100 | defaultConfig { 101 | applicationId "com.example" 102 | minSdkVersion 16 103 | targetSdkVersion 22 104 | versionCode 1 105 | versionName "1.0" 106 | ndk { 107 | abiFilters "armeabi-v7a", "x86" 108 | } 109 | } 110 | splits { 111 | abi { 112 | reset() 113 | enable enableSeparateBuildPerCPUArchitecture 114 | universalApk false // If true, also generate a universal APK 115 | include "armeabi-v7a", "x86" 116 | } 117 | } 118 | buildTypes { 119 | release { 120 | minifyEnabled enableProguardInReleaseBuilds 121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 122 | } 123 | } 124 | // applicationVariants are e.g. debug, release 125 | applicationVariants.all { variant -> 126 | variant.outputs.each { output -> 127 | // For each separate APK per architecture, set a unique version code as described here: 128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 129 | def versionCodes = ["armeabi-v7a":1, "x86":2] 130 | def abi = output.getFilter(OutputFile.ABI) 131 | if (abi != null) { // null for the universal-debug, universal-release variants 132 | output.versionCodeOverride = 133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 134 | } 135 | } 136 | } 137 | } 138 | 139 | dependencies { 140 | compile fileTree(dir: "libs", include: ["*.jar"]) 141 | compile "com.android.support:appcompat-v7:23.0.1" 142 | compile "com.facebook.react:react-native:+" // From node_modules 143 | } 144 | 145 | // Run this once to be able to run the application with BUCK 146 | // puts all compile dependencies into folder libs for BUCK to use 147 | task copyDownloadableDepsToLibs(type: Copy) { 148 | from configurations.compile 149 | into 'libs' 150 | } 151 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 "Example"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 | @Override 30 | protected String getJSMainModuleName() { 31 | return "index"; 32 | } 33 | }; 34 | 35 | @Override 36 | public ReactNativeHost getReactNativeHost() { 37 | return mReactNativeHost; 38 | } 39 | 40 | @Override 41 | public void onCreate() { 42 | super.onCreate(); 43 | SoLoader.init(this, /* native exopackage */ false); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasbento/react-native-actions/2a479f6ff54b47821790831c3d214c6ce8e415f9/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasbento/react-native-actions/2a479f6ff54b47821790831c3d214c6ce8e415f9/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasbento/react-native-actions/2a479f6ff54b47821790831c3d214c6ce8e415f9/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasbento/react-native-actions/2a479f6ff54b47821790831c3d214c6ce8e415f9/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Example 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/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.3.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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasbento/react-native-actions/2a479f6ff54b47821790831c3d214c6ce8e415f9/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Oct 06 22:31:39 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'Example' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Example", 3 | "displayName": "Example" 4 | } -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('Example', () => App); 5 | -------------------------------------------------------------------------------- /example/ios/Example-tvOS/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /example/ios/Example-tvOSTests/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 | -------------------------------------------------------------------------------- /example/ios/Example.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 /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.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 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D02E4C91E0B4AEC006451C7 /* libReact-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; }; 37 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | 94C76FFB71D14646BBDD4F6B /* libRNActions.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 655EA959B4124AADB3D4C9DF /* libRNActions.a */; }; 40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 41 | /* End PBXBuildFile section */ 42 | 43 | /* Begin PBXContainerItemProxy section */ 44 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 49 | remoteInfo = RCTActionSheet; 50 | }; 51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 56 | remoteInfo = RCTGeolocation; 57 | }; 58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 63 | remoteInfo = RCTImage; 64 | }; 65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 70 | remoteInfo = RCTNetwork; 71 | }; 72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 77 | remoteInfo = RCTVibration; 78 | }; 79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 82 | proxyType = 1; 83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 84 | remoteInfo = Example; 85 | }; 86 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 91 | remoteInfo = RCTSettings; 92 | }; 93 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 98 | remoteInfo = RCTWebSocket; 99 | }; 100 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 105 | remoteInfo = React; 106 | }; 107 | 19C9CB0B1F94E82F00CDA13D /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 110 | proxyType = 2; 111 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 112 | remoteInfo = "RCTBlob-tvOS"; 113 | }; 114 | 19C9CB1D1F94E82F00CDA13D /* PBXContainerItemProxy */ = { 115 | isa = PBXContainerItemProxy; 116 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 117 | proxyType = 2; 118 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 119 | remoteInfo = fishhook; 120 | }; 121 | 19C9CB1F1F94E82F00CDA13D /* PBXContainerItemProxy */ = { 122 | isa = PBXContainerItemProxy; 123 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 124 | proxyType = 2; 125 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 126 | remoteInfo = "fishhook-tvOS"; 127 | }; 128 | 19C9CB241F94E82F00CDA13D /* PBXContainerItemProxy */ = { 129 | isa = PBXContainerItemProxy; 130 | containerPortal = 0B937F6461F14B209B90D528 /* RNActions.xcodeproj */; 131 | proxyType = 2; 132 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 133 | remoteInfo = RNActions; 134 | }; 135 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 136 | isa = PBXContainerItemProxy; 137 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 138 | proxyType = 1; 139 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 140 | remoteInfo = "Example-tvOS"; 141 | }; 142 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 143 | isa = PBXContainerItemProxy; 144 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 145 | proxyType = 2; 146 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 147 | remoteInfo = "RCTImage-tvOS"; 148 | }; 149 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 150 | isa = PBXContainerItemProxy; 151 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 152 | proxyType = 2; 153 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 154 | remoteInfo = "RCTLinking-tvOS"; 155 | }; 156 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 157 | isa = PBXContainerItemProxy; 158 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 159 | proxyType = 2; 160 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 161 | remoteInfo = "RCTNetwork-tvOS"; 162 | }; 163 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 164 | isa = PBXContainerItemProxy; 165 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 166 | proxyType = 2; 167 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 168 | remoteInfo = "RCTSettings-tvOS"; 169 | }; 170 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 171 | isa = PBXContainerItemProxy; 172 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 173 | proxyType = 2; 174 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 175 | remoteInfo = "RCTText-tvOS"; 176 | }; 177 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 178 | isa = PBXContainerItemProxy; 179 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 180 | proxyType = 2; 181 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 182 | remoteInfo = "RCTWebSocket-tvOS"; 183 | }; 184 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 185 | isa = PBXContainerItemProxy; 186 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 187 | proxyType = 2; 188 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 189 | remoteInfo = "React-tvOS"; 190 | }; 191 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 192 | isa = PBXContainerItemProxy; 193 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 194 | proxyType = 2; 195 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 196 | remoteInfo = yoga; 197 | }; 198 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 199 | isa = PBXContainerItemProxy; 200 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 201 | proxyType = 2; 202 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 203 | remoteInfo = "yoga-tvOS"; 204 | }; 205 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 206 | isa = PBXContainerItemProxy; 207 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 208 | proxyType = 2; 209 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 210 | remoteInfo = cxxreact; 211 | }; 212 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 213 | isa = PBXContainerItemProxy; 214 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 215 | proxyType = 2; 216 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 217 | remoteInfo = "cxxreact-tvOS"; 218 | }; 219 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 220 | isa = PBXContainerItemProxy; 221 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 222 | proxyType = 2; 223 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 224 | remoteInfo = jschelpers; 225 | }; 226 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 227 | isa = PBXContainerItemProxy; 228 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 229 | proxyType = 2; 230 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 231 | remoteInfo = "jschelpers-tvOS"; 232 | }; 233 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 234 | isa = PBXContainerItemProxy; 235 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 236 | proxyType = 2; 237 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 238 | remoteInfo = RCTAnimation; 239 | }; 240 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 241 | isa = PBXContainerItemProxy; 242 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 243 | proxyType = 2; 244 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 245 | remoteInfo = "RCTAnimation-tvOS"; 246 | }; 247 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 248 | isa = PBXContainerItemProxy; 249 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 250 | proxyType = 2; 251 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 252 | remoteInfo = RCTLinking; 253 | }; 254 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 255 | isa = PBXContainerItemProxy; 256 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 257 | proxyType = 2; 258 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 259 | remoteInfo = RCTText; 260 | }; 261 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 262 | isa = PBXContainerItemProxy; 263 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 264 | proxyType = 2; 265 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 266 | remoteInfo = RCTBlob; 267 | }; 268 | /* End PBXContainerItemProxy section */ 269 | 270 | /* Begin PBXFileReference section */ 271 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 272 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 273 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 274 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 275 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 276 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 277 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 278 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 279 | 00E356F21AD99517003FC87E /* ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleTests.m; sourceTree = ""; }; 280 | 0B937F6461F14B209B90D528 /* RNActions.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNActions.xcodeproj; path = "../node_modules/react-native-actions/ios/RNActions.xcodeproj"; sourceTree = ""; }; 281 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 282 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 283 | 13B07F961A680F5B00A75B9A /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 284 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Example/AppDelegate.h; sourceTree = ""; }; 285 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Example/AppDelegate.m; sourceTree = ""; }; 286 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 287 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Example/Images.xcassets; sourceTree = ""; }; 288 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Example/Info.plist; sourceTree = ""; }; 289 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Example/main.m; sourceTree = ""; }; 290 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 291 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 292 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Example-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 293 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 294 | 655EA959B4124AADB3D4C9DF /* libRNActions.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNActions.a; sourceTree = ""; }; 295 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 296 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 297 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 298 | /* End PBXFileReference section */ 299 | 300 | /* Begin PBXFrameworksBuildPhase section */ 301 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 302 | isa = PBXFrameworksBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 310 | isa = PBXFrameworksBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 314 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 315 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 316 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 317 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 318 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 319 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 320 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 321 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 322 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 323 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 324 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 325 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 326 | 94C76FFB71D14646BBDD4F6B /* libRNActions.a in Frameworks */, 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | }; 330 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 331 | isa = PBXFrameworksBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 2D02E4C91E0B4AEC006451C7 /* libReact-tvOS.a in Frameworks */, 335 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 336 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 337 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 338 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 339 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 340 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 341 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 342 | ); 343 | runOnlyForDeploymentPostprocessing = 0; 344 | }; 345 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 346 | isa = PBXFrameworksBuildPhase; 347 | buildActionMask = 2147483647; 348 | files = ( 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | /* End PBXFrameworksBuildPhase section */ 353 | 354 | /* Begin PBXGroup section */ 355 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 356 | isa = PBXGroup; 357 | children = ( 358 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 359 | ); 360 | name = Products; 361 | sourceTree = ""; 362 | }; 363 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 364 | isa = PBXGroup; 365 | children = ( 366 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 367 | ); 368 | name = Products; 369 | sourceTree = ""; 370 | }; 371 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 372 | isa = PBXGroup; 373 | children = ( 374 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 375 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 376 | ); 377 | name = Products; 378 | sourceTree = ""; 379 | }; 380 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 381 | isa = PBXGroup; 382 | children = ( 383 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 384 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 385 | ); 386 | name = Products; 387 | sourceTree = ""; 388 | }; 389 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 390 | isa = PBXGroup; 391 | children = ( 392 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 393 | ); 394 | name = Products; 395 | sourceTree = ""; 396 | }; 397 | 00E356EF1AD99517003FC87E /* ExampleTests */ = { 398 | isa = PBXGroup; 399 | children = ( 400 | 00E356F21AD99517003FC87E /* ExampleTests.m */, 401 | 00E356F01AD99517003FC87E /* Supporting Files */, 402 | ); 403 | path = ExampleTests; 404 | sourceTree = ""; 405 | }; 406 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 407 | isa = PBXGroup; 408 | children = ( 409 | 00E356F11AD99517003FC87E /* Info.plist */, 410 | ); 411 | name = "Supporting Files"; 412 | sourceTree = ""; 413 | }; 414 | 139105B71AF99BAD00B5F7CC /* Products */ = { 415 | isa = PBXGroup; 416 | children = ( 417 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 418 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 419 | ); 420 | name = Products; 421 | sourceTree = ""; 422 | }; 423 | 139FDEE71B06529A00C62182 /* Products */ = { 424 | isa = PBXGroup; 425 | children = ( 426 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 427 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 428 | 19C9CB1E1F94E82F00CDA13D /* libfishhook.a */, 429 | 19C9CB201F94E82F00CDA13D /* libfishhook-tvOS.a */, 430 | ); 431 | name = Products; 432 | sourceTree = ""; 433 | }; 434 | 13B07FAE1A68108700A75B9A /* Example */ = { 435 | isa = PBXGroup; 436 | children = ( 437 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 438 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 439 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 440 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 441 | 13B07FB61A68108700A75B9A /* Info.plist */, 442 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 443 | 13B07FB71A68108700A75B9A /* main.m */, 444 | ); 445 | name = Example; 446 | sourceTree = ""; 447 | }; 448 | 146834001AC3E56700842450 /* Products */ = { 449 | isa = PBXGroup; 450 | children = ( 451 | 146834041AC3E56700842450 /* libReact.a */, 452 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 453 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 454 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 455 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 456 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 457 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 458 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */, 459 | ); 460 | name = Products; 461 | sourceTree = ""; 462 | }; 463 | 19C9CB051F94E82E00CDA13D /* Recovered References */ = { 464 | isa = PBXGroup; 465 | children = ( 466 | 655EA959B4124AADB3D4C9DF /* libRNActions.a */, 467 | ); 468 | name = "Recovered References"; 469 | sourceTree = ""; 470 | }; 471 | 19C9CB211F94E82F00CDA13D /* Products */ = { 472 | isa = PBXGroup; 473 | children = ( 474 | 19C9CB251F94E82F00CDA13D /* libRNActions.a */, 475 | ); 476 | name = Products; 477 | sourceTree = ""; 478 | }; 479 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 483 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 484 | ); 485 | name = Products; 486 | sourceTree = ""; 487 | }; 488 | 78C398B11ACF4ADC00677621 /* Products */ = { 489 | isa = PBXGroup; 490 | children = ( 491 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 492 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 493 | ); 494 | name = Products; 495 | sourceTree = ""; 496 | }; 497 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 498 | isa = PBXGroup; 499 | children = ( 500 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 501 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 502 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 503 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 504 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 505 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 506 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 507 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 508 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 509 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 510 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 511 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 512 | 0B937F6461F14B209B90D528 /* RNActions.xcodeproj */, 513 | ); 514 | name = Libraries; 515 | sourceTree = ""; 516 | }; 517 | 832341B11AAA6A8300B99B32 /* Products */ = { 518 | isa = PBXGroup; 519 | children = ( 520 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 521 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 522 | ); 523 | name = Products; 524 | sourceTree = ""; 525 | }; 526 | 83CBB9F61A601CBA00E9B192 = { 527 | isa = PBXGroup; 528 | children = ( 529 | 13B07FAE1A68108700A75B9A /* Example */, 530 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 531 | 00E356EF1AD99517003FC87E /* ExampleTests */, 532 | 83CBBA001A601CBA00E9B192 /* Products */, 533 | 19C9CB051F94E82E00CDA13D /* Recovered References */, 534 | ); 535 | indentWidth = 2; 536 | sourceTree = ""; 537 | tabWidth = 2; 538 | usesTabs = 0; 539 | }; 540 | 83CBBA001A601CBA00E9B192 /* Products */ = { 541 | isa = PBXGroup; 542 | children = ( 543 | 13B07F961A680F5B00A75B9A /* Example.app */, 544 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */, 545 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */, 546 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */, 547 | ); 548 | name = Products; 549 | sourceTree = ""; 550 | }; 551 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 552 | isa = PBXGroup; 553 | children = ( 554 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 555 | 19C9CB0C1F94E82F00CDA13D /* libRCTBlob-tvOS.a */, 556 | ); 557 | name = Products; 558 | sourceTree = ""; 559 | }; 560 | /* End PBXGroup section */ 561 | 562 | /* Begin PBXNativeTarget section */ 563 | 00E356ED1AD99517003FC87E /* ExampleTests */ = { 564 | isa = PBXNativeTarget; 565 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */; 566 | buildPhases = ( 567 | 00E356EA1AD99517003FC87E /* Sources */, 568 | 00E356EB1AD99517003FC87E /* Frameworks */, 569 | 00E356EC1AD99517003FC87E /* Resources */, 570 | ); 571 | buildRules = ( 572 | ); 573 | dependencies = ( 574 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 575 | ); 576 | name = ExampleTests; 577 | productName = ExampleTests; 578 | productReference = 00E356EE1AD99517003FC87E /* ExampleTests.xctest */; 579 | productType = "com.apple.product-type.bundle.unit-test"; 580 | }; 581 | 13B07F861A680F5B00A75B9A /* Example */ = { 582 | isa = PBXNativeTarget; 583 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */; 584 | buildPhases = ( 585 | 13B07F871A680F5B00A75B9A /* Sources */, 586 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 587 | 13B07F8E1A680F5B00A75B9A /* Resources */, 588 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 589 | ); 590 | buildRules = ( 591 | ); 592 | dependencies = ( 593 | ); 594 | name = Example; 595 | productName = "Hello World"; 596 | productReference = 13B07F961A680F5B00A75B9A /* Example.app */; 597 | productType = "com.apple.product-type.application"; 598 | }; 599 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */ = { 600 | isa = PBXNativeTarget; 601 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */; 602 | buildPhases = ( 603 | 2D02E4771E0B4A5D006451C7 /* Sources */, 604 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 605 | 2D02E4791E0B4A5D006451C7 /* Resources */, 606 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 607 | ); 608 | buildRules = ( 609 | ); 610 | dependencies = ( 611 | ); 612 | name = "Example-tvOS"; 613 | productName = "Example-tvOS"; 614 | productReference = 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */; 615 | productType = "com.apple.product-type.application"; 616 | }; 617 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */ = { 618 | isa = PBXNativeTarget; 619 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */; 620 | buildPhases = ( 621 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 622 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 623 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 624 | ); 625 | buildRules = ( 626 | ); 627 | dependencies = ( 628 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 629 | ); 630 | name = "Example-tvOSTests"; 631 | productName = "Example-tvOSTests"; 632 | productReference = 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */; 633 | productType = "com.apple.product-type.bundle.unit-test"; 634 | }; 635 | /* End PBXNativeTarget section */ 636 | 637 | /* Begin PBXProject section */ 638 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 639 | isa = PBXProject; 640 | attributes = { 641 | LastUpgradeCheck = 610; 642 | ORGANIZATIONNAME = Facebook; 643 | TargetAttributes = { 644 | 00E356ED1AD99517003FC87E = { 645 | CreatedOnToolsVersion = 6.2; 646 | TestTargetID = 13B07F861A680F5B00A75B9A; 647 | }; 648 | 2D02E47A1E0B4A5D006451C7 = { 649 | CreatedOnToolsVersion = 8.2.1; 650 | ProvisioningStyle = Automatic; 651 | }; 652 | 2D02E48F1E0B4A5D006451C7 = { 653 | CreatedOnToolsVersion = 8.2.1; 654 | ProvisioningStyle = Automatic; 655 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 656 | }; 657 | }; 658 | }; 659 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */; 660 | compatibilityVersion = "Xcode 3.2"; 661 | developmentRegion = English; 662 | hasScannedForEncodings = 0; 663 | knownRegions = ( 664 | en, 665 | Base, 666 | ); 667 | mainGroup = 83CBB9F61A601CBA00E9B192; 668 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 669 | projectDirPath = ""; 670 | projectReferences = ( 671 | { 672 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 673 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 674 | }, 675 | { 676 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 677 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 678 | }, 679 | { 680 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 681 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 682 | }, 683 | { 684 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 685 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 686 | }, 687 | { 688 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 689 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 690 | }, 691 | { 692 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 693 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 694 | }, 695 | { 696 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 697 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 698 | }, 699 | { 700 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 701 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 702 | }, 703 | { 704 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 705 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 706 | }, 707 | { 708 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 709 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 710 | }, 711 | { 712 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 713 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 714 | }, 715 | { 716 | ProductGroup = 146834001AC3E56700842450 /* Products */; 717 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 718 | }, 719 | { 720 | ProductGroup = 19C9CB211F94E82F00CDA13D /* Products */; 721 | ProjectRef = 0B937F6461F14B209B90D528 /* RNActions.xcodeproj */; 722 | }, 723 | ); 724 | projectRoot = ""; 725 | targets = ( 726 | 13B07F861A680F5B00A75B9A /* Example */, 727 | 00E356ED1AD99517003FC87E /* ExampleTests */, 728 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */, 729 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */, 730 | ); 731 | }; 732 | /* End PBXProject section */ 733 | 734 | /* Begin PBXReferenceProxy section */ 735 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 736 | isa = PBXReferenceProxy; 737 | fileType = archive.ar; 738 | path = libRCTActionSheet.a; 739 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 740 | sourceTree = BUILT_PRODUCTS_DIR; 741 | }; 742 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 743 | isa = PBXReferenceProxy; 744 | fileType = archive.ar; 745 | path = libRCTGeolocation.a; 746 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 747 | sourceTree = BUILT_PRODUCTS_DIR; 748 | }; 749 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 750 | isa = PBXReferenceProxy; 751 | fileType = archive.ar; 752 | path = libRCTImage.a; 753 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 754 | sourceTree = BUILT_PRODUCTS_DIR; 755 | }; 756 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 757 | isa = PBXReferenceProxy; 758 | fileType = archive.ar; 759 | path = libRCTNetwork.a; 760 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 761 | sourceTree = BUILT_PRODUCTS_DIR; 762 | }; 763 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 764 | isa = PBXReferenceProxy; 765 | fileType = archive.ar; 766 | path = libRCTVibration.a; 767 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 768 | sourceTree = BUILT_PRODUCTS_DIR; 769 | }; 770 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 771 | isa = PBXReferenceProxy; 772 | fileType = archive.ar; 773 | path = libRCTSettings.a; 774 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 775 | sourceTree = BUILT_PRODUCTS_DIR; 776 | }; 777 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 778 | isa = PBXReferenceProxy; 779 | fileType = archive.ar; 780 | path = libRCTWebSocket.a; 781 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 782 | sourceTree = BUILT_PRODUCTS_DIR; 783 | }; 784 | 146834041AC3E56700842450 /* libReact.a */ = { 785 | isa = PBXReferenceProxy; 786 | fileType = archive.ar; 787 | path = libReact.a; 788 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 789 | sourceTree = BUILT_PRODUCTS_DIR; 790 | }; 791 | 19C9CB0C1F94E82F00CDA13D /* libRCTBlob-tvOS.a */ = { 792 | isa = PBXReferenceProxy; 793 | fileType = archive.ar; 794 | path = "libRCTBlob-tvOS.a"; 795 | remoteRef = 19C9CB0B1F94E82F00CDA13D /* PBXContainerItemProxy */; 796 | sourceTree = BUILT_PRODUCTS_DIR; 797 | }; 798 | 19C9CB1E1F94E82F00CDA13D /* libfishhook.a */ = { 799 | isa = PBXReferenceProxy; 800 | fileType = archive.ar; 801 | path = libfishhook.a; 802 | remoteRef = 19C9CB1D1F94E82F00CDA13D /* PBXContainerItemProxy */; 803 | sourceTree = BUILT_PRODUCTS_DIR; 804 | }; 805 | 19C9CB201F94E82F00CDA13D /* libfishhook-tvOS.a */ = { 806 | isa = PBXReferenceProxy; 807 | fileType = archive.ar; 808 | path = "libfishhook-tvOS.a"; 809 | remoteRef = 19C9CB1F1F94E82F00CDA13D /* PBXContainerItemProxy */; 810 | sourceTree = BUILT_PRODUCTS_DIR; 811 | }; 812 | 19C9CB251F94E82F00CDA13D /* libRNActions.a */ = { 813 | isa = PBXReferenceProxy; 814 | fileType = archive.ar; 815 | path = libRNActions.a; 816 | remoteRef = 19C9CB241F94E82F00CDA13D /* PBXContainerItemProxy */; 817 | sourceTree = BUILT_PRODUCTS_DIR; 818 | }; 819 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 820 | isa = PBXReferenceProxy; 821 | fileType = archive.ar; 822 | path = "libRCTImage-tvOS.a"; 823 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 824 | sourceTree = BUILT_PRODUCTS_DIR; 825 | }; 826 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 827 | isa = PBXReferenceProxy; 828 | fileType = archive.ar; 829 | path = "libRCTLinking-tvOS.a"; 830 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 831 | sourceTree = BUILT_PRODUCTS_DIR; 832 | }; 833 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = "libRCTNetwork-tvOS.a"; 837 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = "libRCTSettings-tvOS.a"; 844 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = "libRCTText-tvOS.a"; 851 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = "libRCTWebSocket-tvOS.a"; 858 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = "libReact-tvOS.a"; 865 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = libyoga.a; 872 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = libyoga.a; 879 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = libcxxreact.a; 886 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = libcxxreact.a; 893 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = libjschelpers.a; 900 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = libjschelpers.a; 907 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = libRCTAnimation.a; 914 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = libRCTAnimation.a; 921 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = libRCTLinking.a; 928 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = libRCTText.a; 935 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = libRCTBlob.a; 942 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | /* End PBXReferenceProxy section */ 946 | 947 | /* Begin PBXResourcesBuildPhase section */ 948 | 00E356EC1AD99517003FC87E /* Resources */ = { 949 | isa = PBXResourcesBuildPhase; 950 | buildActionMask = 2147483647; 951 | files = ( 952 | ); 953 | runOnlyForDeploymentPostprocessing = 0; 954 | }; 955 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 956 | isa = PBXResourcesBuildPhase; 957 | buildActionMask = 2147483647; 958 | files = ( 959 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 960 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 961 | ); 962 | runOnlyForDeploymentPostprocessing = 0; 963 | }; 964 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 965 | isa = PBXResourcesBuildPhase; 966 | buildActionMask = 2147483647; 967 | files = ( 968 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 969 | ); 970 | runOnlyForDeploymentPostprocessing = 0; 971 | }; 972 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 973 | isa = PBXResourcesBuildPhase; 974 | buildActionMask = 2147483647; 975 | files = ( 976 | ); 977 | runOnlyForDeploymentPostprocessing = 0; 978 | }; 979 | /* End PBXResourcesBuildPhase section */ 980 | 981 | /* Begin PBXShellScriptBuildPhase section */ 982 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 983 | isa = PBXShellScriptBuildPhase; 984 | buildActionMask = 2147483647; 985 | files = ( 986 | ); 987 | inputPaths = ( 988 | ); 989 | name = "Bundle React Native code and images"; 990 | outputPaths = ( 991 | ); 992 | runOnlyForDeploymentPostprocessing = 0; 993 | shellPath = /bin/sh; 994 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 995 | }; 996 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 997 | isa = PBXShellScriptBuildPhase; 998 | buildActionMask = 2147483647; 999 | files = ( 1000 | ); 1001 | inputPaths = ( 1002 | ); 1003 | name = "Bundle React Native Code And Images"; 1004 | outputPaths = ( 1005 | ); 1006 | runOnlyForDeploymentPostprocessing = 0; 1007 | shellPath = /bin/sh; 1008 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1009 | }; 1010 | /* End PBXShellScriptBuildPhase section */ 1011 | 1012 | /* Begin PBXSourcesBuildPhase section */ 1013 | 00E356EA1AD99517003FC87E /* Sources */ = { 1014 | isa = PBXSourcesBuildPhase; 1015 | buildActionMask = 2147483647; 1016 | files = ( 1017 | 00E356F31AD99517003FC87E /* ExampleTests.m in Sources */, 1018 | ); 1019 | runOnlyForDeploymentPostprocessing = 0; 1020 | }; 1021 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1022 | isa = PBXSourcesBuildPhase; 1023 | buildActionMask = 2147483647; 1024 | files = ( 1025 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1026 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1027 | ); 1028 | runOnlyForDeploymentPostprocessing = 0; 1029 | }; 1030 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1031 | isa = PBXSourcesBuildPhase; 1032 | buildActionMask = 2147483647; 1033 | files = ( 1034 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1035 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1036 | ); 1037 | runOnlyForDeploymentPostprocessing = 0; 1038 | }; 1039 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1040 | isa = PBXSourcesBuildPhase; 1041 | buildActionMask = 2147483647; 1042 | files = ( 1043 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */, 1044 | ); 1045 | runOnlyForDeploymentPostprocessing = 0; 1046 | }; 1047 | /* End PBXSourcesBuildPhase section */ 1048 | 1049 | /* Begin PBXTargetDependency section */ 1050 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1051 | isa = PBXTargetDependency; 1052 | target = 13B07F861A680F5B00A75B9A /* Example */; 1053 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1054 | }; 1055 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1056 | isa = PBXTargetDependency; 1057 | target = 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */; 1058 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1059 | }; 1060 | /* End PBXTargetDependency section */ 1061 | 1062 | /* Begin PBXVariantGroup section */ 1063 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1064 | isa = PBXVariantGroup; 1065 | children = ( 1066 | 13B07FB21A68108700A75B9A /* Base */, 1067 | ); 1068 | name = LaunchScreen.xib; 1069 | path = Example; 1070 | sourceTree = ""; 1071 | }; 1072 | /* End PBXVariantGroup section */ 1073 | 1074 | /* Begin XCBuildConfiguration section */ 1075 | 00E356F61AD99517003FC87E /* Debug */ = { 1076 | isa = XCBuildConfiguration; 1077 | buildSettings = { 1078 | BUNDLE_LOADER = "$(TEST_HOST)"; 1079 | GCC_PREPROCESSOR_DEFINITIONS = ( 1080 | "DEBUG=1", 1081 | "$(inherited)", 1082 | ); 1083 | HEADER_SEARCH_PATHS = ( 1084 | "$(inherited)", 1085 | "$(SRCROOT)/../node_modules/react-native-actions/ios", 1086 | ); 1087 | INFOPLIST_FILE = ExampleTests/Info.plist; 1088 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1089 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1090 | LIBRARY_SEARCH_PATHS = ( 1091 | "$(inherited)", 1092 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1093 | ); 1094 | OTHER_LDFLAGS = ( 1095 | "-ObjC", 1096 | "-lc++", 1097 | ); 1098 | PRODUCT_NAME = "$(TARGET_NAME)"; 1099 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example"; 1100 | }; 1101 | name = Debug; 1102 | }; 1103 | 00E356F71AD99517003FC87E /* Release */ = { 1104 | isa = XCBuildConfiguration; 1105 | buildSettings = { 1106 | BUNDLE_LOADER = "$(TEST_HOST)"; 1107 | COPY_PHASE_STRIP = NO; 1108 | HEADER_SEARCH_PATHS = ( 1109 | "$(inherited)", 1110 | "$(SRCROOT)/../node_modules/react-native-actions/ios", 1111 | ); 1112 | INFOPLIST_FILE = ExampleTests/Info.plist; 1113 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1114 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1115 | LIBRARY_SEARCH_PATHS = ( 1116 | "$(inherited)", 1117 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1118 | ); 1119 | OTHER_LDFLAGS = ( 1120 | "-ObjC", 1121 | "-lc++", 1122 | ); 1123 | PRODUCT_NAME = "$(TARGET_NAME)"; 1124 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example"; 1125 | }; 1126 | name = Release; 1127 | }; 1128 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1129 | isa = XCBuildConfiguration; 1130 | buildSettings = { 1131 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1132 | CURRENT_PROJECT_VERSION = 1; 1133 | DEAD_CODE_STRIPPING = NO; 1134 | HEADER_SEARCH_PATHS = ( 1135 | "$(inherited)", 1136 | "$(SRCROOT)/../node_modules/react-native-actions/ios", 1137 | ); 1138 | INFOPLIST_FILE = Example/Info.plist; 1139 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1140 | OTHER_LDFLAGS = ( 1141 | "$(inherited)", 1142 | "-ObjC", 1143 | "-lc++", 1144 | ); 1145 | PRODUCT_NAME = Example; 1146 | VERSIONING_SYSTEM = "apple-generic"; 1147 | }; 1148 | name = Debug; 1149 | }; 1150 | 13B07F951A680F5B00A75B9A /* Release */ = { 1151 | isa = XCBuildConfiguration; 1152 | buildSettings = { 1153 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1154 | CURRENT_PROJECT_VERSION = 1; 1155 | HEADER_SEARCH_PATHS = ( 1156 | "$(inherited)", 1157 | "$(SRCROOT)/../node_modules/react-native-actions/ios", 1158 | ); 1159 | INFOPLIST_FILE = Example/Info.plist; 1160 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1161 | OTHER_LDFLAGS = ( 1162 | "$(inherited)", 1163 | "-ObjC", 1164 | "-lc++", 1165 | ); 1166 | PRODUCT_NAME = Example; 1167 | VERSIONING_SYSTEM = "apple-generic"; 1168 | }; 1169 | name = Release; 1170 | }; 1171 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1172 | isa = XCBuildConfiguration; 1173 | buildSettings = { 1174 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1175 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1176 | CLANG_ANALYZER_NONNULL = YES; 1177 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1178 | CLANG_WARN_INFINITE_RECURSION = YES; 1179 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1180 | DEBUG_INFORMATION_FORMAT = dwarf; 1181 | ENABLE_TESTABILITY = YES; 1182 | GCC_NO_COMMON_BLOCKS = YES; 1183 | HEADER_SEARCH_PATHS = ( 1184 | "$(inherited)", 1185 | "$(SRCROOT)/../node_modules/react-native-actions/ios", 1186 | ); 1187 | INFOPLIST_FILE = "Example-tvOS/Info.plist"; 1188 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1189 | LIBRARY_SEARCH_PATHS = ( 1190 | "$(inherited)", 1191 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1192 | ); 1193 | OTHER_LDFLAGS = ( 1194 | "-ObjC", 1195 | "-lc++", 1196 | ); 1197 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS"; 1198 | PRODUCT_NAME = "$(TARGET_NAME)"; 1199 | SDKROOT = appletvos; 1200 | TARGETED_DEVICE_FAMILY = 3; 1201 | TVOS_DEPLOYMENT_TARGET = 9.2; 1202 | }; 1203 | name = Debug; 1204 | }; 1205 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1206 | isa = XCBuildConfiguration; 1207 | buildSettings = { 1208 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1209 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1210 | CLANG_ANALYZER_NONNULL = YES; 1211 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1212 | CLANG_WARN_INFINITE_RECURSION = YES; 1213 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1214 | COPY_PHASE_STRIP = NO; 1215 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1216 | GCC_NO_COMMON_BLOCKS = YES; 1217 | HEADER_SEARCH_PATHS = ( 1218 | "$(inherited)", 1219 | "$(SRCROOT)/../node_modules/react-native-actions/ios", 1220 | ); 1221 | INFOPLIST_FILE = "Example-tvOS/Info.plist"; 1222 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1223 | LIBRARY_SEARCH_PATHS = ( 1224 | "$(inherited)", 1225 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1226 | ); 1227 | OTHER_LDFLAGS = ( 1228 | "-ObjC", 1229 | "-lc++", 1230 | ); 1231 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS"; 1232 | PRODUCT_NAME = "$(TARGET_NAME)"; 1233 | SDKROOT = appletvos; 1234 | TARGETED_DEVICE_FAMILY = 3; 1235 | TVOS_DEPLOYMENT_TARGET = 9.2; 1236 | }; 1237 | name = Release; 1238 | }; 1239 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1240 | isa = XCBuildConfiguration; 1241 | buildSettings = { 1242 | BUNDLE_LOADER = "$(TEST_HOST)"; 1243 | CLANG_ANALYZER_NONNULL = YES; 1244 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1245 | CLANG_WARN_INFINITE_RECURSION = YES; 1246 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1247 | DEBUG_INFORMATION_FORMAT = dwarf; 1248 | ENABLE_TESTABILITY = YES; 1249 | GCC_NO_COMMON_BLOCKS = YES; 1250 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist"; 1251 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1252 | LIBRARY_SEARCH_PATHS = ( 1253 | "$(inherited)", 1254 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1255 | ); 1256 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests"; 1257 | PRODUCT_NAME = "$(TARGET_NAME)"; 1258 | SDKROOT = appletvos; 1259 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS"; 1260 | TVOS_DEPLOYMENT_TARGET = 10.1; 1261 | }; 1262 | name = Debug; 1263 | }; 1264 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1265 | isa = XCBuildConfiguration; 1266 | buildSettings = { 1267 | BUNDLE_LOADER = "$(TEST_HOST)"; 1268 | CLANG_ANALYZER_NONNULL = YES; 1269 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1270 | CLANG_WARN_INFINITE_RECURSION = YES; 1271 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1272 | COPY_PHASE_STRIP = NO; 1273 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1274 | GCC_NO_COMMON_BLOCKS = YES; 1275 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist"; 1276 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1277 | LIBRARY_SEARCH_PATHS = ( 1278 | "$(inherited)", 1279 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1280 | ); 1281 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests"; 1282 | PRODUCT_NAME = "$(TARGET_NAME)"; 1283 | SDKROOT = appletvos; 1284 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS"; 1285 | TVOS_DEPLOYMENT_TARGET = 10.1; 1286 | }; 1287 | name = Release; 1288 | }; 1289 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1290 | isa = XCBuildConfiguration; 1291 | buildSettings = { 1292 | ALWAYS_SEARCH_USER_PATHS = NO; 1293 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1294 | CLANG_CXX_LIBRARY = "libc++"; 1295 | CLANG_ENABLE_MODULES = YES; 1296 | CLANG_ENABLE_OBJC_ARC = YES; 1297 | CLANG_WARN_BOOL_CONVERSION = YES; 1298 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1299 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1300 | CLANG_WARN_EMPTY_BODY = YES; 1301 | CLANG_WARN_ENUM_CONVERSION = YES; 1302 | CLANG_WARN_INT_CONVERSION = YES; 1303 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1304 | CLANG_WARN_UNREACHABLE_CODE = YES; 1305 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1306 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1307 | COPY_PHASE_STRIP = NO; 1308 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1309 | GCC_C_LANGUAGE_STANDARD = gnu99; 1310 | GCC_DYNAMIC_NO_PIC = NO; 1311 | GCC_OPTIMIZATION_LEVEL = 0; 1312 | GCC_PREPROCESSOR_DEFINITIONS = ( 1313 | "DEBUG=1", 1314 | "$(inherited)", 1315 | ); 1316 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1317 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1318 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1319 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1320 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1321 | GCC_WARN_UNUSED_FUNCTION = YES; 1322 | GCC_WARN_UNUSED_VARIABLE = YES; 1323 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1324 | MTL_ENABLE_DEBUG_INFO = YES; 1325 | ONLY_ACTIVE_ARCH = YES; 1326 | SDKROOT = iphoneos; 1327 | }; 1328 | name = Debug; 1329 | }; 1330 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1331 | isa = XCBuildConfiguration; 1332 | buildSettings = { 1333 | ALWAYS_SEARCH_USER_PATHS = NO; 1334 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1335 | CLANG_CXX_LIBRARY = "libc++"; 1336 | CLANG_ENABLE_MODULES = YES; 1337 | CLANG_ENABLE_OBJC_ARC = YES; 1338 | CLANG_WARN_BOOL_CONVERSION = YES; 1339 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1341 | CLANG_WARN_EMPTY_BODY = YES; 1342 | CLANG_WARN_ENUM_CONVERSION = YES; 1343 | CLANG_WARN_INT_CONVERSION = YES; 1344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1345 | CLANG_WARN_UNREACHABLE_CODE = YES; 1346 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1348 | COPY_PHASE_STRIP = YES; 1349 | ENABLE_NS_ASSERTIONS = NO; 1350 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1351 | GCC_C_LANGUAGE_STANDARD = gnu99; 1352 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1353 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1354 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1355 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1356 | GCC_WARN_UNUSED_FUNCTION = YES; 1357 | GCC_WARN_UNUSED_VARIABLE = YES; 1358 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1359 | MTL_ENABLE_DEBUG_INFO = NO; 1360 | SDKROOT = iphoneos; 1361 | VALIDATE_PRODUCT = YES; 1362 | }; 1363 | name = Release; 1364 | }; 1365 | /* End XCBuildConfiguration section */ 1366 | 1367 | /* Begin XCConfigurationList section */ 1368 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */ = { 1369 | isa = XCConfigurationList; 1370 | buildConfigurations = ( 1371 | 00E356F61AD99517003FC87E /* Debug */, 1372 | 00E356F71AD99517003FC87E /* Release */, 1373 | ); 1374 | defaultConfigurationIsVisible = 0; 1375 | defaultConfigurationName = Release; 1376 | }; 1377 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */ = { 1378 | isa = XCConfigurationList; 1379 | buildConfigurations = ( 1380 | 13B07F941A680F5B00A75B9A /* Debug */, 1381 | 13B07F951A680F5B00A75B9A /* Release */, 1382 | ); 1383 | defaultConfigurationIsVisible = 0; 1384 | defaultConfigurationName = Release; 1385 | }; 1386 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */ = { 1387 | isa = XCConfigurationList; 1388 | buildConfigurations = ( 1389 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1390 | 2D02E4981E0B4A5E006451C7 /* Release */, 1391 | ); 1392 | defaultConfigurationIsVisible = 0; 1393 | defaultConfigurationName = Release; 1394 | }; 1395 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */ = { 1396 | isa = XCConfigurationList; 1397 | buildConfigurations = ( 1398 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1399 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1400 | ); 1401 | defaultConfigurationIsVisible = 0; 1402 | defaultConfigurationName = Release; 1403 | }; 1404 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */ = { 1405 | isa = XCConfigurationList; 1406 | buildConfigurations = ( 1407 | 83CBBA201A601CBA00E9B192 /* Debug */, 1408 | 83CBBA211A601CBA00E9B192 /* Release */, 1409 | ); 1410 | defaultConfigurationIsVisible = 0; 1411 | defaultConfigurationName = Release; 1412 | }; 1413 | /* End XCConfigurationList section */ 1414 | }; 1415 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1416 | } 1417 | -------------------------------------------------------------------------------- /example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-tvOS.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 | -------------------------------------------------------------------------------- /example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.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 | -------------------------------------------------------------------------------- /example/ios/Example/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 | -------------------------------------------------------------------------------- /example/ios/Example/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" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"Example" 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 | -------------------------------------------------------------------------------- /example/ios/Example/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 | -------------------------------------------------------------------------------- /example/ios/Example/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 | } -------------------------------------------------------------------------------- /example/ios/Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Example 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 | -------------------------------------------------------------------------------- /example/ios/Example/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 | -------------------------------------------------------------------------------- /example/ios/ExampleTests/ExampleTests.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 ExampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation ExampleTests 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 | -------------------------------------------------------------------------------- /example/ios/ExampleTests/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 | -------------------------------------------------------------------------------- /example/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true 5 | }, 6 | "exclude": [ 7 | "node_modules" 8 | ] 9 | } -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.0.0-beta.5", 11 | "react-native": "0.49.1", 12 | "react-native-actions": "../packages/react-native-actions" 13 | }, 14 | "devDependencies": { 15 | "babel-jest": "21.2.0", 16 | "babel-preset-react-native": "4.0.0", 17 | "jest": "21.2.1", 18 | "react-test-renderer": "16.0.0-beta.5" 19 | }, 20 | "jest": { 21 | "preset": "react-native" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "lerna": "2.2.0", 3 | "packages": [ 4 | "packages/*" 5 | ], 6 | "version": "0.0.0", 7 | "npmClient": "yarn" 8 | } 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "license": "MIT", 3 | "author": { 4 | "name": "Lucas Bento", 5 | "email": "lucas.bsilva@outlook.com", 6 | "url": "https://github.com/lucasbento" 7 | }, 8 | "devDependencies": { 9 | "lerna": "^2.2.0" 10 | }, 11 | "scripts": { 12 | "clean": "lerna clean", 13 | "bootstrap": "lerna bootstrap --concurrency=1", 14 | "build": "./tasks/build.sh", 15 | "prepublish": "./tasks/prepublish.sh" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/react-native-actions/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text -------------------------------------------------------------------------------- /packages/react-native-actions/README.md: -------------------------------------------------------------------------------- 1 |

2 |  React Native Actions 3 |

4 | 5 |

react-native-actions

6 |

7 | Run React Native actions from within VSCode. 8 |

9 | 10 |

11 | 12 | 13 |

14 | 15 | ## Features 16 | 17 | - Reload the code in device; 18 | - Open developer menu; 19 | - Show network requests in console (requires remote debugging). 20 | 21 | This package is inteded to be used with [VSCode React Native Actions](https://marketplace.visualstudio.com/items?itemName=lucasbento.react-native-actions) extension. 22 | 23 | ## Getting started 24 | 25 | ```bash 26 | yarn add react-native-actions --dev 27 | ``` 28 | 29 | ### Automatic installation 30 | 31 | ```bash 32 | react-native link react-native-actions 33 | ``` 34 | 35 | ### Manual installation 36 | 37 | #### iOS 38 | 39 | 1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` 40 | 2. Go to `node_modules` ➜ `react-native-actions` and add `RNActions.xcodeproj` 41 | 3. In XCode, in the project navigator, select your project. Add `libRNActions.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` 42 | 4. Run your project + R 43 | 44 | #### Android 45 | 1. Open up `android/app/src/main/java/[...]/MainActivity.java` 46 | - Add `import com.lucasbento.RNActions.RNActionsPackage;` to the imports at the top of the file 47 | - Add `new RNActionsPackage()` to the list returned by the `getPackages()` method 48 | 2. Append the following lines to `android/settings.gradle`: 49 | ``` 50 | include ':react-native-actions' 51 | project(':react-native-actions').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-actions/android') 52 | ``` 53 | 3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: 54 | ``` 55 | compile project(':react-native-actions') 56 | ``` 57 | 58 | ## Usage 59 | ```jsx 60 | // Your main component 61 | 62 | import withActions from 'react-native-actions'; 63 | 64 | class Application extends Component { 65 | // ... 66 | } 67 | 68 | export default withActions(Application); 69 | ``` 70 | 71 | -------------------------------------------------------------------------------- /packages/react-native-actions/android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.library' 13 | 14 | android { 15 | compileSdkVersion 23 16 | buildToolsVersion "23.0.1" 17 | 18 | defaultConfig { 19 | minSdkVersion 16 20 | targetSdkVersion 22 21 | versionCode 1 22 | versionName "1.0" 23 | } 24 | lintOptions { 25 | abortOnError false 26 | } 27 | } 28 | 29 | repositories { 30 | mavenCentral() 31 | } 32 | 33 | dependencies { 34 | compile 'com.facebook.react:react-native:+' 35 | } 36 | -------------------------------------------------------------------------------- /packages/react-native-actions/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/react-native-actions/android/src/main/java/com/lucasbento/RNActions/RNActionsModule.java: -------------------------------------------------------------------------------- 1 | 2 | package com.lucasbento.RNActions; 3 | 4 | import com.facebook.react.ReactApplication; 5 | import com.facebook.react.ReactInstanceManager; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 8 | import com.facebook.react.bridge.Promise; 9 | import com.facebook.react.bridge.ReactMethod; 10 | import com.facebook.react.devsupport.interfaces.DevSupportManager; 11 | 12 | import java.net.URL; 13 | 14 | public class RNActionsModule extends ReactContextBaseJavaModule { 15 | 16 | private final ReactApplicationContext reactContext; 17 | 18 | public RNActionsModule(ReactApplicationContext reactContext) { 19 | super(reactContext); 20 | this.reactContext = reactContext; 21 | } 22 | 23 | @Override 24 | public String getName() { 25 | return "RNActions"; 26 | } 27 | 28 | private ReactInstanceManager getReactInstanceManager() { 29 | ReactApplication reactApplication = (ReactApplication)getCurrentActivity().getApplication(); 30 | return reactApplication.getReactNativeHost().getReactInstanceManager(); 31 | } 32 | 33 | private DevSupportManager getDevSupportManager() { 34 | return getReactInstanceManager().getDevSupportManager(); 35 | } 36 | 37 | @ReactMethod 38 | public void getHostUrl(final Promise promise) { 39 | try { 40 | URL url = new URL(getDevSupportManager().getSourceUrl()); 41 | String protocol = url.getProtocol(); 42 | String host = url.getHost(); 43 | 44 | promise.resolve(String.format("%s://%s", protocol, host)); 45 | } catch(Exception e) { 46 | promise.reject(e); 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /packages/react-native-actions/android/src/main/java/com/lucasbento/RNActions/RNActionsPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package com.lucasbento.RNActions; 3 | 4 | import java.util.Arrays; 5 | import java.util.Collections; 6 | import java.util.List; 7 | 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.bridge.NativeModule; 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.uimanager.ViewManager; 12 | import com.facebook.react.bridge.JavaScriptModule; 13 | 14 | public class RNActionsPackage implements ReactPackage { 15 | @Override 16 | public List createNativeModules(ReactApplicationContext reactContext) { 17 | return Arrays.asList(new RNActionsModule(reactContext)); 18 | } 19 | 20 | // Deprecated from RN 0.47 21 | public List> createJSModules() { 22 | return Collections.emptyList(); 23 | } 24 | 25 | @Override 26 | public List createViewManagers(ReactApplicationContext reactContext) { 27 | return Collections.emptyList(); 28 | } 29 | } -------------------------------------------------------------------------------- /packages/react-native-actions/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Platform, NativeModules } from 'react-native'; 3 | import hoistNonReactStatics from 'hoist-non-react-statics'; 4 | import Toast from 'react-native-easy-toast'; 5 | import io from 'socket.io-client'; 6 | 7 | import config from './common/config'; 8 | 9 | const DEFAULT_XMLHTTPREQUEST = GLOBAL.XMLHttpRequest; 10 | const isDev = __DEV__; 11 | const isIOS = Platform.OS === 'ios'; 12 | 13 | const withActions = (WrappedComponent) => { 14 | class RNActions extends Component { 15 | state = { 16 | isShowRequestEnabled: false, 17 | }; 18 | 19 | componentWillMount() { 20 | this.handleMount(); 21 | } 22 | 23 | componentWillUnmount() { 24 | this.handleUnmount(); 25 | } 26 | 27 | toggleShowRequest = () => 28 | this.setState(({ isShowRequestEnabled }) => ({ 29 | isShowRequestEnabled: !isShowRequestEnabled, 30 | }), () => { 31 | const toastMessage = this.state.isShowRequestEnabled ? 32 | 'Enabled showing requests in console' : 33 | 'Disabled showing requests in console'; 34 | 35 | this.toast.show(toastMessage); 36 | 37 | GLOBAL.XMLHttpRequest = this.state.isShowRequestEnabled ? 38 | GLOBAL.originalXMLHttpRequest : 39 | DEFAULT_XMLHTTPREQUEST; 40 | }); 41 | 42 | handleMount = () => { 43 | if (!isDev) { 44 | return; 45 | } 46 | 47 | const { RNActions: NativeRNActions } = NativeModules; 48 | 49 | NativeRNActions.getHostUrl() 50 | .then(this.handleSetupSocket); 51 | }; 52 | 53 | handleSetupSocket = (url) => { 54 | const { DevMenu, DevSettings } = NativeModules; 55 | 56 | this.socket = io(`${url}:${config.port}`); 57 | 58 | const COMMANDS = { 59 | reload: isIOS && DevSettings.reload, 60 | openDevMenu: isIOS && DevMenu.show, 61 | toggleShowRequest: this.toggleShowRequest, 62 | }; 63 | 64 | this.socket.on('action', ({ type }) => COMMANDS[type] && COMMANDS[type]()); 65 | }; 66 | 67 | handleUnmount = () => this.socket.disconnect(); 68 | 69 | render() { 70 | if (isDev) { 71 | return [ 72 | this.toast = ref} 75 | />, 76 | , 80 | ]; 81 | } 82 | 83 | return ; 84 | } 85 | } 86 | 87 | return hoistNonReactStatics(RNActions, WrappedComponent); 88 | }; 89 | 90 | export default withActions; 91 | -------------------------------------------------------------------------------- /packages/react-native-actions/ios/RNActions.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface RNActions : NSObject 5 | 6 | @end -------------------------------------------------------------------------------- /packages/react-native-actions/ios/RNActions.m: -------------------------------------------------------------------------------- 1 | 2 | #import "RNActions.h" 3 | #import 4 | #import 5 | 6 | @interface RNActions() 7 | 8 | @end 9 | 10 | @implementation RNActions 11 | 12 | @synthesize bridge = _bridge; 13 | 14 | RCT_EXPORT_MODULE(RNActions) 15 | 16 | RCT_EXPORT_METHOD(reload) 17 | { 18 | [_bridge reload]; 19 | return; 20 | } 21 | 22 | - (NSString *)getUrl { 23 | NSURL * url = [[RCTBundleURLProvider sharedSettings] packagerServerURL]; 24 | NSString * parsedUrl = [NSString stringWithFormat:@"%@", [[NSURL alloc] initWithScheme:[url scheme] 25 | host:[url host] 26 | path:[url path]]]; 27 | 28 | return [parsedUrl substringToIndex:[parsedUrl length] - 1]; 29 | } 30 | 31 | RCT_REMAP_METHOD(getHostUrl, 32 | resolve:(RCTPromiseResolveBlock)resolve 33 | reject:(RCTPromiseRejectBlock)reject) { 34 | resolve([self getUrl]); 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /packages/react-native-actions/ios/RNActions.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = "RNActions" 4 | s.version = "1.0.0" 5 | s.summary = "RNActions" 6 | s.description = <<-DESC 7 | RNActions 8 | DESC 9 | s.homepage = "" 10 | s.license = "MIT" 11 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" } 12 | s.author = { "author" => "author@domain.cn" } 13 | s.platform = :ios, "7.0" 14 | s.source = { :git => "https://github.com/author/RNActions.git", :tag => "master" } 15 | s.source_files = "RNActions/**/*.{h,m}" 16 | s.requires_arc = true 17 | 18 | 19 | s.dependency "React" 20 | #s.dependency "others" 21 | 22 | end 23 | 24 | -------------------------------------------------------------------------------- /packages/react-native-actions/ios/RNActions.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B3E7B58A1CC2AC0600A0062D /* RNActions.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNActions.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 /* libRNActions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNActions.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | B3E7B5881CC2AC0600A0062D /* RNActions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNActions.h; sourceTree = ""; }; 28 | B3E7B5891CC2AC0600A0062D /* RNActions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNActions.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 /* libRNActions.a */, 46 | ); 47 | name = Products; 48 | sourceTree = ""; 49 | }; 50 | 58B511D21A9E6C8500147676 = { 51 | isa = PBXGroup; 52 | children = ( 53 | B3E7B5881CC2AC0600A0062D /* RNActions.h */, 54 | B3E7B5891CC2AC0600A0062D /* RNActions.m */, 55 | 134814211AA4EA7D00B7C361 /* Products */, 56 | ); 57 | sourceTree = ""; 58 | }; 59 | /* End PBXGroup section */ 60 | 61 | /* Begin PBXNativeTarget section */ 62 | 58B511DA1A9E6C8500147676 /* RNActions */ = { 63 | isa = PBXNativeTarget; 64 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNActions" */; 65 | buildPhases = ( 66 | 58B511D71A9E6C8500147676 /* Sources */, 67 | 58B511D81A9E6C8500147676 /* Frameworks */, 68 | 58B511D91A9E6C8500147676 /* CopyFiles */, 69 | ); 70 | buildRules = ( 71 | ); 72 | dependencies = ( 73 | ); 74 | name = RNActions; 75 | productName = RCTDataManager; 76 | productReference = 134814201AA4EA6300B7C361 /* libRNActions.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 = 0830; 86 | ORGANIZATIONNAME = Facebook; 87 | TargetAttributes = { 88 | 58B511DA1A9E6C8500147676 = { 89 | CreatedOnToolsVersion = 6.1.1; 90 | }; 91 | }; 92 | }; 93 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNActions" */; 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 /* RNActions */, 106 | ); 107 | }; 108 | /* End PBXProject section */ 109 | 110 | /* Begin PBXSourcesBuildPhase section */ 111 | 58B511D71A9E6C8500147676 /* Sources */ = { 112 | isa = PBXSourcesBuildPhase; 113 | buildActionMask = 2147483647; 114 | files = ( 115 | B3E7B58A1CC2AC0600A0062D /* RNActions.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_INFINITE_RECURSION = YES; 136 | CLANG_WARN_INT_CONVERSION = YES; 137 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 138 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 139 | CLANG_WARN_UNREACHABLE_CODE = YES; 140 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 141 | COPY_PHASE_STRIP = NO; 142 | ENABLE_STRICT_OBJC_MSGSEND = YES; 143 | ENABLE_TESTABILITY = YES; 144 | GCC_C_LANGUAGE_STANDARD = gnu99; 145 | GCC_DYNAMIC_NO_PIC = NO; 146 | GCC_NO_COMMON_BLOCKS = YES; 147 | GCC_OPTIMIZATION_LEVEL = 0; 148 | GCC_PREPROCESSOR_DEFINITIONS = ( 149 | "DEBUG=1", 150 | "$(inherited)", 151 | ); 152 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 153 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 154 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 155 | GCC_WARN_UNDECLARED_SELECTOR = YES; 156 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 157 | GCC_WARN_UNUSED_FUNCTION = YES; 158 | GCC_WARN_UNUSED_VARIABLE = YES; 159 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 160 | MTL_ENABLE_DEBUG_INFO = YES; 161 | ONLY_ACTIVE_ARCH = YES; 162 | SDKROOT = iphoneos; 163 | }; 164 | name = Debug; 165 | }; 166 | 58B511EE1A9E6C8500147676 /* Release */ = { 167 | isa = XCBuildConfiguration; 168 | buildSettings = { 169 | ALWAYS_SEARCH_USER_PATHS = NO; 170 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 171 | CLANG_CXX_LIBRARY = "libc++"; 172 | CLANG_ENABLE_MODULES = YES; 173 | CLANG_ENABLE_OBJC_ARC = YES; 174 | CLANG_WARN_BOOL_CONVERSION = YES; 175 | CLANG_WARN_CONSTANT_CONVERSION = YES; 176 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 177 | CLANG_WARN_EMPTY_BODY = YES; 178 | CLANG_WARN_ENUM_CONVERSION = YES; 179 | CLANG_WARN_INFINITE_RECURSION = YES; 180 | CLANG_WARN_INT_CONVERSION = YES; 181 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 182 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 183 | CLANG_WARN_UNREACHABLE_CODE = YES; 184 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 185 | COPY_PHASE_STRIP = YES; 186 | ENABLE_NS_ASSERTIONS = NO; 187 | ENABLE_STRICT_OBJC_MSGSEND = YES; 188 | GCC_C_LANGUAGE_STANDARD = gnu99; 189 | GCC_NO_COMMON_BLOCKS = YES; 190 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 191 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 192 | GCC_WARN_UNDECLARED_SELECTOR = YES; 193 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 194 | GCC_WARN_UNUSED_FUNCTION = YES; 195 | GCC_WARN_UNUSED_VARIABLE = YES; 196 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 197 | MTL_ENABLE_DEBUG_INFO = NO; 198 | SDKROOT = iphoneos; 199 | VALIDATE_PRODUCT = YES; 200 | }; 201 | name = Release; 202 | }; 203 | 58B511F01A9E6C8500147676 /* Debug */ = { 204 | isa = XCBuildConfiguration; 205 | buildSettings = { 206 | HEADER_SEARCH_PATHS = ( 207 | "$(inherited)", 208 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 209 | "$(SRCROOT)/../../../React/**", 210 | "$(SRCROOT)/../../react-native/React/**", 211 | ); 212 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 213 | OTHER_LDFLAGS = "-ObjC"; 214 | PRODUCT_NAME = RNActions; 215 | SKIP_INSTALL = YES; 216 | }; 217 | name = Debug; 218 | }; 219 | 58B511F11A9E6C8500147676 /* Release */ = { 220 | isa = XCBuildConfiguration; 221 | buildSettings = { 222 | HEADER_SEARCH_PATHS = ( 223 | "$(inherited)", 224 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 225 | "$(SRCROOT)/../../../React/**", 226 | "$(SRCROOT)/../../react-native/React/**", 227 | ); 228 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 229 | OTHER_LDFLAGS = "-ObjC"; 230 | PRODUCT_NAME = RNActions; 231 | SKIP_INSTALL = YES; 232 | }; 233 | name = Release; 234 | }; 235 | /* End XCBuildConfiguration section */ 236 | 237 | /* Begin XCConfigurationList section */ 238 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNActions" */ = { 239 | isa = XCConfigurationList; 240 | buildConfigurations = ( 241 | 58B511ED1A9E6C8500147676 /* Debug */, 242 | 58B511EE1A9E6C8500147676 /* Release */, 243 | ); 244 | defaultConfigurationIsVisible = 0; 245 | defaultConfigurationName = Release; 246 | }; 247 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNActions" */ = { 248 | isa = XCConfigurationList; 249 | buildConfigurations = ( 250 | 58B511F01A9E6C8500147676 /* Debug */, 251 | 58B511F11A9E6C8500147676 /* Release */, 252 | ); 253 | defaultConfigurationIsVisible = 0; 254 | defaultConfigurationName = Release; 255 | }; 256 | /* End XCConfigurationList section */ 257 | }; 258 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 259 | } 260 | -------------------------------------------------------------------------------- /packages/react-native-actions/ios/RNActions.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | 3 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native-actions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-actions", 3 | "description": "Run React Native actions from within VSCode", 4 | "version": "1.1.0", 5 | "author": { 6 | "name": "Lucas Bento", 7 | "email": "lucas.bsilva@outlook.com", 8 | "url": "https://github.com/lucasbento" 9 | }, 10 | "bugs": { 11 | "url": "https://github.com/lucasbento/react-native-actions/issues" 12 | }, 13 | "dependencies": { 14 | "hoist-non-react-statics": "^2.3.1", 15 | "react-native-easy-toast": "^1.0.9", 16 | "socket.io-client": "^2.0.3" 17 | }, 18 | "keywords": [ 19 | "actions", 20 | "react-native", 21 | "reload", 22 | "vscode" 23 | ], 24 | "license": "MIT", 25 | "main": "index.js", 26 | "peerDependencies": { 27 | "react-native": "^0.41.2" 28 | }, 29 | "repository": { 30 | "type": "git", 31 | "url": "https://github.com/lucasbento/react-native-actions" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/react-native-actions/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | after@0.8.2: 6 | version "0.8.2" 7 | resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f" 8 | 9 | arraybuffer.slice@0.0.6: 10 | version "0.0.6" 11 | resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz#f33b2159f0532a3f3107a272c0ccfbd1ad2979ca" 12 | 13 | asap@~2.0.3: 14 | version "2.0.6" 15 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" 16 | 17 | async-limiter@~1.0.0: 18 | version "1.0.0" 19 | resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" 20 | 21 | backo2@1.0.2: 22 | version "1.0.2" 23 | resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947" 24 | 25 | base64-arraybuffer@0.1.5: 26 | version "0.1.5" 27 | resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz#73926771923b5a19747ad666aa5cd4bf9c6e9ce8" 28 | 29 | better-assert@~1.0.0: 30 | version "1.0.2" 31 | resolved "https://registry.yarnpkg.com/better-assert/-/better-assert-1.0.2.tgz#40866b9e1b9e0b55b481894311e68faffaebc522" 32 | dependencies: 33 | callsite "1.0.0" 34 | 35 | blob@0.0.4: 36 | version "0.0.4" 37 | resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.4.tgz#bcf13052ca54463f30f9fc7e95b9a47630a94921" 38 | 39 | callsite@1.0.0: 40 | version "1.0.0" 41 | resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20" 42 | 43 | component-bind@1.0.0: 44 | version "1.0.0" 45 | resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1" 46 | 47 | component-emitter@1.2.1: 48 | version "1.2.1" 49 | resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" 50 | 51 | component-inherit@0.0.3: 52 | version "0.0.3" 53 | resolved "https://registry.yarnpkg.com/component-inherit/-/component-inherit-0.0.3.tgz#645fc4adf58b72b649d5cae65135619db26ff143" 54 | 55 | core-js@^1.0.0: 56 | version "1.2.7" 57 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 58 | 59 | debug@~2.6.4, debug@~2.6.9: 60 | version "2.6.9" 61 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 62 | dependencies: 63 | ms "2.0.0" 64 | 65 | encoding@^0.1.11: 66 | version "0.1.12" 67 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 68 | dependencies: 69 | iconv-lite "~0.4.13" 70 | 71 | engine.io-client@~3.1.0: 72 | version "3.1.4" 73 | resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-3.1.4.tgz#4fcf1370b47163bd2ce9be2733972430350d4ea1" 74 | dependencies: 75 | component-emitter "1.2.1" 76 | component-inherit "0.0.3" 77 | debug "~2.6.9" 78 | engine.io-parser "~2.1.1" 79 | has-cors "1.1.0" 80 | indexof "0.0.1" 81 | parseqs "0.0.5" 82 | parseuri "0.0.5" 83 | ws "~3.3.1" 84 | xmlhttprequest-ssl "~1.5.4" 85 | yeast "0.1.2" 86 | 87 | engine.io-parser@~2.1.1: 88 | version "2.1.1" 89 | resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-2.1.1.tgz#e0fb3f0e0462f7f58bb77c1a52e9f5a7e26e4668" 90 | dependencies: 91 | after "0.8.2" 92 | arraybuffer.slice "0.0.6" 93 | base64-arraybuffer "0.1.5" 94 | blob "0.0.4" 95 | has-binary2 "~1.0.2" 96 | 97 | fbjs@^0.8.16: 98 | version "0.8.16" 99 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" 100 | dependencies: 101 | core-js "^1.0.0" 102 | isomorphic-fetch "^2.1.1" 103 | loose-envify "^1.0.0" 104 | object-assign "^4.1.0" 105 | promise "^7.1.1" 106 | setimmediate "^1.0.5" 107 | ua-parser-js "^0.7.9" 108 | 109 | has-binary2@~1.0.2: 110 | version "1.0.2" 111 | resolved "https://registry.yarnpkg.com/has-binary2/-/has-binary2-1.0.2.tgz#e83dba49f0b9be4d026d27365350d9f03f54be98" 112 | dependencies: 113 | isarray "2.0.1" 114 | 115 | has-cors@1.1.0: 116 | version "1.1.0" 117 | resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39" 118 | 119 | hoist-non-react-statics@^2.3.1: 120 | version "2.3.1" 121 | resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.3.1.tgz#343db84c6018c650778898240135a1420ee22ce0" 122 | 123 | iconv-lite@~0.4.13: 124 | version "0.4.19" 125 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" 126 | 127 | indexof@0.0.1: 128 | version "0.0.1" 129 | resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" 130 | 131 | is-stream@^1.0.1: 132 | version "1.1.0" 133 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 134 | 135 | isarray@2.0.1: 136 | version "2.0.1" 137 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.1.tgz#a37d94ed9cda2d59865c9f76fe596ee1f338741e" 138 | 139 | isomorphic-fetch@^2.1.1: 140 | version "2.2.1" 141 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" 142 | dependencies: 143 | node-fetch "^1.0.1" 144 | whatwg-fetch ">=0.10.0" 145 | 146 | js-tokens@^3.0.0: 147 | version "3.0.2" 148 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 149 | 150 | loose-envify@^1.0.0, loose-envify@^1.3.1: 151 | version "1.3.1" 152 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 153 | dependencies: 154 | js-tokens "^3.0.0" 155 | 156 | ms@2.0.0: 157 | version "2.0.0" 158 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 159 | 160 | node-fetch@^1.0.1: 161 | version "1.7.3" 162 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" 163 | dependencies: 164 | encoding "^0.1.11" 165 | is-stream "^1.0.1" 166 | 167 | object-assign@^4.1.0, object-assign@^4.1.1: 168 | version "4.1.1" 169 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 170 | 171 | object-component@0.0.3: 172 | version "0.0.3" 173 | resolved "https://registry.yarnpkg.com/object-component/-/object-component-0.0.3.tgz#f0c69aa50efc95b866c186f400a33769cb2f1291" 174 | 175 | parseqs@0.0.5: 176 | version "0.0.5" 177 | resolved "https://registry.yarnpkg.com/parseqs/-/parseqs-0.0.5.tgz#d5208a3738e46766e291ba2ea173684921a8b89d" 178 | dependencies: 179 | better-assert "~1.0.0" 180 | 181 | parseuri@0.0.5: 182 | version "0.0.5" 183 | resolved "https://registry.yarnpkg.com/parseuri/-/parseuri-0.0.5.tgz#80204a50d4dbb779bfdc6ebe2778d90e4bce320a" 184 | dependencies: 185 | better-assert "~1.0.0" 186 | 187 | promise@^7.1.1: 188 | version "7.3.1" 189 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" 190 | dependencies: 191 | asap "~2.0.3" 192 | 193 | prop-types@^15.5.10: 194 | version "15.6.0" 195 | resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856" 196 | dependencies: 197 | fbjs "^0.8.16" 198 | loose-envify "^1.3.1" 199 | object-assign "^4.1.1" 200 | 201 | react-native-easy-toast@^1.0.9: 202 | version "1.0.9" 203 | resolved "https://registry.yarnpkg.com/react-native-easy-toast/-/react-native-easy-toast-1.0.9.tgz#85b28ccd8f6dfb67495320a47c275d3fe163e660" 204 | dependencies: 205 | prop-types "^15.5.10" 206 | 207 | safe-buffer@~5.1.0: 208 | version "5.1.1" 209 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" 210 | 211 | setimmediate@^1.0.5: 212 | version "1.0.5" 213 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" 214 | 215 | socket.io-client@^2.0.3: 216 | version "2.0.4" 217 | resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-2.0.4.tgz#0918a552406dc5e540b380dcd97afc4a64332f8e" 218 | dependencies: 219 | backo2 "1.0.2" 220 | base64-arraybuffer "0.1.5" 221 | component-bind "1.0.0" 222 | component-emitter "1.2.1" 223 | debug "~2.6.4" 224 | engine.io-client "~3.1.0" 225 | has-cors "1.1.0" 226 | indexof "0.0.1" 227 | object-component "0.0.3" 228 | parseqs "0.0.5" 229 | parseuri "0.0.5" 230 | socket.io-parser "~3.1.1" 231 | to-array "0.1.4" 232 | 233 | socket.io-parser@~3.1.1: 234 | version "3.1.2" 235 | resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-3.1.2.tgz#dbc2282151fc4faebbe40aeedc0772eba619f7f2" 236 | dependencies: 237 | component-emitter "1.2.1" 238 | debug "~2.6.4" 239 | has-binary2 "~1.0.2" 240 | isarray "2.0.1" 241 | 242 | to-array@0.1.4: 243 | version "0.1.4" 244 | resolved "https://registry.yarnpkg.com/to-array/-/to-array-0.1.4.tgz#17e6c11f73dd4f3d74cda7a4ff3238e9ad9bf890" 245 | 246 | ua-parser-js@^0.7.9: 247 | version "0.7.17" 248 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac" 249 | 250 | ultron@~1.1.0: 251 | version "1.1.1" 252 | resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" 253 | 254 | whatwg-fetch@>=0.10.0: 255 | version "2.0.3" 256 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" 257 | 258 | ws@~3.3.1: 259 | version "3.3.3" 260 | resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2" 261 | dependencies: 262 | async-limiter "~1.0.0" 263 | safe-buffer "~5.1.0" 264 | ultron "~1.1.0" 265 | 266 | xmlhttprequest-ssl@~1.5.4: 267 | version "1.5.4" 268 | resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.4.tgz#04f560915724b389088715cc0ed7813e9677bf57" 269 | 270 | yeast@0.1.2: 271 | version "0.1.2" 272 | resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" 273 | -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-0"] 3 | } -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "dbaeumer.vscode-eslint" 6 | ] 7 | } -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that launches the extension inside a new window 2 | { 3 | "version": "0.1.0", 4 | "configurations": [ 5 | { 6 | "name": "Launch Extension", 7 | "type": "extensionHost", 8 | "request": "launch", 9 | "runtimeExecutable": "${execPath}", 10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}" ], 11 | "stopOnEntry": false 12 | }, 13 | { 14 | "name": "Launch Tests", 15 | "type": "extensionHost", 16 | "request": "launch", 17 | "runtimeExecutable": "${execPath}", 18 | "args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/test" ], 19 | "stopOnEntry": false 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | } -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | test/** 4 | .gitignore 5 | jsconfig.json 6 | vsc-extension-quickstart.md 7 | .babelrc 8 | src -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/README.md: -------------------------------------------------------------------------------- 1 |

2 |  React Native Actions 3 |

4 | 5 |

react-native-actions

6 |

7 | Run React Native actions from within VSCode. 8 |

9 | 10 |

11 | 12 | 13 |

14 | 15 | ## Quick start 16 | 17 | ### Installation 18 | 19 | ### VScode 20 | 21 | Add the extension on terminal: 22 | ```bash 23 | code --install-extension lucasbento.react-native-actions 24 | ``` 25 | > Or [click here to install from the marketplace](https://marketplace.visualstudio.com/items?itemName=lucasbento.react-native-actions). 26 | 27 | ### React Native 28 | 29 | 1. Install the dependency 30 | ```bash 31 | yarn add react-native-actions --dev 32 | ``` 33 | 34 | 2. Link 35 | ```bash 36 | react-native link react-native-actions 37 | ``` 38 | 39 | > You can check out the [manual installation here](https://github.com/lucasbento/react-native-actions/blob/master/packages/react-native-actions/README.md#manual-installation). 40 | 41 | 3. Simply wrap your root component with `withActions` [HOC](https://reactjs.org/docs/higher-order-components.html): 42 | ```jsx 43 | // Your main component 44 | 45 | import withActions from 'react-native-actions'; 46 | 47 | class Application extends Component { 48 | // ... 49 | } 50 | 51 | export default withActions(Application); 52 | ``` 53 | 54 | ### Usage 55 | 56 | - + Shift + R: to reload the code on device; 57 | - + Shift + D: to open developer menu; 58 | - + Shift + T: to show network requests in console (requires remote debugging). 59 | -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "lib": [ 6 | "es6" 7 | ] 8 | }, 9 | "exclude": [ 10 | "node_modules" 11 | ] 12 | } -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-actions", 3 | "displayName": "React Native Actions", 4 | "description": "Run React Native actions from within VSCode", 5 | "version": "1.0.1", 6 | "author": { 7 | "name": "Lucas Bento", 8 | "email": "lucas.bsilva@outlook.com", 9 | "url": "https://github.com/lucasbento" 10 | }, 11 | "icon": "common/media/logo.png", 12 | "galleryBanner": { 13 | "color": "#2EB1E4", 14 | "theme": "light" 15 | }, 16 | "activationEvents": [ 17 | "*" 18 | ], 19 | "bugs": { 20 | "url": "https://github.com/lucasbento/react-native-actions/issues" 21 | }, 22 | "categories": [ 23 | "Other" 24 | ], 25 | "contributes": { 26 | "commands": [ 27 | { 28 | "command": "extension.RNReload", 29 | "title": "Reload React Native app", 30 | "category": "React Native Actions" 31 | }, 32 | { 33 | "command": "extension.RNOpenDevMenu", 34 | "title": "Open developer menu", 35 | "category": "React Native Actions" 36 | }, 37 | { 38 | "command": "extension.RNToggleShowRequest", 39 | "title": "Toggle showing requests in Console", 40 | "category": "React Native Actions" 41 | } 42 | ], 43 | "keybindings": [ 44 | { 45 | "command": "extension.RNReload", 46 | "key": "ctrl+shift+r", 47 | "mac": "cmd+shift+r" 48 | }, 49 | { 50 | "command": "extension.RNOpenDevMenu", 51 | "key": "ctrl+shift+d", 52 | "mac": "cmd+shift+d" 53 | }, 54 | { 55 | "command": "extension.RNToggleShowRequest", 56 | "key": "ctrl+shift+t", 57 | "mac": "cmd+shift+t" 58 | } 59 | ] 60 | }, 61 | "dependencies": { 62 | "is-package-dep": "^0.1.1", 63 | "socket.io": "^2.0.3" 64 | }, 65 | "devDependencies": { 66 | "babel-cli": "^6.24.0", 67 | "babel-core": "^6.24.0", 68 | "babel-preset-es2015": "^6.24.0", 69 | "babel-preset-stage-0": "^6.22.0", 70 | "vscode": "^1.1.5" 71 | }, 72 | "engines": { 73 | "vscode": "^1.16.0" 74 | }, 75 | "license": "MIT", 76 | "main": "./dist/index.js", 77 | "publisher": "lucasbento", 78 | "repository": { 79 | "type": "git", 80 | "url": "https://github.com/lucasbento/react-native-actions" 81 | }, 82 | "scripts": { 83 | "build": "npm run clear && babel src --ignore *.spec.js,__tests__,__mocks__ --out-dir dist --copy-files", 84 | "ci": "npm run lint && NODE_ENV=CI jest --runInBand", 85 | "clear": "rm -rf ./dist", 86 | "lint": "eslint ./src", 87 | "postinstall": "exit 0", 88 | "prepublish": "npm run build", 89 | "test": "node ./node_modules/vscode/bin/test", 90 | "watch": "babel --ignore *.spec.js,__tests__,__mocks__ -w -d ./dist ./src --copy-files" 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /packages/vscode-react-native-actions/src/index.js: -------------------------------------------------------------------------------- 1 | import { 2 | commands, 3 | workspace, 4 | } from 'vscode'; 5 | import isPackageDep from 'is-package-dep'; 6 | import server from 'http'; 7 | import io from 'socket.io'; 8 | import { exec } from 'child_process'; 9 | 10 | import config from '../common/config'; 11 | 12 | const COMMANDS = [{ 13 | trigger: 'extension.RNReload', 14 | action: 'reload', 15 | }, { 16 | trigger: 'extension.RNOpenDevMenu', 17 | action: 'openDevMenu', 18 | }, { 19 | trigger: 'extension.RNToggleShowRequest', 20 | action: 'toggleShowRequest', 21 | }]; 22 | 23 | const ANDROID_COMMANDS = { 24 | reload: 'adb shell input text "RR"', 25 | openDevMenu: 'adb shell input keyevent 82', 26 | }; 27 | 28 | export const activate = (context) => { 29 | const isRNProject = isPackageDep('react-native', { 30 | baseDir: workspace.rootPath, 31 | }); 32 | 33 | let socket = null; 34 | if (isRNProject) { 35 | const app = server.createServer(); 36 | socket = io(app, { pingTimeout: 30000 }); 37 | 38 | app.listen(config.port); 39 | } 40 | 41 | COMMANDS.forEach((command) => { 42 | const subscription = commands.registerCommand(command.trigger, () => { 43 | // Handle hotkey even if it's not an RN project so it doesn't 44 | // throw an error on VSCode 45 | if (!isRNProject) { 46 | return; 47 | } 48 | 49 | // Emit command 50 | socket.emit('action', { 51 | type: command.action, 52 | }); 53 | 54 | // Run command for Android 55 | if (ANDROID_COMMANDS[command.action]) { 56 | exec(ANDROID_COMMANDS[command.action]); 57 | } 58 | }); 59 | 60 | context.subscriptions.push(subscription); 61 | }); 62 | }; 63 | -------------------------------------------------------------------------------- /tasks/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd "$(dirname "$0")" 4 | cd ../packages 5 | 6 | projects=( vscode-react-native-actions ) 7 | for project in "${projects[@]}" 8 | do 9 | cd $project 10 | yarn run build 11 | cd .. 12 | done 13 | -------------------------------------------------------------------------------- /tasks/prepublish.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd "$(dirname "$0")" 4 | cd .. 5 | root_path=$PWD 6 | 7 | cd "$root_path" 8 | 9 | commonFolderName="common" 10 | projects=( react-native-actions vscode-react-native-actions ) 11 | for project in "${projects[@]}" 12 | do 13 | commonOutputFolder="$root_path/packages/$project/$commonFolderName" 14 | rm -rf "$commonOutputFolder" 15 | cp -r "$commonFolderName" "$commonOutputFolder" 16 | done 17 | --------------------------------------------------------------------------------