├── .gitignore ├── LICENSE ├── README.md ├── example ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── __tests__ │ └── App.js ├── android │ ├── app │ │ ├── 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 ├── app │ ├── app.js │ ├── navigation │ │ └── MainNavigation.js │ ├── screen │ │ ├── HomeView.js │ │ ├── LoadingTestNomalView.js │ │ ├── LoadingTestWithParamsView.js │ │ └── loading_2.gif │ └── setup.js ├── 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 │ │ ├── Info.plist │ │ └── exampleTests.m ├── package-lock.json ├── package.json └── yarn.lock ├── index.js ├── package.json └── src ├── Loading.js └── assets └── loading_text.gif /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # OSX 3 | # 4 | .DS_Store 5 | 6 | # node.js 7 | # 8 | node_modules/ 9 | npm-debug.log 10 | yarn-error.log 11 | 12 | 13 | # Xcode 14 | # 15 | build/ 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | xcuserdata 25 | *.xccheckout 26 | *.moved-aside 27 | DerivedData 28 | *.hmap 29 | *.ipa 30 | *.xcuserstate 31 | project.xcworkspace 32 | 33 | 34 | # Android/IntelliJ 35 | # 36 | build/ 37 | .idea 38 | .gradle 39 | local.properties 40 | *.iml 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Itangjie 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-easy-loading-view 3 | 4 | [![npm downloads](https://img.shields.io/npm/dt/react-native-easy-loading-view.svg)](https://npm.im/react-native-easy-loading-view) 5 | 6 | ## Preview 7 | ![](http://imgfile.oytour.com/Upload/Common/App/loading_preview0.gif) 8 | ![](http://imgfile.oytour.com/Upload/Common/App/loading_preview_new.gif) 9 | 10 | ## Getting started 11 | 12 | `$ npm install react-native-easy-loading-view --save` 13 | 14 | ## Example 15 | Check [example](https://github.com/Itangjie/react-native-easy-loading-view/blob/master/example) in the folder. 16 | 17 | ```bash 18 | $ cd example 19 | $ npm install 20 | $ react-native run-ios 21 | ``` 22 | 23 | ## Usage 24 | edit your project root view,like this(detail please see [example](https://github.com/Itangjie/react-native-easy-loading-view/blob/master/example)): 25 | ```jsx 26 | import Loading from 'react-native-easy-loading-view'; 27 | render() { 28 | return ( 29 | 30 | 31 | {Loading.loadingDidCreate(view)}} // 必须调用 33 | 34 | top={86} // 如果需要在loading或者hud的时候可以点击导航上面的按钮,建议根据自己导航栏具体高度来设置。如果不需要点击可以不设置 35 | offsetY={-150} // 默认loading 和 hud 会在 去掉top之后高度的中间,如果觉得位置不太合适,可以通着offsetY来调整 36 | 37 | // loadingDefaultText={''} // loading动画的文字 38 | // loadingTextStyle={{ fontSize : 16, color: 'red' }} // loading动画文字的样式 39 | // loadingImage={require('./screen/loading_2.gif')} // loading动画是显示的gif 40 | // loadingImageStyle={{ width : 100, height : 100 }} // gif 图片样式 41 | 42 | // hudStyle={{ width : 150, height : 150 }} // hud的全局样式 43 | // hudBackgroundColor={'red'} // hud全局背景色 44 | // hudDefaultText={'努力加载中...'} // hud默认全局文字 45 | // hudTextStyle={{ fontSize : 16, color: 'red' }} // 文字样式 46 | // activityIndicatorSize={'small'} // hud上面的圈圈 small or large 47 | // activityIndicatorColor={'red'} // hud上面圈圈的颜色 48 | // hudCustomImage={require('./screen/loading_2.gif')} // 自定义hud上面的圈圈显示,可以把转的圈圈替换为gif 49 | // hudImageStyle={{ width : 50, height : 50 }} // 自定义hud图片的样式 50 | /> 51 | 52 | ); 53 | } 54 | ``` 55 | use loading(show or dismiss) 56 | ```jsx 57 | import Loading from 'react-native-easy-loading-view'; 58 | 59 | Loading.showHud(); //显示hud 60 | Loading.showLoading(); //显示loading 61 | 62 | Loading.dismiss(); // 消失 63 | ``` 64 | ### Properties 65 | 66 | | Prop | Default | Type | Description | 67 | | :------------ |:---------------:| :---------------:| :-----| 68 | | top | 0 | `number` | Distance from top of container. | 69 | | bottom | 0 | `number` | Distance from bottom of container. | 70 | | offsetY | 0 | `number` | loading or hud y offset. | 71 | | loadingDefaultText | | `string` | loading view default display text. | 72 | | loadingTextStyle | {...} | `style` | loading view display text style. | 73 | | loadingImage | | `image` | loading view display gif image. | 74 | | loadingImageStyle | {...} | `style` | loading view display image style | 75 | | hudDefaultText | | `string` | hud view default display text. | 76 | | hudTextStyle | {...} | `style` | hud view display text style. | 77 | | hudStyle | {...} | `style` | hud view style. | 78 | | hudBackgroundColor | 'transparent' | `color` | loading view display image style | 79 | | hudCustomImage | | `image` | hud view custom image. | 80 | | hudImageStyle | {...} | `style` | hud custom image style | 81 | | activityIndicatorSize | 'small' | `string` | hud view default ActivityIndicator size. | 82 | | activityIndicatorColor | | `style` | hud view default ActivityIndicator color | 83 | 84 | ### Methods 85 | 86 | #### showHud(text, extraTop, bkColor) 87 | 88 | Parameters: 89 | 90 | | Name | Type | default | Description | optional | 91 | | :---- | :------: | :------: | :--- | :--- | 92 | | text | `string` | hudDefaultText | hud view display text | YES | 93 | | extraTop | `number` | 0 | hud view extra offset y | YES | 94 | | bkColor | `string` | '' | hud view backgroundColor | YES | 95 | #### showLoading(text, extraTop, bkColor) 96 | 97 | Parameters: 98 | 99 | | Name | Type | default | Description | optional | 100 | | :---- | :------: | :------: | :--- | :--- | 101 | | text | `string` | loadingDefaultText | loading view display text | YES | 102 | | extraTop | `number` | 0 | loading view extra offset y | YES | 103 | | bkColor | `string` | '' | loading view backgroundColor | YES | 104 | #### dismiss() 105 | -------------------------------------------------------------------------------- /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/__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../app/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/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 "23.0.1" 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/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/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/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/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/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/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/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/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.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /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/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /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/app/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 | import MainNavigation from './navigation/MainNavigation'; 15 | 16 | export default class App extends Component<{}> { 17 | 18 | 19 | render() { 20 | 21 | return ( 22 | 23 | ); 24 | } 25 | } 26 | 27 | const styles = StyleSheet.create({ 28 | 29 | }); 30 | -------------------------------------------------------------------------------- /example/app/navigation/MainNavigation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by tangjie on 2018/4/4. 3 | */ 4 | 5 | import {StackNavigator} from 'react-navigation'; 6 | import HomeView from '../screen/HomeView'; 7 | import LoaidngTestNomal from '../screen/LoadingTestNomalView'; 8 | import LoadingTestWithParams from '../screen/LoadingTestWithParamsView' 9 | import CardStackStyleInterpolator from 'react-navigation/src/views/CardStack/CardStackStyleInterpolator'; 10 | const Navigation = StackNavigator({ 11 | 12 | homeView : {screen: HomeView}, 13 | LoaidngTestNomal : {screen : LoaidngTestNomal}, 14 | loadingTestWithParams : {screen : LoadingTestWithParams}, 15 | },{ 16 | initialRouteName : 'homeView', 17 | navigationOptions: { 18 | cardStack: { 19 | gesturesEnabled: true 20 | }, 21 | }, 22 | headerMode : 'screen', 23 | mode:'card', 24 | transitionConfig: () => ({ 25 | screenInterpolator: (sceneProps) => { 26 | return CardStackStyleInterpolator.forHorizontal(sceneProps) 27 | }, 28 | }), 29 | }); 30 | 31 | export default Navigation; -------------------------------------------------------------------------------- /example/app/screen/HomeView.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by tangjie on 2018/4/4. 3 | */ 4 | 5 | import React, { Component } from 'react'; 6 | import { 7 | Platform, 8 | StyleSheet, 9 | Text, 10 | View, 11 | TouchableOpacity, Dimensions 12 | } from 'react-native'; 13 | 14 | const { width, height } = Dimensions.get('window'); 15 | import Loading from 'react-native-easy-loading-view'; 16 | 17 | const ACTION_NOMAL = 'action_nomal'; 18 | const ACTION_WITHOUT_TEXT = 'action_without_text'; 19 | const ACTION_CUSTOM_TEXT = 'action_custom_text'; 20 | const ACTION_CUSTOM_OFFSETY = 'action_custom_offsety'; 21 | const ACTION_LOADING_NOMAL = 'action_loading_nomal'; 22 | const ACTION_LOADING_PARAMS= 'action_loading_params'; 23 | export default class HomeView extends Component { 24 | 25 | static navigationOptions = { 26 | title: 'HomeView', 27 | }; 28 | constructor(props){ 29 | super(props); 30 | this.state={ 31 | 32 | }; 33 | 34 | } 35 | 36 | onClick(action){ 37 | 38 | if (action === ACTION_NOMAL) { // 默认加载初始化配置的属性 39 | 40 | Loading.showHud(); 41 | setTimeout(()=>{ 42 | Loading.dismiss() 43 | },5000) 44 | }else if (action === ACTION_WITHOUT_TEXT){ // 仅显示转圈,不需要文字 45 | 46 | Loading.showHud(null) 47 | setTimeout(()=>{ 48 | Loading.dismiss() 49 | },5000) 50 | }else if (action === ACTION_CUSTOM_OFFSETY){ // 视图默认会在父容器的中间位置,第二个属性可以做调整(仅单次) 51 | 52 | Loading.showHud('',-200) 53 | setTimeout(()=>{ 54 | Loading.dismiss() 55 | },5000) 56 | }else if (action === ACTION_CUSTOM_TEXT){ 57 | //param1 -> 自定义文字(单次) params2 -> 中间视图的y轴偏移量,负数表示往上(单次) params3 -> 中间视图的背景颜色(单次) 58 | //其他更多全局属性请在初始化时配置 59 | Loading.showHud('努力加载中...',-100,'#4B0082') 60 | setTimeout(()=>{ 61 | Loading.dismiss() 62 | },5000) 63 | }else if (action === ACTION_LOADING_NOMAL){ 64 | 65 | this.props.navigation.navigate('LoaidngTestNomal') 66 | }else if (action === ACTION_LOADING_PARAMS){ 67 | 68 | this.props.navigation.navigate('loadingTestWithParams') 69 | } 70 | } 71 | 72 | render() { 73 | return ( 74 | 75 | 76 | 77 | {this.onClick(ACTION_LOADING_NOMAL)}}> 78 | {'loading gif 动画(默认)'} 79 | 80 | 81 | {this.onClick(ACTION_LOADING_PARAMS)}}> 82 | {'loading gif 动画(带参数)'} 83 | 84 | 85 | {this.onClick(ACTION_NOMAL)}}> 86 | {'hud(默认)'} 87 | 88 | 89 | {this.onClick(ACTION_WITHOUT_TEXT)}}> 90 | {'hud(无文字)'} 91 | 92 | 93 | {this.onClick(ACTION_CUSTOM_OFFSETY)}}> 94 | {'hud(位置调整参数)'} 95 | 96 | 97 | {this.onClick(ACTION_CUSTOM_TEXT)}}> 98 | {'hud(带参数->文字、位置、背景)'} 99 | 100 | 101 | 102 | ); 103 | } 104 | } 105 | 106 | const styles = StyleSheet.create({ 107 | 108 | }); 109 | -------------------------------------------------------------------------------- /example/app/screen/LoadingTestNomalView.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by tangjie on 2018/4/4. 3 | */ 4 | 5 | import React, { Component } from 'react'; 6 | import { 7 | Platform, 8 | StyleSheet, 9 | Text, 10 | View, 11 | TouchableOpacity, Dimensions,ScrollView 12 | } from 'react-native'; 13 | 14 | const { width, height } = Dimensions.get('window'); 15 | import Loading from 'react-native-easy-loading-view'; 16 | 17 | export default class LoadingTestNomalView extends Component { 18 | 19 | static navigationOptions = { 20 | title: 'LoaindNomal', 21 | }; 22 | constructor(props){ 23 | super(props); 24 | this.state={ 25 | 26 | testData : null, 27 | }; 28 | 29 | 30 | } 31 | 32 | componentDidMount(){ 33 | 34 | Loading.showLoading() 35 | 36 | this.timerout = setTimeout(()=>{ 37 | 38 | Loading.dismiss() 39 | let data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]; 40 | this.setState({testData : data}); 41 | 42 | },5000) 43 | } 44 | 45 | componentWillUnmount() { 46 | 47 | Loading.dismiss() 48 | this.timerout && clearTimeout(this.timerout) 49 | } 50 | 51 | renderList(data){ 52 | 53 | 54 | return data.map((item,key)=>{ 55 | 56 | return( 57 | 58 | 59 | {'这是第' + (key + 1) + '行数据'} 60 | 61 | ) 62 | }) 63 | } 64 | 65 | render() { 66 | return ( 67 | 68 | 69 | 70 | {this.state.testData != null ? this.renderList(this.state.testData) : null} 71 | 72 | 73 | ); 74 | } 75 | } 76 | 77 | const styles = StyleSheet.create({ 78 | 79 | }); 80 | -------------------------------------------------------------------------------- /example/app/screen/LoadingTestWithParamsView.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by tangjie on 2018/4/4. 3 | */ 4 | 5 | import React, { Component } from 'react'; 6 | import { 7 | Platform, 8 | StyleSheet, 9 | Text, 10 | View, 11 | TouchableOpacity, Dimensions,ScrollView 12 | } from 'react-native'; 13 | 14 | const { width, height } = Dimensions.get('window'); 15 | import Loading from 'react-native-easy-loading-view'; 16 | 17 | export default class LoadingTestWithParamsView extends Component { 18 | 19 | static navigationOptions = { 20 | title: 'LoaindNomal', 21 | }; 22 | constructor(props){ 23 | super(props); 24 | this.state={ 25 | 26 | testData : null, 27 | }; 28 | 29 | 30 | } 31 | 32 | componentDidMount(){ 33 | 34 | Loading.showLoading('加载中...',-100) 35 | 36 | this.timerout = setTimeout(()=>{ 37 | 38 | Loading.dismiss() 39 | let data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]; 40 | this.setState({testData : data}); 41 | 42 | },5000) 43 | } 44 | 45 | componentWillUnmount() { 46 | 47 | Loading.dismiss() 48 | this.timerout && clearTimeout(this.timerout) 49 | } 50 | 51 | renderList(data){ 52 | 53 | 54 | return data.map((item,key)=>{ 55 | 56 | return( 57 | 58 | 59 | {'这是第' + (key + 1) + '行数据'} 60 | 61 | ) 62 | }) 63 | } 64 | 65 | render() { 66 | return ( 67 | 68 | 69 | 70 | {this.state.testData != null ? this.renderList(this.state.testData) : null} 71 | 72 | 73 | ); 74 | } 75 | } 76 | 77 | const styles = StyleSheet.create({ 78 | 79 | }); 80 | -------------------------------------------------------------------------------- /example/app/screen/loading_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/example/app/screen/loading_2.gif -------------------------------------------------------------------------------- /example/app/setup.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by tangjie on 17/6/13. 3 | */ 4 | import React, { 5 | Component, 6 | 7 | } from 'react'; 8 | 9 | import { 10 | NativeModules, 11 | View, 12 | Platform 13 | } from 'react-native'; 14 | import App from './app'; 15 | 16 | import Loading from 'react-native-easy-loading-view'; 17 | export default class Setup extends Component { 18 | 19 | constructor(props) { 20 | 21 | super(props); 22 | 23 | this.state={ 24 | }; 25 | 26 | } 27 | 28 | 29 | render() { 30 | return ( 31 | 32 | 33 | {Loading.loadingDidCreate(view)}} // 必须调用 35 | 36 | top={86} // 如果需要在loading或者hud的时候可以点击导航上面的按钮,建议根据自己导航栏具体高度来设置。如果不需要点击可以不设置 37 | offsetY={-150} // 默认loading 和 hud 会在 去掉top之后高度的中间,如果觉得位置不太合适,可以通着offsetY来调整 38 | 39 | // loadingDefaultText={''} // loading动画的文字 40 | // loadingTextStyle={{ fontSize : 16, color: 'red' }} // loading动画文字的样式 41 | // loadingImage={require('./screen/loading_2.gif')} // loading动画是显示的gif 42 | // loadingImageStyle={{ width : 100, height : 100 }} // gif 图片样式 43 | 44 | // hudStyle={{ width : 150, height : 150 }} // hud的全局样式 45 | // hudBackgroundColor={'red'} // hud全局背景色 46 | // hudDefaultText={'努力加载中...'} // hud默认全局文字 47 | // hudTextStyle={{ fontSize : 16, color: 'red' }} // 文字样式 48 | // activityIndicatorSize={'small'} // hud上面的圈圈 small or large 49 | // activityIndicatorColor={'red'} // hud上面圈圈的颜色 50 | // hudCustomImage={require('./screen/loading_2.gif')} // 自定义hud上面的圈圈显示,可以把转的圈圈替换为gif 51 | // hudImageStyle={{ width : 50, height : 50 }} // 自定义hud图片的样式 52 | /> 53 | 54 | ); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | 3 | import Setup from './app/setup' 4 | AppRegistry.registerComponent('example', () => Setup); 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 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 34 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 35 | 2DCD954D1E0B4F2C00145EB5 /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.m */; }; 36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 37 | 7EE98AEE2276910F00FA8000 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = example; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 109 | proxyType = 1; 110 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 111 | remoteInfo = "example-tvOS"; 112 | }; 113 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 118 | remoteInfo = "RCTImage-tvOS"; 119 | }; 120 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 125 | remoteInfo = "RCTLinking-tvOS"; 126 | }; 127 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 132 | remoteInfo = "RCTNetwork-tvOS"; 133 | }; 134 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 139 | remoteInfo = "RCTSettings-tvOS"; 140 | }; 141 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 146 | remoteInfo = "RCTText-tvOS"; 147 | }; 148 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 153 | remoteInfo = "RCTWebSocket-tvOS"; 154 | }; 155 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 160 | remoteInfo = "React-tvOS"; 161 | }; 162 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 167 | remoteInfo = yoga; 168 | }; 169 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 174 | remoteInfo = "yoga-tvOS"; 175 | }; 176 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 181 | remoteInfo = cxxreact; 182 | }; 183 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 188 | remoteInfo = "cxxreact-tvOS"; 189 | }; 190 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 195 | remoteInfo = jschelpers; 196 | }; 197 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 202 | remoteInfo = "jschelpers-tvOS"; 203 | }; 204 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 209 | remoteInfo = RCTAnimation; 210 | }; 211 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 216 | remoteInfo = "RCTAnimation-tvOS"; 217 | }; 218 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 223 | remoteInfo = RCTLinking; 224 | }; 225 | 7E38E7F42275B99800D5A702 /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 230 | remoteInfo = "RCTBlob-tvOS"; 231 | }; 232 | 7E38E8062275B99800D5A702 /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 237 | remoteInfo = fishhook; 238 | }; 239 | 7E38E8082275B99800D5A702 /* PBXContainerItemProxy */ = { 240 | isa = PBXContainerItemProxy; 241 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 242 | proxyType = 2; 243 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 244 | remoteInfo = "fishhook-tvOS"; 245 | }; 246 | 7EE98AE62276910900FA8000 /* PBXContainerItemProxy */ = { 247 | isa = PBXContainerItemProxy; 248 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 249 | proxyType = 2; 250 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 251 | remoteInfo = "third-party"; 252 | }; 253 | 7EE98AE82276910900FA8000 /* PBXContainerItemProxy */ = { 254 | isa = PBXContainerItemProxy; 255 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 256 | proxyType = 2; 257 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 258 | remoteInfo = "third-party-tvOS"; 259 | }; 260 | 7EE98AEA2276910900FA8000 /* PBXContainerItemProxy */ = { 261 | isa = PBXContainerItemProxy; 262 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 263 | proxyType = 2; 264 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 265 | remoteInfo = "double-conversion"; 266 | }; 267 | 7EE98AEC2276910900FA8000 /* PBXContainerItemProxy */ = { 268 | isa = PBXContainerItemProxy; 269 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 270 | proxyType = 2; 271 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 272 | remoteInfo = "double-conversion-tvOS"; 273 | }; 274 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 275 | isa = PBXContainerItemProxy; 276 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 277 | proxyType = 2; 278 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 279 | remoteInfo = RCTText; 280 | }; 281 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 282 | isa = PBXContainerItemProxy; 283 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 284 | proxyType = 2; 285 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 286 | remoteInfo = RCTBlob; 287 | }; 288 | /* End PBXContainerItemProxy section */ 289 | 290 | /* Begin PBXFileReference section */ 291 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 292 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 293 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 294 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 295 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 296 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 297 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 298 | 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; }; 299 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 300 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 301 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 302 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; }; 303 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; }; 304 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 305 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; }; 306 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; }; 307 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; }; 308 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 309 | 2D02E47B1E0B4A5D006451C7 /* example-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "example-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 310 | 2D02E4901E0B4A5D006451C7 /* example-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "example-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 311 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 312 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 313 | 7E38E80C2275BC2C00D5A702 /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 314 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 315 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 316 | /* End PBXFileReference section */ 317 | 318 | /* Begin PBXFrameworksBuildPhase section */ 319 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 320 | isa = PBXFrameworksBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 328 | isa = PBXFrameworksBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | 7EE98AEE2276910F00FA8000 /* libReact.a in Frameworks */, 332 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 333 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 334 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 335 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 336 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 337 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 338 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 339 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 340 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 341 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 342 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 343 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 348 | isa = PBXFrameworksBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 352 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 353 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 354 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 355 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 356 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 357 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 358 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 363 | isa = PBXFrameworksBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | /* End PBXFrameworksBuildPhase section */ 370 | 371 | /* Begin PBXGroup section */ 372 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 373 | isa = PBXGroup; 374 | children = ( 375 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 376 | ); 377 | name = Products; 378 | sourceTree = ""; 379 | }; 380 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 381 | isa = PBXGroup; 382 | children = ( 383 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 384 | ); 385 | name = Products; 386 | sourceTree = ""; 387 | }; 388 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 389 | isa = PBXGroup; 390 | children = ( 391 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 392 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 393 | ); 394 | name = Products; 395 | sourceTree = ""; 396 | }; 397 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 398 | isa = PBXGroup; 399 | children = ( 400 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 401 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 402 | ); 403 | name = Products; 404 | sourceTree = ""; 405 | }; 406 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 407 | isa = PBXGroup; 408 | children = ( 409 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 410 | ); 411 | name = Products; 412 | sourceTree = ""; 413 | }; 414 | 00E356EF1AD99517003FC87E /* exampleTests */ = { 415 | isa = PBXGroup; 416 | children = ( 417 | 00E356F21AD99517003FC87E /* exampleTests.m */, 418 | 00E356F01AD99517003FC87E /* Supporting Files */, 419 | ); 420 | path = exampleTests; 421 | sourceTree = ""; 422 | }; 423 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 424 | isa = PBXGroup; 425 | children = ( 426 | 00E356F11AD99517003FC87E /* Info.plist */, 427 | ); 428 | name = "Supporting Files"; 429 | sourceTree = ""; 430 | }; 431 | 139105B71AF99BAD00B5F7CC /* Products */ = { 432 | isa = PBXGroup; 433 | children = ( 434 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 435 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 436 | ); 437 | name = Products; 438 | sourceTree = ""; 439 | }; 440 | 139FDEE71B06529A00C62182 /* Products */ = { 441 | isa = PBXGroup; 442 | children = ( 443 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 444 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 445 | 7E38E8072275B99800D5A702 /* libfishhook.a */, 446 | 7E38E8092275B99800D5A702 /* libfishhook-tvOS.a */, 447 | ); 448 | name = Products; 449 | sourceTree = ""; 450 | }; 451 | 13B07FAE1A68108700A75B9A /* example */ = { 452 | isa = PBXGroup; 453 | children = ( 454 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 455 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 456 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 457 | 13B07FB61A68108700A75B9A /* Info.plist */, 458 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 459 | 13B07FB71A68108700A75B9A /* main.m */, 460 | ); 461 | name = example; 462 | sourceTree = ""; 463 | }; 464 | 146834001AC3E56700842450 /* Products */ = { 465 | isa = PBXGroup; 466 | children = ( 467 | 146834041AC3E56700842450 /* libReact.a */, 468 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 469 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 470 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 471 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 472 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 473 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 474 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 475 | 7EE98AE72276910900FA8000 /* libthird-party.a */, 476 | 7EE98AE92276910900FA8000 /* libthird-party.a */, 477 | 7EE98AEB2276910900FA8000 /* libdouble-conversion.a */, 478 | 7EE98AED2276910900FA8000 /* libdouble-conversion.a */, 479 | ); 480 | name = Products; 481 | sourceTree = ""; 482 | }; 483 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 484 | isa = PBXGroup; 485 | children = ( 486 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 487 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 488 | ); 489 | name = Products; 490 | sourceTree = ""; 491 | }; 492 | 78C398B11ACF4ADC00677621 /* Products */ = { 493 | isa = PBXGroup; 494 | children = ( 495 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 496 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 497 | ); 498 | name = Products; 499 | sourceTree = ""; 500 | }; 501 | 7E38E80B2275BC2C00D5A702 /* Frameworks */ = { 502 | isa = PBXGroup; 503 | children = ( 504 | 7E38E80C2275BC2C00D5A702 /* libReact.a */, 505 | ); 506 | name = Frameworks; 507 | sourceTree = ""; 508 | }; 509 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 510 | isa = PBXGroup; 511 | children = ( 512 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 513 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 514 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 515 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 516 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 517 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 518 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 519 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 520 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 521 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 522 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 523 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 524 | ); 525 | name = Libraries; 526 | sourceTree = ""; 527 | }; 528 | 832341B11AAA6A8300B99B32 /* Products */ = { 529 | isa = PBXGroup; 530 | children = ( 531 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 532 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 533 | ); 534 | name = Products; 535 | sourceTree = ""; 536 | }; 537 | 83CBB9F61A601CBA00E9B192 = { 538 | isa = PBXGroup; 539 | children = ( 540 | 13B07FAE1A68108700A75B9A /* example */, 541 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 542 | 00E356EF1AD99517003FC87E /* exampleTests */, 543 | 83CBBA001A601CBA00E9B192 /* Products */, 544 | 7E38E80B2275BC2C00D5A702 /* Frameworks */, 545 | ); 546 | indentWidth = 2; 547 | sourceTree = ""; 548 | tabWidth = 2; 549 | usesTabs = 0; 550 | }; 551 | 83CBBA001A601CBA00E9B192 /* Products */ = { 552 | isa = PBXGroup; 553 | children = ( 554 | 13B07F961A680F5B00A75B9A /* example.app */, 555 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */, 556 | 2D02E47B1E0B4A5D006451C7 /* example-tvOS.app */, 557 | 2D02E4901E0B4A5D006451C7 /* example-tvOSTests.xctest */, 558 | ); 559 | name = Products; 560 | sourceTree = ""; 561 | }; 562 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 563 | isa = PBXGroup; 564 | children = ( 565 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 566 | 7E38E7F52275B99800D5A702 /* libRCTBlob-tvOS.a */, 567 | ); 568 | name = Products; 569 | sourceTree = ""; 570 | }; 571 | /* End PBXGroup section */ 572 | 573 | /* Begin PBXNativeTarget section */ 574 | 00E356ED1AD99517003FC87E /* exampleTests */ = { 575 | isa = PBXNativeTarget; 576 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */; 577 | buildPhases = ( 578 | 00E356EA1AD99517003FC87E /* Sources */, 579 | 00E356EB1AD99517003FC87E /* Frameworks */, 580 | 00E356EC1AD99517003FC87E /* Resources */, 581 | ); 582 | buildRules = ( 583 | ); 584 | dependencies = ( 585 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 586 | ); 587 | name = exampleTests; 588 | productName = exampleTests; 589 | productReference = 00E356EE1AD99517003FC87E /* exampleTests.xctest */; 590 | productType = "com.apple.product-type.bundle.unit-test"; 591 | }; 592 | 13B07F861A680F5B00A75B9A /* example */ = { 593 | isa = PBXNativeTarget; 594 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */; 595 | buildPhases = ( 596 | 13B07F871A680F5B00A75B9A /* Sources */, 597 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 598 | 13B07F8E1A680F5B00A75B9A /* Resources */, 599 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 600 | ); 601 | buildRules = ( 602 | ); 603 | dependencies = ( 604 | ); 605 | name = example; 606 | productName = "Hello World"; 607 | productReference = 13B07F961A680F5B00A75B9A /* example.app */; 608 | productType = "com.apple.product-type.application"; 609 | }; 610 | 2D02E47A1E0B4A5D006451C7 /* example-tvOS */ = { 611 | isa = PBXNativeTarget; 612 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOS" */; 613 | buildPhases = ( 614 | 2D02E4771E0B4A5D006451C7 /* Sources */, 615 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 616 | 2D02E4791E0B4A5D006451C7 /* Resources */, 617 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 618 | ); 619 | buildRules = ( 620 | ); 621 | dependencies = ( 622 | ); 623 | name = "example-tvOS"; 624 | productName = "example-tvOS"; 625 | productReference = 2D02E47B1E0B4A5D006451C7 /* example-tvOS.app */; 626 | productType = "com.apple.product-type.application"; 627 | }; 628 | 2D02E48F1E0B4A5D006451C7 /* example-tvOSTests */ = { 629 | isa = PBXNativeTarget; 630 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOSTests" */; 631 | buildPhases = ( 632 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 633 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 634 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 635 | ); 636 | buildRules = ( 637 | ); 638 | dependencies = ( 639 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 640 | ); 641 | name = "example-tvOSTests"; 642 | productName = "example-tvOSTests"; 643 | productReference = 2D02E4901E0B4A5D006451C7 /* example-tvOSTests.xctest */; 644 | productType = "com.apple.product-type.bundle.unit-test"; 645 | }; 646 | /* End PBXNativeTarget section */ 647 | 648 | /* Begin PBXProject section */ 649 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 650 | isa = PBXProject; 651 | attributes = { 652 | LastUpgradeCheck = 0610; 653 | ORGANIZATIONNAME = Facebook; 654 | TargetAttributes = { 655 | 00E356ED1AD99517003FC87E = { 656 | CreatedOnToolsVersion = 6.2; 657 | TestTargetID = 13B07F861A680F5B00A75B9A; 658 | }; 659 | 2D02E47A1E0B4A5D006451C7 = { 660 | CreatedOnToolsVersion = 8.2.1; 661 | ProvisioningStyle = Automatic; 662 | }; 663 | 2D02E48F1E0B4A5D006451C7 = { 664 | CreatedOnToolsVersion = 8.2.1; 665 | ProvisioningStyle = Automatic; 666 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 667 | }; 668 | }; 669 | }; 670 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */; 671 | compatibilityVersion = "Xcode 3.2"; 672 | developmentRegion = English; 673 | hasScannedForEncodings = 0; 674 | knownRegions = ( 675 | en, 676 | Base, 677 | ); 678 | mainGroup = 83CBB9F61A601CBA00E9B192; 679 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 680 | projectDirPath = ""; 681 | projectReferences = ( 682 | { 683 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 684 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 685 | }, 686 | { 687 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 688 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 689 | }, 690 | { 691 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 692 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 693 | }, 694 | { 695 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 696 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 697 | }, 698 | { 699 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 700 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 701 | }, 702 | { 703 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 704 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 705 | }, 706 | { 707 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 708 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 709 | }, 710 | { 711 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 712 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 713 | }, 714 | { 715 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 716 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 717 | }, 718 | { 719 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 720 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 721 | }, 722 | { 723 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 724 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 725 | }, 726 | { 727 | ProductGroup = 146834001AC3E56700842450 /* Products */; 728 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 729 | }, 730 | ); 731 | projectRoot = ""; 732 | targets = ( 733 | 13B07F861A680F5B00A75B9A /* example */, 734 | 00E356ED1AD99517003FC87E /* exampleTests */, 735 | 2D02E47A1E0B4A5D006451C7 /* example-tvOS */, 736 | 2D02E48F1E0B4A5D006451C7 /* example-tvOSTests */, 737 | ); 738 | }; 739 | /* End PBXProject section */ 740 | 741 | /* Begin PBXReferenceProxy section */ 742 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 743 | isa = PBXReferenceProxy; 744 | fileType = archive.ar; 745 | path = libRCTActionSheet.a; 746 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 747 | sourceTree = BUILT_PRODUCTS_DIR; 748 | }; 749 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 750 | isa = PBXReferenceProxy; 751 | fileType = archive.ar; 752 | path = libRCTGeolocation.a; 753 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 754 | sourceTree = BUILT_PRODUCTS_DIR; 755 | }; 756 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 757 | isa = PBXReferenceProxy; 758 | fileType = archive.ar; 759 | path = libRCTImage.a; 760 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 761 | sourceTree = BUILT_PRODUCTS_DIR; 762 | }; 763 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 764 | isa = PBXReferenceProxy; 765 | fileType = archive.ar; 766 | path = libRCTNetwork.a; 767 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 768 | sourceTree = BUILT_PRODUCTS_DIR; 769 | }; 770 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 771 | isa = PBXReferenceProxy; 772 | fileType = archive.ar; 773 | path = libRCTVibration.a; 774 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 775 | sourceTree = BUILT_PRODUCTS_DIR; 776 | }; 777 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 778 | isa = PBXReferenceProxy; 779 | fileType = archive.ar; 780 | path = libRCTSettings.a; 781 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 782 | sourceTree = BUILT_PRODUCTS_DIR; 783 | }; 784 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 785 | isa = PBXReferenceProxy; 786 | fileType = archive.ar; 787 | path = libRCTWebSocket.a; 788 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 789 | sourceTree = BUILT_PRODUCTS_DIR; 790 | }; 791 | 146834041AC3E56700842450 /* libReact.a */ = { 792 | isa = PBXReferenceProxy; 793 | fileType = archive.ar; 794 | path = libReact.a; 795 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 796 | sourceTree = BUILT_PRODUCTS_DIR; 797 | }; 798 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 799 | isa = PBXReferenceProxy; 800 | fileType = archive.ar; 801 | path = "libRCTImage-tvOS.a"; 802 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 803 | sourceTree = BUILT_PRODUCTS_DIR; 804 | }; 805 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 806 | isa = PBXReferenceProxy; 807 | fileType = archive.ar; 808 | path = "libRCTLinking-tvOS.a"; 809 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 810 | sourceTree = BUILT_PRODUCTS_DIR; 811 | }; 812 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 813 | isa = PBXReferenceProxy; 814 | fileType = archive.ar; 815 | path = "libRCTNetwork-tvOS.a"; 816 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 817 | sourceTree = BUILT_PRODUCTS_DIR; 818 | }; 819 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 820 | isa = PBXReferenceProxy; 821 | fileType = archive.ar; 822 | path = "libRCTSettings-tvOS.a"; 823 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 824 | sourceTree = BUILT_PRODUCTS_DIR; 825 | }; 826 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 827 | isa = PBXReferenceProxy; 828 | fileType = archive.ar; 829 | path = "libRCTText-tvOS.a"; 830 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 831 | sourceTree = BUILT_PRODUCTS_DIR; 832 | }; 833 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = "libRCTWebSocket-tvOS.a"; 837 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = libReact.a; 844 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = libyoga.a; 851 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = libyoga.a; 858 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = libcxxreact.a; 865 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = libcxxreact.a; 872 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = libjschelpers.a; 879 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = libjschelpers.a; 886 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = libRCTAnimation.a; 893 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = libRCTAnimation.a; 900 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = libRCTLinking.a; 907 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 7E38E7F52275B99800D5A702 /* libRCTBlob-tvOS.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = "libRCTBlob-tvOS.a"; 914 | remoteRef = 7E38E7F42275B99800D5A702 /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 7E38E8072275B99800D5A702 /* libfishhook.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = libfishhook.a; 921 | remoteRef = 7E38E8062275B99800D5A702 /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 7E38E8092275B99800D5A702 /* libfishhook-tvOS.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = "libfishhook-tvOS.a"; 928 | remoteRef = 7E38E8082275B99800D5A702 /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 7EE98AE72276910900FA8000 /* libthird-party.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = "libthird-party.a"; 935 | remoteRef = 7EE98AE62276910900FA8000 /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | 7EE98AE92276910900FA8000 /* libthird-party.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = "libthird-party.a"; 942 | remoteRef = 7EE98AE82276910900FA8000 /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | 7EE98AEB2276910900FA8000 /* libdouble-conversion.a */ = { 946 | isa = PBXReferenceProxy; 947 | fileType = archive.ar; 948 | path = "libdouble-conversion.a"; 949 | remoteRef = 7EE98AEA2276910900FA8000 /* PBXContainerItemProxy */; 950 | sourceTree = BUILT_PRODUCTS_DIR; 951 | }; 952 | 7EE98AED2276910900FA8000 /* libdouble-conversion.a */ = { 953 | isa = PBXReferenceProxy; 954 | fileType = archive.ar; 955 | path = "libdouble-conversion.a"; 956 | remoteRef = 7EE98AEC2276910900FA8000 /* PBXContainerItemProxy */; 957 | sourceTree = BUILT_PRODUCTS_DIR; 958 | }; 959 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 960 | isa = PBXReferenceProxy; 961 | fileType = archive.ar; 962 | path = libRCTText.a; 963 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 964 | sourceTree = BUILT_PRODUCTS_DIR; 965 | }; 966 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 967 | isa = PBXReferenceProxy; 968 | fileType = archive.ar; 969 | path = libRCTBlob.a; 970 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 971 | sourceTree = BUILT_PRODUCTS_DIR; 972 | }; 973 | /* End PBXReferenceProxy section */ 974 | 975 | /* Begin PBXResourcesBuildPhase section */ 976 | 00E356EC1AD99517003FC87E /* Resources */ = { 977 | isa = PBXResourcesBuildPhase; 978 | buildActionMask = 2147483647; 979 | files = ( 980 | ); 981 | runOnlyForDeploymentPostprocessing = 0; 982 | }; 983 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 984 | isa = PBXResourcesBuildPhase; 985 | buildActionMask = 2147483647; 986 | files = ( 987 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 988 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 989 | ); 990 | runOnlyForDeploymentPostprocessing = 0; 991 | }; 992 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 993 | isa = PBXResourcesBuildPhase; 994 | buildActionMask = 2147483647; 995 | files = ( 996 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 997 | ); 998 | runOnlyForDeploymentPostprocessing = 0; 999 | }; 1000 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1001 | isa = PBXResourcesBuildPhase; 1002 | buildActionMask = 2147483647; 1003 | files = ( 1004 | ); 1005 | runOnlyForDeploymentPostprocessing = 0; 1006 | }; 1007 | /* End PBXResourcesBuildPhase section */ 1008 | 1009 | /* Begin PBXShellScriptBuildPhase section */ 1010 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1011 | isa = PBXShellScriptBuildPhase; 1012 | buildActionMask = 2147483647; 1013 | files = ( 1014 | ); 1015 | inputPaths = ( 1016 | ); 1017 | name = "Bundle React Native code and images"; 1018 | outputPaths = ( 1019 | ); 1020 | runOnlyForDeploymentPostprocessing = 0; 1021 | shellPath = /bin/sh; 1022 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1023 | }; 1024 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1025 | isa = PBXShellScriptBuildPhase; 1026 | buildActionMask = 2147483647; 1027 | files = ( 1028 | ); 1029 | inputPaths = ( 1030 | ); 1031 | name = "Bundle React Native Code And Images"; 1032 | outputPaths = ( 1033 | ); 1034 | runOnlyForDeploymentPostprocessing = 0; 1035 | shellPath = /bin/sh; 1036 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1037 | }; 1038 | /* End PBXShellScriptBuildPhase section */ 1039 | 1040 | /* Begin PBXSourcesBuildPhase section */ 1041 | 00E356EA1AD99517003FC87E /* Sources */ = { 1042 | isa = PBXSourcesBuildPhase; 1043 | buildActionMask = 2147483647; 1044 | files = ( 1045 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */, 1046 | ); 1047 | runOnlyForDeploymentPostprocessing = 0; 1048 | }; 1049 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1050 | isa = PBXSourcesBuildPhase; 1051 | buildActionMask = 2147483647; 1052 | files = ( 1053 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1054 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1055 | ); 1056 | runOnlyForDeploymentPostprocessing = 0; 1057 | }; 1058 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1059 | isa = PBXSourcesBuildPhase; 1060 | buildActionMask = 2147483647; 1061 | files = ( 1062 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1063 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1064 | ); 1065 | runOnlyForDeploymentPostprocessing = 0; 1066 | }; 1067 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1068 | isa = PBXSourcesBuildPhase; 1069 | buildActionMask = 2147483647; 1070 | files = ( 1071 | 2DCD954D1E0B4F2C00145EB5 /* exampleTests.m in Sources */, 1072 | ); 1073 | runOnlyForDeploymentPostprocessing = 0; 1074 | }; 1075 | /* End PBXSourcesBuildPhase section */ 1076 | 1077 | /* Begin PBXTargetDependency section */ 1078 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1079 | isa = PBXTargetDependency; 1080 | target = 13B07F861A680F5B00A75B9A /* example */; 1081 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1082 | }; 1083 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1084 | isa = PBXTargetDependency; 1085 | target = 2D02E47A1E0B4A5D006451C7 /* example-tvOS */; 1086 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1087 | }; 1088 | /* End PBXTargetDependency section */ 1089 | 1090 | /* Begin PBXVariantGroup section */ 1091 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1092 | isa = PBXVariantGroup; 1093 | children = ( 1094 | 13B07FB21A68108700A75B9A /* Base */, 1095 | ); 1096 | name = LaunchScreen.xib; 1097 | path = example; 1098 | sourceTree = ""; 1099 | }; 1100 | /* End PBXVariantGroup section */ 1101 | 1102 | /* Begin XCBuildConfiguration section */ 1103 | 00E356F61AD99517003FC87E /* Debug */ = { 1104 | isa = XCBuildConfiguration; 1105 | buildSettings = { 1106 | BUNDLE_LOADER = "$(TEST_HOST)"; 1107 | GCC_PREPROCESSOR_DEFINITIONS = ( 1108 | "DEBUG=1", 1109 | "$(inherited)", 1110 | ); 1111 | INFOPLIST_FILE = exampleTests/Info.plist; 1112 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1113 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1114 | OTHER_LDFLAGS = ( 1115 | "-ObjC", 1116 | "-lc++", 1117 | ); 1118 | PRODUCT_NAME = "$(TARGET_NAME)"; 1119 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example"; 1120 | }; 1121 | name = Debug; 1122 | }; 1123 | 00E356F71AD99517003FC87E /* Release */ = { 1124 | isa = XCBuildConfiguration; 1125 | buildSettings = { 1126 | BUNDLE_LOADER = "$(TEST_HOST)"; 1127 | COPY_PHASE_STRIP = NO; 1128 | INFOPLIST_FILE = exampleTests/Info.plist; 1129 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1130 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1131 | OTHER_LDFLAGS = ( 1132 | "-ObjC", 1133 | "-lc++", 1134 | ); 1135 | PRODUCT_NAME = "$(TARGET_NAME)"; 1136 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example"; 1137 | }; 1138 | name = Release; 1139 | }; 1140 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1141 | isa = XCBuildConfiguration; 1142 | buildSettings = { 1143 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1144 | CURRENT_PROJECT_VERSION = 1; 1145 | DEAD_CODE_STRIPPING = NO; 1146 | HEADER_SEARCH_PATHS = ( 1147 | "$(inherited)", 1148 | "$(PROJECT_DIR)", 1149 | ); 1150 | INFOPLIST_FILE = example/Info.plist; 1151 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1152 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 1153 | OTHER_LDFLAGS = ( 1154 | "$(inherited)", 1155 | "-ObjC", 1156 | "-lc++", 1157 | ); 1158 | PRODUCT_NAME = example; 1159 | VERSIONING_SYSTEM = "apple-generic"; 1160 | }; 1161 | name = Debug; 1162 | }; 1163 | 13B07F951A680F5B00A75B9A /* Release */ = { 1164 | isa = XCBuildConfiguration; 1165 | buildSettings = { 1166 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1167 | CURRENT_PROJECT_VERSION = 1; 1168 | HEADER_SEARCH_PATHS = ( 1169 | "$(inherited)", 1170 | "$(PROJECT_DIR)", 1171 | ); 1172 | INFOPLIST_FILE = example/Info.plist; 1173 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1174 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 1175 | OTHER_LDFLAGS = ( 1176 | "$(inherited)", 1177 | "-ObjC", 1178 | "-lc++", 1179 | ); 1180 | PRODUCT_NAME = example; 1181 | VERSIONING_SYSTEM = "apple-generic"; 1182 | }; 1183 | name = Release; 1184 | }; 1185 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1186 | isa = XCBuildConfiguration; 1187 | buildSettings = { 1188 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1189 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1190 | CLANG_ANALYZER_NONNULL = YES; 1191 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1192 | CLANG_WARN_INFINITE_RECURSION = YES; 1193 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1194 | DEBUG_INFORMATION_FORMAT = dwarf; 1195 | ENABLE_TESTABILITY = YES; 1196 | GCC_NO_COMMON_BLOCKS = YES; 1197 | INFOPLIST_FILE = "example-tvOS/Info.plist"; 1198 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1199 | OTHER_LDFLAGS = ( 1200 | "-ObjC", 1201 | "-lc++", 1202 | ); 1203 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOS"; 1204 | PRODUCT_NAME = "$(TARGET_NAME)"; 1205 | SDKROOT = appletvos; 1206 | TARGETED_DEVICE_FAMILY = 3; 1207 | TVOS_DEPLOYMENT_TARGET = 9.2; 1208 | }; 1209 | name = Debug; 1210 | }; 1211 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1212 | isa = XCBuildConfiguration; 1213 | buildSettings = { 1214 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1215 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1216 | CLANG_ANALYZER_NONNULL = YES; 1217 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1218 | CLANG_WARN_INFINITE_RECURSION = YES; 1219 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1220 | COPY_PHASE_STRIP = NO; 1221 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1222 | GCC_NO_COMMON_BLOCKS = YES; 1223 | INFOPLIST_FILE = "example-tvOS/Info.plist"; 1224 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1225 | OTHER_LDFLAGS = ( 1226 | "-ObjC", 1227 | "-lc++", 1228 | ); 1229 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOS"; 1230 | PRODUCT_NAME = "$(TARGET_NAME)"; 1231 | SDKROOT = appletvos; 1232 | TARGETED_DEVICE_FAMILY = 3; 1233 | TVOS_DEPLOYMENT_TARGET = 9.2; 1234 | }; 1235 | name = Release; 1236 | }; 1237 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1238 | isa = XCBuildConfiguration; 1239 | buildSettings = { 1240 | BUNDLE_LOADER = "$(TEST_HOST)"; 1241 | CLANG_ANALYZER_NONNULL = YES; 1242 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1243 | CLANG_WARN_INFINITE_RECURSION = YES; 1244 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1245 | DEBUG_INFORMATION_FORMAT = dwarf; 1246 | ENABLE_TESTABILITY = YES; 1247 | GCC_NO_COMMON_BLOCKS = YES; 1248 | INFOPLIST_FILE = "example-tvOSTests/Info.plist"; 1249 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1250 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOSTests"; 1251 | PRODUCT_NAME = "$(TARGET_NAME)"; 1252 | SDKROOT = appletvos; 1253 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example-tvOS.app/example-tvOS"; 1254 | TVOS_DEPLOYMENT_TARGET = 10.1; 1255 | }; 1256 | name = Debug; 1257 | }; 1258 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1259 | isa = XCBuildConfiguration; 1260 | buildSettings = { 1261 | BUNDLE_LOADER = "$(TEST_HOST)"; 1262 | CLANG_ANALYZER_NONNULL = YES; 1263 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1264 | CLANG_WARN_INFINITE_RECURSION = YES; 1265 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1266 | COPY_PHASE_STRIP = NO; 1267 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1268 | GCC_NO_COMMON_BLOCKS = YES; 1269 | INFOPLIST_FILE = "example-tvOSTests/Info.plist"; 1270 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1271 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOSTests"; 1272 | PRODUCT_NAME = "$(TARGET_NAME)"; 1273 | SDKROOT = appletvos; 1274 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example-tvOS.app/example-tvOS"; 1275 | TVOS_DEPLOYMENT_TARGET = 10.1; 1276 | }; 1277 | name = Release; 1278 | }; 1279 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1280 | isa = XCBuildConfiguration; 1281 | buildSettings = { 1282 | ALWAYS_SEARCH_USER_PATHS = NO; 1283 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1284 | CLANG_CXX_LIBRARY = "libc++"; 1285 | CLANG_ENABLE_MODULES = YES; 1286 | CLANG_ENABLE_OBJC_ARC = YES; 1287 | CLANG_WARN_BOOL_CONVERSION = YES; 1288 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1289 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1290 | CLANG_WARN_EMPTY_BODY = YES; 1291 | CLANG_WARN_ENUM_CONVERSION = YES; 1292 | CLANG_WARN_INT_CONVERSION = YES; 1293 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1294 | CLANG_WARN_UNREACHABLE_CODE = YES; 1295 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1296 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1297 | COPY_PHASE_STRIP = NO; 1298 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1299 | GCC_C_LANGUAGE_STANDARD = gnu99; 1300 | GCC_DYNAMIC_NO_PIC = NO; 1301 | GCC_OPTIMIZATION_LEVEL = 0; 1302 | GCC_PREPROCESSOR_DEFINITIONS = ( 1303 | "DEBUG=1", 1304 | "$(inherited)", 1305 | ); 1306 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1307 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1308 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1309 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1310 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1311 | GCC_WARN_UNUSED_FUNCTION = YES; 1312 | GCC_WARN_UNUSED_VARIABLE = YES; 1313 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1314 | MTL_ENABLE_DEBUG_INFO = YES; 1315 | ONLY_ACTIVE_ARCH = YES; 1316 | SDKROOT = iphoneos; 1317 | }; 1318 | name = Debug; 1319 | }; 1320 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1321 | isa = XCBuildConfiguration; 1322 | buildSettings = { 1323 | ALWAYS_SEARCH_USER_PATHS = NO; 1324 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1325 | CLANG_CXX_LIBRARY = "libc++"; 1326 | CLANG_ENABLE_MODULES = YES; 1327 | CLANG_ENABLE_OBJC_ARC = YES; 1328 | CLANG_WARN_BOOL_CONVERSION = YES; 1329 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1330 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1331 | CLANG_WARN_EMPTY_BODY = YES; 1332 | CLANG_WARN_ENUM_CONVERSION = YES; 1333 | CLANG_WARN_INT_CONVERSION = YES; 1334 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1335 | CLANG_WARN_UNREACHABLE_CODE = YES; 1336 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1337 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1338 | COPY_PHASE_STRIP = YES; 1339 | ENABLE_NS_ASSERTIONS = NO; 1340 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1341 | GCC_C_LANGUAGE_STANDARD = gnu99; 1342 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1343 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1344 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1345 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1346 | GCC_WARN_UNUSED_FUNCTION = YES; 1347 | GCC_WARN_UNUSED_VARIABLE = YES; 1348 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1349 | MTL_ENABLE_DEBUG_INFO = NO; 1350 | SDKROOT = iphoneos; 1351 | VALIDATE_PRODUCT = YES; 1352 | }; 1353 | name = Release; 1354 | }; 1355 | /* End XCBuildConfiguration section */ 1356 | 1357 | /* Begin XCConfigurationList section */ 1358 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */ = { 1359 | isa = XCConfigurationList; 1360 | buildConfigurations = ( 1361 | 00E356F61AD99517003FC87E /* Debug */, 1362 | 00E356F71AD99517003FC87E /* Release */, 1363 | ); 1364 | defaultConfigurationIsVisible = 0; 1365 | defaultConfigurationName = Release; 1366 | }; 1367 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = { 1368 | isa = XCConfigurationList; 1369 | buildConfigurations = ( 1370 | 13B07F941A680F5B00A75B9A /* Debug */, 1371 | 13B07F951A680F5B00A75B9A /* Release */, 1372 | ); 1373 | defaultConfigurationIsVisible = 0; 1374 | defaultConfigurationName = Release; 1375 | }; 1376 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOS" */ = { 1377 | isa = XCConfigurationList; 1378 | buildConfigurations = ( 1379 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1380 | 2D02E4981E0B4A5E006451C7 /* Release */, 1381 | ); 1382 | defaultConfigurationIsVisible = 0; 1383 | defaultConfigurationName = Release; 1384 | }; 1385 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOSTests" */ = { 1386 | isa = XCConfigurationList; 1387 | buildConfigurations = ( 1388 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1389 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1390 | ); 1391 | defaultConfigurationIsVisible = 0; 1392 | defaultConfigurationName = Release; 1393 | }; 1394 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = { 1395 | isa = XCConfigurationList; 1396 | buildConfigurations = ( 1397 | 83CBBA201A601CBA00E9B192 /* Debug */, 1398 | 83CBBA211A601CBA00E9B192 /* Release */, 1399 | ); 1400 | defaultConfigurationIsVisible = 0; 1401 | defaultConfigurationName = Release; 1402 | }; 1403 | /* End XCConfigurationList section */ 1404 | }; 1405 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1406 | } 1407 | -------------------------------------------------------------------------------- /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/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/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/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.0", 12 | "react-native-easy-loading-view": "^1.0.1", 13 | "react-navigation": "^1.5.9" 14 | }, 15 | "devDependencies": { 16 | "babel-jest": "24.7.1", 17 | "babel-preset-react-native": "4.0.1", 18 | "jest": "24.7.1", 19 | "react-test-renderer": "16.0.0-beta.5" 20 | }, 21 | "jest": { 22 | "preset": "react-native" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 2 | import Loading from './src/Loading' 3 | module.exports = Loading 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-easy-loading-view", 3 | "version": "1.0.1", 4 | "description": "A react native loading view", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/Itangjie/react-native-easy-loading-view.git" 12 | }, 13 | "keywords": [ 14 | "react-native", 15 | "react-native-easy-loading-view", 16 | "react-native-loading", 17 | "loading", 18 | "hud", 19 | "react-native-easy", 20 | "react-native-hud" 21 | ], 22 | "author": "tangjie", 23 | "license": "MIT", 24 | "peerDependencies": { 25 | "react-native": "^0.41.2" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Loading.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by tangjie on 2018/4/4. 3 | */ 4 | 5 | import React, { Component } from 'react'; 6 | import { 7 | StyleSheet, 8 | Text, 9 | View, 10 | Image, 11 | Dimensions, 12 | ActivityIndicator 13 | 14 | } from 'react-native'; 15 | 16 | import PropTypes from 'prop-types' 17 | const { width, height } = Dimensions.get('window'); 18 | 19 | const LOADING_HUD = 0; 20 | const LOADING_NOMAL = 1; 21 | 22 | let loadingView = null; 23 | 24 | export default class LoadingView extends Component { 25 | 26 | static propTypes = { 27 | 28 | // 外层容器属性 29 | top : PropTypes.number, 30 | left : PropTypes.number, 31 | bottom : PropTypes.number, 32 | width : PropTypes.number, 33 | height : PropTypes.number, 34 | backgroundColor : PropTypes.string, 35 | 36 | //hud属性 37 | hudStyle : PropTypes.any, 38 | hudBackgroundColor : PropTypes.string, 39 | hudDefaultText : PropTypes.string, 40 | hudTextStyle : PropTypes.any, 41 | activityIndicatorSize : PropTypes.string, 42 | activityIndicatorColor : PropTypes.string, 43 | hudCustomImage : PropTypes.any, 44 | hudImageStyle : PropTypes.any, 45 | 46 | //loading 属性 47 | loadingDefaultText : PropTypes.string, 48 | loadingStyle : PropTypes.any, 49 | loadingImage : PropTypes.any, 50 | loadingImageStyle : PropTypes.any, 51 | loadingTextStyle : PropTypes.any, 52 | 53 | offsetY : PropTypes.number, 54 | 55 | 56 | }; 57 | 58 | static defaultProps = { 59 | 60 | top : 0, 61 | left : 0, 62 | bottom : 0, 63 | width : width, 64 | height : height, 65 | backgroundColor : 'transparent', 66 | 67 | hudBackgroundColor : 'black', 68 | hudDefaultText : 'loading...', 69 | loadingDefaultText : '', 70 | 71 | activityIndicatorSize : 'small', // small or large 72 | hudCustomGif : null, 73 | 74 | loadingImage : null, 75 | 76 | offsetY : 0, 77 | 78 | }; 79 | 80 | constructor(props){ 81 | super(props); 82 | this.state={ 83 | 84 | show : false, 85 | showHud : false, 86 | showLoading : false, 87 | 88 | hudText : this.props.hudDefaultText, 89 | hudBackgroundColor : this.props.hudBackgroundColor, 90 | 91 | top : this.props.top, 92 | bottom : this.props.bottom, 93 | displayType : LOADING_HUD, // 0->loading 1->success 2->error 3->tip 94 | 95 | backgroundColor : this.props.backgroundColor, 96 | loadingText : this.props.loadingDefaultText, 97 | 98 | extraTop : this.props.offsetY, 99 | 100 | }; 101 | 102 | } 103 | 104 | static loadingDidCreate(ref){ 105 | 106 | loadingView = ref; 107 | } 108 | 109 | /** 110 | * 显示hud 111 | * @param text 等待提示问题,默认显示hudDefaultText 112 | * @param extraTop 中间动画视图y轴额外偏移量 113 | * @param bkColor hud背景色 114 | */ 115 | static showHud(text='',extraTop=0,bkColor=''){ 116 | 117 | loadingView.showHud(text,extraTop,bkColor) 118 | } 119 | 120 | 121 | /** 122 | * 显示loading 123 | * @param text 等待提示问题,默认显示loadingDefaultText 124 | * @param extraTop 中间动画视图y轴额外偏移量 125 | * @param bkColor 外层容器背景色 126 | */ 127 | static showLoading(text='',extraTop=0,bkColor=''){ 128 | 129 | loadingView.showLoading(text,extraTop,bkColor) 130 | } 131 | 132 | 133 | static dismiss(){ 134 | 135 | loadingView.dismiss() 136 | } 137 | 138 | showHud(text='',extraTop=0,bkColor=''){ 139 | 140 | this.setState({ 141 | displayType : LOADING_HUD, 142 | show : true, 143 | showHud : true, 144 | hudText : text === '' ? this.props.hudDefaultText : text, 145 | extraTop : extraTop, 146 | hudBackgroundColor : bkColor === '' ? this.props.hudBackgroundColor : bkColor 147 | }); 148 | } 149 | 150 | showLoading(text='',extraTop=0,bkColor=''){ 151 | 152 | this.setState({ 153 | displayType : LOADING_NOMAL, 154 | show : true, 155 | showLoading : true, 156 | loadingText : text === '' ? this.props.loadingDefaultText : text, 157 | extraTop : extraTop, 158 | backgroundColor : bkColor === '' ? this.props.backgroundColor : bkColor 159 | }); 160 | } 161 | 162 | 163 | dismiss(){ 164 | 165 | this.setState({show : false,showHud : false,showLoading : false,hudBackgroundColor : this.props.hudBackgroundColor, backgroundColor : this.props.backgroundColor,extraTop : 0}) 166 | } 167 | 168 | componentDidMount(){ 169 | 170 | } 171 | 172 | componentWillUnmount() { 173 | 174 | 175 | } 176 | 177 | renderNomalView(){ 178 | 179 | const {loadingStyle,loadingImage,loadingImageStyle,loadingTextStyle,offsetY} = this.props; 180 | 181 | let image = (loadingImage == null ? require('./assets/loading_text.gif') : loadingImage); 182 | return( 183 | 184 | this.state.showLoading === true ? 185 | 186 | 187 | {this.state.loadingText != null && this.state.loadingText.length > 0 ? {this.state.loadingText} : null} 188 | : null 189 | ) 190 | 191 | } 192 | 193 | renderHudView(){ 194 | 195 | const { hudStyle,hudTextStyle,hudCustomImage,hudImageStyle, offsetY } = this.props; 196 | return ( 197 | 198 | this.state.showHud === true ? 199 | 200 | {hudCustomImage == null ? : } 201 | {this.state.hudText != null && this.state.hudText.length > 0 ? {this.state.hudText} : null} 202 | : null 203 | ) 204 | } 205 | 206 | 207 | renderLoadingView(type){ 208 | 209 | if(type === LOADING_HUD){ 210 | 211 | 212 | return( 213 | 214 | this.renderHudView() 215 | ) 216 | 217 | } else if (type === LOADING_NOMAL){ 218 | 219 | return ( 220 | this.renderNomalView() 221 | ) 222 | } 223 | } 224 | 225 | 226 | render() { 227 | return ( 228 | 233 | 234 | {this.renderLoadingView(this.state.displayType)} 235 | 236 | ); 237 | } 238 | } 239 | 240 | const styles = StyleSheet.create({ 241 | 242 | hudStyle :{ 243 | justifyContent: 'center', 244 | alignItems: 'center', 245 | marginTop : 0, 246 | width : 110, 247 | height : 110, 248 | backgroundColor : 'black', 249 | borderRadius: 10 250 | }, 251 | hudTextStyle :{ 252 | 253 | color : '#999999', 254 | fontSize : 13, 255 | marginTop : 15 256 | }, 257 | 258 | gifImageStyle :{ 259 | 260 | width : 30, 261 | height : 30 262 | }, 263 | loadingStyle : { 264 | 265 | justifyContent: 'center', 266 | alignItems: 'center', 267 | marginTop : 0, 268 | backgroundColor : 'transparent' 269 | }, 270 | loadingImageStyle :{ 271 | 272 | }, 273 | 274 | loadingTextStyle :{ 275 | 276 | color : '#999999', 277 | fontSize : 14, 278 | marginTop : 15 279 | }, 280 | 281 | toastTextStyle : { 282 | 283 | color : 'white', 284 | fontSize : 14 285 | }, 286 | 287 | toastStyle : { 288 | 289 | backgroundColor : 'black', 290 | borderRadius:5, 291 | paddingVertical : 10, 292 | paddingHorizontal: 13, 293 | justifyContent : 'center', 294 | alignItems : 'center' 295 | } 296 | }); 297 | -------------------------------------------------------------------------------- /src/assets/loading_text.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Itangjie/react-native-easy-loading-view/776312ab438ad727b0de70de8eccd8ed9ceb0efd/src/assets/loading_text.gif --------------------------------------------------------------------------------