├── .gitignore ├── Example ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── SDR.js ├── __tests__ │ └── App.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── assets │ │ │ └── fonts │ │ │ │ ├── Entypo.ttf │ │ │ │ ├── EvilIcons.ttf │ │ │ │ ├── Feather.ttf │ │ │ │ ├── FontAwesome.ttf │ │ │ │ ├── Foundation.ttf │ │ │ │ ├── Ionicons.ttf │ │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ │ ├── MaterialIcons.ttf │ │ │ │ ├── Octicons.ttf │ │ │ │ ├── SimpleLineIcons.ttf │ │ │ │ └── Zocial.ttf │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── keystores │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle ├── app.json ├── index.js ├── ios │ ├── Example-tvOS │ │ └── Info.plist │ ├── Example-tvOSTests │ │ └── Info.plist │ ├── Example.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── Example-tvOS.xcscheme │ │ │ └── Example.xcscheme │ ├── Example │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── ExampleTests │ │ ├── ExampleTests.m │ │ └── Info.plist ├── notification.png ├── package-lock.json ├── package.json ├── server │ └── index.js └── yarn.lock ├── LICENSE ├── README.md ├── index.js ├── media └── logo.png ├── package-lock.json ├── package.json └── yarn.lock /.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 -------------------------------------------------------------------------------- /Example/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /Example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /Example/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | [include] 20 | 21 | [libs] 22 | node_modules/react-native/Libraries/react-native/react-native-interface.js 23 | node_modules/react-native/flow/ 24 | 25 | [options] 26 | emoji=true 27 | 28 | module.system=haste 29 | 30 | munge_underscores=true 31 | 32 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 33 | 34 | suppress_type=$FlowIssue 35 | suppress_type=$FlowFixMe 36 | suppress_type=$FlowFixMeProps 37 | suppress_type=$FlowFixMeState 38 | suppress_type=$FixMe 39 | 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 42 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 43 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 44 | 45 | unsafe.enable_getters_and_setters=true 46 | 47 | [version] 48 | ^0.53.0 49 | -------------------------------------------------------------------------------- /Example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /Example/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | -------------------------------------------------------------------------------- /Example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Example/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { 3 | Text, 4 | Image, 5 | TouchableOpacity, 6 | ActivityIndicator, 7 | } from 'react-native' 8 | import View from 'react-native-view' 9 | import { Provider, SDRClient } from './SDR'; 10 | 11 | const ApiClient = { 12 | method: "get", 13 | baseUrl: "http://localhost:3000", 14 | sdrTypes: { 15 | "Text": Text, 16 | "View": View, 17 | "Image": Image, 18 | "Button": TouchableOpacity, 19 | } 20 | } 21 | 22 | class Example extends React.Component { 23 | 24 | render() { 25 | return ( 26 | 27 | 28 | 29 | ) 30 | } 31 | } 32 | 33 | class ScreenOne extends React.Component { 34 | 35 | handleNotificationPress(name) { 36 | alert(name + " liked your post!") 37 | } 38 | 39 | getNotification() { 40 | return { 41 | notification: { 42 | title: "Liked your post", 43 | type: "LIKE", 44 | userName: "John Doe", 45 | icon: "https://images.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=350", 46 | onPress: (name) => this.handleNotificationPress(name), 47 | buttonStyle: { backgroundColor: "green", borderRadius: 20, height: 30, justifyContent: "center", alignItems: "center" }, 48 | }, 49 | } 50 | } 51 | 52 | renderLoading() { 53 | return ( 54 | 55 | 56 | 57 | ) 58 | } 59 | 60 | render() { 61 | return ( 62 | 63 | 68 | 73 | 74 | ) 75 | } 76 | } 77 | 78 | export default Example -------------------------------------------------------------------------------- /Example/SDR.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { View, ActivityIndicator } from 'react-native' 3 | import PropTypes from 'prop-types' 4 | import axios from 'axios' 5 | 6 | export const PROP_PREFIX = "prop::" 7 | export const FUNCTION_PREFIX = "function::" 8 | export const TEXT_PREFIX = "text::" 9 | 10 | const ApiContext = React.createContext({ 11 | method: "get", 12 | baseUrl: "", 13 | headers: {}, 14 | sdrTypes: {} 15 | }); 16 | 17 | export class Provider extends React.Component { 18 | 19 | render() { 20 | return ( 21 | 22 | {this.props.children} 23 | 24 | ) 25 | } 26 | } 27 | 28 | export class SDRClient extends React.Component { 29 | 30 | render() { 31 | return ( 32 | 33 | {client => } 34 | 35 | ) 36 | } 37 | } 38 | 39 | class SDRComponent extends React.Component { 40 | 41 | state = { 42 | loading: true, 43 | error: false, 44 | sdrTemplate: null, 45 | } 46 | 47 | componentWillMount() { 48 | this.fetchApiData(this.props.client) 49 | } 50 | 51 | fetchApiData = (client) => { 52 | console.log(client); 53 | return axios({ 54 | method: client.method, 55 | url: this.appendEndpoint(client.baseUrl, this.props.url), 56 | headers: client.headers, 57 | }) 58 | .then(res => this.setState({ sdrTemplate: res.data, loading: false })) 59 | .catch(() => { 60 | this.setState({ loading: false, error: true }) 61 | }) 62 | } 63 | 64 | appendEndpoint(baseUrl, endpoint) { 65 | if (!endpoint) { 66 | return baseUrl 67 | } 68 | var url = baseUrl 69 | if (!url.endsWith("/")) { 70 | url += "/" 71 | } 72 | var endp = endpoint 73 | if (endp.startsWith("/")) { 74 | endp = endp.substr(1, endp.length) 75 | } 76 | url += endp 77 | return url 78 | } 79 | 80 | render() { 81 | const { client } = this.props 82 | const { sdrTemplate, loading, error } = this.state 83 | if (loading) { 84 | return this.props.renderLoading() 85 | } 86 | if (error) { 87 | return this.props.renderError() 88 | } 89 | return 93 | } 94 | } 95 | 96 | 97 | export default class SDRContainer extends React.Component { 98 | 99 | shouldComponentUpdate = this.props.shouldComponentUpdate 100 | 101 | buildItem() { 102 | const { sdrTemplate } = this.props 103 | if (!sdrTemplate) { 104 | return 105 | } 106 | return this.buildChildren(sdrTemplate) 107 | } 108 | 109 | buildChildren(node) { 110 | const { sdrTypes } = this.props 111 | const props = this.parseNodeProps(node.props) || {} 112 | props.key = props.key || ("" + Math.random()) 113 | if (!Array.isArray(node.children) || !node.children.length) { 114 | return React.createElement(sdrTypes[node.type], props, this.replaceText(node.children)) 115 | } 116 | const children = [] 117 | for (var i = 0; i < node.children.length; i++) { 118 | children.push(this.buildChildren(node.children[i])) 119 | } 120 | return React.createElement(sdrTypes[node.type], props, children) 121 | } 122 | 123 | parseNodeProps(propsToParse) { 124 | if (!propsToParse) { 125 | return null 126 | } 127 | var props = { ...propsToParse } 128 | for (const key in props) { 129 | var prop = props[key]; 130 | if (typeof prop === "string") { 131 | if (prop.startsWith(PROP_PREFIX)) { 132 | props[key] = this.replaceProp(prop) 133 | } else if (prop.startsWith(FUNCTION_PREFIX)) { 134 | props[key] = this.replaceFunction(prop) 135 | } else { 136 | props[key] = this.replaceText(prop) 137 | } 138 | } else if (typeof prop === "object") { 139 | props[key] = this.parseNodeProps(prop) 140 | } 141 | } 142 | return props 143 | } 144 | 145 | replaceProp(prop) { 146 | if (typeof prop !== "string") { 147 | return prop 148 | } 149 | const parts = prop.replace(PROP_PREFIX, "").split(".") 150 | var element = this.props 151 | for (let j = 0; j < parts.length && element; j++) { 152 | element = element[parts[j]] 153 | } 154 | return element 155 | } 156 | 157 | replaceFunction(prop) { 158 | if (typeof prop !== "string") { 159 | return prop 160 | } 161 | const segments = prop.replace(FUNCTION_PREFIX, "").split("(") 162 | if (segments.length === 0) { 163 | return prop 164 | } 165 | const parts = segments[0].split(".") 166 | const argsSegment = segments[1] 167 | var func = this.props 168 | for (let i = 0; i < parts.length && func; i++) { 169 | func = func[parts[i]] 170 | } 171 | if (typeof func !== "function") { 172 | return () => { } 173 | } 174 | if (!argsSegment) { 175 | return func 176 | } 177 | const args = argsSegment.replace(")", "").split(/,\s*/g) 178 | for (let i = 0; i < args.length; i++) { 179 | if (args[i].includes(PROP_PREFIX)) { 180 | args[i] = this.replaceProp(args[i]) 181 | } else if (args[i].includes(TEXT_PREFIX)) { 182 | args[i] = this.replaceText(args[i]) 183 | } 184 | } 185 | return () => func(...args) 186 | } 187 | 188 | replaceText(text) { 189 | if (typeof text !== "string") { 190 | return text 191 | } 192 | const propsRegex = /(\${text::[^}]*})/g 193 | const matches = propsRegex.exec(text) 194 | var replaced = text 195 | if (!matches) { 196 | return text 197 | } 198 | for (let i = 0; i < matches.length; i++) { 199 | const parts = matches[i].replace("${" + TEXT_PREFIX, "").replace("}", "").split(".") 200 | var element = this.props 201 | for (let j = 0; j < parts.length && element; j++) { 202 | element = element[parts[j]] 203 | } 204 | const shouldReplace = !!{ "string": true, "number": true, "boolean": true }[typeof element] 205 | replaced = replaced.replace(matches[i], shouldReplace ? element : "") 206 | } 207 | return replaced 208 | } 209 | 210 | render() { 211 | return this.buildItem() 212 | } 213 | } 214 | 215 | Provider.propTypes = { 216 | client: PropTypes.shape({ 217 | method: PropTypes.oneOf(["get", "put", "post"]).isRequired, 218 | baseUrl: PropTypes.string.isRequired, 219 | headers: PropTypes.object, 220 | sdrTypes: PropTypes.object, 221 | }).isRequired, 222 | } 223 | 224 | Provider.defaultProps = { 225 | client: PropTypes.shape({ 226 | method: "get", 227 | baseUrl: "", 228 | headers: {}, 229 | }).isRequired, 230 | } 231 | 232 | 233 | SDRClient.propTypes = { 234 | url: PropTypes.string, 235 | renderLoading: PropTypes.func, 236 | renderError: PropTypes.func, 237 | } 238 | 239 | SDRClient.defaultProps = { 240 | url: "", 241 | renderLoading: () => ( 242 | 243 | 244 | 245 | ), 246 | renderError: () => , 247 | } 248 | 249 | 250 | SDRContainer.propTypes = { 251 | sdrTemplate: PropTypes.shape({ 252 | type: PropTypes.string.isRequired, 253 | props: PropTypes.object, 254 | children: PropTypes.oneOfType([ 255 | PropTypes.array, 256 | PropTypes.string, 257 | PropTypes.object, 258 | ]), 259 | }).isRequired, 260 | sdrTypes: PropTypes.object, 261 | shouldComponentUpdate: PropTypes.func, 262 | } 263 | 264 | SDRContainer.defaultProps = { 265 | shouldComponentUpdate: () => false, 266 | sdrTypes: { "View": View } 267 | } -------------------------------------------------------------------------------- /Example/__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /Example/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.example", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.example", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /Example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion 23 98 | buildToolsVersion "23.0.1" 99 | 100 | defaultConfig { 101 | applicationId "com.example" 102 | minSdkVersion 16 103 | targetSdkVersion 22 104 | versionCode 1 105 | versionName "1.0" 106 | ndk { 107 | abiFilters "armeabi-v7a", "x86" 108 | } 109 | } 110 | splits { 111 | abi { 112 | reset() 113 | enable enableSeparateBuildPerCPUArchitecture 114 | universalApk false // If true, also generate a universal APK 115 | include "armeabi-v7a", "x86" 116 | } 117 | } 118 | buildTypes { 119 | release { 120 | minifyEnabled enableProguardInReleaseBuilds 121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 122 | } 123 | } 124 | // applicationVariants are e.g. debug, release 125 | applicationVariants.all { variant -> 126 | variant.outputs.each { output -> 127 | // For each separate APK per architecture, set a unique version code as described here: 128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 129 | def versionCodes = ["armeabi-v7a":1, "x86":2] 130 | def abi = output.getFilter(OutputFile.ABI) 131 | if (abi != null) { // null for the universal-debug, universal-release variants 132 | output.versionCodeOverride = 133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 134 | } 135 | } 136 | } 137 | } 138 | 139 | dependencies { 140 | compile project(':react-native-vector-icons') 141 | compile fileTree(dir: "libs", include: ["*.jar"]) 142 | compile "com.android.support:appcompat-v7:23.0.1" 143 | compile "com.facebook.react:react-native:+" // From node_modules 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 | -------------------------------------------------------------------------------- /Example/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /Example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/Feather.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/Feather.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /Example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "Example"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Example/android/app/src/main/java/com/example/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.oblador.vectoricons.VectorIconsPackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new VectorIconsPackage() 28 | ); 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Example 3 | 4 | -------------------------------------------------------------------------------- /Example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /Example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /Example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /Example/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /Example/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /Example/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /Example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'Example' 2 | include ':react-native-vector-icons' 3 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /Example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Example", 3 | "displayName": "Example" 4 | } -------------------------------------------------------------------------------- /Example/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('Example', () => App); 5 | -------------------------------------------------------------------------------- /Example/ios/Example-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Example/ios/Example-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/ios/Example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; }; 37 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = Example; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2B173BB91F9219C4005DBEDA /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 109 | proxyType = 2; 110 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 111 | remoteInfo = "RCTBlob-tvOS"; 112 | }; 113 | 2B173BCB1F9219C4005DBEDA /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 118 | remoteInfo = fishhook; 119 | }; 120 | 2B173BCD1F9219C4005DBEDA /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 125 | remoteInfo = "fishhook-tvOS"; 126 | }; 127 | 2B173BDB1F9219C4005DBEDA /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 132 | remoteInfo = "third-party"; 133 | }; 134 | 2B173BDD1F9219C4005DBEDA /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 139 | remoteInfo = "third-party-tvOS"; 140 | }; 141 | 2B173BDF1F9219C4005DBEDA /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 146 | remoteInfo = "double-conversion"; 147 | }; 148 | 2B173BE11F9219C4005DBEDA /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 153 | remoteInfo = "double-conversion-tvOS"; 154 | }; 155 | 2B578F7020F2B646003B028E /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 160 | remoteInfo = jsinspector; 161 | }; 162 | 2B578F7220F2B646003B028E /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 167 | remoteInfo = "jsinspector-tvOS"; 168 | }; 169 | 2B578F7420F2B646003B028E /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 174 | remoteInfo = privatedata; 175 | }; 176 | 2B578F7620F2B646003B028E /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 181 | remoteInfo = "privatedata-tvOS"; 182 | }; 183 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 186 | proxyType = 1; 187 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 188 | remoteInfo = "Example-tvOS"; 189 | }; 190 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 195 | remoteInfo = "RCTImage-tvOS"; 196 | }; 197 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 202 | remoteInfo = "RCTLinking-tvOS"; 203 | }; 204 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 209 | remoteInfo = "RCTNetwork-tvOS"; 210 | }; 211 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 216 | remoteInfo = "RCTSettings-tvOS"; 217 | }; 218 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 223 | remoteInfo = "RCTText-tvOS"; 224 | }; 225 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 230 | remoteInfo = "RCTWebSocket-tvOS"; 231 | }; 232 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 237 | remoteInfo = "React-tvOS"; 238 | }; 239 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 240 | isa = PBXContainerItemProxy; 241 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 242 | proxyType = 2; 243 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 244 | remoteInfo = yoga; 245 | }; 246 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 247 | isa = PBXContainerItemProxy; 248 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 249 | proxyType = 2; 250 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 251 | remoteInfo = "yoga-tvOS"; 252 | }; 253 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 254 | isa = PBXContainerItemProxy; 255 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 256 | proxyType = 2; 257 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 258 | remoteInfo = cxxreact; 259 | }; 260 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 261 | isa = PBXContainerItemProxy; 262 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 263 | proxyType = 2; 264 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 265 | remoteInfo = "cxxreact-tvOS"; 266 | }; 267 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 268 | isa = PBXContainerItemProxy; 269 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 270 | proxyType = 2; 271 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 272 | remoteInfo = jschelpers; 273 | }; 274 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 275 | isa = PBXContainerItemProxy; 276 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 277 | proxyType = 2; 278 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 279 | remoteInfo = "jschelpers-tvOS"; 280 | }; 281 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 282 | isa = PBXContainerItemProxy; 283 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 284 | proxyType = 2; 285 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 286 | remoteInfo = RCTAnimation; 287 | }; 288 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 289 | isa = PBXContainerItemProxy; 290 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 291 | proxyType = 2; 292 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 293 | remoteInfo = "RCTAnimation-tvOS"; 294 | }; 295 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 296 | isa = PBXContainerItemProxy; 297 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 298 | proxyType = 2; 299 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 300 | remoteInfo = RCTLinking; 301 | }; 302 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 303 | isa = PBXContainerItemProxy; 304 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 305 | proxyType = 2; 306 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 307 | remoteInfo = RCTText; 308 | }; 309 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 310 | isa = PBXContainerItemProxy; 311 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 312 | proxyType = 2; 313 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 314 | remoteInfo = RCTBlob; 315 | }; 316 | /* End PBXContainerItemProxy section */ 317 | 318 | /* Begin PBXFileReference section */ 319 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 320 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 321 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 322 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 323 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 324 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 325 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 326 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 327 | 00E356F21AD99517003FC87E /* ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleTests.m; sourceTree = ""; }; 328 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 329 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 330 | 13B07F961A680F5B00A75B9A /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 331 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Example/AppDelegate.h; sourceTree = ""; }; 332 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Example/AppDelegate.m; sourceTree = ""; }; 333 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 334 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Example/Images.xcassets; sourceTree = ""; }; 335 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Example/Info.plist; sourceTree = ""; }; 336 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Example/main.m; sourceTree = ""; }; 337 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 338 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 339 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Example-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 340 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 341 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 342 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 343 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 344 | /* End PBXFileReference section */ 345 | 346 | /* Begin PBXFrameworksBuildPhase section */ 347 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 348 | isa = PBXFrameworksBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 356 | isa = PBXFrameworksBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 360 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 361 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 362 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 363 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 364 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 365 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 366 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 367 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 368 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 369 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 370 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 371 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 376 | isa = PBXFrameworksBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 380 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 381 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 382 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 383 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 384 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 385 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 386 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 387 | ); 388 | runOnlyForDeploymentPostprocessing = 0; 389 | }; 390 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 391 | isa = PBXFrameworksBuildPhase; 392 | buildActionMask = 2147483647; 393 | files = ( 394 | ); 395 | runOnlyForDeploymentPostprocessing = 0; 396 | }; 397 | /* End PBXFrameworksBuildPhase section */ 398 | 399 | /* Begin PBXGroup section */ 400 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 401 | isa = PBXGroup; 402 | children = ( 403 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 404 | ); 405 | name = Products; 406 | sourceTree = ""; 407 | }; 408 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 409 | isa = PBXGroup; 410 | children = ( 411 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 412 | ); 413 | name = Products; 414 | sourceTree = ""; 415 | }; 416 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 417 | isa = PBXGroup; 418 | children = ( 419 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 420 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 421 | ); 422 | name = Products; 423 | sourceTree = ""; 424 | }; 425 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 426 | isa = PBXGroup; 427 | children = ( 428 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 429 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 430 | ); 431 | name = Products; 432 | sourceTree = ""; 433 | }; 434 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 435 | isa = PBXGroup; 436 | children = ( 437 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 438 | ); 439 | name = Products; 440 | sourceTree = ""; 441 | }; 442 | 00E356EF1AD99517003FC87E /* ExampleTests */ = { 443 | isa = PBXGroup; 444 | children = ( 445 | 00E356F21AD99517003FC87E /* ExampleTests.m */, 446 | 00E356F01AD99517003FC87E /* Supporting Files */, 447 | ); 448 | path = ExampleTests; 449 | sourceTree = ""; 450 | }; 451 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 452 | isa = PBXGroup; 453 | children = ( 454 | 00E356F11AD99517003FC87E /* Info.plist */, 455 | ); 456 | name = "Supporting Files"; 457 | sourceTree = ""; 458 | }; 459 | 139105B71AF99BAD00B5F7CC /* Products */ = { 460 | isa = PBXGroup; 461 | children = ( 462 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 463 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 464 | ); 465 | name = Products; 466 | sourceTree = ""; 467 | }; 468 | 139FDEE71B06529A00C62182 /* Products */ = { 469 | isa = PBXGroup; 470 | children = ( 471 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 472 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 473 | 2B173BCC1F9219C4005DBEDA /* libfishhook.a */, 474 | 2B173BCE1F9219C4005DBEDA /* libfishhook-tvOS.a */, 475 | ); 476 | name = Products; 477 | sourceTree = ""; 478 | }; 479 | 13B07FAE1A68108700A75B9A /* Example */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 483 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 484 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 485 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 486 | 13B07FB61A68108700A75B9A /* Info.plist */, 487 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 488 | 13B07FB71A68108700A75B9A /* main.m */, 489 | ); 490 | name = Example; 491 | sourceTree = ""; 492 | }; 493 | 146834001AC3E56700842450 /* Products */ = { 494 | isa = PBXGroup; 495 | children = ( 496 | 146834041AC3E56700842450 /* libReact.a */, 497 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 498 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 499 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 500 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 501 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 502 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 503 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 504 | 2B578F7120F2B646003B028E /* libjsinspector.a */, 505 | 2B578F7320F2B646003B028E /* libjsinspector-tvOS.a */, 506 | 2B173BDC1F9219C4005DBEDA /* libthird-party.a */, 507 | 2B173BDE1F9219C4005DBEDA /* libthird-party.a */, 508 | 2B173BE01F9219C4005DBEDA /* libdouble-conversion.a */, 509 | 2B173BE21F9219C4005DBEDA /* libdouble-conversion.a */, 510 | 2B578F7520F2B646003B028E /* libprivatedata.a */, 511 | 2B578F7720F2B646003B028E /* libprivatedata-tvOS.a */, 512 | ); 513 | name = Products; 514 | sourceTree = ""; 515 | }; 516 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 517 | isa = PBXGroup; 518 | children = ( 519 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 520 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 521 | ); 522 | name = Products; 523 | sourceTree = ""; 524 | }; 525 | 78C398B11ACF4ADC00677621 /* Products */ = { 526 | isa = PBXGroup; 527 | children = ( 528 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 529 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 530 | ); 531 | name = Products; 532 | sourceTree = ""; 533 | }; 534 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 535 | isa = PBXGroup; 536 | children = ( 537 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 538 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 539 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 540 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 541 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 542 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 543 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 544 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 545 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 546 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 547 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 548 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 549 | ); 550 | name = Libraries; 551 | sourceTree = ""; 552 | }; 553 | 832341B11AAA6A8300B99B32 /* Products */ = { 554 | isa = PBXGroup; 555 | children = ( 556 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 557 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 558 | ); 559 | name = Products; 560 | sourceTree = ""; 561 | }; 562 | 83CBB9F61A601CBA00E9B192 = { 563 | isa = PBXGroup; 564 | children = ( 565 | 13B07FAE1A68108700A75B9A /* Example */, 566 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 567 | 00E356EF1AD99517003FC87E /* ExampleTests */, 568 | 83CBBA001A601CBA00E9B192 /* Products */, 569 | ); 570 | indentWidth = 2; 571 | sourceTree = ""; 572 | tabWidth = 2; 573 | usesTabs = 0; 574 | }; 575 | 83CBBA001A601CBA00E9B192 /* Products */ = { 576 | isa = PBXGroup; 577 | children = ( 578 | 13B07F961A680F5B00A75B9A /* Example.app */, 579 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */, 580 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */, 581 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */, 582 | ); 583 | name = Products; 584 | sourceTree = ""; 585 | }; 586 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 587 | isa = PBXGroup; 588 | children = ( 589 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 590 | 2B173BBA1F9219C4005DBEDA /* libRCTBlob-tvOS.a */, 591 | ); 592 | name = Products; 593 | sourceTree = ""; 594 | }; 595 | /* End PBXGroup section */ 596 | 597 | /* Begin PBXNativeTarget section */ 598 | 00E356ED1AD99517003FC87E /* ExampleTests */ = { 599 | isa = PBXNativeTarget; 600 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */; 601 | buildPhases = ( 602 | 00E356EA1AD99517003FC87E /* Sources */, 603 | 00E356EB1AD99517003FC87E /* Frameworks */, 604 | 00E356EC1AD99517003FC87E /* Resources */, 605 | ); 606 | buildRules = ( 607 | ); 608 | dependencies = ( 609 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 610 | ); 611 | name = ExampleTests; 612 | productName = ExampleTests; 613 | productReference = 00E356EE1AD99517003FC87E /* ExampleTests.xctest */; 614 | productType = "com.apple.product-type.bundle.unit-test"; 615 | }; 616 | 13B07F861A680F5B00A75B9A /* Example */ = { 617 | isa = PBXNativeTarget; 618 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */; 619 | buildPhases = ( 620 | 13B07F871A680F5B00A75B9A /* Sources */, 621 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 622 | 13B07F8E1A680F5B00A75B9A /* Resources */, 623 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 624 | ); 625 | buildRules = ( 626 | ); 627 | dependencies = ( 628 | ); 629 | name = Example; 630 | productName = "Hello World"; 631 | productReference = 13B07F961A680F5B00A75B9A /* Example.app */; 632 | productType = "com.apple.product-type.application"; 633 | }; 634 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */ = { 635 | isa = PBXNativeTarget; 636 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */; 637 | buildPhases = ( 638 | 2D02E4771E0B4A5D006451C7 /* Sources */, 639 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 640 | 2D02E4791E0B4A5D006451C7 /* Resources */, 641 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 642 | ); 643 | buildRules = ( 644 | ); 645 | dependencies = ( 646 | ); 647 | name = "Example-tvOS"; 648 | productName = "Example-tvOS"; 649 | productReference = 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */; 650 | productType = "com.apple.product-type.application"; 651 | }; 652 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */ = { 653 | isa = PBXNativeTarget; 654 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */; 655 | buildPhases = ( 656 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 657 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 658 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 659 | ); 660 | buildRules = ( 661 | ); 662 | dependencies = ( 663 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 664 | ); 665 | name = "Example-tvOSTests"; 666 | productName = "Example-tvOSTests"; 667 | productReference = 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */; 668 | productType = "com.apple.product-type.bundle.unit-test"; 669 | }; 670 | /* End PBXNativeTarget section */ 671 | 672 | /* Begin PBXProject section */ 673 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 674 | isa = PBXProject; 675 | attributes = { 676 | LastUpgradeCheck = 610; 677 | ORGANIZATIONNAME = Facebook; 678 | TargetAttributes = { 679 | 00E356ED1AD99517003FC87E = { 680 | CreatedOnToolsVersion = 6.2; 681 | TestTargetID = 13B07F861A680F5B00A75B9A; 682 | }; 683 | 13B07F861A680F5B00A75B9A = { 684 | DevelopmentTeam = JM67298QHB; 685 | }; 686 | 2D02E47A1E0B4A5D006451C7 = { 687 | CreatedOnToolsVersion = 8.2.1; 688 | ProvisioningStyle = Automatic; 689 | }; 690 | 2D02E48F1E0B4A5D006451C7 = { 691 | CreatedOnToolsVersion = 8.2.1; 692 | ProvisioningStyle = Automatic; 693 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 694 | }; 695 | }; 696 | }; 697 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */; 698 | compatibilityVersion = "Xcode 3.2"; 699 | developmentRegion = English; 700 | hasScannedForEncodings = 0; 701 | knownRegions = ( 702 | en, 703 | Base, 704 | ); 705 | mainGroup = 83CBB9F61A601CBA00E9B192; 706 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 707 | projectDirPath = ""; 708 | projectReferences = ( 709 | { 710 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 711 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 712 | }, 713 | { 714 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 715 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 716 | }, 717 | { 718 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 719 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 720 | }, 721 | { 722 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 723 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 724 | }, 725 | { 726 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 727 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 728 | }, 729 | { 730 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 731 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 732 | }, 733 | { 734 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 735 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 736 | }, 737 | { 738 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 739 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 740 | }, 741 | { 742 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 743 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 744 | }, 745 | { 746 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 747 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 748 | }, 749 | { 750 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 751 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 752 | }, 753 | { 754 | ProductGroup = 146834001AC3E56700842450 /* Products */; 755 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 756 | }, 757 | ); 758 | projectRoot = ""; 759 | targets = ( 760 | 13B07F861A680F5B00A75B9A /* Example */, 761 | 00E356ED1AD99517003FC87E /* ExampleTests */, 762 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */, 763 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */, 764 | ); 765 | }; 766 | /* End PBXProject section */ 767 | 768 | /* Begin PBXReferenceProxy section */ 769 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 770 | isa = PBXReferenceProxy; 771 | fileType = archive.ar; 772 | path = libRCTActionSheet.a; 773 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 774 | sourceTree = BUILT_PRODUCTS_DIR; 775 | }; 776 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 777 | isa = PBXReferenceProxy; 778 | fileType = archive.ar; 779 | path = libRCTGeolocation.a; 780 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 781 | sourceTree = BUILT_PRODUCTS_DIR; 782 | }; 783 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 784 | isa = PBXReferenceProxy; 785 | fileType = archive.ar; 786 | path = libRCTImage.a; 787 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 788 | sourceTree = BUILT_PRODUCTS_DIR; 789 | }; 790 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 791 | isa = PBXReferenceProxy; 792 | fileType = archive.ar; 793 | path = libRCTNetwork.a; 794 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 795 | sourceTree = BUILT_PRODUCTS_DIR; 796 | }; 797 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 798 | isa = PBXReferenceProxy; 799 | fileType = archive.ar; 800 | path = libRCTVibration.a; 801 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 802 | sourceTree = BUILT_PRODUCTS_DIR; 803 | }; 804 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 805 | isa = PBXReferenceProxy; 806 | fileType = archive.ar; 807 | path = libRCTSettings.a; 808 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 809 | sourceTree = BUILT_PRODUCTS_DIR; 810 | }; 811 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 812 | isa = PBXReferenceProxy; 813 | fileType = archive.ar; 814 | path = libRCTWebSocket.a; 815 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 816 | sourceTree = BUILT_PRODUCTS_DIR; 817 | }; 818 | 146834041AC3E56700842450 /* libReact.a */ = { 819 | isa = PBXReferenceProxy; 820 | fileType = archive.ar; 821 | path = libReact.a; 822 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 823 | sourceTree = BUILT_PRODUCTS_DIR; 824 | }; 825 | 2B173BBA1F9219C4005DBEDA /* libRCTBlob-tvOS.a */ = { 826 | isa = PBXReferenceProxy; 827 | fileType = archive.ar; 828 | path = "libRCTBlob-tvOS.a"; 829 | remoteRef = 2B173BB91F9219C4005DBEDA /* PBXContainerItemProxy */; 830 | sourceTree = BUILT_PRODUCTS_DIR; 831 | }; 832 | 2B173BCC1F9219C4005DBEDA /* libfishhook.a */ = { 833 | isa = PBXReferenceProxy; 834 | fileType = archive.ar; 835 | path = libfishhook.a; 836 | remoteRef = 2B173BCB1F9219C4005DBEDA /* PBXContainerItemProxy */; 837 | sourceTree = BUILT_PRODUCTS_DIR; 838 | }; 839 | 2B173BCE1F9219C4005DBEDA /* libfishhook-tvOS.a */ = { 840 | isa = PBXReferenceProxy; 841 | fileType = archive.ar; 842 | path = "libfishhook-tvOS.a"; 843 | remoteRef = 2B173BCD1F9219C4005DBEDA /* PBXContainerItemProxy */; 844 | sourceTree = BUILT_PRODUCTS_DIR; 845 | }; 846 | 2B173BDC1F9219C4005DBEDA /* libthird-party.a */ = { 847 | isa = PBXReferenceProxy; 848 | fileType = archive.ar; 849 | path = "libthird-party.a"; 850 | remoteRef = 2B173BDB1F9219C4005DBEDA /* PBXContainerItemProxy */; 851 | sourceTree = BUILT_PRODUCTS_DIR; 852 | }; 853 | 2B173BDE1F9219C4005DBEDA /* libthird-party.a */ = { 854 | isa = PBXReferenceProxy; 855 | fileType = archive.ar; 856 | path = "libthird-party.a"; 857 | remoteRef = 2B173BDD1F9219C4005DBEDA /* PBXContainerItemProxy */; 858 | sourceTree = BUILT_PRODUCTS_DIR; 859 | }; 860 | 2B173BE01F9219C4005DBEDA /* libdouble-conversion.a */ = { 861 | isa = PBXReferenceProxy; 862 | fileType = archive.ar; 863 | path = "libdouble-conversion.a"; 864 | remoteRef = 2B173BDF1F9219C4005DBEDA /* PBXContainerItemProxy */; 865 | sourceTree = BUILT_PRODUCTS_DIR; 866 | }; 867 | 2B173BE21F9219C4005DBEDA /* libdouble-conversion.a */ = { 868 | isa = PBXReferenceProxy; 869 | fileType = archive.ar; 870 | path = "libdouble-conversion.a"; 871 | remoteRef = 2B173BE11F9219C4005DBEDA /* PBXContainerItemProxy */; 872 | sourceTree = BUILT_PRODUCTS_DIR; 873 | }; 874 | 2B578F7120F2B646003B028E /* libjsinspector.a */ = { 875 | isa = PBXReferenceProxy; 876 | fileType = archive.ar; 877 | path = libjsinspector.a; 878 | remoteRef = 2B578F7020F2B646003B028E /* PBXContainerItemProxy */; 879 | sourceTree = BUILT_PRODUCTS_DIR; 880 | }; 881 | 2B578F7320F2B646003B028E /* libjsinspector-tvOS.a */ = { 882 | isa = PBXReferenceProxy; 883 | fileType = archive.ar; 884 | path = "libjsinspector-tvOS.a"; 885 | remoteRef = 2B578F7220F2B646003B028E /* PBXContainerItemProxy */; 886 | sourceTree = BUILT_PRODUCTS_DIR; 887 | }; 888 | 2B578F7520F2B646003B028E /* libprivatedata.a */ = { 889 | isa = PBXReferenceProxy; 890 | fileType = archive.ar; 891 | path = libprivatedata.a; 892 | remoteRef = 2B578F7420F2B646003B028E /* PBXContainerItemProxy */; 893 | sourceTree = BUILT_PRODUCTS_DIR; 894 | }; 895 | 2B578F7720F2B646003B028E /* libprivatedata-tvOS.a */ = { 896 | isa = PBXReferenceProxy; 897 | fileType = archive.ar; 898 | path = "libprivatedata-tvOS.a"; 899 | remoteRef = 2B578F7620F2B646003B028E /* PBXContainerItemProxy */; 900 | sourceTree = BUILT_PRODUCTS_DIR; 901 | }; 902 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 903 | isa = PBXReferenceProxy; 904 | fileType = archive.ar; 905 | path = "libRCTImage-tvOS.a"; 906 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 907 | sourceTree = BUILT_PRODUCTS_DIR; 908 | }; 909 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 910 | isa = PBXReferenceProxy; 911 | fileType = archive.ar; 912 | path = "libRCTLinking-tvOS.a"; 913 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 914 | sourceTree = BUILT_PRODUCTS_DIR; 915 | }; 916 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 917 | isa = PBXReferenceProxy; 918 | fileType = archive.ar; 919 | path = "libRCTNetwork-tvOS.a"; 920 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 921 | sourceTree = BUILT_PRODUCTS_DIR; 922 | }; 923 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 924 | isa = PBXReferenceProxy; 925 | fileType = archive.ar; 926 | path = "libRCTSettings-tvOS.a"; 927 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 928 | sourceTree = BUILT_PRODUCTS_DIR; 929 | }; 930 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 931 | isa = PBXReferenceProxy; 932 | fileType = archive.ar; 933 | path = "libRCTText-tvOS.a"; 934 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 935 | sourceTree = BUILT_PRODUCTS_DIR; 936 | }; 937 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 938 | isa = PBXReferenceProxy; 939 | fileType = archive.ar; 940 | path = "libRCTWebSocket-tvOS.a"; 941 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 942 | sourceTree = BUILT_PRODUCTS_DIR; 943 | }; 944 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 945 | isa = PBXReferenceProxy; 946 | fileType = archive.ar; 947 | path = libReact.a; 948 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 949 | sourceTree = BUILT_PRODUCTS_DIR; 950 | }; 951 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 952 | isa = PBXReferenceProxy; 953 | fileType = archive.ar; 954 | path = libyoga.a; 955 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 956 | sourceTree = BUILT_PRODUCTS_DIR; 957 | }; 958 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 959 | isa = PBXReferenceProxy; 960 | fileType = archive.ar; 961 | path = libyoga.a; 962 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 963 | sourceTree = BUILT_PRODUCTS_DIR; 964 | }; 965 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 966 | isa = PBXReferenceProxy; 967 | fileType = archive.ar; 968 | path = libcxxreact.a; 969 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 970 | sourceTree = BUILT_PRODUCTS_DIR; 971 | }; 972 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 973 | isa = PBXReferenceProxy; 974 | fileType = archive.ar; 975 | path = libcxxreact.a; 976 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 977 | sourceTree = BUILT_PRODUCTS_DIR; 978 | }; 979 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 980 | isa = PBXReferenceProxy; 981 | fileType = archive.ar; 982 | path = libjschelpers.a; 983 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 984 | sourceTree = BUILT_PRODUCTS_DIR; 985 | }; 986 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 987 | isa = PBXReferenceProxy; 988 | fileType = archive.ar; 989 | path = libjschelpers.a; 990 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 991 | sourceTree = BUILT_PRODUCTS_DIR; 992 | }; 993 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 994 | isa = PBXReferenceProxy; 995 | fileType = archive.ar; 996 | path = libRCTAnimation.a; 997 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 998 | sourceTree = BUILT_PRODUCTS_DIR; 999 | }; 1000 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1001 | isa = PBXReferenceProxy; 1002 | fileType = archive.ar; 1003 | path = libRCTAnimation.a; 1004 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1005 | sourceTree = BUILT_PRODUCTS_DIR; 1006 | }; 1007 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1008 | isa = PBXReferenceProxy; 1009 | fileType = archive.ar; 1010 | path = libRCTLinking.a; 1011 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1012 | sourceTree = BUILT_PRODUCTS_DIR; 1013 | }; 1014 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1015 | isa = PBXReferenceProxy; 1016 | fileType = archive.ar; 1017 | path = libRCTText.a; 1018 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1019 | sourceTree = BUILT_PRODUCTS_DIR; 1020 | }; 1021 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1022 | isa = PBXReferenceProxy; 1023 | fileType = archive.ar; 1024 | path = libRCTBlob.a; 1025 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1026 | sourceTree = BUILT_PRODUCTS_DIR; 1027 | }; 1028 | /* End PBXReferenceProxy section */ 1029 | 1030 | /* Begin PBXResourcesBuildPhase section */ 1031 | 00E356EC1AD99517003FC87E /* Resources */ = { 1032 | isa = PBXResourcesBuildPhase; 1033 | buildActionMask = 2147483647; 1034 | files = ( 1035 | ); 1036 | runOnlyForDeploymentPostprocessing = 0; 1037 | }; 1038 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1039 | isa = PBXResourcesBuildPhase; 1040 | buildActionMask = 2147483647; 1041 | files = ( 1042 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1043 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1044 | ); 1045 | runOnlyForDeploymentPostprocessing = 0; 1046 | }; 1047 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1048 | isa = PBXResourcesBuildPhase; 1049 | buildActionMask = 2147483647; 1050 | files = ( 1051 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1052 | ); 1053 | runOnlyForDeploymentPostprocessing = 0; 1054 | }; 1055 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1056 | isa = PBXResourcesBuildPhase; 1057 | buildActionMask = 2147483647; 1058 | files = ( 1059 | ); 1060 | runOnlyForDeploymentPostprocessing = 0; 1061 | }; 1062 | /* End PBXResourcesBuildPhase section */ 1063 | 1064 | /* Begin PBXShellScriptBuildPhase section */ 1065 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1066 | isa = PBXShellScriptBuildPhase; 1067 | buildActionMask = 2147483647; 1068 | files = ( 1069 | ); 1070 | inputPaths = ( 1071 | ); 1072 | name = "Bundle React Native code and images"; 1073 | outputPaths = ( 1074 | ); 1075 | runOnlyForDeploymentPostprocessing = 0; 1076 | shellPath = /bin/sh; 1077 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1078 | }; 1079 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1080 | isa = PBXShellScriptBuildPhase; 1081 | buildActionMask = 2147483647; 1082 | files = ( 1083 | ); 1084 | inputPaths = ( 1085 | ); 1086 | name = "Bundle React Native Code And Images"; 1087 | outputPaths = ( 1088 | ); 1089 | runOnlyForDeploymentPostprocessing = 0; 1090 | shellPath = /bin/sh; 1091 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1092 | }; 1093 | /* End PBXShellScriptBuildPhase section */ 1094 | 1095 | /* Begin PBXSourcesBuildPhase section */ 1096 | 00E356EA1AD99517003FC87E /* Sources */ = { 1097 | isa = PBXSourcesBuildPhase; 1098 | buildActionMask = 2147483647; 1099 | files = ( 1100 | 00E356F31AD99517003FC87E /* ExampleTests.m in Sources */, 1101 | ); 1102 | runOnlyForDeploymentPostprocessing = 0; 1103 | }; 1104 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1105 | isa = PBXSourcesBuildPhase; 1106 | buildActionMask = 2147483647; 1107 | files = ( 1108 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1109 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1110 | ); 1111 | runOnlyForDeploymentPostprocessing = 0; 1112 | }; 1113 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1114 | isa = PBXSourcesBuildPhase; 1115 | buildActionMask = 2147483647; 1116 | files = ( 1117 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1118 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1119 | ); 1120 | runOnlyForDeploymentPostprocessing = 0; 1121 | }; 1122 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1123 | isa = PBXSourcesBuildPhase; 1124 | buildActionMask = 2147483647; 1125 | files = ( 1126 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */, 1127 | ); 1128 | runOnlyForDeploymentPostprocessing = 0; 1129 | }; 1130 | /* End PBXSourcesBuildPhase section */ 1131 | 1132 | /* Begin PBXTargetDependency section */ 1133 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1134 | isa = PBXTargetDependency; 1135 | target = 13B07F861A680F5B00A75B9A /* Example */; 1136 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1137 | }; 1138 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1139 | isa = PBXTargetDependency; 1140 | target = 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */; 1141 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1142 | }; 1143 | /* End PBXTargetDependency section */ 1144 | 1145 | /* Begin PBXVariantGroup section */ 1146 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1147 | isa = PBXVariantGroup; 1148 | children = ( 1149 | 13B07FB21A68108700A75B9A /* Base */, 1150 | ); 1151 | name = LaunchScreen.xib; 1152 | path = Example; 1153 | sourceTree = ""; 1154 | }; 1155 | /* End PBXVariantGroup section */ 1156 | 1157 | /* Begin XCBuildConfiguration section */ 1158 | 00E356F61AD99517003FC87E /* Debug */ = { 1159 | isa = XCBuildConfiguration; 1160 | buildSettings = { 1161 | BUNDLE_LOADER = "$(TEST_HOST)"; 1162 | GCC_PREPROCESSOR_DEFINITIONS = ( 1163 | "DEBUG=1", 1164 | "$(inherited)", 1165 | ); 1166 | HEADER_SEARCH_PATHS = ( 1167 | "$(inherited)", 1168 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1169 | ); 1170 | INFOPLIST_FILE = ExampleTests/Info.plist; 1171 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1172 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1173 | LIBRARY_SEARCH_PATHS = ( 1174 | "$(inherited)", 1175 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1176 | ); 1177 | OTHER_LDFLAGS = ( 1178 | "-ObjC", 1179 | "-lc++", 1180 | ); 1181 | PRODUCT_NAME = "$(TARGET_NAME)"; 1182 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example"; 1183 | }; 1184 | name = Debug; 1185 | }; 1186 | 00E356F71AD99517003FC87E /* Release */ = { 1187 | isa = XCBuildConfiguration; 1188 | buildSettings = { 1189 | BUNDLE_LOADER = "$(TEST_HOST)"; 1190 | COPY_PHASE_STRIP = NO; 1191 | HEADER_SEARCH_PATHS = ( 1192 | "$(inherited)", 1193 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1194 | ); 1195 | INFOPLIST_FILE = ExampleTests/Info.plist; 1196 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1197 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1198 | LIBRARY_SEARCH_PATHS = ( 1199 | "$(inherited)", 1200 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1201 | ); 1202 | OTHER_LDFLAGS = ( 1203 | "-ObjC", 1204 | "-lc++", 1205 | ); 1206 | PRODUCT_NAME = "$(TARGET_NAME)"; 1207 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example"; 1208 | }; 1209 | name = Release; 1210 | }; 1211 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1212 | isa = XCBuildConfiguration; 1213 | buildSettings = { 1214 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1215 | CURRENT_PROJECT_VERSION = 1; 1216 | DEAD_CODE_STRIPPING = NO; 1217 | DEVELOPMENT_TEAM = JM67298QHB; 1218 | HEADER_SEARCH_PATHS = ( 1219 | "$(inherited)", 1220 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1221 | ); 1222 | INFOPLIST_FILE = Example/Info.plist; 1223 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1224 | OTHER_LDFLAGS = ( 1225 | "$(inherited)", 1226 | "-ObjC", 1227 | "-lc++", 1228 | ); 1229 | PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.Example12222333; 1230 | PRODUCT_NAME = Example; 1231 | VERSIONING_SYSTEM = "apple-generic"; 1232 | }; 1233 | name = Debug; 1234 | }; 1235 | 13B07F951A680F5B00A75B9A /* Release */ = { 1236 | isa = XCBuildConfiguration; 1237 | buildSettings = { 1238 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1239 | CURRENT_PROJECT_VERSION = 1; 1240 | DEVELOPMENT_TEAM = JM67298QHB; 1241 | HEADER_SEARCH_PATHS = ( 1242 | "$(inherited)", 1243 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1244 | ); 1245 | INFOPLIST_FILE = Example/Info.plist; 1246 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1247 | OTHER_LDFLAGS = ( 1248 | "$(inherited)", 1249 | "-ObjC", 1250 | "-lc++", 1251 | ); 1252 | PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.Example12222333; 1253 | PRODUCT_NAME = Example; 1254 | VERSIONING_SYSTEM = "apple-generic"; 1255 | }; 1256 | name = Release; 1257 | }; 1258 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1259 | isa = XCBuildConfiguration; 1260 | buildSettings = { 1261 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1262 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1263 | CLANG_ANALYZER_NONNULL = YES; 1264 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1265 | CLANG_WARN_INFINITE_RECURSION = YES; 1266 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1267 | DEBUG_INFORMATION_FORMAT = dwarf; 1268 | ENABLE_TESTABILITY = YES; 1269 | GCC_NO_COMMON_BLOCKS = YES; 1270 | HEADER_SEARCH_PATHS = ( 1271 | "$(inherited)", 1272 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1273 | ); 1274 | INFOPLIST_FILE = "Example-tvOS/Info.plist"; 1275 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1276 | LIBRARY_SEARCH_PATHS = ( 1277 | "$(inherited)", 1278 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1279 | ); 1280 | OTHER_LDFLAGS = ( 1281 | "-ObjC", 1282 | "-lc++", 1283 | ); 1284 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS"; 1285 | PRODUCT_NAME = "$(TARGET_NAME)"; 1286 | SDKROOT = appletvos; 1287 | TARGETED_DEVICE_FAMILY = 3; 1288 | TVOS_DEPLOYMENT_TARGET = 9.2; 1289 | }; 1290 | name = Debug; 1291 | }; 1292 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1293 | isa = XCBuildConfiguration; 1294 | buildSettings = { 1295 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1296 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1297 | CLANG_ANALYZER_NONNULL = YES; 1298 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1299 | CLANG_WARN_INFINITE_RECURSION = YES; 1300 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1301 | COPY_PHASE_STRIP = NO; 1302 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1303 | GCC_NO_COMMON_BLOCKS = YES; 1304 | HEADER_SEARCH_PATHS = ( 1305 | "$(inherited)", 1306 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1307 | ); 1308 | INFOPLIST_FILE = "Example-tvOS/Info.plist"; 1309 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1310 | LIBRARY_SEARCH_PATHS = ( 1311 | "$(inherited)", 1312 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1313 | ); 1314 | OTHER_LDFLAGS = ( 1315 | "-ObjC", 1316 | "-lc++", 1317 | ); 1318 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS"; 1319 | PRODUCT_NAME = "$(TARGET_NAME)"; 1320 | SDKROOT = appletvos; 1321 | TARGETED_DEVICE_FAMILY = 3; 1322 | TVOS_DEPLOYMENT_TARGET = 9.2; 1323 | }; 1324 | name = Release; 1325 | }; 1326 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1327 | isa = XCBuildConfiguration; 1328 | buildSettings = { 1329 | BUNDLE_LOADER = "$(TEST_HOST)"; 1330 | CLANG_ANALYZER_NONNULL = YES; 1331 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1332 | CLANG_WARN_INFINITE_RECURSION = YES; 1333 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1334 | DEBUG_INFORMATION_FORMAT = dwarf; 1335 | ENABLE_TESTABILITY = YES; 1336 | GCC_NO_COMMON_BLOCKS = YES; 1337 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist"; 1338 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1339 | LIBRARY_SEARCH_PATHS = ( 1340 | "$(inherited)", 1341 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1342 | ); 1343 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests"; 1344 | PRODUCT_NAME = "$(TARGET_NAME)"; 1345 | SDKROOT = appletvos; 1346 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS"; 1347 | TVOS_DEPLOYMENT_TARGET = 10.1; 1348 | }; 1349 | name = Debug; 1350 | }; 1351 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1352 | isa = XCBuildConfiguration; 1353 | buildSettings = { 1354 | BUNDLE_LOADER = "$(TEST_HOST)"; 1355 | CLANG_ANALYZER_NONNULL = YES; 1356 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1357 | CLANG_WARN_INFINITE_RECURSION = YES; 1358 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1359 | COPY_PHASE_STRIP = NO; 1360 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1361 | GCC_NO_COMMON_BLOCKS = YES; 1362 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist"; 1363 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1364 | LIBRARY_SEARCH_PATHS = ( 1365 | "$(inherited)", 1366 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1367 | ); 1368 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests"; 1369 | PRODUCT_NAME = "$(TARGET_NAME)"; 1370 | SDKROOT = appletvos; 1371 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS"; 1372 | TVOS_DEPLOYMENT_TARGET = 10.1; 1373 | }; 1374 | name = Release; 1375 | }; 1376 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1377 | isa = XCBuildConfiguration; 1378 | buildSettings = { 1379 | ALWAYS_SEARCH_USER_PATHS = NO; 1380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1381 | CLANG_CXX_LIBRARY = "libc++"; 1382 | CLANG_ENABLE_MODULES = YES; 1383 | CLANG_ENABLE_OBJC_ARC = YES; 1384 | CLANG_WARN_BOOL_CONVERSION = YES; 1385 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1386 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1387 | CLANG_WARN_EMPTY_BODY = YES; 1388 | CLANG_WARN_ENUM_CONVERSION = YES; 1389 | CLANG_WARN_INT_CONVERSION = YES; 1390 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1391 | CLANG_WARN_UNREACHABLE_CODE = YES; 1392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1394 | COPY_PHASE_STRIP = NO; 1395 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1396 | GCC_C_LANGUAGE_STANDARD = gnu99; 1397 | GCC_DYNAMIC_NO_PIC = NO; 1398 | GCC_OPTIMIZATION_LEVEL = 0; 1399 | GCC_PREPROCESSOR_DEFINITIONS = ( 1400 | "DEBUG=1", 1401 | "$(inherited)", 1402 | ); 1403 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1404 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1405 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1406 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1407 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1408 | GCC_WARN_UNUSED_FUNCTION = YES; 1409 | GCC_WARN_UNUSED_VARIABLE = YES; 1410 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1411 | MTL_ENABLE_DEBUG_INFO = YES; 1412 | ONLY_ACTIVE_ARCH = YES; 1413 | SDKROOT = iphoneos; 1414 | }; 1415 | name = Debug; 1416 | }; 1417 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1418 | isa = XCBuildConfiguration; 1419 | buildSettings = { 1420 | ALWAYS_SEARCH_USER_PATHS = NO; 1421 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1422 | CLANG_CXX_LIBRARY = "libc++"; 1423 | CLANG_ENABLE_MODULES = YES; 1424 | CLANG_ENABLE_OBJC_ARC = YES; 1425 | CLANG_WARN_BOOL_CONVERSION = YES; 1426 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1427 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1428 | CLANG_WARN_EMPTY_BODY = YES; 1429 | CLANG_WARN_ENUM_CONVERSION = YES; 1430 | CLANG_WARN_INT_CONVERSION = YES; 1431 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1432 | CLANG_WARN_UNREACHABLE_CODE = YES; 1433 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1435 | COPY_PHASE_STRIP = YES; 1436 | ENABLE_NS_ASSERTIONS = NO; 1437 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1438 | GCC_C_LANGUAGE_STANDARD = gnu99; 1439 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1440 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1441 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1442 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1443 | GCC_WARN_UNUSED_FUNCTION = YES; 1444 | GCC_WARN_UNUSED_VARIABLE = YES; 1445 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1446 | MTL_ENABLE_DEBUG_INFO = NO; 1447 | SDKROOT = iphoneos; 1448 | VALIDATE_PRODUCT = YES; 1449 | }; 1450 | name = Release; 1451 | }; 1452 | /* End XCBuildConfiguration section */ 1453 | 1454 | /* Begin XCConfigurationList section */ 1455 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */ = { 1456 | isa = XCConfigurationList; 1457 | buildConfigurations = ( 1458 | 00E356F61AD99517003FC87E /* Debug */, 1459 | 00E356F71AD99517003FC87E /* Release */, 1460 | ); 1461 | defaultConfigurationIsVisible = 0; 1462 | defaultConfigurationName = Release; 1463 | }; 1464 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */ = { 1465 | isa = XCConfigurationList; 1466 | buildConfigurations = ( 1467 | 13B07F941A680F5B00A75B9A /* Debug */, 1468 | 13B07F951A680F5B00A75B9A /* Release */, 1469 | ); 1470 | defaultConfigurationIsVisible = 0; 1471 | defaultConfigurationName = Release; 1472 | }; 1473 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */ = { 1474 | isa = XCConfigurationList; 1475 | buildConfigurations = ( 1476 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1477 | 2D02E4981E0B4A5E006451C7 /* Release */, 1478 | ); 1479 | defaultConfigurationIsVisible = 0; 1480 | defaultConfigurationName = Release; 1481 | }; 1482 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */ = { 1483 | isa = XCConfigurationList; 1484 | buildConfigurations = ( 1485 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1486 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1487 | ); 1488 | defaultConfigurationIsVisible = 0; 1489 | defaultConfigurationName = Release; 1490 | }; 1491 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */ = { 1492 | isa = XCConfigurationList; 1493 | buildConfigurations = ( 1494 | 83CBBA201A601CBA00E9B192 /* Debug */, 1495 | 83CBBA211A601CBA00E9B192 /* Release */, 1496 | ); 1497 | defaultConfigurationIsVisible = 0; 1498 | defaultConfigurationName = Release; 1499 | }; 1500 | /* End XCConfigurationList section */ 1501 | }; 1502 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1503 | } 1504 | -------------------------------------------------------------------------------- /Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /Example/ios/Example/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Example/ios/Example/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"Example" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Example/ios/Example/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /Example/ios/Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UIAppFonts 41 | 42 | Entypo.ttf 43 | EvilIcons.ttf 44 | Feather.ttf 45 | FontAwesome.ttf 46 | Foundation.ttf 47 | Ionicons.ttf 48 | MaterialCommunityIcons.ttf 49 | MaterialIcons.ttf 50 | Octicons.ttf 51 | SimpleLineIcons.ttf 52 | Zocial.ttf 53 | 54 | UILaunchStoryboardName 55 | LaunchScreen 56 | UIRequiredDeviceCapabilities 57 | 58 | armv7 59 | 60 | UISupportedInterfaceOrientations 61 | 62 | UIInterfaceOrientationPortrait 63 | UIInterfaceOrientationLandscapeLeft 64 | UIInterfaceOrientationLandscapeRight 65 | 66 | UIViewControllerBasedStatusBarAppearance 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /Example/ios/Example/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Example/ios/ExampleTests/ExampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface ExampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation ExampleTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /Example/ios/ExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/Example/notification.png -------------------------------------------------------------------------------- /Example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Example", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "axios": "^0.18.0", 11 | "body-parser": "^1.18.3", 12 | "express": "^4.16.3", 13 | "prop-types": "^15.6.0", 14 | "react": "16.3.1", 15 | "react-native": "0.55.1", 16 | "react-native-view": "^1.1.0" 17 | }, 18 | "devDependencies": { 19 | "babel-jest": "22.4.0", 20 | "babel-preset-react-native": "4.0.0", 21 | "jest": "22.4.0", 22 | "react-test-renderer": "16.3.1" 23 | }, 24 | "jest": { 25 | "preset": "react-native" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Example/server/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const app = express() 3 | const bodyParser = require('body-parser') 4 | 5 | app.use(bodyParser.json()) 6 | 7 | app.get('/notifications/:type', (req, res) => { 8 | setTimeout(() => { 9 | const template = req.params.type === "preview" ? getPreviewNotification() : getFullNotification() 10 | res.json(template) 11 | }, 1000 * Math.random()) 12 | }) 13 | 14 | 15 | getPreviewNotification = () => { 16 | return { 17 | type: "View", 18 | props: { mdp: true, style: { height: 140, borderWidth: 1, marginTop: 50, backgroundColor: "#F3E5F5" } }, 19 | children: [ 20 | { 21 | type: "View", 22 | props: { flex: true, row: true }, 23 | children: [ 24 | { 25 | type: "View", 26 | props: { style: { flex: 0.5 } }, 27 | children: [ 28 | { 29 | type: "Text", 30 | children: "${text::notification.userName}", 31 | }, 32 | ] 33 | }, 34 | { 35 | type: "View", 36 | props: { vcenter: true, style: { flex: 1 } }, 37 | children: [ 38 | { 39 | type: "Text", 40 | children: "${text::notification.title}", 41 | }, 42 | ] 43 | }, 44 | ] 45 | }, 46 | ] 47 | } 48 | } 49 | 50 | getFullNotification = () => { 51 | return { 52 | type: "View", 53 | props: { mdp: true, style: { height: 140, borderWidth: 1, marginTop: 50, backgroundColor: "#F3E5F5" } }, 54 | children: [ 55 | { 56 | type: "View", 57 | props: { flex: true, row: true }, 58 | children: [ 59 | { 60 | type: "View", 61 | props: { style: { flex: 0.5 } }, 62 | children: [ 63 | { 64 | type: "Text", 65 | children: "${text::notification.userName}", 66 | }, 67 | { 68 | type: "Image", 69 | props: { 70 | source: { uri: "prop::notification.icon" }, 71 | style: { width: 50, height: 50 }, 72 | }, 73 | }, 74 | ] 75 | }, 76 | { 77 | type: "View", 78 | props: { vcenter: true, style: { flex: 1 } }, 79 | children: [ 80 | { 81 | type: "Text", 82 | children: "${text::notification.title}", 83 | }, 84 | ] 85 | }, 86 | ] 87 | }, 88 | { 89 | type: "Button", 90 | props: { 91 | onPress: "function::notification.onPress(${text::item.info.buttonName})", 92 | style: "prop::notification.buttonStyle" 93 | }, 94 | children: [ 95 | { 96 | type: "Text", 97 | props: { style: { color: "white" } }, 98 | children: "Open ${text::notification.userName}'s profile", 99 | } 100 | ] 101 | } 102 | ] 103 | } 104 | } 105 | 106 | app.listen(3000, () => console.log('Example server listening on port 3000!')) -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Soft Zen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | My cool logo 3 | 4 | # Server Driven Rendering (SDR) for React Native 5 | 6 | # Installation 7 | 8 | ```javascript 9 | $ npm install react-native-sdr --save 10 | ``` 11 | 12 | or 13 | 14 | ```javascript 15 | $ yarn add react-native-sdr 16 | ``` 17 | 18 | # Motivation 19 | 20 | Server Driven Rendering (SDR) is the process in which an app is told how to render a component remotely. 21 | The difference between SDR and Server Side Rendering (SSR) is that in the latter the server does the actual rendering. 22 | Imagine yourself building a social network app and you have to implement elements for the timeline. 23 | Normally, you would have multiple types of data (news, photo shares, announcements, etc.) and corresponding components for them. However, as time goes you will find the need to push new updates for every new type you add (or even small UI tweaks in certain components). SDR allows you to specify the template on your server and pass it on to your app in order to handle the rendering. 24 | 25 | # Usage 26 | 27 | ## Autosync with server 28 | 29 | On your Client: 30 | 31 | ```jsx 32 | import { Provider, SDRClient } from 'react-native-sdr'; 33 | 34 | const ApiClient = { 35 | method: "get", 36 | baseUrl: "http://localhost:3000", 37 | sdrTypes: { 38 | "Text": Text, 39 | "View": View, 40 | "Image": Image, 41 | "Button": TouchableOpacity, 42 | } 43 | } 44 | 45 | class App extends React.Component { 46 | render() { 47 | return ( 48 | 49 | 50 | 51 | ) 52 | } 53 | } 54 | 55 | class ScreenOne extends React.Component { 56 | render() { 57 | return ( 58 | 59 | 63 | 64 | ) 65 | } 66 | } 67 | 68 | ``` 69 | 70 | and your (example Express) Server: 71 | 72 | ```javascript 73 | 74 | app.get('/sdr/notifications/:type', (req, res) => { 75 | const template = req.params.type === "preview" ? getPreviewTemplate() : getFullTemplate() 76 | res.json(template) 77 | }) 78 | 79 | ``` 80 | 81 | ## Manual lifecycle handling 82 | 83 | ```jsx 84 | import SDRContainer from 'react-native-sdr'; 85 | 86 | getSDRTemplate() { 87 | ... 88 | } 89 | 90 | getSDRTypes() { 91 | ... 92 | } 93 | 94 | render() { 95 | return ( 96 | 101 | ) 102 | } 103 | ``` 104 | 105 | ## Templates and types 106 | 107 | The component requires **types** and a **template**. 108 | Types are all elements that the component has access to (Image, View, etc.). If you want the component to be able to use them during the assembly, you must specify them beforehand. An example types object looks like this: 109 | 110 | ```jsx 111 | { 112 | "Text": Text, 113 | "View": View, 114 | "Image": Image, 115 | "Button": TouchableOpacity, 116 | } 117 | ``` 118 | 119 | The template is what you pass from the server to the component. 120 | It's used for rendering the component. It must look like this: 121 | 122 | ``` 123 | { 124 | type: [Mandatory] Component type from predefined types, 125 | props: [Optional] Props to pass to the component, 126 | children: [Optional] Array of child objects or a string if text element 127 | } 128 | ``` 129 | 130 | **Template variables** are used to access props passed to the component. Example: 131 | 132 | ```jsx 133 | // some usual props to your component 134 | { 135 | notification: { 136 | meta: { 137 | title: "Liked your comment", 138 | name: "John Doe" 139 | } 140 | } 141 | } 142 | 143 | // template from the server 144 | { 145 | type: "Text", 146 | children: "Name: ${text::notification.meta.name}, Action: ${text::notification.meta.title}" 147 | } 148 | ``` 149 | 150 | will render 151 | 152 | ```jsx 153 | Name: John Doe, Action: Liked your comment 154 | ``` 155 | 156 | There are multiple types of variables: 157 | 158 | | variable | description | 159 | | ------ | ------ | 160 | |prop::some.path.to.object|Retrieves the object from **this.props**| 161 | |function::some.path.to.function|Retrieves the function from **this.props**| 162 | |${text::some.path.to.text}|Retrieves the text from **this.props**| 163 | 164 | *Refer to the Example for more* 165 | 166 | # Available props: 167 | 168 | ## Provider 169 | 170 | | prop | type | description |default| 171 | | ------ | ------ | ------ | ------ | 172 | |client|object|The client used for sync with the server|| 173 | 174 | ## SDRClient 175 | 176 | | prop | type | description |default| 177 | | ------ | ------ | ------ | ------ | 178 | |url|string|The endpoint which is expected to return a **template**|| 179 | |renderLoading|func|Renders a loading component during sync|| 180 | |renderError|func|Renders an error component if an error occurs during sync|| 181 | 182 | ## SDRContainer 183 | 184 | | prop | type | description |default| 185 | | ------ | ------ | ------ | ------ | 186 | |sdrTemplate|object|The template to render|| 187 | |sdrTypes|object|Types to choose from when rendering|{ "View": View }| 188 | |shouldComponentUpdate|function|shouldComponentUpdate|() => false| 189 | 190 | 191 | License 192 | ---- 193 | 194 | MIT 195 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { View, ActivityIndicator } from 'react-native' 3 | import PropTypes from 'prop-types' 4 | import axios from 'axios' 5 | 6 | export const PROP_PREFIX = "prop::" 7 | export const FUNCTION_PREFIX = "function::" 8 | export const TEXT_PREFIX = "text::" 9 | 10 | const ApiContext = React.createContext({ 11 | method: "get", 12 | baseUrl: "", 13 | headers: {}, 14 | sdrTypes: {} 15 | }); 16 | 17 | export class Provider extends React.Component { 18 | 19 | render() { 20 | return ( 21 | 22 | {this.props.children} 23 | 24 | ) 25 | } 26 | } 27 | 28 | export class SDRClient extends React.Component { 29 | 30 | render() { 31 | return ( 32 | 33 | {client => } 34 | 35 | ) 36 | } 37 | } 38 | 39 | class SDRComponent extends React.Component { 40 | 41 | state = { 42 | loading: true, 43 | error: false, 44 | sdrTemplate: null, 45 | } 46 | 47 | componentWillMount() { 48 | this.fetchApiData(this.props.client) 49 | } 50 | 51 | fetchApiData = (client) => { 52 | console.log(client); 53 | return axios({ 54 | method: client.method, 55 | url: this.appendEndpoint(client.baseUrl, this.props.url), 56 | headers: client.headers, 57 | }) 58 | .then(res => this.setState({ sdrTemplate: res.data, loading: false })) 59 | .catch(() => { 60 | this.setState({ loading: false, error: true }) 61 | }) 62 | } 63 | 64 | appendEndpoint(baseUrl, endpoint) { 65 | if (!endpoint) { 66 | return baseUrl 67 | } 68 | var url = baseUrl 69 | if (!url.endsWith("/")) { 70 | url += "/" 71 | } 72 | var endp = endpoint 73 | if (endp.startsWith("/")) { 74 | endp = endp.substr(1, endp.length) 75 | } 76 | url += endp 77 | return url 78 | } 79 | 80 | render() { 81 | const { client } = this.props 82 | const { sdrTemplate, loading, error } = this.state 83 | if (loading) { 84 | return this.props.renderLoading() 85 | } 86 | if (error) { 87 | return this.props.renderError() 88 | } 89 | return 93 | } 94 | } 95 | 96 | 97 | export default class SDRContainer extends React.Component { 98 | 99 | shouldComponentUpdate = this.props.shouldComponentUpdate 100 | 101 | buildItem() { 102 | const { sdrTemplate } = this.props 103 | if (!sdrTemplate) { 104 | return 105 | } 106 | return this.buildChildren(sdrTemplate) 107 | } 108 | 109 | buildChildren(node) { 110 | const { sdrTypes } = this.props 111 | const props = this.parseNodeProps(node.props) || {} 112 | props.key = props.key || ("" + Math.random()) 113 | if (!Array.isArray(node.children) || !node.children.length) { 114 | return React.createElement(sdrTypes[node.type], props, this.replaceText(node.children)) 115 | } 116 | const children = [] 117 | for (var i = 0; i < node.children.length; i++) { 118 | children.push(this.buildChildren(node.children[i])) 119 | } 120 | return React.createElement(sdrTypes[node.type], props, children) 121 | } 122 | 123 | parseNodeProps(propsToParse) { 124 | if (!propsToParse) { 125 | return null 126 | } 127 | var props = { ...propsToParse } 128 | for (const key in props) { 129 | var prop = props[key]; 130 | if (typeof prop === "string") { 131 | if (prop.startsWith(PROP_PREFIX)) { 132 | props[key] = this.replaceProp(prop) 133 | } else if (prop.startsWith(FUNCTION_PREFIX)) { 134 | props[key] = this.replaceFunction(prop) 135 | } else { 136 | props[key] = this.replaceText(prop) 137 | } 138 | } else if (typeof prop === "object") { 139 | props[key] = this.parseNodeProps(prop) 140 | } 141 | } 142 | return props 143 | } 144 | 145 | replaceProp(prop) { 146 | if (typeof prop !== "string") { 147 | return prop 148 | } 149 | const parts = prop.replace(PROP_PREFIX, "").split(".") 150 | var element = this.props 151 | for (let j = 0; j < parts.length && element; j++) { 152 | element = element[parts[j]] 153 | } 154 | return element 155 | } 156 | 157 | replaceFunction(prop) { 158 | if (typeof prop !== "string") { 159 | return prop 160 | } 161 | const segments = prop.replace(FUNCTION_PREFIX, "").split("(") 162 | if (segments.length === 0) { 163 | return prop 164 | } 165 | const parts = segments[0].split(".") 166 | const argsSegment = segments[1] 167 | var func = this.props 168 | for (let i = 0; i < parts.length && func; i++) { 169 | func = func[parts[i]] 170 | } 171 | if (typeof func !== "function") { 172 | return () => { } 173 | } 174 | if (!argsSegment) { 175 | return func 176 | } 177 | const args = argsSegment.replace(")", "").split(/,\s*/g) 178 | for (let i = 0; i < args.length; i++) { 179 | if (args[i].includes(PROP_PREFIX)) { 180 | args[i] = this.replaceProp(args[i]) 181 | } else if (args[i].includes(TEXT_PREFIX)) { 182 | args[i] = this.replaceText(args[i]) 183 | } 184 | } 185 | return () => func(...args) 186 | } 187 | 188 | replaceText(text) { 189 | if (typeof text !== "string") { 190 | return text 191 | } 192 | const propsRegex = /(\${text::[^}]*})/g 193 | const matches = propsRegex.exec(text) 194 | var replaced = text 195 | if (!matches) { 196 | return text 197 | } 198 | for (let i = 0; i < matches.length; i++) { 199 | const parts = matches[i].replace("${" + TEXT_PREFIX, "").replace("}", "").split(".") 200 | var element = this.props 201 | for (let j = 0; j < parts.length && element; j++) { 202 | element = element[parts[j]] 203 | } 204 | const shouldReplace = !!{ "string": true, "number": true, "boolean": true }[typeof element] 205 | replaced = replaced.replace(matches[i], shouldReplace ? element : "") 206 | } 207 | return replaced 208 | } 209 | 210 | render() { 211 | return this.buildItem() 212 | } 213 | } 214 | 215 | Provider.propTypes = { 216 | client: PropTypes.shape({ 217 | method: PropTypes.oneOf(["get", "put", "post"]).isRequired, 218 | baseUrl: PropTypes.string.isRequired, 219 | headers: PropTypes.object, 220 | sdrTypes: PropTypes.object, 221 | }).isRequired, 222 | } 223 | 224 | Provider.defaultProps = { 225 | client: PropTypes.shape({ 226 | method: "get", 227 | baseUrl: "", 228 | headers: {}, 229 | }).isRequired, 230 | } 231 | 232 | 233 | SDRClient.propTypes = { 234 | url: PropTypes.string, 235 | renderLoading: PropTypes.func, 236 | renderError: PropTypes.func, 237 | } 238 | 239 | SDRClient.defaultProps = { 240 | url: "", 241 | renderLoading: () => ( 242 | 243 | 244 | 245 | ), 246 | renderError: () => , 247 | } 248 | 249 | 250 | SDRContainer.propTypes = { 251 | sdrTemplate: PropTypes.shape({ 252 | type: PropTypes.string.isRequired, 253 | props: PropTypes.object, 254 | children: PropTypes.oneOfType([ 255 | PropTypes.array, 256 | PropTypes.string, 257 | PropTypes.object, 258 | ]), 259 | }).isRequired, 260 | sdrTypes: PropTypes.object, 261 | shouldComponentUpdate: PropTypes.func, 262 | } 263 | 264 | SDRContainer.defaultProps = { 265 | shouldComponentUpdate: () => false, 266 | sdrTypes: { "View": View } 267 | } -------------------------------------------------------------------------------- /media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/i6mi6/react-native-sdr/4e6f8565ac99d4a1bd2cd2290800deff267240ad/media/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-sdr", 3 | "version": "1.1.1", 4 | "description": "Server Driven Rendering (SDR) component for React Native", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/i6mi6/react-native-sdr.git" 12 | }, 13 | "keywords": [ 14 | "ios", 15 | "android", 16 | "react-native", 17 | "sdr", 18 | "server", 19 | "driven", 20 | "rendering" 21 | ], 22 | "author": "Alexander Vitanov", 23 | "license": "MIT", 24 | "bugs": { 25 | "url": "https://github.com/i6mi6/react-native-sdr/issues" 26 | }, 27 | "homepage": "https://github.com/i6mi6/react-native-sdr#readme", 28 | "devDependencies": { 29 | "babel-jest": "22.4.0", 30 | "babel-preset-react-native": "4.0.0", 31 | "jest": "22.4.0", 32 | "react-test-renderer": "16.2.0", 33 | "react": "16.3.1", 34 | "react-native": "0.55.1" 35 | }, 36 | "dependencies": { 37 | "axios": "^0.18.0", 38 | "prop-types": "^15.6.0" 39 | } 40 | } 41 | --------------------------------------------------------------------------------