├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── LICENSE ├── README.md ├── __tests__ └── App.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── react_native_overlayer │ │ │ ├── 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 ├── assets ├── actionSheet.gif ├── actionsheet1@2x.png ├── actionsheet2.png ├── alert.png ├── alert3.png ├── alertnormal.png ├── loading.png ├── loadingImageDetail.png ├── loadingstyle.png ├── overlayer.gif ├── overlayer2.gif ├── toast.png └── toast2.png ├── index.js ├── ios ├── react_native_overlayer-tvOS │ └── Info.plist ├── react_native_overlayer-tvOSTests │ └── Info.plist ├── react_native_overlayer.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── react_native_overlayer-tvOS.xcscheme │ │ └── react_native_overlayer.xcscheme ├── react_native_overlayer │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── react_native_overlayerTests │ ├── Info.plist │ └── react_native_overlayerTests.m ├── package-lock.json ├── package.json ├── src ├── ActionSheet.js ├── RRCActionSheet.js ├── RRCAlert.js ├── RRCLoading.js ├── RRCToast.js ├── RRCTopView.js ├── const │ └── Device.js ├── img │ ├── alert@2x.png │ ├── car_list_loading.gif │ ├── loading.gif │ └── success@2x.png └── index.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.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-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[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.56.0 49 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2018-11-13 14:45:11 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2019-02-19 10:18:39 7 | */ 8 | 9 | /** 10 | * Sample React Native App 11 | * https://github.com/facebook/react-native 12 | * @flow 13 | */ 14 | 15 | import React, { Component } from 'react'; 16 | import { 17 | StyleSheet, 18 | Text, 19 | View, 20 | TouchableOpacity, 21 | Dimensions, 22 | ScrollView 23 | } from 'react-native'; 24 | import { RRCAlert, RRCLoading, RRCToast, RRCActionSheet } from './src'; 25 | import LoadingImage from './src/img/car_list_loading.gif'; 26 | import AlertImage from './src/img/alert.png'; 27 | import SuccessImage from './src/img/success.png'; 28 | 29 | export default class App extends Component { 30 | constructor(props) { 31 | super(props); 32 | RRCLoading.setLoadingOptions({ 33 | text: 'gogogo', 34 | loadingBackgroundColor: 'rgba(0,0,0,0.0)', 35 | loadingImage: LoadingImage, 36 | loadingViewStyle: { backgroundColor: 'rgba(0,0,0,0.8)' }, 37 | loadingTextStyle: {} 38 | }) 39 | // RRCAlert.setAlertOptions({ 40 | // alertBackgroundColor: 'rgba(0,0,0,0.3)', 41 | // titleViewStyle: {}, 42 | // titleTextStyle: {}, 43 | // contentTextStyle: {} 44 | // }) 45 | RRCToast.setToastOptions({ 46 | toastIcons: [AlertImage, SuccessImage], 47 | toastBackgroundColor: 'rgba(0,0,0,0)', 48 | toastViewStyle: {}, 49 | toastTextStyle: {}, 50 | durationTime: 3000 51 | }) 52 | } 53 | render() { 54 | return ( 55 | 56 | { 57 | RRCLoading.show('加载中...') 58 | RRCLoading.setLoadingOptions({ 59 | text: 'gogogo', 60 | loadingBackgroundColor: 'rgba(0,0,0,0)', 61 | loadingViewStyle: { backgroundColor: 'rgba(0,0,0,0.9)' } 62 | }) 63 | setTimeout(() => { 64 | RRCLoading.hide() 65 | }, 2000); 66 | }}> 67 | 68 | Show loading >> hide loading after 2s 69 | 70 | 71 | { 72 | RRCAlert.alert('normal'); 73 | setTimeout(() => { 74 | RRCActionSheet.action([1,2,3], (index)=>{ 75 | RRCToast.show(index) 76 | }) 77 | }, 1000); 78 | }}> 79 | 80 | Alert normal 81 | 82 | 83 | 84 | { 85 | RRCActionSheet.action( [1,{text: 2, style:{color: 'red'}},3,4,5,6], (index)=>{ 86 | RRCToast.show('selected index ' + index) 87 | }, {text: 'ok', style:{color: 'red'}}); 88 | 89 | }}> 90 | 91 | action sheet normal 92 | 93 | 94 | 95 | { 96 | RRCActionSheet.action( [1,2,3,4,5,6], (index)=>{ 97 | RRCToast.show('selected index ' + index) 98 | }); 99 | RRCToast.show('toast 与 ActionSheet、Alert不冲突') 100 | setTimeout(()=>{ 101 | RRCAlert.alert('ActionSheet、Alert先入栈的最后展示') 102 | }, 2000) 103 | }}> 104 | 105 | action sheet normal default 106 | 107 | 108 | 109 | 110 | { 111 | RRCAlert.alert('loading and alert') 112 | setTimeout(() => { 113 | RRCLoading.setLoadingOptions({ 114 | text: 'loading', 115 | loadingImage: '' 116 | }) 117 | RRCLoading.show('加载中') 118 | }, 1000); 119 | setTimeout(() => { 120 | RRCLoading.hide() 121 | }, 3000); 122 | }}> 123 | 124 | Alert normal >> show loading after 1s >> hide loading after 3s 125 | 126 | 127 | 128 | { 129 | RRCLoading.show('Loading...') 130 | setTimeout(() => { 131 | RRCLoading.hide() 132 | }, 3000); 133 | }}> 134 | 135 | Alert nothing and show loading 136 | 137 | 138 | 139 | { 140 | RRCAlert.alert('title title') 141 | }}> 142 | 143 | Alert title only 144 | 145 | 146 | { 147 | RRCAlert.alert('only title && very looooooooooooooooooooooooooooooong') 148 | }}> 149 | 150 | Alert long title only 151 | 152 | 153 | { 154 | RRCAlert.alert( 155 | null, 156 | '这是Alert的内容,如果内容很多会自动折行,行高20 ', 157 | [{ text: '确定' }] 158 | ) 159 | // 可以中途修改样式 160 | // RRCAlert.setAlertOptions({ 161 | // contentTextStyle: {backgroundColor: 'red'} 162 | // }) 163 | 164 | }}> 165 | 166 | Alert content only 167 | 168 | 169 | { 170 | RRCAlert.alert( 171 | 'RRC提醒', 172 | `1、这是第一行\n2、这是第二行通过使用${"\/n"}可以折行\n3、第三行`, 173 | [{ 174 | text: '取消', 175 | }, { 176 | text: '删除', 177 | style: { color: 'red' } 178 | }], 179 | (index) => { 180 | console.log(`index = ${index} clicked`); 181 | } 182 | ) 183 | }}> 184 | 185 | Alert mutltiple lines 186 | 187 | 188 | 189 | 190 | { 191 | RRCAlert.alert('多选', '三选一', [{ 192 | text: '给个好评', 193 | }, { 194 | text: '去吐槽', 195 | }, { 196 | text: '下次再说', 197 | }], (index) => { 198 | console.log(`index = ${index} clicked`); 199 | }) 200 | setTimeout(() => { 201 | RRCAlert.alert( 202 | null, 203 | '内容内容内容内容内容内容内容内容内容内容内容内容内容内容', 204 | [{ text: '确定' }] 205 | ) 206 | }, 2000); 207 | }}> 208 | 209 | Alert with three buttons >> Alert normal after 2s 210 | 211 | 212 | { 213 | RRCAlert.alert('normal'); 214 | RRCToast.show('操作成功,可以继续', 1, 1000); 215 | }}> 216 | 217 | show toast and alert 218 | 219 | 220 | 221 | { 222 | RRCToast.show('操作成功'); 223 | }}> 224 | 225 | show toast text only (one line) 226 | 227 | 228 | 229 | { 230 | RRCToast.show('操作成功,可以继续,操作成功,可以继续,操作成功,可以继续,操作成功,可以继续,5s后消失', null, 5000); 231 | }}> 232 | 233 | show toast text only (multiple lines) 234 | 235 | 236 | 237 | { 238 | RRCLoading.show('正在上传图片...'); 239 | setTimeout(() => { 240 | RRCLoading.hide() 241 | RRCToast.show('操作成功', 1); 242 | }, 2000); 243 | }}> 244 | 245 | loading 2s later hide loading and show toast 246 | 247 | 248 | 249 | ); 250 | } 251 | } 252 | 253 | const styles = StyleSheet.create({ 254 | container: { 255 | flex: 1, 256 | justifyContent: 'center', 257 | alignItems: 'center', 258 | backgroundColor: '#ccc' 259 | }, 260 | welcome: { 261 | fontSize: 20, 262 | textAlign: 'center', 263 | margin: 10, 264 | color: '#fff', 265 | backgroundColor: '#c2c2c2', 266 | width: Dimensions.get('window').width, 267 | padding: 5 268 | }, 269 | }); 270 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 yongqianvip 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 | # react-native-overlayer 2 | 3 | react-native项目中通用的浮层组件 4 | 5 | # 功能 6 | * **通用RRCAlert组件** 7 | * **通用RRCLoading组件** 8 | * **通用RRCToast组件** 9 | 10 | * **通用RRCActionSheet组件** 11 | 12 | # install 13 | 14 | npm i react-native-overlayer --save 15 | 16 | # 效果 17 | 18 | ![](./assets/overlayer.gif) 19 | ![](./assets/loadingstyle.png) 20 | ## RRCAlert 21 | * 引用 22 | 23 | import { RRCAlert } from 'react-native-overlayer'; 24 | ... 25 | RRCAlert.setAlertOptions({ 26 | alertBackgroundColor: 'rgba(0,0,0,0.3)', // alert蒙层的背景色 27 | titleViewStyle: {}, 28 | titleTextStyle: {}, 29 | contentTextStyle: {} 30 | }) 31 | ... 32 | 33 | cosnt buttons = [ 34 | { text: 'ok', style: { color: '#fd521d', fontWeight: 'bold' } } 35 | ] 36 | const callback = (index)=>{ 37 | console.log(`you click button with index ${index}`); 38 | } 39 | RRCAlert.alert('title', 'content', buttons, callback); 40 | 41 | * **`setAlertOptions` options** 42 | 43 | |key|type|default value | desc | 44 | |:--:|:--:|:--:|:--:| 45 | |alertBackgroundColor|string|rgba(0,0,0,0.3)|弹框蒙层背景色 | 46 | |titleViewStyle|object|-|弹框标题View扩展样式 | 47 | |titleTextStyle|object|-|弹框标题文本扩展样式 | 48 | |contentTextStyle|object|-|弹框内容文本扩展样式 | 49 | 50 | 51 | * 当 buttons.length > 2 时,弹窗中的按钮按纵向排列 52 | 53 | ## RRCActionSheet 54 | * 引用 55 | 56 | import { RRCActionSheet } from 'react-native-overlayer'; 57 | ... 58 | RRCActionSheet.setActionSheetOptions({ 59 | backgroundColor: defaultBackgroundColor, // 遮罩颜色 60 | fontSize: 19, // 文字字号 61 | itemHeight: 57, // 单个item的高度 62 | buttonTitleColor: 'rgba(0, 0, 14, 0.8)', // 备选按钮字体颜色 63 | cancelButtonTitleColor: 'rgba(0, 0, 14, 0.8)', // 取消按钮字体颜色 64 | buttonItemBackgroundColor: '#eee', // 备选按钮背景颜色 65 | cancelButtonBackgroundColor: '#feffff', // 取消按钮背景颜色 66 | }) 67 | ... 68 | 69 | const buttons = [1,'2','3',4,5,6]; // 字符串或数字型数组 70 | const buttons_2 = [ // 对象型数组 key 为 text和style 71 | {text: 1, style:{color: 'red', fontSize: 16}}, 72 | {text: 2, style:{color: 'red'}}, 73 | {text: 2, style:{color: 'red'}}, 74 | {text: 3, style:{color: 'red'}} 75 | ] 76 | const buttons_3 = [ // 数字、字符串、对象 组合型数组 77 | {text: 1, style:{color: 'red'}}, 78 | 2, 79 | {text: 3, style:{color: 'red'}}, 80 | {text: 4, style:{color: 'red'}}, 81 | '5' 82 | ] 83 | 84 | const callback = (index)=>{ 85 | console.log(`you click button with index ${index}`); 86 | } 87 | const cancelButton = {text: '确定', style:{color: 'red'}} // 默认【取消】 样式可以通过option统一设置 88 | 89 | RRCActionSheet.action(buttons, callback, cancelButton); 90 | 91 | 92 | * **`setAlertOptions` options** 93 | 94 | |key|type|default value | desc | 95 | |:--:|:--:|:--:|:--:| 96 | | backgroundColor |string|rgba(0,0,0,0.3)|弹框蒙层背景色 | 97 | | fontSize | number| 19 | 文字字号 98 | | itemHeight | number| 57 | 单个item的高度 99 | | buttonTitleColor | string | rgba(0, 0, 14, 0.8) | 备选按钮字体颜色 100 | | cancelButtonTitleColor | string| #eee | 备选按钮背景颜色 101 | | buttonItemBackgroundColor | string| 19 | 文字字号 102 | | cancelButtonBackgroundColor | string | #feffff | 取消按钮背景颜色 103 | 104 | 105 | 106 | ## RRCLoading 107 | * 引用 108 | 109 | import { RRCLoading } from 'react-native-overlayer'; 110 | import LoadingImage from './src/img/loading.gif'; 111 | ... 112 | RRCLoading.setLoadingOptions({ 113 | text: 'gogogo', 114 | loadingBackgroundColor: 'rgba(0,0,0,0.0)', 115 | loadingImage: LoadingImage, 116 | loadingViewStyle: {backgroundColor: 'rgba(0,0,0,0.8)'}, 117 | loadingTextStyle: {} 118 | }) 119 | 120 | RRCLoading.show(); 121 | 122 | RRCLoading.hide(); 123 | 124 | * **`setLoadingOptions` oprions** 125 | 126 | |key|type|default value | desc | 127 | |:--:|:--:|:--:|:--:| 128 | | text |string|加载中...|loading框中显示的文本 | 129 | | loadingBackgroundColor |string| rgba(0,0,0,0) | 蒙层背景色| 130 | | loadingImage |Image| - |图片(gif) | 131 | | loadingViewStyle |object|-| loading框view的扩展样式| 132 | | loadingTextStyle |object| - | loading框的文本扩展样式| 133 | 134 | * 在android中使用gif图需要添加额外配置,在`android/app/build.gradle`中添加如下代码 135 | 136 | dependencies { 137 | // 如果你需要支持GIF动图 138 | compile 'com.facebook.fresco:animated-gif:1.3.0' 139 | } 140 | 141 | ## RRCToast 142 | * 引用 143 | 144 | import { RRCLoading } from 'react-native-overlayer'; 145 | import AlertImage from './src/img/alert.png'; 146 | import SuccessImage from './src/img/success.png'; 147 | ... 148 | RRCToast.setToastOptions({ 149 | toastIcons: [AlertImage, SuccessImage], 150 | toastBackgroundColor: 'rgba(0,0,0,0)', 151 | toastViewStyle: {}, 152 | toastTextStyle: {}, 153 | durationTime: 3000 154 | }) 155 | ... 156 | RRCToast.show(toastText, iconIndex, duration); 157 | 158 | > iconIndex: toast可以附带一个icon, toastIcons[iconIndex] 159 | 160 | * **`setToastOptions` options** 161 | 162 | |key|type|default value | desc | 163 | |:--:|:--:|:--:|:--:| 164 | | toastIcons | array |-|toast附带的icon数组 | 165 | | toastBackgroundColor | string |rgba(0,0,0,0)|toast蒙层背景色 | 166 | | toastViewStyle |object|-|toast扩展样式 | 167 | | toastTextStyle | object |-|toast文本扩展样式 | 168 | | durationTime |number| 200 |toast展示的时长 | 169 | 170 | 171 | 172 | 173 | ## Alert和Loading同时出现 174 | 175 | |场景|效果| 176 | |---|---| 177 | |多次`RRCAlert.alert()`|优先展示最后一个(倒序展示)| 178 | |多次`RRCLoading.show()`|仅展示最后一个,`RRCLoading.hide()`时移除| 179 | |当loading未消失时触发`RRCAlert.alert()`|优先显示loading,loading消失后显示alert| 180 | |当alert未消失时触发`RRCLoading.show()`|优先显示loading,loading消失后显示alert| 181 | 182 | 183 | # 核心实现 184 | 这个组件参照[teaset](https://github.com/rilyu/teaset)的[overlay](https://github.com/rilyu/teaset#overlay)来实现的,主要思路是在RN组件的最外层包了一层View(RRCTopView),本组件即是加载在RRCTopView中的视图,使用绝对布局(`position: 'absolute'`), 其核心的代码如下: 185 | 186 | 187 | if (!AppRegistry.registerComponentOld) { 188 | AppRegistry.registerComponentOld = AppRegistry.registerComponent; 189 | } 190 | 191 | AppRegistry.registerComponent = function (appKey, componentProvider) { 192 | 193 | class RootElement extends Component { 194 | render() { 195 | let Component = componentProvider(); 196 | return ( 197 | 198 | 199 | 200 | ); 201 | } 202 | } 203 | 204 | return AppRegistry.registerComponentOld(appKey, () => RootElement); 205 | } 206 | 207 | # 更新说明 208 | ### 0.1.0 209 | - 新增`RRCToast` 210 | - `RRCAlert.alert()`不再接收`options`参数 211 | - 各个组件统一使用`set***Options`的方式设置属性、样式 212 | 213 | ### 0.1.1 214 | - `RRCToast`出现时可以进行toast之外的交互,如点击事件、侧滑返回等 215 | 216 | ### 0.2.0 217 | - 新增`RRCActionSheet`,用法与RRCAlert类似 218 | 219 | # 效果图 220 | ![alert](./assets/alertnormal.png) 221 | ![alert](./assets/alert3.png) 222 | ![loading](./assets/loading.png) 223 | ![actionsheet](./assets/actionsheet2.png) 224 | ![toast](./assets/toast.png) 225 | ![toast](./assets/toast2.png) -------------------------------------------------------------------------------- /__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /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.react_native_overlayer", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.react_native_overlayer", 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 | -------------------------------------------------------------------------------- /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.react_native_overlayer" 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 | compile 'com.facebook.fresco:animated-gif:1.3.0' 144 | } 145 | 146 | // Run this once to be able to run the application with BUCK 147 | // puts all compile dependencies into folder libs for BUCK to use 148 | task copyDownloadableDepsToLibs(type: Copy) { 149 | from configurations.compile 150 | into 'libs' 151 | } 152 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/react_native_overlayer/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.react_native_overlayer; 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 "react_native_overlayer"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/react_native_overlayer/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.react_native_overlayer; 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 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | react_native_overlayer 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'react_native_overlayer' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react_native_overlayer", 3 | "displayName": "react_native_overlayer" 4 | } -------------------------------------------------------------------------------- /assets/actionSheet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/actionSheet.gif -------------------------------------------------------------------------------- /assets/actionsheet1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/actionsheet1@2x.png -------------------------------------------------------------------------------- /assets/actionsheet2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/actionsheet2.png -------------------------------------------------------------------------------- /assets/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/alert.png -------------------------------------------------------------------------------- /assets/alert3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/alert3.png -------------------------------------------------------------------------------- /assets/alertnormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/alertnormal.png -------------------------------------------------------------------------------- /assets/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/loading.png -------------------------------------------------------------------------------- /assets/loadingImageDetail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/loadingImageDetail.png -------------------------------------------------------------------------------- /assets/loadingstyle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/loadingstyle.png -------------------------------------------------------------------------------- /assets/overlayer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/overlayer.gif -------------------------------------------------------------------------------- /assets/overlayer2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/overlayer2.gif -------------------------------------------------------------------------------- /assets/toast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/toast.png -------------------------------------------------------------------------------- /assets/toast2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/assets/toast2.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('react_native_overlayer', () => App); 5 | -------------------------------------------------------------------------------- /ios/react_native_overlayer-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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer-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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer.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 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* 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 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 36 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 37 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 38 | /* End PBXBuildFile section */ 39 | 40 | /* Begin PBXContainerItemProxy section */ 41 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 44 | proxyType = 2; 45 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 46 | remoteInfo = RCTActionSheet; 47 | }; 48 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 51 | proxyType = 2; 52 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 53 | remoteInfo = RCTGeolocation; 54 | }; 55 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 56 | isa = PBXContainerItemProxy; 57 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 58 | proxyType = 2; 59 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 60 | remoteInfo = RCTImage; 61 | }; 62 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 63 | isa = PBXContainerItemProxy; 64 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 65 | proxyType = 2; 66 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 67 | remoteInfo = RCTNetwork; 68 | }; 69 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 70 | isa = PBXContainerItemProxy; 71 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 72 | proxyType = 2; 73 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 74 | remoteInfo = RCTVibration; 75 | }; 76 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 77 | isa = PBXContainerItemProxy; 78 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 79 | proxyType = 1; 80 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 81 | remoteInfo = react_native_overlayer; 82 | }; 83 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 84 | isa = PBXContainerItemProxy; 85 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 86 | proxyType = 2; 87 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 88 | remoteInfo = RCTSettings; 89 | }; 90 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 91 | isa = PBXContainerItemProxy; 92 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 93 | proxyType = 2; 94 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 95 | remoteInfo = RCTWebSocket; 96 | }; 97 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 98 | isa = PBXContainerItemProxy; 99 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 100 | proxyType = 2; 101 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 102 | remoteInfo = React; 103 | }; 104 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 105 | isa = PBXContainerItemProxy; 106 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 107 | proxyType = 1; 108 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 109 | remoteInfo = "react_native_overlayer-tvOS"; 110 | }; 111 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 112 | isa = PBXContainerItemProxy; 113 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 114 | proxyType = 2; 115 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 116 | remoteInfo = "RCTImage-tvOS"; 117 | }; 118 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 119 | isa = PBXContainerItemProxy; 120 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 121 | proxyType = 2; 122 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 123 | remoteInfo = "RCTLinking-tvOS"; 124 | }; 125 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 126 | isa = PBXContainerItemProxy; 127 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 128 | proxyType = 2; 129 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 130 | remoteInfo = "RCTNetwork-tvOS"; 131 | }; 132 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 133 | isa = PBXContainerItemProxy; 134 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 135 | proxyType = 2; 136 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 137 | remoteInfo = "RCTSettings-tvOS"; 138 | }; 139 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 140 | isa = PBXContainerItemProxy; 141 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 142 | proxyType = 2; 143 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 144 | remoteInfo = "RCTText-tvOS"; 145 | }; 146 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 147 | isa = PBXContainerItemProxy; 148 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 149 | proxyType = 2; 150 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 151 | remoteInfo = "RCTWebSocket-tvOS"; 152 | }; 153 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 154 | isa = PBXContainerItemProxy; 155 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 156 | proxyType = 2; 157 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 158 | remoteInfo = "React-tvOS"; 159 | }; 160 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 161 | isa = PBXContainerItemProxy; 162 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 163 | proxyType = 2; 164 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 165 | remoteInfo = yoga; 166 | }; 167 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 168 | isa = PBXContainerItemProxy; 169 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 170 | proxyType = 2; 171 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 172 | remoteInfo = "yoga-tvOS"; 173 | }; 174 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 175 | isa = PBXContainerItemProxy; 176 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 177 | proxyType = 2; 178 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 179 | remoteInfo = cxxreact; 180 | }; 181 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 182 | isa = PBXContainerItemProxy; 183 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 184 | proxyType = 2; 185 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 186 | remoteInfo = "cxxreact-tvOS"; 187 | }; 188 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 189 | isa = PBXContainerItemProxy; 190 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 191 | proxyType = 2; 192 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 193 | remoteInfo = jschelpers; 194 | }; 195 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 196 | isa = PBXContainerItemProxy; 197 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 198 | proxyType = 2; 199 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 200 | remoteInfo = "jschelpers-tvOS"; 201 | }; 202 | 5BCEFCB0221AC236009B4E00 /* PBXContainerItemProxy */ = { 203 | isa = PBXContainerItemProxy; 204 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 205 | proxyType = 2; 206 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 207 | remoteInfo = "RCTBlob-tvOS"; 208 | }; 209 | 5BCEFCC2221AC236009B4E00 /* PBXContainerItemProxy */ = { 210 | isa = PBXContainerItemProxy; 211 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 212 | proxyType = 2; 213 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 214 | remoteInfo = fishhook; 215 | }; 216 | 5BCEFCC4221AC236009B4E00 /* PBXContainerItemProxy */ = { 217 | isa = PBXContainerItemProxy; 218 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 219 | proxyType = 2; 220 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 221 | remoteInfo = "fishhook-tvOS"; 222 | }; 223 | 5BCEFD01221AC786009B4E00 /* PBXContainerItemProxy */ = { 224 | isa = PBXContainerItemProxy; 225 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 226 | proxyType = 2; 227 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 228 | remoteInfo = "third-party"; 229 | }; 230 | 5BCEFD03221AC786009B4E00 /* PBXContainerItemProxy */ = { 231 | isa = PBXContainerItemProxy; 232 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 233 | proxyType = 2; 234 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 235 | remoteInfo = "third-party-tvOS"; 236 | }; 237 | 5BCEFD05221AC786009B4E00 /* PBXContainerItemProxy */ = { 238 | isa = PBXContainerItemProxy; 239 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 240 | proxyType = 2; 241 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 242 | remoteInfo = "double-conversion"; 243 | }; 244 | 5BCEFD07221AC786009B4E00 /* PBXContainerItemProxy */ = { 245 | isa = PBXContainerItemProxy; 246 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 247 | proxyType = 2; 248 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 249 | remoteInfo = "double-conversion-tvOS"; 250 | }; 251 | 5BCEFD09221AC786009B4E00 /* PBXContainerItemProxy */ = { 252 | isa = PBXContainerItemProxy; 253 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 254 | proxyType = 2; 255 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 256 | remoteInfo = privatedata; 257 | }; 258 | 5BCEFD0B221AC786009B4E00 /* PBXContainerItemProxy */ = { 259 | isa = PBXContainerItemProxy; 260 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 261 | proxyType = 2; 262 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 263 | remoteInfo = "privatedata-tvOS"; 264 | }; 265 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 266 | isa = PBXContainerItemProxy; 267 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 268 | proxyType = 2; 269 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 270 | remoteInfo = RCTAnimation; 271 | }; 272 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 273 | isa = PBXContainerItemProxy; 274 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 275 | proxyType = 2; 276 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 277 | remoteInfo = "RCTAnimation-tvOS"; 278 | }; 279 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 280 | isa = PBXContainerItemProxy; 281 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 282 | proxyType = 2; 283 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 284 | remoteInfo = RCTLinking; 285 | }; 286 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 287 | isa = PBXContainerItemProxy; 288 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 289 | proxyType = 2; 290 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 291 | remoteInfo = RCTText; 292 | }; 293 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 294 | isa = PBXContainerItemProxy; 295 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 296 | proxyType = 2; 297 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 298 | remoteInfo = RCTBlob; 299 | }; 300 | /* End PBXContainerItemProxy section */ 301 | 302 | /* Begin PBXFileReference section */ 303 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 304 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 305 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 306 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 307 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 308 | 00E356EE1AD99517003FC87E /* react_native_overlayerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = react_native_overlayerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 309 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 310 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 311 | 13B07F961A680F5B00A75B9A /* react_native_overlayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = react_native_overlayer.app; sourceTree = BUILT_PRODUCTS_DIR; }; 312 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = react_native_overlayer/AppDelegate.h; sourceTree = ""; }; 313 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = react_native_overlayer/AppDelegate.m; sourceTree = ""; }; 314 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 315 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = react_native_overlayer/Images.xcassets; sourceTree = ""; }; 316 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = react_native_overlayer/Info.plist; sourceTree = ""; }; 317 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = react_native_overlayer/main.m; sourceTree = ""; }; 318 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 319 | 2D02E47B1E0B4A5D006451C7 /* react_native_overlayer-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "react_native_overlayer-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 320 | 2D02E4901E0B4A5D006451C7 /* react_native_overlayer-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "react_native_overlayer-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 321 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 322 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 323 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 324 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 325 | /* End PBXFileReference section */ 326 | 327 | /* Begin PBXFrameworksBuildPhase section */ 328 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 329 | isa = PBXFrameworksBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 333 | ); 334 | runOnlyForDeploymentPostprocessing = 0; 335 | }; 336 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 337 | isa = PBXFrameworksBuildPhase; 338 | buildActionMask = 2147483647; 339 | files = ( 340 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 341 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 342 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 343 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 344 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 345 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 346 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 347 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 348 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 349 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 350 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 351 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 352 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 357 | isa = PBXFrameworksBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 361 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 362 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 363 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 364 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 365 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 366 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 367 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 372 | isa = PBXFrameworksBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | /* End PBXFrameworksBuildPhase section */ 379 | 380 | /* Begin PBXGroup section */ 381 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 382 | isa = PBXGroup; 383 | children = ( 384 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 385 | ); 386 | name = Products; 387 | sourceTree = ""; 388 | }; 389 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 390 | isa = PBXGroup; 391 | children = ( 392 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 393 | ); 394 | name = Products; 395 | sourceTree = ""; 396 | }; 397 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 398 | isa = PBXGroup; 399 | children = ( 400 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 401 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 402 | ); 403 | name = Products; 404 | sourceTree = ""; 405 | }; 406 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 407 | isa = PBXGroup; 408 | children = ( 409 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 410 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 411 | ); 412 | name = Products; 413 | sourceTree = ""; 414 | }; 415 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 416 | isa = PBXGroup; 417 | children = ( 418 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 419 | ); 420 | name = Products; 421 | sourceTree = ""; 422 | }; 423 | 139105B71AF99BAD00B5F7CC /* Products */ = { 424 | isa = PBXGroup; 425 | children = ( 426 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 427 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 428 | ); 429 | name = Products; 430 | sourceTree = ""; 431 | }; 432 | 139FDEE71B06529A00C62182 /* Products */ = { 433 | isa = PBXGroup; 434 | children = ( 435 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 436 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 437 | 5BCEFCC3221AC236009B4E00 /* libfishhook.a */, 438 | 5BCEFCC5221AC236009B4E00 /* libfishhook-tvOS.a */, 439 | ); 440 | name = Products; 441 | sourceTree = ""; 442 | }; 443 | 13B07FAE1A68108700A75B9A /* react_native_overlayer */ = { 444 | isa = PBXGroup; 445 | children = ( 446 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 447 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 448 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 449 | 13B07FB61A68108700A75B9A /* Info.plist */, 450 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 451 | 13B07FB71A68108700A75B9A /* main.m */, 452 | ); 453 | name = react_native_overlayer; 454 | sourceTree = ""; 455 | }; 456 | 146834001AC3E56700842450 /* Products */ = { 457 | isa = PBXGroup; 458 | children = ( 459 | 146834041AC3E56700842450 /* libReact.a */, 460 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 461 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 462 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 463 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 464 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 465 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 466 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 467 | 5BCEFD02221AC786009B4E00 /* libthird-party.a */, 468 | 5BCEFD04221AC786009B4E00 /* libthird-party.a */, 469 | 5BCEFD06221AC786009B4E00 /* libdouble-conversion.a */, 470 | 5BCEFD08221AC786009B4E00 /* libdouble-conversion.a */, 471 | 5BCEFD0A221AC786009B4E00 /* libprivatedata.a */, 472 | 5BCEFD0C221AC786009B4E00 /* libprivatedata-tvOS.a */, 473 | ); 474 | name = Products; 475 | sourceTree = ""; 476 | }; 477 | 53A3D397231D0E35004EF6D3 /* Frameworks */ = { 478 | isa = PBXGroup; 479 | children = ( 480 | ); 481 | name = Frameworks; 482 | sourceTree = ""; 483 | }; 484 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 485 | isa = PBXGroup; 486 | children = ( 487 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 488 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 489 | ); 490 | name = Products; 491 | sourceTree = ""; 492 | }; 493 | 78C398B11ACF4ADC00677621 /* Products */ = { 494 | isa = PBXGroup; 495 | children = ( 496 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 497 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 498 | ); 499 | name = Products; 500 | sourceTree = ""; 501 | }; 502 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 503 | isa = PBXGroup; 504 | children = ( 505 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 506 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 507 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 508 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 509 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 510 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 511 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 512 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 513 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 514 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 515 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 516 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 517 | ); 518 | name = Libraries; 519 | sourceTree = ""; 520 | }; 521 | 832341B11AAA6A8300B99B32 /* Products */ = { 522 | isa = PBXGroup; 523 | children = ( 524 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 525 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 526 | ); 527 | name = Products; 528 | sourceTree = ""; 529 | }; 530 | 83CBB9F61A601CBA00E9B192 = { 531 | isa = PBXGroup; 532 | children = ( 533 | 13B07FAE1A68108700A75B9A /* react_native_overlayer */, 534 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 535 | 83CBBA001A601CBA00E9B192 /* Products */, 536 | 53A3D397231D0E35004EF6D3 /* Frameworks */, 537 | ); 538 | indentWidth = 2; 539 | sourceTree = ""; 540 | tabWidth = 2; 541 | usesTabs = 0; 542 | }; 543 | 83CBBA001A601CBA00E9B192 /* Products */ = { 544 | isa = PBXGroup; 545 | children = ( 546 | 13B07F961A680F5B00A75B9A /* react_native_overlayer.app */, 547 | 00E356EE1AD99517003FC87E /* react_native_overlayerTests.xctest */, 548 | 2D02E47B1E0B4A5D006451C7 /* react_native_overlayer-tvOS.app */, 549 | 2D02E4901E0B4A5D006451C7 /* react_native_overlayer-tvOSTests.xctest */, 550 | ); 551 | name = Products; 552 | sourceTree = ""; 553 | }; 554 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 555 | isa = PBXGroup; 556 | children = ( 557 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 558 | 5BCEFCB1221AC236009B4E00 /* libRCTBlob-tvOS.a */, 559 | ); 560 | name = Products; 561 | sourceTree = ""; 562 | }; 563 | /* End PBXGroup section */ 564 | 565 | /* Begin PBXNativeTarget section */ 566 | 00E356ED1AD99517003FC87E /* react_native_overlayerTests */ = { 567 | isa = PBXNativeTarget; 568 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "react_native_overlayerTests" */; 569 | buildPhases = ( 570 | 00E356EA1AD99517003FC87E /* Sources */, 571 | 00E356EB1AD99517003FC87E /* Frameworks */, 572 | 00E356EC1AD99517003FC87E /* Resources */, 573 | ); 574 | buildRules = ( 575 | ); 576 | dependencies = ( 577 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 578 | ); 579 | name = react_native_overlayerTests; 580 | productName = react_native_overlayerTests; 581 | productReference = 00E356EE1AD99517003FC87E /* react_native_overlayerTests.xctest */; 582 | productType = "com.apple.product-type.bundle.unit-test"; 583 | }; 584 | 13B07F861A680F5B00A75B9A /* react_native_overlayer */ = { 585 | isa = PBXNativeTarget; 586 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "react_native_overlayer" */; 587 | buildPhases = ( 588 | 13B07F871A680F5B00A75B9A /* Sources */, 589 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 590 | 13B07F8E1A680F5B00A75B9A /* Resources */, 591 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 592 | ); 593 | buildRules = ( 594 | ); 595 | dependencies = ( 596 | ); 597 | name = react_native_overlayer; 598 | productName = "Hello World"; 599 | productReference = 13B07F961A680F5B00A75B9A /* react_native_overlayer.app */; 600 | productType = "com.apple.product-type.application"; 601 | }; 602 | 2D02E47A1E0B4A5D006451C7 /* react_native_overlayer-tvOS */ = { 603 | isa = PBXNativeTarget; 604 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "react_native_overlayer-tvOS" */; 605 | buildPhases = ( 606 | 2D02E4771E0B4A5D006451C7 /* Sources */, 607 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 608 | 2D02E4791E0B4A5D006451C7 /* Resources */, 609 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 610 | ); 611 | buildRules = ( 612 | ); 613 | dependencies = ( 614 | ); 615 | name = "react_native_overlayer-tvOS"; 616 | productName = "react_native_overlayer-tvOS"; 617 | productReference = 2D02E47B1E0B4A5D006451C7 /* react_native_overlayer-tvOS.app */; 618 | productType = "com.apple.product-type.application"; 619 | }; 620 | 2D02E48F1E0B4A5D006451C7 /* react_native_overlayer-tvOSTests */ = { 621 | isa = PBXNativeTarget; 622 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "react_native_overlayer-tvOSTests" */; 623 | buildPhases = ( 624 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 625 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 626 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 627 | ); 628 | buildRules = ( 629 | ); 630 | dependencies = ( 631 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 632 | ); 633 | name = "react_native_overlayer-tvOSTests"; 634 | productName = "react_native_overlayer-tvOSTests"; 635 | productReference = 2D02E4901E0B4A5D006451C7 /* react_native_overlayer-tvOSTests.xctest */; 636 | productType = "com.apple.product-type.bundle.unit-test"; 637 | }; 638 | /* End PBXNativeTarget section */ 639 | 640 | /* Begin PBXProject section */ 641 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 642 | isa = PBXProject; 643 | attributes = { 644 | LastUpgradeCheck = 0610; 645 | ORGANIZATIONNAME = Facebook; 646 | TargetAttributes = { 647 | 00E356ED1AD99517003FC87E = { 648 | CreatedOnToolsVersion = 6.2; 649 | TestTargetID = 13B07F861A680F5B00A75B9A; 650 | }; 651 | 13B07F861A680F5B00A75B9A = { 652 | DevelopmentTeam = 9G9QU2FC86; 653 | }; 654 | 2D02E47A1E0B4A5D006451C7 = { 655 | CreatedOnToolsVersion = 8.2.1; 656 | ProvisioningStyle = Automatic; 657 | }; 658 | 2D02E48F1E0B4A5D006451C7 = { 659 | CreatedOnToolsVersion = 8.2.1; 660 | ProvisioningStyle = Automatic; 661 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 662 | }; 663 | }; 664 | }; 665 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "react_native_overlayer" */; 666 | compatibilityVersion = "Xcode 3.2"; 667 | developmentRegion = English; 668 | hasScannedForEncodings = 0; 669 | knownRegions = ( 670 | en, 671 | Base, 672 | ); 673 | mainGroup = 83CBB9F61A601CBA00E9B192; 674 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 675 | projectDirPath = ""; 676 | projectReferences = ( 677 | { 678 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 679 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 680 | }, 681 | { 682 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 683 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 684 | }, 685 | { 686 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 687 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 688 | }, 689 | { 690 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 691 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 692 | }, 693 | { 694 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 695 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 696 | }, 697 | { 698 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 699 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 700 | }, 701 | { 702 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 703 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 704 | }, 705 | { 706 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 707 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 708 | }, 709 | { 710 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 711 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 712 | }, 713 | { 714 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 715 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 716 | }, 717 | { 718 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 719 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 720 | }, 721 | { 722 | ProductGroup = 146834001AC3E56700842450 /* Products */; 723 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 724 | }, 725 | ); 726 | projectRoot = ""; 727 | targets = ( 728 | 13B07F861A680F5B00A75B9A /* react_native_overlayer */, 729 | 00E356ED1AD99517003FC87E /* react_native_overlayerTests */, 730 | 2D02E47A1E0B4A5D006451C7 /* react_native_overlayer-tvOS */, 731 | 2D02E48F1E0B4A5D006451C7 /* react_native_overlayer-tvOSTests */, 732 | ); 733 | }; 734 | /* End PBXProject section */ 735 | 736 | /* Begin PBXReferenceProxy section */ 737 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 738 | isa = PBXReferenceProxy; 739 | fileType = archive.ar; 740 | path = libRCTActionSheet.a; 741 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 742 | sourceTree = BUILT_PRODUCTS_DIR; 743 | }; 744 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 745 | isa = PBXReferenceProxy; 746 | fileType = archive.ar; 747 | path = libRCTGeolocation.a; 748 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 749 | sourceTree = BUILT_PRODUCTS_DIR; 750 | }; 751 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 752 | isa = PBXReferenceProxy; 753 | fileType = archive.ar; 754 | path = libRCTImage.a; 755 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 756 | sourceTree = BUILT_PRODUCTS_DIR; 757 | }; 758 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 759 | isa = PBXReferenceProxy; 760 | fileType = archive.ar; 761 | path = libRCTNetwork.a; 762 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 763 | sourceTree = BUILT_PRODUCTS_DIR; 764 | }; 765 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 766 | isa = PBXReferenceProxy; 767 | fileType = archive.ar; 768 | path = libRCTVibration.a; 769 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 770 | sourceTree = BUILT_PRODUCTS_DIR; 771 | }; 772 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 773 | isa = PBXReferenceProxy; 774 | fileType = archive.ar; 775 | path = libRCTSettings.a; 776 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 777 | sourceTree = BUILT_PRODUCTS_DIR; 778 | }; 779 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 780 | isa = PBXReferenceProxy; 781 | fileType = archive.ar; 782 | path = libRCTWebSocket.a; 783 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 784 | sourceTree = BUILT_PRODUCTS_DIR; 785 | }; 786 | 146834041AC3E56700842450 /* libReact.a */ = { 787 | isa = PBXReferenceProxy; 788 | fileType = archive.ar; 789 | path = libReact.a; 790 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 791 | sourceTree = BUILT_PRODUCTS_DIR; 792 | }; 793 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 794 | isa = PBXReferenceProxy; 795 | fileType = archive.ar; 796 | path = "libRCTImage-tvOS.a"; 797 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 798 | sourceTree = BUILT_PRODUCTS_DIR; 799 | }; 800 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 801 | isa = PBXReferenceProxy; 802 | fileType = archive.ar; 803 | path = "libRCTLinking-tvOS.a"; 804 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 805 | sourceTree = BUILT_PRODUCTS_DIR; 806 | }; 807 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 808 | isa = PBXReferenceProxy; 809 | fileType = archive.ar; 810 | path = "libRCTNetwork-tvOS.a"; 811 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 812 | sourceTree = BUILT_PRODUCTS_DIR; 813 | }; 814 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 815 | isa = PBXReferenceProxy; 816 | fileType = archive.ar; 817 | path = "libRCTSettings-tvOS.a"; 818 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 819 | sourceTree = BUILT_PRODUCTS_DIR; 820 | }; 821 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 822 | isa = PBXReferenceProxy; 823 | fileType = archive.ar; 824 | path = "libRCTText-tvOS.a"; 825 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 826 | sourceTree = BUILT_PRODUCTS_DIR; 827 | }; 828 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 829 | isa = PBXReferenceProxy; 830 | fileType = archive.ar; 831 | path = "libRCTWebSocket-tvOS.a"; 832 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 833 | sourceTree = BUILT_PRODUCTS_DIR; 834 | }; 835 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 836 | isa = PBXReferenceProxy; 837 | fileType = archive.ar; 838 | path = libReact.a; 839 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 840 | sourceTree = BUILT_PRODUCTS_DIR; 841 | }; 842 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 843 | isa = PBXReferenceProxy; 844 | fileType = archive.ar; 845 | path = libyoga.a; 846 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 847 | sourceTree = BUILT_PRODUCTS_DIR; 848 | }; 849 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 850 | isa = PBXReferenceProxy; 851 | fileType = archive.ar; 852 | path = libyoga.a; 853 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 854 | sourceTree = BUILT_PRODUCTS_DIR; 855 | }; 856 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 857 | isa = PBXReferenceProxy; 858 | fileType = archive.ar; 859 | path = libcxxreact.a; 860 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 861 | sourceTree = BUILT_PRODUCTS_DIR; 862 | }; 863 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 864 | isa = PBXReferenceProxy; 865 | fileType = archive.ar; 866 | path = libcxxreact.a; 867 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 868 | sourceTree = BUILT_PRODUCTS_DIR; 869 | }; 870 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 871 | isa = PBXReferenceProxy; 872 | fileType = archive.ar; 873 | path = libjschelpers.a; 874 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 875 | sourceTree = BUILT_PRODUCTS_DIR; 876 | }; 877 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 878 | isa = PBXReferenceProxy; 879 | fileType = archive.ar; 880 | path = libjschelpers.a; 881 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 882 | sourceTree = BUILT_PRODUCTS_DIR; 883 | }; 884 | 5BCEFCB1221AC236009B4E00 /* libRCTBlob-tvOS.a */ = { 885 | isa = PBXReferenceProxy; 886 | fileType = archive.ar; 887 | path = "libRCTBlob-tvOS.a"; 888 | remoteRef = 5BCEFCB0221AC236009B4E00 /* PBXContainerItemProxy */; 889 | sourceTree = BUILT_PRODUCTS_DIR; 890 | }; 891 | 5BCEFCC3221AC236009B4E00 /* libfishhook.a */ = { 892 | isa = PBXReferenceProxy; 893 | fileType = archive.ar; 894 | path = libfishhook.a; 895 | remoteRef = 5BCEFCC2221AC236009B4E00 /* PBXContainerItemProxy */; 896 | sourceTree = BUILT_PRODUCTS_DIR; 897 | }; 898 | 5BCEFCC5221AC236009B4E00 /* libfishhook-tvOS.a */ = { 899 | isa = PBXReferenceProxy; 900 | fileType = archive.ar; 901 | path = "libfishhook-tvOS.a"; 902 | remoteRef = 5BCEFCC4221AC236009B4E00 /* PBXContainerItemProxy */; 903 | sourceTree = BUILT_PRODUCTS_DIR; 904 | }; 905 | 5BCEFD02221AC786009B4E00 /* libthird-party.a */ = { 906 | isa = PBXReferenceProxy; 907 | fileType = archive.ar; 908 | path = "libthird-party.a"; 909 | remoteRef = 5BCEFD01221AC786009B4E00 /* PBXContainerItemProxy */; 910 | sourceTree = BUILT_PRODUCTS_DIR; 911 | }; 912 | 5BCEFD04221AC786009B4E00 /* libthird-party.a */ = { 913 | isa = PBXReferenceProxy; 914 | fileType = archive.ar; 915 | path = "libthird-party.a"; 916 | remoteRef = 5BCEFD03221AC786009B4E00 /* PBXContainerItemProxy */; 917 | sourceTree = BUILT_PRODUCTS_DIR; 918 | }; 919 | 5BCEFD06221AC786009B4E00 /* libdouble-conversion.a */ = { 920 | isa = PBXReferenceProxy; 921 | fileType = archive.ar; 922 | path = "libdouble-conversion.a"; 923 | remoteRef = 5BCEFD05221AC786009B4E00 /* PBXContainerItemProxy */; 924 | sourceTree = BUILT_PRODUCTS_DIR; 925 | }; 926 | 5BCEFD08221AC786009B4E00 /* libdouble-conversion.a */ = { 927 | isa = PBXReferenceProxy; 928 | fileType = archive.ar; 929 | path = "libdouble-conversion.a"; 930 | remoteRef = 5BCEFD07221AC786009B4E00 /* PBXContainerItemProxy */; 931 | sourceTree = BUILT_PRODUCTS_DIR; 932 | }; 933 | 5BCEFD0A221AC786009B4E00 /* libprivatedata.a */ = { 934 | isa = PBXReferenceProxy; 935 | fileType = archive.ar; 936 | path = libprivatedata.a; 937 | remoteRef = 5BCEFD09221AC786009B4E00 /* PBXContainerItemProxy */; 938 | sourceTree = BUILT_PRODUCTS_DIR; 939 | }; 940 | 5BCEFD0C221AC786009B4E00 /* libprivatedata-tvOS.a */ = { 941 | isa = PBXReferenceProxy; 942 | fileType = archive.ar; 943 | path = "libprivatedata-tvOS.a"; 944 | remoteRef = 5BCEFD0B221AC786009B4E00 /* PBXContainerItemProxy */; 945 | sourceTree = BUILT_PRODUCTS_DIR; 946 | }; 947 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 948 | isa = PBXReferenceProxy; 949 | fileType = archive.ar; 950 | path = libRCTAnimation.a; 951 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 952 | sourceTree = BUILT_PRODUCTS_DIR; 953 | }; 954 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 955 | isa = PBXReferenceProxy; 956 | fileType = archive.ar; 957 | path = libRCTAnimation.a; 958 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 959 | sourceTree = BUILT_PRODUCTS_DIR; 960 | }; 961 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 962 | isa = PBXReferenceProxy; 963 | fileType = archive.ar; 964 | path = libRCTLinking.a; 965 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 966 | sourceTree = BUILT_PRODUCTS_DIR; 967 | }; 968 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 969 | isa = PBXReferenceProxy; 970 | fileType = archive.ar; 971 | path = libRCTText.a; 972 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 973 | sourceTree = BUILT_PRODUCTS_DIR; 974 | }; 975 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 976 | isa = PBXReferenceProxy; 977 | fileType = archive.ar; 978 | path = libRCTBlob.a; 979 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 980 | sourceTree = BUILT_PRODUCTS_DIR; 981 | }; 982 | /* End PBXReferenceProxy section */ 983 | 984 | /* Begin PBXResourcesBuildPhase section */ 985 | 00E356EC1AD99517003FC87E /* Resources */ = { 986 | isa = PBXResourcesBuildPhase; 987 | buildActionMask = 2147483647; 988 | files = ( 989 | ); 990 | runOnlyForDeploymentPostprocessing = 0; 991 | }; 992 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 993 | isa = PBXResourcesBuildPhase; 994 | buildActionMask = 2147483647; 995 | files = ( 996 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 997 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 998 | ); 999 | runOnlyForDeploymentPostprocessing = 0; 1000 | }; 1001 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1002 | isa = PBXResourcesBuildPhase; 1003 | buildActionMask = 2147483647; 1004 | files = ( 1005 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1006 | ); 1007 | runOnlyForDeploymentPostprocessing = 0; 1008 | }; 1009 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1010 | isa = PBXResourcesBuildPhase; 1011 | buildActionMask = 2147483647; 1012 | files = ( 1013 | ); 1014 | runOnlyForDeploymentPostprocessing = 0; 1015 | }; 1016 | /* End PBXResourcesBuildPhase section */ 1017 | 1018 | /* Begin PBXShellScriptBuildPhase section */ 1019 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1020 | isa = PBXShellScriptBuildPhase; 1021 | buildActionMask = 2147483647; 1022 | files = ( 1023 | ); 1024 | inputPaths = ( 1025 | ); 1026 | name = "Bundle React Native code and images"; 1027 | outputPaths = ( 1028 | ); 1029 | runOnlyForDeploymentPostprocessing = 0; 1030 | shellPath = /bin/sh; 1031 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 1032 | }; 1033 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1034 | isa = PBXShellScriptBuildPhase; 1035 | buildActionMask = 2147483647; 1036 | files = ( 1037 | ); 1038 | inputPaths = ( 1039 | ); 1040 | name = "Bundle React Native Code And Images"; 1041 | outputPaths = ( 1042 | ); 1043 | runOnlyForDeploymentPostprocessing = 0; 1044 | shellPath = /bin/sh; 1045 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1046 | }; 1047 | /* End PBXShellScriptBuildPhase section */ 1048 | 1049 | /* Begin PBXSourcesBuildPhase section */ 1050 | 00E356EA1AD99517003FC87E /* Sources */ = { 1051 | isa = PBXSourcesBuildPhase; 1052 | buildActionMask = 2147483647; 1053 | files = ( 1054 | ); 1055 | runOnlyForDeploymentPostprocessing = 0; 1056 | }; 1057 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1058 | isa = PBXSourcesBuildPhase; 1059 | buildActionMask = 2147483647; 1060 | files = ( 1061 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1062 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1063 | ); 1064 | runOnlyForDeploymentPostprocessing = 0; 1065 | }; 1066 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1067 | isa = PBXSourcesBuildPhase; 1068 | buildActionMask = 2147483647; 1069 | files = ( 1070 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1071 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1072 | ); 1073 | runOnlyForDeploymentPostprocessing = 0; 1074 | }; 1075 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1076 | isa = PBXSourcesBuildPhase; 1077 | buildActionMask = 2147483647; 1078 | files = ( 1079 | ); 1080 | runOnlyForDeploymentPostprocessing = 0; 1081 | }; 1082 | /* End PBXSourcesBuildPhase section */ 1083 | 1084 | /* Begin PBXTargetDependency section */ 1085 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1086 | isa = PBXTargetDependency; 1087 | target = 13B07F861A680F5B00A75B9A /* react_native_overlayer */; 1088 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1089 | }; 1090 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1091 | isa = PBXTargetDependency; 1092 | target = 2D02E47A1E0B4A5D006451C7 /* react_native_overlayer-tvOS */; 1093 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1094 | }; 1095 | /* End PBXTargetDependency section */ 1096 | 1097 | /* Begin PBXVariantGroup section */ 1098 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1099 | isa = PBXVariantGroup; 1100 | children = ( 1101 | 13B07FB21A68108700A75B9A /* Base */, 1102 | ); 1103 | name = LaunchScreen.xib; 1104 | path = react_native_overlayer; 1105 | sourceTree = ""; 1106 | }; 1107 | /* End PBXVariantGroup section */ 1108 | 1109 | /* Begin XCBuildConfiguration section */ 1110 | 00E356F61AD99517003FC87E /* Debug */ = { 1111 | isa = XCBuildConfiguration; 1112 | buildSettings = { 1113 | BUNDLE_LOADER = "$(TEST_HOST)"; 1114 | GCC_PREPROCESSOR_DEFINITIONS = ( 1115 | "DEBUG=1", 1116 | "$(inherited)", 1117 | ); 1118 | INFOPLIST_FILE = react_native_overlayerTests/Info.plist; 1119 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1120 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1121 | OTHER_LDFLAGS = ( 1122 | "-ObjC", 1123 | "-lc++", 1124 | ); 1125 | PRODUCT_NAME = "$(TARGET_NAME)"; 1126 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/react_native_overlayer.app/react_native_overlayer"; 1127 | }; 1128 | name = Debug; 1129 | }; 1130 | 00E356F71AD99517003FC87E /* Release */ = { 1131 | isa = XCBuildConfiguration; 1132 | buildSettings = { 1133 | BUNDLE_LOADER = "$(TEST_HOST)"; 1134 | COPY_PHASE_STRIP = NO; 1135 | INFOPLIST_FILE = react_native_overlayerTests/Info.plist; 1136 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1137 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1138 | OTHER_LDFLAGS = ( 1139 | "-ObjC", 1140 | "-lc++", 1141 | ); 1142 | PRODUCT_NAME = "$(TARGET_NAME)"; 1143 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/react_native_overlayer.app/react_native_overlayer"; 1144 | }; 1145 | name = Release; 1146 | }; 1147 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1148 | isa = XCBuildConfiguration; 1149 | buildSettings = { 1150 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1151 | CURRENT_PROJECT_VERSION = 1; 1152 | DEAD_CODE_STRIPPING = NO; 1153 | DEVELOPMENT_TEAM = 9G9QU2FC86; 1154 | INFOPLIST_FILE = react_native_overlayer/Info.plist; 1155 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1156 | OTHER_LDFLAGS = ( 1157 | "$(inherited)", 1158 | "-ObjC", 1159 | "-lc++", 1160 | ); 1161 | PRODUCT_NAME = react_native_overlayer; 1162 | VERSIONING_SYSTEM = "apple-generic"; 1163 | }; 1164 | name = Debug; 1165 | }; 1166 | 13B07F951A680F5B00A75B9A /* Release */ = { 1167 | isa = XCBuildConfiguration; 1168 | buildSettings = { 1169 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1170 | CURRENT_PROJECT_VERSION = 1; 1171 | DEVELOPMENT_TEAM = 9G9QU2FC86; 1172 | INFOPLIST_FILE = react_native_overlayer/Info.plist; 1173 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1174 | OTHER_LDFLAGS = ( 1175 | "$(inherited)", 1176 | "-ObjC", 1177 | "-lc++", 1178 | ); 1179 | PRODUCT_NAME = react_native_overlayer; 1180 | VERSIONING_SYSTEM = "apple-generic"; 1181 | }; 1182 | name = Release; 1183 | }; 1184 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1185 | isa = XCBuildConfiguration; 1186 | buildSettings = { 1187 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1188 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1189 | CLANG_ANALYZER_NONNULL = YES; 1190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1191 | CLANG_WARN_INFINITE_RECURSION = YES; 1192 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1193 | DEBUG_INFORMATION_FORMAT = dwarf; 1194 | ENABLE_TESTABILITY = YES; 1195 | GCC_NO_COMMON_BLOCKS = YES; 1196 | INFOPLIST_FILE = "react_native_overlayer-tvOS/Info.plist"; 1197 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1198 | OTHER_LDFLAGS = ( 1199 | "-ObjC", 1200 | "-lc++", 1201 | ); 1202 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.react_native_overlayer-tvOS"; 1203 | PRODUCT_NAME = "$(TARGET_NAME)"; 1204 | SDKROOT = appletvos; 1205 | TARGETED_DEVICE_FAMILY = 3; 1206 | TVOS_DEPLOYMENT_TARGET = 9.2; 1207 | }; 1208 | name = Debug; 1209 | }; 1210 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1211 | isa = XCBuildConfiguration; 1212 | buildSettings = { 1213 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1214 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1215 | CLANG_ANALYZER_NONNULL = YES; 1216 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1217 | CLANG_WARN_INFINITE_RECURSION = YES; 1218 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1219 | COPY_PHASE_STRIP = NO; 1220 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1221 | GCC_NO_COMMON_BLOCKS = YES; 1222 | INFOPLIST_FILE = "react_native_overlayer-tvOS/Info.plist"; 1223 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1224 | OTHER_LDFLAGS = ( 1225 | "-ObjC", 1226 | "-lc++", 1227 | ); 1228 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.react_native_overlayer-tvOS"; 1229 | PRODUCT_NAME = "$(TARGET_NAME)"; 1230 | SDKROOT = appletvos; 1231 | TARGETED_DEVICE_FAMILY = 3; 1232 | TVOS_DEPLOYMENT_TARGET = 9.2; 1233 | }; 1234 | name = Release; 1235 | }; 1236 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1237 | isa = XCBuildConfiguration; 1238 | buildSettings = { 1239 | BUNDLE_LOADER = "$(TEST_HOST)"; 1240 | CLANG_ANALYZER_NONNULL = YES; 1241 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1242 | CLANG_WARN_INFINITE_RECURSION = YES; 1243 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1244 | DEBUG_INFORMATION_FORMAT = dwarf; 1245 | ENABLE_TESTABILITY = YES; 1246 | GCC_NO_COMMON_BLOCKS = YES; 1247 | INFOPLIST_FILE = "react_native_overlayer-tvOSTests/Info.plist"; 1248 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1249 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.react_native_overlayer-tvOSTests"; 1250 | PRODUCT_NAME = "$(TARGET_NAME)"; 1251 | SDKROOT = appletvos; 1252 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/react_native_overlayer-tvOS.app/react_native_overlayer-tvOS"; 1253 | TVOS_DEPLOYMENT_TARGET = 10.1; 1254 | }; 1255 | name = Debug; 1256 | }; 1257 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1258 | isa = XCBuildConfiguration; 1259 | buildSettings = { 1260 | BUNDLE_LOADER = "$(TEST_HOST)"; 1261 | CLANG_ANALYZER_NONNULL = YES; 1262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1263 | CLANG_WARN_INFINITE_RECURSION = YES; 1264 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1265 | COPY_PHASE_STRIP = NO; 1266 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1267 | GCC_NO_COMMON_BLOCKS = YES; 1268 | INFOPLIST_FILE = "react_native_overlayer-tvOSTests/Info.plist"; 1269 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1270 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.react_native_overlayer-tvOSTests"; 1271 | PRODUCT_NAME = "$(TARGET_NAME)"; 1272 | SDKROOT = appletvos; 1273 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/react_native_overlayer-tvOS.app/react_native_overlayer-tvOS"; 1274 | TVOS_DEPLOYMENT_TARGET = 10.1; 1275 | }; 1276 | name = Release; 1277 | }; 1278 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1279 | isa = XCBuildConfiguration; 1280 | buildSettings = { 1281 | ALWAYS_SEARCH_USER_PATHS = NO; 1282 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1283 | CLANG_CXX_LIBRARY = "libc++"; 1284 | CLANG_ENABLE_MODULES = YES; 1285 | CLANG_ENABLE_OBJC_ARC = YES; 1286 | CLANG_WARN_BOOL_CONVERSION = YES; 1287 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1288 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1289 | CLANG_WARN_EMPTY_BODY = YES; 1290 | CLANG_WARN_ENUM_CONVERSION = YES; 1291 | CLANG_WARN_INT_CONVERSION = YES; 1292 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1293 | CLANG_WARN_UNREACHABLE_CODE = YES; 1294 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1295 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1296 | COPY_PHASE_STRIP = NO; 1297 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1298 | GCC_C_LANGUAGE_STANDARD = gnu99; 1299 | GCC_DYNAMIC_NO_PIC = NO; 1300 | GCC_OPTIMIZATION_LEVEL = 0; 1301 | GCC_PREPROCESSOR_DEFINITIONS = ( 1302 | "DEBUG=1", 1303 | "$(inherited)", 1304 | ); 1305 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1310 | GCC_WARN_UNUSED_FUNCTION = YES; 1311 | GCC_WARN_UNUSED_VARIABLE = YES; 1312 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1313 | MTL_ENABLE_DEBUG_INFO = YES; 1314 | ONLY_ACTIVE_ARCH = YES; 1315 | SDKROOT = iphoneos; 1316 | }; 1317 | name = Debug; 1318 | }; 1319 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1320 | isa = XCBuildConfiguration; 1321 | buildSettings = { 1322 | ALWAYS_SEARCH_USER_PATHS = NO; 1323 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1324 | CLANG_CXX_LIBRARY = "libc++"; 1325 | CLANG_ENABLE_MODULES = YES; 1326 | CLANG_ENABLE_OBJC_ARC = YES; 1327 | CLANG_WARN_BOOL_CONVERSION = YES; 1328 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1329 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1330 | CLANG_WARN_EMPTY_BODY = YES; 1331 | CLANG_WARN_ENUM_CONVERSION = YES; 1332 | CLANG_WARN_INT_CONVERSION = YES; 1333 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1334 | CLANG_WARN_UNREACHABLE_CODE = YES; 1335 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1336 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1337 | COPY_PHASE_STRIP = YES; 1338 | ENABLE_NS_ASSERTIONS = NO; 1339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1340 | GCC_C_LANGUAGE_STANDARD = gnu99; 1341 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1342 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1343 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1344 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1345 | GCC_WARN_UNUSED_FUNCTION = YES; 1346 | GCC_WARN_UNUSED_VARIABLE = YES; 1347 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1348 | MTL_ENABLE_DEBUG_INFO = NO; 1349 | SDKROOT = iphoneos; 1350 | VALIDATE_PRODUCT = YES; 1351 | }; 1352 | name = Release; 1353 | }; 1354 | /* End XCBuildConfiguration section */ 1355 | 1356 | /* Begin XCConfigurationList section */ 1357 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "react_native_overlayerTests" */ = { 1358 | isa = XCConfigurationList; 1359 | buildConfigurations = ( 1360 | 00E356F61AD99517003FC87E /* Debug */, 1361 | 00E356F71AD99517003FC87E /* Release */, 1362 | ); 1363 | defaultConfigurationIsVisible = 0; 1364 | defaultConfigurationName = Release; 1365 | }; 1366 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "react_native_overlayer" */ = { 1367 | isa = XCConfigurationList; 1368 | buildConfigurations = ( 1369 | 13B07F941A680F5B00A75B9A /* Debug */, 1370 | 13B07F951A680F5B00A75B9A /* Release */, 1371 | ); 1372 | defaultConfigurationIsVisible = 0; 1373 | defaultConfigurationName = Release; 1374 | }; 1375 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "react_native_overlayer-tvOS" */ = { 1376 | isa = XCConfigurationList; 1377 | buildConfigurations = ( 1378 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1379 | 2D02E4981E0B4A5E006451C7 /* Release */, 1380 | ); 1381 | defaultConfigurationIsVisible = 0; 1382 | defaultConfigurationName = Release; 1383 | }; 1384 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "react_native_overlayer-tvOSTests" */ = { 1385 | isa = XCConfigurationList; 1386 | buildConfigurations = ( 1387 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1388 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1389 | ); 1390 | defaultConfigurationIsVisible = 0; 1391 | defaultConfigurationName = Release; 1392 | }; 1393 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "react_native_overlayer" */ = { 1394 | isa = XCConfigurationList; 1395 | buildConfigurations = ( 1396 | 83CBBA201A601CBA00E9B192 /* Debug */, 1397 | 83CBBA211A601CBA00E9B192 /* Release */, 1398 | ); 1399 | defaultConfigurationIsVisible = 0; 1400 | defaultConfigurationName = Release; 1401 | }; 1402 | /* End XCConfigurationList section */ 1403 | }; 1404 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1405 | } 1406 | -------------------------------------------------------------------------------- /ios/react_native_overlayer.xcodeproj/xcshareddata/xcschemes/react_native_overlayer-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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer.xcodeproj/xcshareddata/xcschemes/react_native_overlayer.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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer/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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer/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:@"react_native_overlayer" 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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer/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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer/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 | } -------------------------------------------------------------------------------- /ios/react_native_overlayer/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/react_native_overlayer/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | react_native_overlayer 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 | -------------------------------------------------------------------------------- /ios/react_native_overlayer/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 | -------------------------------------------------------------------------------- /ios/react_native_overlayerTests/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 | -------------------------------------------------------------------------------- /ios/react_native_overlayerTests/react_native_overlayerTests.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 react_native_overlayerTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation react_native_overlayerTests 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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-overlayer", 3 | "version": "0.2.1", 4 | "scripts": { 5 | "start": "node node_modules/react-native/local-cli/cli.js start", 6 | "test": "jest" 7 | }, 8 | "description": "a react-native plugin for normal alert and loading", 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "react": "^16.0.0", 12 | "react-native": "^0.50.4", 13 | "babel-jest": "23.4.2", 14 | "babel-preset-react-native": "4.0.0", 15 | "jest": "23.5.0", 16 | "react-test-renderer": "16.0.0" 17 | }, 18 | "files": [ 19 | "src" 20 | ], 21 | "jest": { 22 | "preset": "react-native" 23 | }, 24 | "main": "./src/", 25 | "repository": { 26 | "type": "git", 27 | "url": "git+https://github.com/yongqianvip/react-native-overlayer" 28 | }, 29 | "keywords": [ 30 | "react-native", 31 | "alert", 32 | "loading", 33 | "overlay", 34 | "overlayer" 35 | ], 36 | "author": "yongqianvip", 37 | "license": "MIT", 38 | "bugs": { 39 | "url": "https://github.com/yongqianvip/react-native-overlayer/issues" 40 | }, 41 | "homepage": "https://github.com/yongqianvip/react-native-overlayer#readme" 42 | } 43 | -------------------------------------------------------------------------------- /src/ActionSheet.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2019-09-02 10:50:59 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2019-09-03 16:55:11 7 | */ 8 | 9 | import React from 'react'; 10 | import { StyleSheet, TouchableOpacity, Text, View, Animated, DeviceEventEmitter } from 'react-native'; 11 | import DeviceConst from './const/Device'; 12 | const borderRadius = 12; 13 | 14 | class ActionSheet extends React.Component { 15 | constructor(props){ 16 | super(props); 17 | this.state = { 18 | actionSheetTop: new Animated.Value(DeviceConst.height) // 默认组件在屏幕(底部)外 19 | } 20 | this.renderButtonItem = this.renderButtonItem.bind(this); 21 | this.hideActionSheet = this.hideActionSheet.bind(this); 22 | DeviceEventEmitter.addListener("hide-actionSheet", this.hideActionSheet); 23 | } 24 | componentDidMount(){ 25 | const {options, buttons} = this.props 26 | Animated.timing(this.state.actionSheetTop, { // 以动画的形式从下往上弹出actionSheet 27 | toValue: DeviceConst.height - DeviceConst.dangerBottomHeight - (buttons.length + 1) * options.itemHeight - 8 - (DeviceConst.isAndroid ? 20 : 10) , 28 | duration: 300, 29 | }).start(); 30 | } 31 | componentWillUnmount(){ 32 | DeviceEventEmitter.removeAllListeners("hide-actionSheet"); 33 | } 34 | hideActionSheet(callback){ 35 | Animated.timing(this.state.actionSheetTop, { 36 | toValue: DeviceConst.height, 37 | duration: 300, 38 | }).start(callback ? callback : null); 39 | } 40 | 41 | renderButtonItem(){ 42 | const { buttons, options } = this.props; 43 | return buttons.map((item, index)=>{ 44 | const title = (typeof item == 'string' || typeof item == 'number') ? item : (item.text ? item.text : ''); 45 | const titleStyle = (typeof item == 'object' && !Array.isArray(item)) ? (item.style ? item.style : null) : null; 46 | return ( 47 | 48 | { 49 | this.hideActionSheet(()=>this.props.itemOnPress(index)) 50 | }}> 51 | 52 | {title} 53 | 54 | 55 | {index == buttons.length ? null : } 56 | 57 | ) 58 | }) 59 | } 60 | render(){ 61 | const { buttons, cancelButton, options } = this.props; 62 | const cancelButtonTitle = typeof cancelButton == 'string' ? (cancelButton.length > 0 ? cancelButton : '取消') : (typeof cancelButton == 'object' && !Array.isArray(cancelButton) ? (cancelButton.text ? cancelButton.text : '取消') : '取消' ) 63 | const cancelButtonStyle = (typeof cancelButton == 'object' && !Array.isArray(cancelButton) ? cancelButton.style : null) 64 | return ( 65 | {}}> 66 | 67 | {this.renderButtonItem()} 68 | 69 | { 70 | this.hideActionSheet(()=>this.props.itemOnPress(-1)) 71 | }} style={{ width: DeviceConst.width * 0.9, height: options.itemHeight, borderRadius, backgroundColor: options.cancelButtonBackgroundColor, overflow: 'hidden', justifyContent: 'center', alignItems: 'center' }}> 72 | {cancelButtonTitle} 73 | 74 | 75 | ) 76 | } 77 | } 78 | 79 | export default ActionSheet 80 | 81 | const styles = StyleSheet.create({ 82 | container: { 83 | // backgroundColor: 'orange' 84 | } 85 | }) -------------------------------------------------------------------------------- /src/RRCActionSheet.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2019-09-02 10:35:11 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2019-09-03 16:58:11 7 | */ 8 | 9 | import React from "react"; 10 | import { 11 | Dimensions, 12 | TouchableOpacity, 13 | DeviceEventEmitter 14 | } from 'react-native'; 15 | import RRCTopView from './RRCTopView'; 16 | import ActionSheet from './ActionSheet'; 17 | const { width, height } = Dimensions.get('window') 18 | const defaultBackgroundColor = 'rgba(0,0,0,0.3)'; 19 | 20 | const ActionSheetOptions = { 21 | // 以下属性优先级低于内联样式 22 | backgroundColor: defaultBackgroundColor, // 遮罩颜色 23 | fontSize: 19, // 文字字号 24 | itemHeight: 57, // 单个item的高度 25 | buttonTitleColor: 'rgba(0, 0, 14, 0.8)', // 备选按钮字体颜色 26 | cancelButtonTitleColor: 'rgba(0, 0, 14, 0.8)', // 取消按钮字体颜色 27 | buttonItemBackgroundColor: '#eee', // 备选按钮背景颜色 28 | cancelButtonBackgroundColor: '#feffff', // 取消按钮背景颜色 29 | } 30 | 31 | export default class OverlayActionSheet { 32 | static setActionSheetOptions(options = {}) { 33 | if (typeof options.backgroundColor == 'string') { 34 | ActionSheetOptions.backgroundColor = options.backgroundColor; 35 | } 36 | if (typeof options.fontSize == 'number') { 37 | ActionSheetOptions.fontSize = options.fontSize; 38 | } 39 | if (typeof options.itemHeight == 'number') { 40 | ActionSheetOptions.itemHeight = options.itemHeight; 41 | } 42 | if (typeof options.buttonTitleColor == 'string') { 43 | ActionSheetOptions.buttonTitleColor = options.buttonTitleColor; 44 | } 45 | if (typeof options.cancelButtonTitleColor == 'string') { 46 | ActionSheetOptions.cancelButtonTitleColor = options.cancelButtonTitleColor; 47 | } 48 | if (typeof options.buttonItemBackgroundColor == 'string') { 49 | ActionSheetOptions.buttonItemBackgroundColor = options.buttonItemBackgroundColor; 50 | } 51 | if (typeof options.cancelButtonBackgroundColor == 'string') { 52 | ActionSheetOptions.cancelButtonBackgroundColor = options.cancelButtonBackgroundColor; 53 | } 54 | } 55 | 56 | static action(buttons, Callback, cancelButton) { 57 | if (!Array.isArray(buttons) || buttons.length < 1) { 58 | return null; 59 | } 60 | let key; 61 | const backgroundColor = ActionSheetOptions.backgroundColor && typeof ActionSheetOptions.backgroundColor == 'string' ? ActionSheetOptions.backgroundColor : defaultBackgroundColor 62 | const overlayView = ( 63 | { 64 | DeviceEventEmitter.emit("hide-actionSheet", ()=>{ 65 | RRCTopView.removeAlert(key); 66 | }); 67 | }}> 68 | { 69 | RRCTopView.removeAlert(key); 70 | Callback(index); 71 | }}/> 72 | 73 | ) 74 | let onDisappearCompletedSave = overlayView.props.onDisappearCompleted; 75 | let element = React.cloneElement(overlayView, { 76 | onDisappearCompleted: () => { 77 | RRCTopView.removeAlert(key); 78 | onDisappearCompletedSave && onDisappearCompletedSave(); 79 | } 80 | }); 81 | key = RRCTopView.addAlert(element); 82 | return key; 83 | } 84 | 85 | static hide(key) { 86 | RRCTopView.removeAlert(key); 87 | } 88 | 89 | static transformRoot(transform, animated, animatesOnly = null) { 90 | RRCTopView.transform(transform, animated, animatesOnly); 91 | } 92 | 93 | static restoreRoot(animated, animatesOnly = null) { 94 | RRCTopView.restore(animated, animatesOnly); 95 | } 96 | } -------------------------------------------------------------------------------- /src/RRCAlert.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2018-11-13 14:45:11 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2018-11-28 10:50:01 7 | */ 8 | 9 | import React, { Component } from "react"; 10 | import { 11 | View, 12 | Text, 13 | Dimensions, 14 | TouchableOpacity, 15 | } from 'react-native'; 16 | import RRCTopView from './RRCTopView'; 17 | const { width, height } = Dimensions.get('window') 18 | const borderRadius = 10; 19 | const backgroundColor = 'rgba(0,0,0,0.1)'; 20 | const titleTextFontSize = 16; 21 | const buttonTextFontSize = 16; 22 | const contentTextFontSize = 14; 23 | 24 | const AlertOptions = {} 25 | 26 | export default class OverlayAlert { 27 | static setAlertOptions(options = {}) { 28 | if (typeof options.alertBackgroundColor == 'string') { 29 | AlertOptions.alertBackgroundColor = options.alertBackgroundColor; 30 | } 31 | if (typeof options.titleViewStyle == 'object' && !Array.isArray(options.titleViewStyle)) { 32 | AlertOptions.titleViewStyle = options.titleViewStyle; 33 | } 34 | if (typeof options.titleTextStyle == 'object' && !Array.isArray(options.titleTextStyle)) { 35 | AlertOptions.titleTextStyle = options.titleTextStyle; 36 | } 37 | if (typeof options.contentTextStyle == 'object' && !Array.isArray(options.contentTextStyle)) { 38 | AlertOptions.contentTextStyle = options.contentTextStyle; 39 | } 40 | } 41 | 42 | static alert(title, content, buttons, Callback) { 43 | title = title || ''; 44 | content = content || ''; 45 | buttons = buttons || []; 46 | if (title.length < 1 && content.length < 1) { 47 | console.log('title和content不能同时为空', title, content); 48 | return; 49 | } 50 | if (!Array.isArray(buttons) || buttons.length < 1) { 51 | buttons = [{ text: '确定', style: { color: '#fd521d', fontWeight: 'bold' } }] 52 | } 53 | let key; 54 | const alertBackgroundColor = AlertOptions.alertBackgroundColor && typeof AlertOptions.alertBackgroundColor == 'string' ? AlertOptions.alertBackgroundColor : 'rgba(0,0,0,0.3)' 55 | const overlayView = ( 56 | 57 | 58 | { 59 | title.length > 0 ? 60 | 68 | {title} 69 | 70 | : 71 | 77 | } 78 | { 79 | content.length > 0 ? 80 | 88 | {content} 89 | 90 | : null 91 | } 92 | 97 | { 98 | buttons.length < 3 ? 99 | 108 | { 109 | buttons.map((item, index) => { 110 | return ( 111 | { 121 | RRCTopView.removeAlert(key); 122 | Callback && Callback(index); 123 | }} > 124 | {item.text} 125 | 126 | ) 127 | }) 128 | } 129 | 130 | : 131 | 138 | { 139 | buttons.map((item, index) => { 140 | return ( 141 | { 151 | RRCTopView.removeAlert(key); 152 | Callback && Callback(index); 153 | }} > 154 | {item.text} 155 | 156 | ) 157 | }) 158 | } 159 | 160 | } 161 | 162 | 163 | ) 164 | let onDisappearCompletedSave = overlayView.props.onDisappearCompleted; 165 | let element = React.cloneElement(overlayView, { 166 | onDisappearCompleted: () => { 167 | RRCTopView.removeAlert(key); 168 | onDisappearCompletedSave && onDisappearCompletedSave(); 169 | } 170 | }); 171 | key = RRCTopView.addAlert(element); 172 | return key; 173 | } 174 | 175 | static hide(key) { 176 | RRCTopView.removeAlert(key); 177 | } 178 | 179 | static transformRoot(transform, animated, animatesOnly = null) { 180 | RRCTopView.transform(transform, animated, animatesOnly); 181 | } 182 | 183 | static restoreRoot(animated, animatesOnly = null) { 184 | RRCTopView.restore(animated, animatesOnly); 185 | } 186 | } -------------------------------------------------------------------------------- /src/RRCLoading.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2018-11-01 10:46:45 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2018-11-28 10:53:16 7 | */ 8 | 9 | import React, { Component } from "react"; 10 | import { 11 | View, 12 | Text, 13 | ActivityIndicator, 14 | Image, 15 | Dimensions 16 | } from 'react-native'; 17 | import RRCTopView from './RRCTopView'; 18 | const { width } = Dimensions.get('window') 19 | 20 | const LoadingOptions = {} 21 | 22 | export default class OverlayLoading { 23 | static setLoadingOptions(options = {}) { 24 | if (typeof options.text == 'string') { 25 | LoadingOptions.text = options.text; 26 | } 27 | if (typeof options.loadingBackgroundColor == 'string') { 28 | LoadingOptions.loadingBackgroundColor = options.loadingBackgroundColor; 29 | } 30 | if (options.loadingImage != undefined) { 31 | LoadingOptions.loadingImage = options.loadingImage; 32 | } 33 | if (typeof options.loadingViewStyle == 'object' && !Array.isArray(options.loadingViewStyle)) { 34 | LoadingOptions.loadingViewStyle = options.loadingViewStyle; 35 | } 36 | if (typeof options.loadingTextStyle == 'object' && !Array.isArray(options.loadingTextStyle)) { 37 | LoadingOptions.loadingTextStyle = options.loadingTextStyle; 38 | } 39 | } 40 | static show(textContent = (LoadingOptions.text && LoadingOptions.text.length > 0 ? LoadingOptions.text : '加载中...')) { 41 | const loadingBackgroundColor = LoadingOptions.loadingBackgroundColor ? LoadingOptions.loadingBackgroundColor : 'rgba(0,0,0,0.0)'; 42 | const loadingViewBackgroundColor = LoadingOptions.loadingViewStyle && LoadingOptions.loadingViewStyle.backgroundColor ? LoadingOptions.loadingViewStyle.backgroundColor : 'rgba(0,0,0,0.8)' 43 | const loadingView = ( 44 | 45 | 52 | { 53 | LoadingOptions.loadingImage ? 54 | 55 | : 56 | 62 | } 63 | {textContent} 69 | 70 | 71 | ) 72 | RRCTopView.addLoading(loadingView); 73 | } 74 | 75 | static hide() { 76 | RRCTopView.removeLoading(); 77 | } 78 | 79 | static transformRoot(transform, animated, animatesOnly = null) { 80 | RRCTopView.transform(transform, animated, animatesOnly); 81 | } 82 | 83 | static restoreRoot(animated, animatesOnly = null) { 84 | RRCTopView.restore(animated, animatesOnly); 85 | } 86 | } -------------------------------------------------------------------------------- /src/RRCToast.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2018-11-13 14:45:11 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2018-11-28 11:21:14 7 | */ 8 | 9 | import React, { Component } from "react"; 10 | import { 11 | View, 12 | Text, 13 | Image, 14 | Dimensions, 15 | } from 'react-native'; 16 | import RRCTopView from './RRCTopView'; 17 | const { width, height } = Dimensions.get('window') 18 | 19 | const ToastOptions = {} 20 | 21 | export default class OverlayToast { 22 | static setToastOptions(options = {}) { 23 | if (Array.isArray(options.toastIcons)) { 24 | ToastOptions.toastIcons = options.toastIcons; 25 | } 26 | if (typeof options.toastBackgroundColor == 'string') { 27 | ToastOptions.toastBackgroundColor = options.toastBackgroundColor; 28 | } 29 | if (typeof options.toastViewStyle == 'object' && !Array.isArray(options.toastViewStyle)) { 30 | ToastOptions.toastViewStyle = options.toastViewStyle; 31 | } 32 | if (typeof options.toastTextStyle == 'object' && !Array.isArray(options.toastTextStyle)) { 33 | ToastOptions.toastTextStyle = options.toastTextStyle; 34 | } 35 | if (typeof options.durationTime == 'number' && options.durationTime > 0) { 36 | ToastOptions.durationTime = options.durationTime; 37 | } 38 | } 39 | static show(textContent = '未知信息', type = -1, durationTime) { 40 | // toast蒙层默认透明 41 | const toastBackgroundColor = ToastOptions.toastBackgroundColor ? ToastOptions.toastBackgroundColor : 'rgba(0,0,0,0)'; 42 | // toast背景色默认值 43 | const toastViewBackgroundColor = ToastOptions.toastViewStyle && ToastOptions.toastViewStyle.backgroundColor ? ToastOptions.toastViewStyle.backgroundColor : 'rgba(0,0,0,0.8)'; 44 | const withIcon = ToastOptions.toastIcons && ToastOptions.toastIcons.length > 0 && type != null && type >= 0 && type < ToastOptions.toastIcons.length; 45 | const toastView = ( 46 | 47 | 56 | { 57 | withIcon ? 58 | 59 | : 60 | null 61 | } 62 | {textContent} 70 | 71 | 72 | ) 73 | const key = RRCTopView.addToast(toastView); 74 | const showTime = typeof durationTime == 'number' && durationTime > 0 ? durationTime : (ToastOptions.durationTime > 0 ? ToastOptions.durationTime : 2000); 75 | setTimeout(() => { 76 | RRCTopView.removeToast(key) 77 | }, showTime); 78 | } 79 | 80 | static transformRoot(transform, animated, animatesOnly = null) { 81 | RRCTopView.transform(transform, animated, animatesOnly); 82 | } 83 | 84 | static restoreRoot(animated, animatesOnly = null) { 85 | RRCTopView.restore(animated, animatesOnly); 86 | } 87 | } -------------------------------------------------------------------------------- /src/RRCTopView.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2018-11-13 14:45:12 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2018-11-28 10:13:02 7 | */ 8 | 9 | // RRCTopView.js 10 | 11 | 'use strict'; 12 | 13 | import React, { Component } from "react"; 14 | import { StyleSheet, AppRegistry, DeviceEventEmitter, View, Animated, Dimensions } from 'react-native'; 15 | const { width, height } = Dimensions.get('window') 16 | 17 | let keyValue = 0; 18 | const rrcRNLoadingKey = 'rrc-rn-loading-key' 19 | 20 | export default class RRCTopView extends Component { 21 | 22 | static addAlert(element) { 23 | let key = ++keyValue; 24 | DeviceEventEmitter.emit("addOverlay-Alert", { key, element }); 25 | return key; 26 | } 27 | 28 | static addLoading(element) { 29 | let key = rrcRNLoadingKey; 30 | DeviceEventEmitter.emit("addOverlay-Loading", { key, element }); 31 | return key; 32 | } 33 | 34 | static addToast(element) { 35 | let key = ++keyValue; 36 | DeviceEventEmitter.emit("addOverlay-Toast", { key, element }); 37 | return key; 38 | } 39 | 40 | static removeLoading() { 41 | DeviceEventEmitter.emit("removeOverlay-Loading"); 42 | } 43 | 44 | static removeAlert(key) { 45 | DeviceEventEmitter.emit("removeOverlay-Alert", { key }); 46 | } 47 | 48 | static removeToast(key) { 49 | DeviceEventEmitter.emit("removeOverlay-Toast", { key }); 50 | } 51 | 52 | static removeAll() { 53 | DeviceEventEmitter.emit("removeAllOverlay-Alert", {}); 54 | } 55 | 56 | static transform(transform, animated, animatesOnly = null) { 57 | DeviceEventEmitter.emit("transformRoot-Alert", { transform, animated, animatesOnly }); 58 | } 59 | 60 | static restore(animated, animatesOnly = null) { 61 | DeviceEventEmitter.emit("restoreRoot-Alert", { animated, animatesOnly }); 62 | } 63 | 64 | constructor(props) { 65 | super(props); 66 | this.state = { 67 | elements: [], 68 | translateX: new Animated.Value(0), 69 | translateY: new Animated.Value(0), 70 | scaleX: new Animated.Value(1), 71 | scaleY: new Animated.Value(1), 72 | toastElements: [], 73 | }; 74 | } 75 | 76 | componentWillMount() { 77 | DeviceEventEmitter.addListener("addOverlay-Alert", e => this.addAlertToTopView(e)); 78 | DeviceEventEmitter.addListener("removeOverlay-Alert", e => this.removeAlertFromTopView(e)); 79 | DeviceEventEmitter.addListener("removeAllOverlay-Alert", e => this.removeAll(e)); 80 | DeviceEventEmitter.addListener("transformRoot-Alert", e => this.transform(e)); 81 | DeviceEventEmitter.addListener("restoreRoot-Alert", e => this.restore(e)); 82 | 83 | DeviceEventEmitter.addListener("addOverlay-Loading", e => this.addLoadingToTopView(e)); 84 | DeviceEventEmitter.addListener("removeOverlay-Loading", () => this.removeLoadingFromTopView()); 85 | 86 | DeviceEventEmitter.addListener("addOverlay-Toast", e => this.addToastToTopView(e)); 87 | DeviceEventEmitter.addListener("removeOverlay-Toast", (e) => this.removeLToastFromTopView(e)); 88 | } 89 | 90 | componentWillUnmount() { 91 | DeviceEventEmitter.removeAllListeners("addOverlay-Alert"); 92 | DeviceEventEmitter.removeAllListeners("removeOverlay-Alert"); 93 | DeviceEventEmitter.removeAllListeners("removeAllOverlay-Alert"); 94 | DeviceEventEmitter.removeAllListeners("transformRoot-Alert"); 95 | DeviceEventEmitter.removeAllListeners("restoreRoot-Alert"); 96 | 97 | DeviceEventEmitter.removeAllListeners("addOverlay-Loading"); 98 | DeviceEventEmitter.removeAllListeners("removeOverlay-Loading"); 99 | 100 | DeviceEventEmitter.removeAllListeners("addOverlay-Toast"); 101 | DeviceEventEmitter.removeAllListeners("removeOverlay-Toast"); 102 | } 103 | 104 | addAlertToTopView(e) { 105 | let { elements } = this.state; 106 | elements.push(e); 107 | this.setState({ elements }); 108 | } 109 | 110 | removeAlertFromTopView(e) { 111 | let { elements } = this.state; 112 | for (let i = elements.length - 1; i >= 0; --i) { 113 | if (elements[i].key === e.key) { 114 | elements.splice(i, 1); 115 | break; 116 | } 117 | } 118 | this.setState({ elements }); 119 | } 120 | 121 | removeLToastFromTopView(e) { 122 | let { toastElements } = this.state; 123 | for (let i = toastElements.length - 1; i >= 0; --i) { 124 | if (toastElements[i].key === e.key) { 125 | toastElements.splice(i, 1); 126 | break; 127 | } 128 | } 129 | this.setState({ toastElements }); 130 | } 131 | 132 | addLoadingToTopView(e) { 133 | let { elements } = this.state; 134 | for (let i = elements.length - 1; i >= 0; --i) { 135 | if (elements[i].key === rrcRNLoadingKey) { 136 | elements.splice(i, 1); 137 | } 138 | } 139 | elements.push(e); 140 | this.setState({ elements }); 141 | } 142 | 143 | removeLoadingFromTopView() { 144 | let { elements } = this.state; 145 | for (let i = elements.length - 1; i >= 0; --i) { 146 | if (elements[i].key === rrcRNLoadingKey) { 147 | elements.splice(i, 1); 148 | break; 149 | } 150 | } 151 | this.setState({ elements }); 152 | } 153 | 154 | 155 | 156 | addToastToTopView(e) { 157 | let { toastElements } = this.state; 158 | toastElements.push(e); 159 | this.setState({ toastElements }); 160 | } 161 | 162 | removeAll(e) { 163 | let { elements } = this.state; 164 | this.setState({ elements: [] }); 165 | } 166 | 167 | transform(e) { 168 | let { translateX, translateY, scaleX, scaleY } = this.state; 169 | let { transform, animated, animatesOnly } = e; 170 | let tx = 0, ty = 0, sx = 1, sy = 1; 171 | transform.map(item => { 172 | if (item && typeof item === 'object') { 173 | for (let name in item) { 174 | let value = item[name]; 175 | switch (name) { 176 | case 'translateX': tx = value; break; 177 | case 'translateY': ty = value; break; 178 | case 'scaleX': sx = value; break; 179 | case 'scaleY': sy = value; break; 180 | } 181 | } 182 | } 183 | }); 184 | if (animated) { 185 | let animates = [ 186 | Animated.spring(translateX, { toValue: tx, friction: 9 }), 187 | Animated.spring(translateY, { toValue: ty, friction: 9 }), 188 | Animated.spring(scaleX, { toValue: sx, friction: 9 }), 189 | Animated.spring(scaleY, { toValue: sy, friction: 9 }), 190 | ]; 191 | animatesOnly ? animatesOnly(animates) : Animated.parallel(animates).start(); 192 | } else { 193 | if (animatesOnly) { 194 | let animates = [ 195 | Animated.timing(translateX, { toValue: tx, duration: 1 }), 196 | Animated.timing(translateY, { toValue: ty, duration: 1 }), 197 | Animated.timing(scaleX, { toValue: sx, duration: 1 }), 198 | Animated.timing(scaleY, { toValue: sy, duration: 1 }), 199 | ]; 200 | animatesOnly(animates); 201 | } else { 202 | translateX.setValue(tx); 203 | translateY.setValue(ty); 204 | scaleX.setValue(sx); 205 | scaleY.setValue(sy); 206 | } 207 | } 208 | 209 | } 210 | 211 | restore(e) { 212 | let { translateX, translateY, scaleX, scaleY } = this.state; 213 | let { animated, animatesOnly } = e; 214 | if (animated) { 215 | let animates = [ 216 | Animated.spring(translateX, { toValue: 0, friction: 9 }), 217 | Animated.spring(translateY, { toValue: 0, friction: 9 }), 218 | Animated.spring(scaleX, { toValue: 1, friction: 9 }), 219 | Animated.spring(scaleY, { toValue: 1, friction: 9 }), 220 | ]; 221 | animatesOnly ? animatesOnly(animates) : Animated.parallel(animates).start(); 222 | } else { 223 | if (animatesOnly) { 224 | let animates = [ 225 | Animated.timing(translateX, { toValue: 0, duration: 1 }), 226 | Animated.timing(translateY, { toValue: 0, duration: 1 }), 227 | Animated.timing(scaleX, { toValue: 1, duration: 1 }), 228 | Animated.timing(scaleY, { toValue: 1, duration: 1 }), 229 | ]; 230 | animatesOnly(animates); 231 | } else { 232 | translateX.setValue(0); 233 | translateY.setValue(0); 234 | scaleX.setValue(1); 235 | scaleY.setValue(1); 236 | } 237 | } 238 | } 239 | 240 | render() { 241 | let { elements, toastElements, translateX, translateY, scaleX, scaleY } = this.state; 242 | let transform = [{ translateX }, { translateY }, { scaleX }, { scaleY }]; 243 | // 如果存在loading 只加载loading,loading结束后加载其他element 244 | let laodingItem = null; 245 | for (let i = elements.length - 1; i >= 0; --i) { 246 | if (elements[i].key === rrcRNLoadingKey) { 247 | laodingItem = elements[i].element; 248 | break; 249 | } 250 | } 251 | if (laodingItem) { 252 | return ( 253 | 254 | 255 | {this.props.children} 256 | 257 | 258 | {laodingItem} 259 | 260 | 261 | ) 262 | } 263 | return ( 264 | 265 | 266 | {this.props.children} 267 | 268 | { 269 | elements.length > 0 || toastElements.length > 0 ? 270 | 271 | { 272 | // 如果最后一项是alert,应该查找并清除前几项中的actionSheet(如果有的话) 273 | // 目前alert和actionSheet是相容的,应该改为互斥的,即最后出现的可以打断之前出现的 274 | elements.map((item, index) => { 275 | // 同一时刻只加载elements中最后一个element 276 | if (index == elements.length - 1) { 277 | return ( 278 | 279 | {item.element} 280 | 281 | ); 282 | } else { 283 | return null; 284 | } 285 | }) 286 | } 287 | { 288 | toastElements.map((item, index) => { 289 | // 同一时刻只加载elements中最后一个element 290 | if (index == toastElements.length - 1) { 291 | return ( 292 | 293 | {item.element} 294 | 295 | ); 296 | } else { 297 | return null; 298 | } 299 | }) 300 | } 301 | 302 | : null 303 | } 304 | 305 | ); 306 | } 307 | } 308 | 309 | var styles = StyleSheet.create({ 310 | overlayContainer: { 311 | backgroundColor: 'rgba(0, 0, 0, 0)', 312 | position: 'absolute', 313 | top: 0, 314 | left: 0, 315 | right: 0, 316 | bottom: 0, 317 | justifyContent: 'center', 318 | alignItems: 'center' 319 | }, 320 | overlay: { 321 | position: 'absolute', 322 | } 323 | }); 324 | 325 | if (!AppRegistry.registerComponentOld) { 326 | AppRegistry.registerComponentOld = AppRegistry.registerComponent; 327 | } 328 | 329 | AppRegistry.registerComponent = function (appKey, componentProvider) { 330 | 331 | class RootElement extends Component { 332 | render() { 333 | let Component = componentProvider(); 334 | return ( 335 | 336 | 337 | 338 | ); 339 | } 340 | } 341 | 342 | return AppRegistry.registerComponentOld(appKey, () => RootElement); 343 | } 344 | -------------------------------------------------------------------------------- /src/const/Device.js: -------------------------------------------------------------------------------- 1 | import { Platform, Dimensions, PixelRatio } from 'react-native'; 2 | 3 | const platform = Platform.select({ 'ios': 'ios', 'android': 'android' }); 4 | const isAndroid = platform === 'android'; 5 | const isIOS = platform === 'ios'; 6 | const { width, height } = Dimensions.get('window'); 7 | const iPhoneX_Min_Width = 375; 8 | const iPhoneX_Min_Height = 812; 9 | const isIPhoneXSeries = isIOS && width >= iPhoneX_Min_Width && height >= iPhoneX_Min_Height; 10 | const dangerBottomHeight = isIPhoneXSeries ? 34 : 0; 11 | const minLineHeight = 1 / PixelRatio.get() 12 | 13 | const DeviceConst = { 14 | platform, 15 | isAndroid, 16 | isIOS, 17 | width, 18 | height, 19 | isIPhoneXSeries, 20 | dangerBottomHeight, 21 | minLineHeight, 22 | } 23 | 24 | export default DeviceConst; 25 | -------------------------------------------------------------------------------- /src/img/alert@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/src/img/alert@2x.png -------------------------------------------------------------------------------- /src/img/car_list_loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/src/img/car_list_loading.gif -------------------------------------------------------------------------------- /src/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/src/img/loading.gif -------------------------------------------------------------------------------- /src/img/success@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongqianvip/react-native-overlayer/3d87c746cb9f6406a7f478ee01fe220948648c74/src/img/success@2x.png -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: yinyongqian 3 | * @Description: 4 | * @Date: 2018-11-13 14:45:12 5 | * @LastEditors: yinyongqian 6 | * @LastEditTime: 2018-11-28 10:12:35 7 | */ 8 | 9 | import RRCAlert from './RRCAlert'; 10 | import RRCLoading from './RRCLoading'; 11 | import RRCToast from './RRCToast'; 12 | import RRCActionSheet from './RRCActionSheet'; 13 | 14 | export { 15 | RRCAlert, 16 | RRCLoading, 17 | RRCToast, 18 | RRCActionSheet 19 | } --------------------------------------------------------------------------------