├── .flowconfig ├── .gitignore ├── ArtExample.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ └── ArtExample.xcscheme ├── ArtExampleTests ├── ArtExampleTests.m └── Info.plist ├── README.md ├── demo.png ├── iOS ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ └── LaunchScreen.xib ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── main.jsbundle └── main.m ├── index.ios.js └── package.json /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*.web.js 5 | .*/*.android.js 6 | 7 | # Some modules have their own node_modules with overlap 8 | .*/node_modules/node-haste/.* 9 | 10 | # Ignore react-tools where there are overlaps, but don't ignore anything that 11 | # react-native relies on 12 | .*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js 13 | .*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js 14 | .*/node_modules/react-tools/src/browser/ui/React.js 15 | .*/node_modules/react-tools/src/core/ReactInstanceHandles.js 16 | .*/node_modules/react-tools/src/event/EventPropagators.js 17 | .*/node_modules/react-native/Examples/**/* 18 | 19 | # Ignore jest 20 | .*/react-native/node_modules/jest-cli/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | 27 | [options] 28 | module.system=haste 29 | -------------------------------------------------------------------------------- /.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 | # node.js 26 | # 27 | node_modules/ 28 | npm-debug.log 29 | -------------------------------------------------------------------------------- /ArtExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */; }; 11 | 008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; }; 12 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 13 | 00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */; }; 14 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 15 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 16 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 17 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 18 | 00E356F31AD99517003FC87E /* ArtExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ArtExampleTests.m */; }; 19 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 26 | BB96E97F1AFD383600852DB9 /* libART.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BB96E9741AFD312B00852DB9 /* libART.a */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 00481BE51AC0C7FA00671115 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */; 33 | proxyType = 2; 34 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 35 | remoteInfo = RCTWebSocketDebugger; 36 | }; 37 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 40 | proxyType = 2; 41 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 42 | remoteInfo = RCTActionSheet; 43 | }; 44 | 00C302B31ABCB8E700DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 49 | remoteInfo = RCTAdSupport; 50 | }; 51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 56 | remoteInfo = RCTGeolocation; 57 | }; 58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 63 | remoteInfo = RCTImage; 64 | }; 65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 70 | remoteInfo = RCTNetwork; 71 | }; 72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 77 | remoteInfo = RCTVibration; 78 | }; 79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 82 | proxyType = 1; 83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 84 | remoteInfo = ArtExample; 85 | }; 86 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 91 | remoteInfo = React; 92 | }; 93 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 98 | remoteInfo = RCTLinking; 99 | }; 100 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 105 | remoteInfo = RCTText; 106 | }; 107 | BB96E9731AFD312B00852DB9 /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = BB96E96F1AFD312B00852DB9 /* ART.xcodeproj */; 110 | proxyType = 2; 111 | remoteGlobalIDString = 0CF68AC11AF0540F00FF9E5C; 112 | remoteInfo = ART; 113 | }; 114 | /* End PBXContainerItemProxy section */ 115 | 116 | /* Begin PBXFileReference section */ 117 | 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocketDebugger.xcodeproj; path = "node_modules/react-native/Libraries/RCTWebSocketDebugger/RCTWebSocketDebugger.xcodeproj"; sourceTree = ""; }; 118 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = main.jsbundle; path = iOS/main.jsbundle; sourceTree = ""; }; 119 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 120 | 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAdSupport.xcodeproj; path = "node_modules/react-native/Libraries/AdSupport/RCTAdSupport.xcodeproj"; sourceTree = ""; }; 121 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 122 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 123 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 124 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 125 | 00E356EE1AD99517003FC87E /* ArtExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ArtExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 126 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 127 | 00E356F21AD99517003FC87E /* ArtExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ArtExampleTests.m; sourceTree = ""; }; 128 | 13B07F961A680F5B00A75B9A /* ArtExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ArtExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 129 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = iOS/AppDelegate.h; sourceTree = ""; }; 130 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = iOS/AppDelegate.m; sourceTree = ""; }; 131 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 132 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = iOS/Images.xcassets; sourceTree = ""; }; 133 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = iOS/Info.plist; sourceTree = ""; }; 134 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iOS/main.m; sourceTree = ""; }; 135 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 136 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 137 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 138 | BB96E96F1AFD312B00852DB9 /* ART.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ART.xcodeproj; path = "node_modules/react-native/Libraries/ART/ART.xcodeproj"; sourceTree = ""; }; 139 | /* End PBXFileReference section */ 140 | 141 | /* Begin PBXFrameworksBuildPhase section */ 142 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 143 | isa = PBXFrameworksBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | ); 147 | runOnlyForDeploymentPostprocessing = 0; 148 | }; 149 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 150 | isa = PBXFrameworksBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | BB96E97F1AFD383600852DB9 /* libART.a in Frameworks */, 154 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 155 | 00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */, 156 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 157 | 00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */, 158 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 159 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 160 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 161 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 162 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 163 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 164 | ); 165 | runOnlyForDeploymentPostprocessing = 0; 166 | }; 167 | /* End PBXFrameworksBuildPhase section */ 168 | 169 | /* Begin PBXGroup section */ 170 | 00481BDC1AC0C7FA00671115 /* Products */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */, 174 | ); 175 | name = Products; 176 | sourceTree = ""; 177 | }; 178 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 182 | ); 183 | name = Products; 184 | sourceTree = ""; 185 | }; 186 | 00C302B01ABCB8E700DB3ED1 /* Products */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */, 190 | ); 191 | name = Products; 192 | sourceTree = ""; 193 | }; 194 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 198 | ); 199 | name = Products; 200 | sourceTree = ""; 201 | }; 202 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 206 | ); 207 | name = Products; 208 | sourceTree = ""; 209 | }; 210 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 214 | ); 215 | name = Products; 216 | sourceTree = ""; 217 | }; 218 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 222 | ); 223 | name = Products; 224 | sourceTree = ""; 225 | }; 226 | 00E356EF1AD99517003FC87E /* ArtExampleTests */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | 00E356F21AD99517003FC87E /* ArtExampleTests.m */, 230 | 00E356F01AD99517003FC87E /* Supporting Files */, 231 | ); 232 | path = ArtExampleTests; 233 | sourceTree = ""; 234 | }; 235 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 236 | isa = PBXGroup; 237 | children = ( 238 | 00E356F11AD99517003FC87E /* Info.plist */, 239 | ); 240 | name = "Supporting Files"; 241 | sourceTree = ""; 242 | }; 243 | 13B07FAE1A68108700A75B9A /* ArtExample */ = { 244 | isa = PBXGroup; 245 | children = ( 246 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 247 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 248 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 249 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 250 | 13B07FB61A68108700A75B9A /* Info.plist */, 251 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 252 | 13B07FB71A68108700A75B9A /* main.m */, 253 | ); 254 | name = ArtExample; 255 | sourceTree = ""; 256 | }; 257 | 146834001AC3E56700842450 /* Products */ = { 258 | isa = PBXGroup; 259 | children = ( 260 | 146834041AC3E56700842450 /* libReact.a */, 261 | ); 262 | name = Products; 263 | sourceTree = ""; 264 | }; 265 | 78C398B11ACF4ADC00677621 /* Products */ = { 266 | isa = PBXGroup; 267 | children = ( 268 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 269 | ); 270 | name = Products; 271 | sourceTree = ""; 272 | }; 273 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 274 | isa = PBXGroup; 275 | children = ( 276 | BB96E96F1AFD312B00852DB9 /* ART.xcodeproj */, 277 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 278 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 279 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 280 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 281 | 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */, 282 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 283 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 284 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 285 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 286 | 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */, 287 | ); 288 | name = Libraries; 289 | sourceTree = ""; 290 | }; 291 | 832341B11AAA6A8300B99B32 /* Products */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 295 | ); 296 | name = Products; 297 | sourceTree = ""; 298 | }; 299 | 83CBB9F61A601CBA00E9B192 = { 300 | isa = PBXGroup; 301 | children = ( 302 | 13B07FAE1A68108700A75B9A /* ArtExample */, 303 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 304 | 00E356EF1AD99517003FC87E /* ArtExampleTests */, 305 | 83CBBA001A601CBA00E9B192 /* Products */, 306 | ); 307 | indentWidth = 2; 308 | sourceTree = ""; 309 | tabWidth = 2; 310 | }; 311 | 83CBBA001A601CBA00E9B192 /* Products */ = { 312 | isa = PBXGroup; 313 | children = ( 314 | 13B07F961A680F5B00A75B9A /* ArtExample.app */, 315 | 00E356EE1AD99517003FC87E /* ArtExampleTests.xctest */, 316 | ); 317 | name = Products; 318 | sourceTree = ""; 319 | }; 320 | BB96E9701AFD312B00852DB9 /* Products */ = { 321 | isa = PBXGroup; 322 | children = ( 323 | BB96E9741AFD312B00852DB9 /* libART.a */, 324 | ); 325 | name = Products; 326 | sourceTree = ""; 327 | }; 328 | /* End PBXGroup section */ 329 | 330 | /* Begin PBXNativeTarget section */ 331 | 00E356ED1AD99517003FC87E /* ArtExampleTests */ = { 332 | isa = PBXNativeTarget; 333 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ArtExampleTests" */; 334 | buildPhases = ( 335 | 00E356EA1AD99517003FC87E /* Sources */, 336 | 00E356EB1AD99517003FC87E /* Frameworks */, 337 | 00E356EC1AD99517003FC87E /* Resources */, 338 | ); 339 | buildRules = ( 340 | ); 341 | dependencies = ( 342 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 343 | ); 344 | name = ArtExampleTests; 345 | productName = ArtExampleTests; 346 | productReference = 00E356EE1AD99517003FC87E /* ArtExampleTests.xctest */; 347 | productType = "com.apple.product-type.bundle.unit-test"; 348 | }; 349 | 13B07F861A680F5B00A75B9A /* ArtExample */ = { 350 | isa = PBXNativeTarget; 351 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ArtExample" */; 352 | buildPhases = ( 353 | 13B07F871A680F5B00A75B9A /* Sources */, 354 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 355 | 13B07F8E1A680F5B00A75B9A /* Resources */, 356 | ); 357 | buildRules = ( 358 | ); 359 | dependencies = ( 360 | ); 361 | name = ArtExample; 362 | productName = "Hello World"; 363 | productReference = 13B07F961A680F5B00A75B9A /* ArtExample.app */; 364 | productType = "com.apple.product-type.application"; 365 | }; 366 | /* End PBXNativeTarget section */ 367 | 368 | /* Begin PBXProject section */ 369 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 370 | isa = PBXProject; 371 | attributes = { 372 | LastUpgradeCheck = 0610; 373 | ORGANIZATIONNAME = Facebook; 374 | TargetAttributes = { 375 | 00E356ED1AD99517003FC87E = { 376 | CreatedOnToolsVersion = 6.2; 377 | TestTargetID = 13B07F861A680F5B00A75B9A; 378 | }; 379 | }; 380 | }; 381 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ArtExample" */; 382 | compatibilityVersion = "Xcode 3.2"; 383 | developmentRegion = English; 384 | hasScannedForEncodings = 0; 385 | knownRegions = ( 386 | en, 387 | Base, 388 | ); 389 | mainGroup = 83CBB9F61A601CBA00E9B192; 390 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 391 | projectDirPath = ""; 392 | projectReferences = ( 393 | { 394 | ProductGroup = BB96E9701AFD312B00852DB9 /* Products */; 395 | ProjectRef = BB96E96F1AFD312B00852DB9 /* ART.xcodeproj */; 396 | }, 397 | { 398 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 399 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 400 | }, 401 | { 402 | ProductGroup = 00C302B01ABCB8E700DB3ED1 /* Products */; 403 | ProjectRef = 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */; 404 | }, 405 | { 406 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 407 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 408 | }, 409 | { 410 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 411 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 412 | }, 413 | { 414 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 415 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 416 | }, 417 | { 418 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 419 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 420 | }, 421 | { 422 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 423 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 424 | }, 425 | { 426 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 427 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 428 | }, 429 | { 430 | ProductGroup = 00481BDC1AC0C7FA00671115 /* Products */; 431 | ProjectRef = 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */; 432 | }, 433 | { 434 | ProductGroup = 146834001AC3E56700842450 /* Products */; 435 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 436 | }, 437 | ); 438 | projectRoot = ""; 439 | targets = ( 440 | 13B07F861A680F5B00A75B9A /* ArtExample */, 441 | 00E356ED1AD99517003FC87E /* ArtExampleTests */, 442 | ); 443 | }; 444 | /* End PBXProject section */ 445 | 446 | /* Begin PBXReferenceProxy section */ 447 | 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */ = { 448 | isa = PBXReferenceProxy; 449 | fileType = archive.ar; 450 | path = libRCTWebSocketDebugger.a; 451 | remoteRef = 00481BE51AC0C7FA00671115 /* PBXContainerItemProxy */; 452 | sourceTree = BUILT_PRODUCTS_DIR; 453 | }; 454 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 455 | isa = PBXReferenceProxy; 456 | fileType = archive.ar; 457 | path = libRCTActionSheet.a; 458 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 459 | sourceTree = BUILT_PRODUCTS_DIR; 460 | }; 461 | 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */ = { 462 | isa = PBXReferenceProxy; 463 | fileType = archive.ar; 464 | path = libRCTAdSupport.a; 465 | remoteRef = 00C302B31ABCB8E700DB3ED1 /* PBXContainerItemProxy */; 466 | sourceTree = BUILT_PRODUCTS_DIR; 467 | }; 468 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 469 | isa = PBXReferenceProxy; 470 | fileType = archive.ar; 471 | path = libRCTGeolocation.a; 472 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 473 | sourceTree = BUILT_PRODUCTS_DIR; 474 | }; 475 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 476 | isa = PBXReferenceProxy; 477 | fileType = archive.ar; 478 | path = libRCTImage.a; 479 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 480 | sourceTree = BUILT_PRODUCTS_DIR; 481 | }; 482 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 483 | isa = PBXReferenceProxy; 484 | fileType = archive.ar; 485 | path = libRCTNetwork.a; 486 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 487 | sourceTree = BUILT_PRODUCTS_DIR; 488 | }; 489 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 490 | isa = PBXReferenceProxy; 491 | fileType = archive.ar; 492 | path = libRCTVibration.a; 493 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 494 | sourceTree = BUILT_PRODUCTS_DIR; 495 | }; 496 | 146834041AC3E56700842450 /* libReact.a */ = { 497 | isa = PBXReferenceProxy; 498 | fileType = archive.ar; 499 | path = libReact.a; 500 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 501 | sourceTree = BUILT_PRODUCTS_DIR; 502 | }; 503 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 504 | isa = PBXReferenceProxy; 505 | fileType = archive.ar; 506 | path = libRCTLinking.a; 507 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 508 | sourceTree = BUILT_PRODUCTS_DIR; 509 | }; 510 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 511 | isa = PBXReferenceProxy; 512 | fileType = archive.ar; 513 | path = libRCTText.a; 514 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 515 | sourceTree = BUILT_PRODUCTS_DIR; 516 | }; 517 | BB96E9741AFD312B00852DB9 /* libART.a */ = { 518 | isa = PBXReferenceProxy; 519 | fileType = archive.ar; 520 | path = libART.a; 521 | remoteRef = BB96E9731AFD312B00852DB9 /* PBXContainerItemProxy */; 522 | sourceTree = BUILT_PRODUCTS_DIR; 523 | }; 524 | /* End PBXReferenceProxy section */ 525 | 526 | /* Begin PBXResourcesBuildPhase section */ 527 | 00E356EC1AD99517003FC87E /* Resources */ = { 528 | isa = PBXResourcesBuildPhase; 529 | buildActionMask = 2147483647; 530 | files = ( 531 | ); 532 | runOnlyForDeploymentPostprocessing = 0; 533 | }; 534 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 535 | isa = PBXResourcesBuildPhase; 536 | buildActionMask = 2147483647; 537 | files = ( 538 | 008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */, 539 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 540 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 541 | ); 542 | runOnlyForDeploymentPostprocessing = 0; 543 | }; 544 | /* End PBXResourcesBuildPhase section */ 545 | 546 | /* Begin PBXSourcesBuildPhase section */ 547 | 00E356EA1AD99517003FC87E /* Sources */ = { 548 | isa = PBXSourcesBuildPhase; 549 | buildActionMask = 2147483647; 550 | files = ( 551 | 00E356F31AD99517003FC87E /* ArtExampleTests.m in Sources */, 552 | ); 553 | runOnlyForDeploymentPostprocessing = 0; 554 | }; 555 | 13B07F871A680F5B00A75B9A /* Sources */ = { 556 | isa = PBXSourcesBuildPhase; 557 | buildActionMask = 2147483647; 558 | files = ( 559 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 560 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 561 | ); 562 | runOnlyForDeploymentPostprocessing = 0; 563 | }; 564 | /* End PBXSourcesBuildPhase section */ 565 | 566 | /* Begin PBXTargetDependency section */ 567 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 568 | isa = PBXTargetDependency; 569 | target = 13B07F861A680F5B00A75B9A /* ArtExample */; 570 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 571 | }; 572 | /* End PBXTargetDependency section */ 573 | 574 | /* Begin PBXVariantGroup section */ 575 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 576 | isa = PBXVariantGroup; 577 | children = ( 578 | 13B07FB21A68108700A75B9A /* Base */, 579 | ); 580 | name = LaunchScreen.xib; 581 | path = iOS; 582 | sourceTree = ""; 583 | }; 584 | /* End PBXVariantGroup section */ 585 | 586 | /* Begin XCBuildConfiguration section */ 587 | 00E356F61AD99517003FC87E /* Debug */ = { 588 | isa = XCBuildConfiguration; 589 | buildSettings = { 590 | BUNDLE_LOADER = "$(TEST_HOST)"; 591 | FRAMEWORK_SEARCH_PATHS = ( 592 | "$(SDKROOT)/Developer/Library/Frameworks", 593 | "$(inherited)", 594 | ); 595 | GCC_PREPROCESSOR_DEFINITIONS = ( 596 | "DEBUG=1", 597 | "$(inherited)", 598 | ); 599 | INFOPLIST_FILE = ArtExampleTests/Info.plist; 600 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 601 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 602 | PRODUCT_NAME = "$(TARGET_NAME)"; 603 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ArtExample.app/ArtExample"; 604 | }; 605 | name = Debug; 606 | }; 607 | 00E356F71AD99517003FC87E /* Release */ = { 608 | isa = XCBuildConfiguration; 609 | buildSettings = { 610 | BUNDLE_LOADER = "$(TEST_HOST)"; 611 | COPY_PHASE_STRIP = NO; 612 | FRAMEWORK_SEARCH_PATHS = ( 613 | "$(SDKROOT)/Developer/Library/Frameworks", 614 | "$(inherited)", 615 | ); 616 | INFOPLIST_FILE = ArtExampleTests/Info.plist; 617 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 618 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 619 | PRODUCT_NAME = "$(TARGET_NAME)"; 620 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ArtExample.app/ArtExample"; 621 | }; 622 | name = Release; 623 | }; 624 | 13B07F941A680F5B00A75B9A /* Debug */ = { 625 | isa = XCBuildConfiguration; 626 | buildSettings = { 627 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 628 | HEADER_SEARCH_PATHS = ( 629 | "$(inherited)", 630 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 631 | "$(SRCROOT)/node_modules/react-native/React/**", 632 | ); 633 | INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; 634 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 635 | OTHER_LDFLAGS = "-ObjC"; 636 | PRODUCT_NAME = ArtExample; 637 | }; 638 | name = Debug; 639 | }; 640 | 13B07F951A680F5B00A75B9A /* Release */ = { 641 | isa = XCBuildConfiguration; 642 | buildSettings = { 643 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 644 | HEADER_SEARCH_PATHS = ( 645 | "$(inherited)", 646 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 647 | "$(SRCROOT)/node_modules/react-native/React/**", 648 | ); 649 | INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; 650 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 651 | OTHER_LDFLAGS = "-ObjC"; 652 | PRODUCT_NAME = ArtExample; 653 | }; 654 | name = Release; 655 | }; 656 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 657 | isa = XCBuildConfiguration; 658 | buildSettings = { 659 | ALWAYS_SEARCH_USER_PATHS = NO; 660 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 661 | CLANG_CXX_LIBRARY = "libc++"; 662 | CLANG_ENABLE_MODULES = YES; 663 | CLANG_ENABLE_OBJC_ARC = YES; 664 | CLANG_WARN_BOOL_CONVERSION = YES; 665 | CLANG_WARN_CONSTANT_CONVERSION = YES; 666 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 667 | CLANG_WARN_EMPTY_BODY = YES; 668 | CLANG_WARN_ENUM_CONVERSION = YES; 669 | CLANG_WARN_INT_CONVERSION = YES; 670 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 671 | CLANG_WARN_UNREACHABLE_CODE = YES; 672 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 673 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 674 | COPY_PHASE_STRIP = NO; 675 | ENABLE_STRICT_OBJC_MSGSEND = YES; 676 | GCC_C_LANGUAGE_STANDARD = gnu99; 677 | GCC_DYNAMIC_NO_PIC = NO; 678 | GCC_OPTIMIZATION_LEVEL = 0; 679 | GCC_PREPROCESSOR_DEFINITIONS = ( 680 | "DEBUG=1", 681 | "$(inherited)", 682 | ); 683 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 684 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 685 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 686 | GCC_WARN_UNDECLARED_SELECTOR = YES; 687 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 688 | GCC_WARN_UNUSED_FUNCTION = YES; 689 | GCC_WARN_UNUSED_VARIABLE = YES; 690 | HEADER_SEARCH_PATHS = ( 691 | "$(inherited)", 692 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 693 | "$(SRCROOT)/node_modules/react-native/React/**", 694 | ); 695 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 696 | MTL_ENABLE_DEBUG_INFO = YES; 697 | ONLY_ACTIVE_ARCH = YES; 698 | SDKROOT = iphoneos; 699 | }; 700 | name = Debug; 701 | }; 702 | 83CBBA211A601CBA00E9B192 /* Release */ = { 703 | isa = XCBuildConfiguration; 704 | buildSettings = { 705 | ALWAYS_SEARCH_USER_PATHS = NO; 706 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 707 | CLANG_CXX_LIBRARY = "libc++"; 708 | CLANG_ENABLE_MODULES = YES; 709 | CLANG_ENABLE_OBJC_ARC = YES; 710 | CLANG_WARN_BOOL_CONVERSION = YES; 711 | CLANG_WARN_CONSTANT_CONVERSION = YES; 712 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 713 | CLANG_WARN_EMPTY_BODY = YES; 714 | CLANG_WARN_ENUM_CONVERSION = YES; 715 | CLANG_WARN_INT_CONVERSION = YES; 716 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 717 | CLANG_WARN_UNREACHABLE_CODE = YES; 718 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 719 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 720 | COPY_PHASE_STRIP = YES; 721 | ENABLE_NS_ASSERTIONS = NO; 722 | ENABLE_STRICT_OBJC_MSGSEND = YES; 723 | GCC_C_LANGUAGE_STANDARD = gnu99; 724 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 725 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 726 | GCC_WARN_UNDECLARED_SELECTOR = YES; 727 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 728 | GCC_WARN_UNUSED_FUNCTION = YES; 729 | GCC_WARN_UNUSED_VARIABLE = YES; 730 | HEADER_SEARCH_PATHS = ( 731 | "$(inherited)", 732 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 733 | "$(SRCROOT)/node_modules/react-native/React/**", 734 | ); 735 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 736 | MTL_ENABLE_DEBUG_INFO = NO; 737 | SDKROOT = iphoneos; 738 | VALIDATE_PRODUCT = YES; 739 | }; 740 | name = Release; 741 | }; 742 | /* End XCBuildConfiguration section */ 743 | 744 | /* Begin XCConfigurationList section */ 745 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ArtExampleTests" */ = { 746 | isa = XCConfigurationList; 747 | buildConfigurations = ( 748 | 00E356F61AD99517003FC87E /* Debug */, 749 | 00E356F71AD99517003FC87E /* Release */, 750 | ); 751 | defaultConfigurationIsVisible = 0; 752 | defaultConfigurationName = Release; 753 | }; 754 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ArtExample" */ = { 755 | isa = XCConfigurationList; 756 | buildConfigurations = ( 757 | 13B07F941A680F5B00A75B9A /* Debug */, 758 | 13B07F951A680F5B00A75B9A /* Release */, 759 | ); 760 | defaultConfigurationIsVisible = 0; 761 | defaultConfigurationName = Release; 762 | }; 763 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ArtExample" */ = { 764 | isa = XCConfigurationList; 765 | buildConfigurations = ( 766 | 83CBBA201A601CBA00E9B192 /* Debug */, 767 | 83CBBA211A601CBA00E9B192 /* Release */, 768 | ); 769 | defaultConfigurationIsVisible = 0; 770 | defaultConfigurationName = Release; 771 | }; 772 | /* End XCConfigurationList section */ 773 | }; 774 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 775 | } 776 | -------------------------------------------------------------------------------- /ArtExample.xcodeproj/xcshareddata/xcschemes/ArtExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ArtExampleTests/ArtExampleTests.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 "RCTAssert.h" 14 | #import "RCTRedBox.h" 15 | #import "RCTRootView.h" 16 | 17 | #define TIMEOUT_SECONDS 240 18 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 19 | 20 | @interface ArtExampleTests : XCTestCase 21 | 22 | @end 23 | 24 | @implementation ArtExampleTests 25 | 26 | 27 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 28 | { 29 | if (test(view)) { 30 | return YES; 31 | } 32 | for (UIView *subview in [view subviews]) { 33 | if ([self findSubviewInView:subview matching:test]) { 34 | return YES; 35 | } 36 | } 37 | return NO; 38 | } 39 | 40 | - (void)testRendersWelcomeScreen { 41 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 42 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 43 | BOOL foundElement = NO; 44 | NSString *redboxError = nil; 45 | 46 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 47 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:date]; 48 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:date]; 49 | 50 | redboxError = [[RCTRedBox sharedInstance] currentErrorMessage]; 51 | 52 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 53 | if ([view respondsToSelector:@selector(attributedText)]) { 54 | NSString *text = [(id)view attributedText].string; 55 | if ([text isEqualToString:TEXT_TO_LOOK_FOR]) { 56 | return YES; 57 | } 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Cound't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /ArtExampleTests/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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-art-example 2 | 3 | To use React ART on your react-native project, install react-native 4 | `0.4.2` and then `npm i art --save`. Add `ART.xcodeproj` from 5 | `node_modules/react-native/React/Libraries/ART` to your 6 | Libraries and link `libART.a`. Now you can require it: 7 | 8 | ```javascript 9 | var ReactART = require('ReactIOSART'); 10 | var { 11 | LinearGradient, 12 | RadialGradient, 13 | Pattern, 14 | Transform, 15 | Path, 16 | Surface, 17 | Group, 18 | ClippingRectangle, 19 | Shape, 20 | Text, 21 | } = ReactART; 22 | ``` 23 | 24 | Check out `index.ios.js` to see the 25 | [VectorWidget](https://github.com/reactjs/react-art/blob/master/examples/vector-widget/VectorWidget.js) 26 | from [react-art](http://github.com/facebook/react-art) copied over and 27 | running in react-native! Pictured below but not animated because licecap 28 | was causing me some problems. 29 | 30 | ![](https://raw.githubusercontent.com/brentvatne/react-native-art-example/master/demo.png) 31 | 32 | *Note*: This is similar to 33 | [react-native-svg](https://www.github.com/brentvatne/react-native-svg) 34 | but much more performant for anything that animates because it doesn't pass the entire surface 35 | through `SVGKit` each time. You might use react-native-svg instead if 36 | you want to load a SVG image directly and not manipulate it. 37 | -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brentvatne/react-native-art-example/1e8432e310016025fc1d03129137c0c63131ee0a/demo.png -------------------------------------------------------------------------------- /iOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /iOS/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 "RCTRootView.h" 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | NSURL *jsCodeLocation; 19 | 20 | /** 21 | * Loading JavaScript code - uncomment the one you want. 22 | * 23 | * OPTION 1 24 | * Load from development server. Start the server from the repository root: 25 | * 26 | * $ npm start 27 | * 28 | * To run on device, change `localhost` to the IP address of your computer 29 | * (you can get this by typing `ifconfig` into the terminal and selecting the 30 | * `inet` value under `en0:`) and make sure your computer and iOS device are 31 | * on the same Wi-Fi network. 32 | */ 33 | 34 | jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; 35 | 36 | /** 37 | * OPTION 2 38 | * Load from pre-bundled file on disk. To re-generate the static bundle 39 | * from the root of your project directory, run 40 | * 41 | * $ react-native bundle --minify 42 | * 43 | * see http://facebook.github.io/react-native/docs/runningondevice.html 44 | */ 45 | 46 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 47 | 48 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 49 | moduleName:@"ArtExample" 50 | launchOptions:launchOptions]; 51 | 52 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 53 | UIViewController *rootViewController = [[UIViewController alloc] init]; 54 | rootViewController.view = rootView; 55 | self.window.rootViewController = rootViewController; 56 | [self.window makeKeyAndVisible]; 57 | return YES; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /iOS/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /iOS/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /iOS/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 | 42 | 43 | -------------------------------------------------------------------------------- /iOS/main.jsbundle: -------------------------------------------------------------------------------- 1 | // Offline JS 2 | // To re-generate the offline bundle, run this from the root of your project: 3 | // 4 | // $ react-native bundle --minify 5 | // 6 | // See http://facebook.github.io/react-native/docs/runningondevice.html for more details. 7 | 8 | throw new Error('Offline JS file is empty. See iOS/main.jsbundle for instructions'); 9 | -------------------------------------------------------------------------------- /iOS/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 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | */ 5 | 'use strict'; 6 | 7 | var React = require('react-native'); 8 | var { 9 | AppRegistry, 10 | PanResponder, 11 | View, 12 | Text, 13 | } = React; 14 | 15 | var TimerMixin = require('react-timer-mixin'); 16 | 17 | var ReactART = require('ReactIOSART'); 18 | var { 19 | Surface, 20 | Path, 21 | Group, 22 | Transform, 23 | Shape, 24 | } = ReactART; 25 | 26 | var TOUCH_UP_DRAG = 0.978; 27 | var TOUCH_DOWN_DRAG = 0.9; 28 | var MAX_VEL = 11; 29 | var BASE_VEL = 0.15; 30 | 31 | var ArtExample = React.createClass({ 32 | mixins: [TimerMixin], 33 | 34 | getInitialState() { 35 | return {degrees: 0, velocity: 0, drag: TOUCH_UP_DRAG}; 36 | }, 37 | 38 | _panResponder: {}, 39 | 40 | componentWillMount() { 41 | this._panResponder = PanResponder.create({ 42 | onStartShouldSetPanResponder: this._handleStartShouldSetPanResponder, 43 | onMoveShouldSetPanResponder: this._handleMoveShouldSetPanResponder, 44 | onPanResponderGrant: this._handlePanResponderGrant, 45 | onPanResponderMove: this._handlePanResponderMove, 46 | onPanResponderRelease: this._handlePanResponderEnd, 47 | onPanResponderTerminate: this._handlePanResponderEnd, 48 | }); 49 | }, 50 | 51 | _handleStartShouldSetPanResponder(e: Object, gestureState: Object): boolean { 52 | return true; 53 | }, 54 | 55 | _handleMoveShouldSetPanResponder(e: Object, gestureState: Object): boolean { 56 | return true; 57 | }, 58 | 59 | _handlePanResponderGrant(e: Object, gestureState: Object) { 60 | this.setState({drag: TOUCH_DOWN_DRAG}); 61 | }, 62 | 63 | _handlePanResponderMove(e: Object, gestureState: Object) { 64 | var nextVelocity = Math.min(this.state.velocity + (gestureState.vx * 5), MAX_VEL); 65 | 66 | if (this.state.vx < 0 && this.state.velocity > 0) { 67 | nextVelocity = 0; 68 | } else if (this.state.vx > 0 && this.state.velocity < 0) { 69 | nextVelocity = 0; 70 | } 71 | 72 | if (nextVelocity < (-1 * MAX_VEL)) { 73 | nextVelocity = -1 * MAX_VEL; 74 | } 75 | 76 | this.setState({velocity: nextVelocity, drag: TOUCH_UP_DRAG}); 77 | }, 78 | 79 | _handlePanResponderEnd(e: Object, gestureState: Object) { 80 | // Do nothing on end 81 | }, 82 | 83 | componentDidMount() { 84 | this.setInterval(this.onTick, 20); 85 | }, 86 | 87 | onTick() { 88 | var nextDegrees = this.state.degrees + BASE_VEL + this.state.velocity; 89 | var nextVelocity = this.state.velocity * this.state.drag; 90 | this.setState({degrees: nextDegrees, velocity: nextVelocity}); 91 | }, 92 | 93 | render() { 94 | return ( 95 | 96 | 99 | {this.renderGraphic(this.state.degrees)} 100 | 101 | Swipe left or right to spin 102 | 103 | ); 104 | }, 105 | 106 | renderGraphic(rotation) { 107 | return ( 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | ); 129 | } 130 | }); 131 | 132 | var BORDER_PATH = "M3.00191459,4 C1.34400294,4 0,5.34785514 0,7.00550479 L0,220.994495 C0,222.65439 1.34239483,224 3.00191459,224 L276.998085,224 C278.655997,224 280,222.652145 280,220.994495 L280,7.00550479 C280,5.34561033 278.657605,4 276.998085,4 L3.00191459,4 Z M3.00191459,4"; 133 | var BG_PATH = "M3.00191459,1 C1.34400294,1 0,2.34785514 0,4.00550479 L0,217.994495 C0,219.65439 1.34239483,221 3.00191459,221 L276.998085,221 C278.655997,221 280,219.652145 280,217.994495 L280,4.00550479 C280,2.34561033 278.657605,1 276.998085,1 L3.00191459,1 Z M3.00191459,1"; 134 | var BAR_PATH = "M3.00191459,0 C1.34400294,0 0,1.34559019 0,3.00878799 L0,21 C0,21 0,21 0,21 L280,21 C280,21 280,21 280,21 L280,3.00878799 C280,1.34708027 278.657605,0 276.998085,0 L3.00191459,0 Z M3.00191459,0"; 135 | var RED_DOT_PATH = "M12.5,17 C16.0898511,17 19,14.0898511 19,10.5 C19,6.91014895 16.0898511,4 12.5,4 C8.91014895,4 6,6.91014895 6,10.5 C6,14.0898511 8.91014895,17 12.5,17 Z M12.5,17"; 136 | var YELLOW_DOT_PATH = "M31.5,17 C35.0898511,17 38,14.0898511 38,10.5 C38,6.91014895 35.0898511,4 31.5,4 C27.9101489,4 25,6.91014895 25,10.5 C25,14.0898511 27.9101489,17 31.5,17 Z M31.5,17"; 137 | var GREEN_DOT_PATH = "M50.5,17 C54.0898511,17 57,14.0898511 57,10.5 C57,6.91014895 54.0898511,4 50.5,4 C46.9101489,4 44,6.91014895 44,10.5 C44,14.0898511 46.9101489,17 50.5,17 Z M50.5,17"; 138 | var CENTER_DOT_PATH = "M84,105 C92.8365564,105 100,97.8365564 100,89 C100,80.1634436 92.8365564,73 84,73 C75.1634436,73 68,80.1634436 68,89 C68,97.8365564 75.1634436,105 84,105 Z M84,105"; 139 | var RING_ONE_PATH = "M84,121 C130.391921,121 168,106.673113 168,89 C168,71.3268871 130.391921,57 84,57 C37.6080787,57 0,71.3268871 0,89 C0,106.673113 37.6080787,121 84,121 Z M84,121"; 140 | var RING_TWO_PATH = "M84,121 C130.391921,121 168,106.673113 168,89 C168,71.3268871 130.391921,57 84,57 C37.6080787,57 0,71.3268871 0,89 C0,106.673113 37.6080787,121 84,121 Z M84,121"; 141 | var RING_THREE_PATH = "M84,121 C130.391921,121 168,106.673113 168,89 C168,71.3268871 130.391921,57 84,57 C37.6080787,57 0,71.3268871 0,89 C0,106.673113 37.6080787,121 84,121 Z M84,121"; 142 | var RING_TWO_ROTATE = new Transform().translate(84.000000, 89.000000).rotate(-240.000000).translate(-84.000000, -89.000000); 143 | var RING_THREE_ROTATE = new Transform().translate(84.000000, 89.000000).rotate(-300.000000).translate(-84.000000, -89.000000); 144 | 145 | AppRegistry.registerComponent('ArtExample', () => ArtExample); 146 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ArtExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node_modules/react-native/packager/packager.sh" 7 | }, 8 | "dependencies": { 9 | "art": "^0.10.0", 10 | "react-native": "0.4.2" 11 | } 12 | } 13 | --------------------------------------------------------------------------------