├── .babelrc ├── .circle.yml ├── .env.example ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .npmignore ├── LondonReact.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ └── LondonReact.xcscheme ├── LondonReactTests ├── Info.plist └── LondonReactTests.m ├── bugsnag-native.js ├── circle.yml ├── decorators.js ├── iOS ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ └── LaunchScreen.xib ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── logo-250x250.png │ │ └── logo-small.png │ └── LaunchImage.launchimage │ │ └── Contents.json ├── Info.plist ├── main.jsbundle └── main.m ├── index.ios.js ├── package.json └── parse.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "whitelist": [ 3 | "es6.modules", 4 | "es6.arrowFunctions", 5 | "es6.blockScoping", 6 | "es6.classes", 7 | "es6.destructuring", 8 | "es6.parameters", 9 | "es6.properties.computed", 10 | "es6.properties.shorthand", 11 | "es6.spread", 12 | "es6.templateLiterals", 13 | "es7.trailingFunctionCommas", 14 | "es7.objectRestSpread", 15 | "flow", 16 | "react", 17 | "es7.classProperties", 18 | "es7.asyncFunctions", 19 | "es7.decorators", 20 | "regenerator", 21 | "utility.inlineEnvironmentVariables" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /.circle.yml: -------------------------------------------------------------------------------- 1 | test: 2 | override: 3 | - npm test 4 | - npm run bundle 5 | 6 | deployment: 7 | production: 8 | branch: master 9 | commands: 10 | - aws s3 cp iOS/main.jsbundle s3://london-react/main.jsbundle --acl public-read 11 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | export PARSE_APP_ID='' 2 | export PARSE_APP_KEY='' 3 | export VERSION='' 4 | export BUGSNAG_KEY='' 5 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "ecmaFeatures": { 4 | "jsx": true 5 | }, 6 | "env": { 7 | "es6": true, 8 | "jasmine": true, 9 | }, 10 | "plugins": [ 11 | "react" 12 | ], 13 | // Map from global var to bool specifying if it can be redefined 14 | "globals": { 15 | "__DEV__": true, 16 | "__dirname": false, 17 | "__fbBatchedBridgeConfig": false, 18 | "alert": false, 19 | "cancelAnimationFrame": false, 20 | "clearImmediate": true, 21 | "clearInterval": false, 22 | "clearTimeout": false, 23 | "console": false, 24 | "document": false, 25 | "escape": false, 26 | "exports": false, 27 | "fetch": false, 28 | "global": false, 29 | "jest": false, 30 | "Map": true, 31 | "module": false, 32 | "navigator": false, 33 | "process": false, 34 | "Promise": true, 35 | "requestAnimationFrame": true, 36 | "require": false, 37 | "Set": true, 38 | "setImmediate": true, 39 | "setInterval": false, 40 | "setTimeout": false, 41 | "window": false, 42 | "XMLHttpRequest": false, 43 | "pit": false 44 | }, 45 | "rules": { 46 | "comma-dangle": 0, // disallow trailing commas in object literals 47 | "no-cond-assign": 1, // disallow assignment in conditional expressions 48 | "no-console": 0, // disallow use of console (off by default in the node environment) 49 | "no-constant-condition": 0, // disallow use of constant expressions in conditions 50 | "no-control-regex": 1, // disallow control characters in regular expressions 51 | "no-debugger": 1, // disallow use of debugger 52 | "no-dupe-keys": 1, // disallow duplicate keys when creating object literals 53 | "no-empty": 0, // disallow empty statements 54 | "no-empty-class": 1, // disallow the use of empty character classes in regular expressions 55 | "no-ex-assign": 1, // disallow assigning to the exception in a catch block 56 | "no-extra-boolean-cast": 1, // disallow double-negation boolean casts in a boolean context 57 | "no-extra-parens": 0, // disallow unnecessary parentheses (off by default) 58 | "no-extra-semi": 1, // disallow unnecessary semicolons 59 | "no-func-assign": 1, // disallow overwriting functions written as function declarations 60 | "no-inner-declarations": 0, // disallow function or variable declarations in nested blocks 61 | "no-invalid-regexp": 1, // disallow invalid regular expression strings in the RegExp constructor 62 | "no-negated-in-lhs": 1, // disallow negation of the left operand of an in expression 63 | "no-obj-calls": 1, // disallow the use of object properties of the global object (Math and JSON) as functions 64 | "no-regex-spaces": 1, // disallow multiple spaces in a regular expression literal 65 | "no-reserved-keys": 0, // disallow reserved words being used as object literal keys (off by default) 66 | "no-sparse-arrays": 1, // disallow sparse arrays 67 | "no-unreachable": 1, // disallow unreachable statements after a return, throw, continue, or break statement 68 | "use-isnan": 1, // disallow comparisons with the value NaN 69 | "valid-jsdoc": 0, // Ensure JSDoc comments are valid (off by default) 70 | "valid-typeof": 1, // Ensure that the results of typeof are compared against a valid string 71 | 72 | // Best Practices 73 | // These are rules designed to prevent you from making mistakes. They either prescribe a better way of doing something or help you avoid footguns. 74 | 75 | "block-scoped-var": 0, // treat var statements as if they were block scoped (off by default) 76 | "complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default) 77 | "consistent-return": 0, // require return statements to either always or never specify values 78 | "curly": 1, // specify curly brace conventions for all control statements 79 | "default-case": 0, // require default case in switch statements (off by default) 80 | "dot-notation": 1, // encourages use of dot notation whenever possible 81 | "eqeqeq": 1, // require the use of === and !== 82 | "guard-for-in": 0, // make sure for-in loops have an if statement (off by default) 83 | "no-alert": 1, // disallow the use of alert, confirm, and prompt 84 | "no-caller": 1, // disallow use of arguments.caller or arguments.callee 85 | "no-div-regex": 1, // disallow division operators explicitly at beginning of regular expression (off by default) 86 | "no-else-return": 0, // disallow else after a return in an if (off by default) 87 | "no-empty-label": 1, // disallow use of labels for anything other then loops and switches 88 | "no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default) 89 | "no-eval": 1, // disallow use of eval() 90 | "no-extend-native": 1, // disallow adding to native types 91 | "no-extra-bind": 1, // disallow unnecessary function binding 92 | "no-fallthrough": 1, // disallow fallthrough of case statements 93 | "no-floating-decimal": 1, // disallow the use of leading or trailing decimal points in numeric literals (off by default) 94 | "no-implied-eval": 1, // disallow use of eval()-like methods 95 | "no-labels": 1, // disallow use of labeled statements 96 | "no-iterator": 1, // disallow usage of __iterator__ property 97 | "no-lone-blocks": 1, // disallow unnecessary nested blocks 98 | "no-loop-func": 0, // disallow creation of functions within loops 99 | "no-multi-str": 0, // disallow use of multiline strings 100 | "no-native-reassign": 0, // disallow reassignments of native objects 101 | "no-new": 1, // disallow use of new operator when not part of the assignment or comparison 102 | "no-new-func": 1, // disallow use of new operator for Function object 103 | "no-new-wrappers": 1, // disallows creating new instances of String,Number, and Boolean 104 | "no-octal": 1, // disallow use of octal literals 105 | "no-octal-escape": 1, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251"; 106 | "no-proto": 1, // disallow usage of __proto__ property 107 | "no-redeclare": 0, // disallow declaring the same variable more then once 108 | "no-return-assign": 1, // disallow use of assignment in return statement 109 | "no-script-url": 1, // disallow use of javascript: urls. 110 | "no-self-compare": 1, // disallow comparisons where both sides are exactly the same (off by default) 111 | "no-sequences": 1, // disallow use of comma operator 112 | "no-unused-expressions": 0, // disallow usage of expressions in statement position 113 | "no-void": 1, // disallow use of void operator (off by default) 114 | "no-warning-comments": 0, // disallow usage of configurable warning terms in comments": 1, // e.g. TODO or FIXME (off by default) 115 | "no-with": 1, // disallow use of the with statement 116 | "radix": 1, // require use of the second argument for parseInt() (off by default) 117 | "semi-spacing": 1, // require a space after a semi-colon 118 | "vars-on-top": 0, // requires to declare all vars on top of their containing scope (off by default) 119 | "wrap-iife": 0, // require immediate function invocation to be wrapped in parentheses (off by default) 120 | "yoda": 1, // require or disallow Yoda conditions 121 | 122 | // Strict Mode 123 | // These rules relate to using strict mode. 124 | 125 | "no-extra-strict": 1, // disallow unnecessary use of "use strict"; when already in strict mode 126 | "strict": 0, // require that all functions are run in strict mode 127 | 128 | // Variables 129 | // These rules have to do with variable declarations. 130 | 131 | "no-catch-shadow": 1, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment) 132 | "no-delete-var": 1, // disallow deletion of variables 133 | "no-label-var": 1, // disallow labels that share a name with a variable 134 | "no-shadow": 1, // disallow declaration of variables already declared in the outer scope 135 | "no-shadow-restricted-names": 1, // disallow shadowing of names such as arguments 136 | "no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block 137 | "no-undefined": 0, // disallow use of undefined variable (off by default) 138 | "no-undef-init": 1, // disallow use of undefined when initializing variables 139 | "no-unused-vars": [1, {"vars": "all", "args": "none"}], // disallow declaration of variables that are not used in the code 140 | "no-use-before-define": 0, // disallow use of variables before they are defined 141 | 142 | // Node.js 143 | // These rules are specific to JavaScript running on Node.js. 144 | 145 | "handle-callback-err": 1, // enforces error handling in callbacks (off by default) (on by default in the node environment) 146 | "no-mixed-requires": 1, // disallow mixing regular variable and require declarations (off by default) (on by default in the node environment) 147 | "no-new-require": 1, // disallow use of new operator with the require function (off by default) (on by default in the node environment) 148 | "no-path-concat": 1, // disallow string concatenation with __dirname and __filename (off by default) (on by default in the node environment) 149 | "no-process-exit": 0, // disallow process.exit() (on by default in the node environment) 150 | "no-restricted-modules": 1, // restrict usage of specified node modules (off by default) 151 | "no-sync": 0, // disallow use of synchronous methods (off by default) 152 | 153 | // Stylistic Issues 154 | // These rules are purely matters of style and are quite subjective. 155 | 156 | "key-spacing": 0, 157 | "comma-spacing": 0, 158 | "no-multi-spaces": 0, 159 | "brace-style": 0, // enforce one true brace style (off by default) 160 | "camelcase": 0, // require camel case names 161 | "consistent-this": [1, "self"], // enforces consistent naming when capturing the current execution context (off by default) 162 | "eol-last": 1, // enforce newline at the end of file, with no multiple empty lines 163 | "func-names": 0, // require function expressions to have a name (off by default) 164 | "func-style": 0, // enforces use of function declarations or expressions (off by default) 165 | "new-cap": 0, // require a capital letter for constructors 166 | "new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments 167 | "no-nested-ternary": 0, // disallow nested ternary expressions (off by default) 168 | "no-array-constructor": 1, // disallow use of the Array constructor 169 | "no-lonely-if": 0, // disallow if as the only statement in an else block (off by default) 170 | "no-new-object": 1, // disallow use of the Object constructor 171 | "no-spaced-func": 1, // disallow space between function identifier and application 172 | "no-space-before-semi": 1, // disallow space before semicolon 173 | "no-ternary": 0, // disallow the use of ternary operators (off by default) 174 | "no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines 175 | "no-underscore-dangle": 0, // disallow dangling underscores in identifiers 176 | "no-wrap-func": 1, // disallow wrapping of non-IIFE statements in parens 177 | "no-mixed-spaces-and-tabs": 1, // disallow mixed spaces and tabs for indentation 178 | "quotes": [1, "single", "avoid-escape"], // specify whether double or single quotes should be used 179 | "quote-props": 0, // require quotes around object literal property names (off by default) 180 | "semi": 1, // require or disallow use of semicolons instead of ASI 181 | "sort-vars": 0, // sort variables within the same declaration block (off by default) 182 | "space-after-keywords": 1, // require a space after certain keywords (off by default) 183 | "space-in-brackets": 0, // require or disallow spaces inside brackets (off by default) 184 | "space-in-parens": 0, // require or disallow spaces inside parentheses (off by default) 185 | "space-infix-ops": 1, // require spaces around operators 186 | "space-return-throw-case": 1, // require a space after return, throw, and case 187 | "space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default) 188 | "max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default) 189 | "one-var": 0, // allow just one var statement per function (off by default) 190 | "wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default) 191 | 192 | // Legacy 193 | // The following rules are included for compatibility with JSHint and JSLint. While the names of the rules may not match up with the JSHint/JSLint counterpart, the functionality is the same. 194 | 195 | "max-depth": 0, // specify the maximum depth that blocks can be nested (off by default) 196 | "max-len": 0, // specify the maximum length of a line in your program (off by default) 197 | "max-params": 0, // limits the number of parameters that can be used in the function declaration. (off by default) 198 | "max-statements": 0, // specify the maximum number of statement allowed in a function (off by default) 199 | "no-bitwise": 1, // disallow use of bitwise operators (off by default) 200 | "no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default) 201 | 202 | "react/display-name": 0, 203 | "react/jsx-boolean-value": 0, 204 | "react/jsx-quotes": [1, "double", "avoid-escape"], 205 | "react/jsx-no-undef": 1, 206 | "react/jsx-sort-props": 0, 207 | "react/jsx-uses-react": 0, 208 | "react/jsx-uses-vars": 1, 209 | "react/no-did-mount-set-state": [1, "allow-in-func"], 210 | "react/no-did-update-set-state": [1, "allow-in-func"], 211 | "react/no-multi-comp": 0, 212 | "react/no-unknown-property": 0, 213 | "react/prop-types": 0, 214 | "react/react-in-jsx-scope": 0, 215 | "react/self-closing-comp": 1, 216 | "react/wrap-multilines": 0 217 | } 218 | } 219 | -------------------------------------------------------------------------------- /.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 | .*/node_modules/react-native/Examples 10 | 11 | # Ignore react-tools where there are overlaps, but don't ignore anything that 12 | # react-native relies on 13 | .*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js 14 | .*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js 15 | .*/node_modules/react-tools/src/browser/ui/React.js 16 | .*/node_modules/react-tools/src/core/ReactInstanceHandles.js 17 | .*/node_modules/react-tools/src/event/EventPropagators.js 18 | 19 | # Ignore commoner tests 20 | .*/node_modules/react-tools/node_modules/commoner/test/.* 21 | 22 | # See https://github.com/facebook/flow/issues/442 23 | .*/react-tools/node_modules/commoner/lib/reader.js 24 | 25 | # Ignore jest 26 | .*/react-native/node_modules/jest-cli/.* 27 | 28 | [include] 29 | 30 | [libs] 31 | node_modules/react-native/Libraries/react-native/react-native-interface.js 32 | 33 | [options] 34 | module.system=haste 35 | -------------------------------------------------------------------------------- /.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 | 30 | .env 31 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 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 | 24 | # node.js 25 | # 26 | node_modules/ 27 | npm-debug.log 28 | -------------------------------------------------------------------------------- /LondonReact.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; }; 11 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 12 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 13 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 14 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 15 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 16 | 00E356F31AD99517003FC87E /* LondonReactTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* LondonReactTests.m */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.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 | D88D05A01B3F7F7000F03DAE /* libRCTPushNotification.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D88D059F1B3F7F4000F03DAE /* libRCTPushNotification.a */; }; 27 | D88D05AD1B401E7000F03DAE /* libReactNativeIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D88D05AC1B401E6100F03DAE /* libReactNativeIcons.a */; }; 28 | D88D05B21B401EDB00F03DAE /* FontAwesome.otf in Resources */ = {isa = PBXBuildFile; fileRef = D88D05AE1B401EDB00F03DAE /* FontAwesome.otf */; }; 29 | D88D05B31B401EDB00F03DAE /* foundation-icons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D88D05AF1B401EDB00F03DAE /* foundation-icons.ttf */; }; 30 | D88D05B41B401EDB00F03DAE /* ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D88D05B01B401EDB00F03DAE /* ionicons.ttf */; }; 31 | D88D05B51B401EDB00F03DAE /* zocial-regular-webfont.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D88D05B11B401EDB00F03DAE /* zocial-regular-webfont.ttf */; }; 32 | /* End PBXBuildFile section */ 33 | 34 | /* Begin PBXContainerItemProxy section */ 35 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 38 | proxyType = 2; 39 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 40 | remoteInfo = RCTActionSheet; 41 | }; 42 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 45 | proxyType = 2; 46 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 47 | remoteInfo = RCTGeolocation; 48 | }; 49 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 50 | isa = PBXContainerItemProxy; 51 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 52 | proxyType = 2; 53 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 54 | remoteInfo = RCTImage; 55 | }; 56 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 57 | isa = PBXContainerItemProxy; 58 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 59 | proxyType = 2; 60 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 61 | remoteInfo = RCTNetwork; 62 | }; 63 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 66 | proxyType = 2; 67 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 68 | remoteInfo = RCTVibration; 69 | }; 70 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 73 | proxyType = 1; 74 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 75 | remoteInfo = LondonReact; 76 | }; 77 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 80 | proxyType = 2; 81 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 82 | remoteInfo = RCTSettings; 83 | }; 84 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 87 | proxyType = 2; 88 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 89 | remoteInfo = RCTWebSocket; 90 | }; 91 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 96 | remoteInfo = React; 97 | }; 98 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 101 | proxyType = 2; 102 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 103 | remoteInfo = RCTLinking; 104 | }; 105 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 106 | isa = PBXContainerItemProxy; 107 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 108 | proxyType = 2; 109 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 110 | remoteInfo = RCTText; 111 | }; 112 | D88D059E1B3F7F4000F03DAE /* PBXContainerItemProxy */ = { 113 | isa = PBXContainerItemProxy; 114 | containerPortal = D88D059A1B3F7F4000F03DAE /* RCTPushNotification.xcodeproj */; 115 | proxyType = 2; 116 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 117 | remoteInfo = RCTPushNotification; 118 | }; 119 | D88D05AB1B401E6100F03DAE /* PBXContainerItemProxy */ = { 120 | isa = PBXContainerItemProxy; 121 | containerPortal = D88D05A71B401E6000F03DAE /* ReactNativeIcons.xcodeproj */; 122 | proxyType = 2; 123 | remoteGlobalIDString = 2F5A3EB81ACDBF8000439386; 124 | remoteInfo = ReactNativeIcons; 125 | }; 126 | /* End PBXContainerItemProxy section */ 127 | 128 | /* Begin PBXFileReference section */ 129 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = main.jsbundle; path = iOS/main.jsbundle; sourceTree = ""; }; 130 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 131 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 132 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 133 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 134 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 135 | 00E356EE1AD99517003FC87E /* LondonReactTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LondonReactTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 136 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 137 | 00E356F21AD99517003FC87E /* LondonReactTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LondonReactTests.m; sourceTree = ""; }; 138 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 139 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 140 | 13B07F961A680F5B00A75B9A /* LondonReact.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LondonReact.app; sourceTree = BUILT_PRODUCTS_DIR; }; 141 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = iOS/AppDelegate.h; sourceTree = ""; }; 142 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = iOS/AppDelegate.m; sourceTree = ""; }; 143 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 144 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = iOS/Images.xcassets; sourceTree = ""; }; 145 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = iOS/Info.plist; sourceTree = ""; }; 146 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iOS/main.m; sourceTree = ""; }; 147 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 148 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 149 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 150 | D88D059A1B3F7F4000F03DAE /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = "node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj"; sourceTree = ""; }; 151 | D88D05A71B401E6000F03DAE /* ReactNativeIcons.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ReactNativeIcons.xcodeproj; path = "node_modules/react-native-icons/ios/ReactNativeIcons.xcodeproj"; sourceTree = ""; }; 152 | D88D05AE1B401EDB00F03DAE /* FontAwesome.otf */ = {isa = PBXFileReference; lastKnownFileType = file; name = FontAwesome.otf; path = "node_modules/react-native-icons/ios/ReactNativeIcons/Libraries/FontAwesomeKit/FontAwesome.otf"; sourceTree = ""; }; 153 | D88D05AF1B401EDB00F03DAE /* foundation-icons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "foundation-icons.ttf"; path = "node_modules/react-native-icons/ios/ReactNativeIcons/Libraries/FontAwesomeKit/foundation-icons.ttf"; sourceTree = ""; }; 154 | D88D05B01B401EDB00F03DAE /* ionicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = ionicons.ttf; path = "node_modules/react-native-icons/ios/ReactNativeIcons/Libraries/FontAwesomeKit/ionicons.ttf"; sourceTree = ""; }; 155 | D88D05B11B401EDB00F03DAE /* zocial-regular-webfont.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "zocial-regular-webfont.ttf"; path = "node_modules/react-native-icons/ios/ReactNativeIcons/Libraries/FontAwesomeKit/zocial-regular-webfont.ttf"; sourceTree = ""; }; 156 | /* End PBXFileReference section */ 157 | 158 | /* Begin PBXFrameworksBuildPhase section */ 159 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 160 | isa = PBXFrameworksBuildPhase; 161 | buildActionMask = 2147483647; 162 | files = ( 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 167 | isa = PBXFrameworksBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | D88D05AD1B401E7000F03DAE /* libReactNativeIcons.a in Frameworks */, 171 | D88D05A01B3F7F7000F03DAE /* libRCTPushNotification.a in Frameworks */, 172 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 173 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 174 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 175 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 176 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 177 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 178 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 179 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 180 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 181 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 182 | ); 183 | runOnlyForDeploymentPostprocessing = 0; 184 | }; 185 | /* End PBXFrameworksBuildPhase section */ 186 | 187 | /* Begin PBXGroup section */ 188 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 192 | ); 193 | name = Products; 194 | sourceTree = ""; 195 | }; 196 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 200 | ); 201 | name = Products; 202 | sourceTree = ""; 203 | }; 204 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 208 | ); 209 | name = Products; 210 | sourceTree = ""; 211 | }; 212 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 213 | isa = PBXGroup; 214 | children = ( 215 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 216 | ); 217 | name = Products; 218 | sourceTree = ""; 219 | }; 220 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 224 | ); 225 | name = Products; 226 | sourceTree = ""; 227 | }; 228 | 00E356EF1AD99517003FC87E /* LondonReactTests */ = { 229 | isa = PBXGroup; 230 | children = ( 231 | 00E356F21AD99517003FC87E /* LondonReactTests.m */, 232 | 00E356F01AD99517003FC87E /* Supporting Files */, 233 | ); 234 | path = LondonReactTests; 235 | sourceTree = ""; 236 | }; 237 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | 00E356F11AD99517003FC87E /* Info.plist */, 241 | ); 242 | name = "Supporting Files"; 243 | sourceTree = ""; 244 | }; 245 | 139105B71AF99BAD00B5F7CC /* Products */ = { 246 | isa = PBXGroup; 247 | children = ( 248 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 249 | ); 250 | name = Products; 251 | sourceTree = ""; 252 | }; 253 | 139FDEE71B06529A00C62182 /* Products */ = { 254 | isa = PBXGroup; 255 | children = ( 256 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 257 | ); 258 | name = Products; 259 | sourceTree = ""; 260 | }; 261 | 13B07FAE1A68108700A75B9A /* LondonReact */ = { 262 | isa = PBXGroup; 263 | children = ( 264 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 265 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 266 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 267 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 268 | 13B07FB61A68108700A75B9A /* Info.plist */, 269 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 270 | 13B07FB71A68108700A75B9A /* main.m */, 271 | ); 272 | name = LondonReact; 273 | sourceTree = ""; 274 | }; 275 | 146834001AC3E56700842450 /* Products */ = { 276 | isa = PBXGroup; 277 | children = ( 278 | 146834041AC3E56700842450 /* libReact.a */, 279 | ); 280 | name = Products; 281 | sourceTree = ""; 282 | }; 283 | 78C398B11ACF4ADC00677621 /* Products */ = { 284 | isa = PBXGroup; 285 | children = ( 286 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 287 | ); 288 | name = Products; 289 | sourceTree = ""; 290 | }; 291 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | D88D05A71B401E6000F03DAE /* ReactNativeIcons.xcodeproj */, 295 | D88D059A1B3F7F4000F03DAE /* RCTPushNotification.xcodeproj */, 296 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 297 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 298 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 299 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 300 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 301 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 302 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 303 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 304 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 305 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 306 | ); 307 | name = Libraries; 308 | sourceTree = ""; 309 | }; 310 | 832341B11AAA6A8300B99B32 /* Products */ = { 311 | isa = PBXGroup; 312 | children = ( 313 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 314 | ); 315 | name = Products; 316 | sourceTree = ""; 317 | }; 318 | 83CBB9F61A601CBA00E9B192 = { 319 | isa = PBXGroup; 320 | children = ( 321 | D88D05AE1B401EDB00F03DAE /* FontAwesome.otf */, 322 | D88D05AF1B401EDB00F03DAE /* foundation-icons.ttf */, 323 | D88D05B01B401EDB00F03DAE /* ionicons.ttf */, 324 | D88D05B11B401EDB00F03DAE /* zocial-regular-webfont.ttf */, 325 | 13B07FAE1A68108700A75B9A /* LondonReact */, 326 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 327 | 00E356EF1AD99517003FC87E /* LondonReactTests */, 328 | 83CBBA001A601CBA00E9B192 /* Products */, 329 | ); 330 | indentWidth = 2; 331 | sourceTree = ""; 332 | tabWidth = 2; 333 | }; 334 | 83CBBA001A601CBA00E9B192 /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 13B07F961A680F5B00A75B9A /* LondonReact.app */, 338 | 00E356EE1AD99517003FC87E /* LondonReactTests.xctest */, 339 | ); 340 | name = Products; 341 | sourceTree = ""; 342 | }; 343 | D88D059B1B3F7F4000F03DAE /* Products */ = { 344 | isa = PBXGroup; 345 | children = ( 346 | D88D059F1B3F7F4000F03DAE /* libRCTPushNotification.a */, 347 | ); 348 | name = Products; 349 | sourceTree = ""; 350 | }; 351 | D88D05A81B401E6000F03DAE /* Products */ = { 352 | isa = PBXGroup; 353 | children = ( 354 | D88D05AC1B401E6100F03DAE /* libReactNativeIcons.a */, 355 | ); 356 | name = Products; 357 | sourceTree = ""; 358 | }; 359 | /* End PBXGroup section */ 360 | 361 | /* Begin PBXNativeTarget section */ 362 | 00E356ED1AD99517003FC87E /* LondonReactTests */ = { 363 | isa = PBXNativeTarget; 364 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "LondonReactTests" */; 365 | buildPhases = ( 366 | 00E356EA1AD99517003FC87E /* Sources */, 367 | 00E356EB1AD99517003FC87E /* Frameworks */, 368 | 00E356EC1AD99517003FC87E /* Resources */, 369 | ); 370 | buildRules = ( 371 | ); 372 | dependencies = ( 373 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 374 | ); 375 | name = LondonReactTests; 376 | productName = LondonReactTests; 377 | productReference = 00E356EE1AD99517003FC87E /* LondonReactTests.xctest */; 378 | productType = "com.apple.product-type.bundle.unit-test"; 379 | }; 380 | 13B07F861A680F5B00A75B9A /* LondonReact */ = { 381 | isa = PBXNativeTarget; 382 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "LondonReact" */; 383 | buildPhases = ( 384 | 13B07F871A680F5B00A75B9A /* Sources */, 385 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 386 | 13B07F8E1A680F5B00A75B9A /* Resources */, 387 | ); 388 | buildRules = ( 389 | ); 390 | dependencies = ( 391 | ); 392 | name = LondonReact; 393 | productName = "Hello World"; 394 | productReference = 13B07F961A680F5B00A75B9A /* LondonReact.app */; 395 | productType = "com.apple.product-type.application"; 396 | }; 397 | /* End PBXNativeTarget section */ 398 | 399 | /* Begin PBXProject section */ 400 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 401 | isa = PBXProject; 402 | attributes = { 403 | LastUpgradeCheck = 0610; 404 | ORGANIZATIONNAME = Facebook; 405 | TargetAttributes = { 406 | 00E356ED1AD99517003FC87E = { 407 | CreatedOnToolsVersion = 6.2; 408 | TestTargetID = 13B07F861A680F5B00A75B9A; 409 | }; 410 | }; 411 | }; 412 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "LondonReact" */; 413 | compatibilityVersion = "Xcode 3.2"; 414 | developmentRegion = English; 415 | hasScannedForEncodings = 0; 416 | knownRegions = ( 417 | en, 418 | Base, 419 | ); 420 | mainGroup = 83CBB9F61A601CBA00E9B192; 421 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 422 | projectDirPath = ""; 423 | projectReferences = ( 424 | { 425 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 426 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 427 | }, 428 | { 429 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 430 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 431 | }, 432 | { 433 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 434 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 435 | }, 436 | { 437 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 438 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 439 | }, 440 | { 441 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 442 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 443 | }, 444 | { 445 | ProductGroup = D88D059B1B3F7F4000F03DAE /* Products */; 446 | ProjectRef = D88D059A1B3F7F4000F03DAE /* RCTPushNotification.xcodeproj */; 447 | }, 448 | { 449 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 450 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 451 | }, 452 | { 453 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 454 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 455 | }, 456 | { 457 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 458 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 459 | }, 460 | { 461 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 462 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 463 | }, 464 | { 465 | ProductGroup = 146834001AC3E56700842450 /* Products */; 466 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 467 | }, 468 | { 469 | ProductGroup = D88D05A81B401E6000F03DAE /* Products */; 470 | ProjectRef = D88D05A71B401E6000F03DAE /* ReactNativeIcons.xcodeproj */; 471 | }, 472 | ); 473 | projectRoot = ""; 474 | targets = ( 475 | 13B07F861A680F5B00A75B9A /* LondonReact */, 476 | 00E356ED1AD99517003FC87E /* LondonReactTests */, 477 | ); 478 | }; 479 | /* End PBXProject section */ 480 | 481 | /* Begin PBXReferenceProxy section */ 482 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 483 | isa = PBXReferenceProxy; 484 | fileType = archive.ar; 485 | path = libRCTActionSheet.a; 486 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 487 | sourceTree = BUILT_PRODUCTS_DIR; 488 | }; 489 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 490 | isa = PBXReferenceProxy; 491 | fileType = archive.ar; 492 | path = libRCTGeolocation.a; 493 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 494 | sourceTree = BUILT_PRODUCTS_DIR; 495 | }; 496 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 497 | isa = PBXReferenceProxy; 498 | fileType = archive.ar; 499 | path = libRCTImage.a; 500 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 501 | sourceTree = BUILT_PRODUCTS_DIR; 502 | }; 503 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 504 | isa = PBXReferenceProxy; 505 | fileType = archive.ar; 506 | path = libRCTNetwork.a; 507 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 508 | sourceTree = BUILT_PRODUCTS_DIR; 509 | }; 510 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 511 | isa = PBXReferenceProxy; 512 | fileType = archive.ar; 513 | path = libRCTVibration.a; 514 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 515 | sourceTree = BUILT_PRODUCTS_DIR; 516 | }; 517 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 518 | isa = PBXReferenceProxy; 519 | fileType = archive.ar; 520 | path = libRCTSettings.a; 521 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 522 | sourceTree = BUILT_PRODUCTS_DIR; 523 | }; 524 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 525 | isa = PBXReferenceProxy; 526 | fileType = archive.ar; 527 | path = libRCTWebSocket.a; 528 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 529 | sourceTree = BUILT_PRODUCTS_DIR; 530 | }; 531 | 146834041AC3E56700842450 /* libReact.a */ = { 532 | isa = PBXReferenceProxy; 533 | fileType = archive.ar; 534 | path = libReact.a; 535 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 536 | sourceTree = BUILT_PRODUCTS_DIR; 537 | }; 538 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 539 | isa = PBXReferenceProxy; 540 | fileType = archive.ar; 541 | path = libRCTLinking.a; 542 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 543 | sourceTree = BUILT_PRODUCTS_DIR; 544 | }; 545 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 546 | isa = PBXReferenceProxy; 547 | fileType = archive.ar; 548 | path = libRCTText.a; 549 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 550 | sourceTree = BUILT_PRODUCTS_DIR; 551 | }; 552 | D88D059F1B3F7F4000F03DAE /* libRCTPushNotification.a */ = { 553 | isa = PBXReferenceProxy; 554 | fileType = archive.ar; 555 | path = libRCTPushNotification.a; 556 | remoteRef = D88D059E1B3F7F4000F03DAE /* PBXContainerItemProxy */; 557 | sourceTree = BUILT_PRODUCTS_DIR; 558 | }; 559 | D88D05AC1B401E6100F03DAE /* libReactNativeIcons.a */ = { 560 | isa = PBXReferenceProxy; 561 | fileType = archive.ar; 562 | path = libReactNativeIcons.a; 563 | remoteRef = D88D05AB1B401E6100F03DAE /* PBXContainerItemProxy */; 564 | sourceTree = BUILT_PRODUCTS_DIR; 565 | }; 566 | /* End PBXReferenceProxy section */ 567 | 568 | /* Begin PBXResourcesBuildPhase section */ 569 | 00E356EC1AD99517003FC87E /* Resources */ = { 570 | isa = PBXResourcesBuildPhase; 571 | buildActionMask = 2147483647; 572 | files = ( 573 | ); 574 | runOnlyForDeploymentPostprocessing = 0; 575 | }; 576 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 577 | isa = PBXResourcesBuildPhase; 578 | buildActionMask = 2147483647; 579 | files = ( 580 | D88D05B21B401EDB00F03DAE /* FontAwesome.otf in Resources */, 581 | D88D05B31B401EDB00F03DAE /* foundation-icons.ttf in Resources */, 582 | D88D05B41B401EDB00F03DAE /* ionicons.ttf in Resources */, 583 | D88D05B51B401EDB00F03DAE /* zocial-regular-webfont.ttf in Resources */, 584 | 008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */, 585 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 586 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 587 | ); 588 | runOnlyForDeploymentPostprocessing = 0; 589 | }; 590 | /* End PBXResourcesBuildPhase section */ 591 | 592 | /* Begin PBXSourcesBuildPhase section */ 593 | 00E356EA1AD99517003FC87E /* Sources */ = { 594 | isa = PBXSourcesBuildPhase; 595 | buildActionMask = 2147483647; 596 | files = ( 597 | 00E356F31AD99517003FC87E /* LondonReactTests.m in Sources */, 598 | ); 599 | runOnlyForDeploymentPostprocessing = 0; 600 | }; 601 | 13B07F871A680F5B00A75B9A /* Sources */ = { 602 | isa = PBXSourcesBuildPhase; 603 | buildActionMask = 2147483647; 604 | files = ( 605 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 606 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 607 | ); 608 | runOnlyForDeploymentPostprocessing = 0; 609 | }; 610 | /* End PBXSourcesBuildPhase section */ 611 | 612 | /* Begin PBXTargetDependency section */ 613 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 614 | isa = PBXTargetDependency; 615 | target = 13B07F861A680F5B00A75B9A /* LondonReact */; 616 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 617 | }; 618 | /* End PBXTargetDependency section */ 619 | 620 | /* Begin PBXVariantGroup section */ 621 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 622 | isa = PBXVariantGroup; 623 | children = ( 624 | 13B07FB21A68108700A75B9A /* Base */, 625 | ); 626 | name = LaunchScreen.xib; 627 | path = iOS; 628 | sourceTree = ""; 629 | }; 630 | /* End PBXVariantGroup section */ 631 | 632 | /* Begin XCBuildConfiguration section */ 633 | 00E356F61AD99517003FC87E /* Debug */ = { 634 | isa = XCBuildConfiguration; 635 | buildSettings = { 636 | BUNDLE_LOADER = "$(TEST_HOST)"; 637 | FRAMEWORK_SEARCH_PATHS = ( 638 | "$(SDKROOT)/Developer/Library/Frameworks", 639 | "$(inherited)", 640 | ); 641 | GCC_PREPROCESSOR_DEFINITIONS = ( 642 | "DEBUG=1", 643 | "$(inherited)", 644 | ); 645 | INFOPLIST_FILE = LondonReactTests/Info.plist; 646 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 647 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 648 | PRODUCT_NAME = "$(TARGET_NAME)"; 649 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LondonReact.app/LondonReact"; 650 | }; 651 | name = Debug; 652 | }; 653 | 00E356F71AD99517003FC87E /* Release */ = { 654 | isa = XCBuildConfiguration; 655 | buildSettings = { 656 | BUNDLE_LOADER = "$(TEST_HOST)"; 657 | COPY_PHASE_STRIP = NO; 658 | FRAMEWORK_SEARCH_PATHS = ( 659 | "$(SDKROOT)/Developer/Library/Frameworks", 660 | "$(inherited)", 661 | ); 662 | INFOPLIST_FILE = LondonReactTests/Info.plist; 663 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 664 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 665 | PRODUCT_NAME = "$(TARGET_NAME)"; 666 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LondonReact.app/LondonReact"; 667 | }; 668 | name = Release; 669 | }; 670 | 13B07F941A680F5B00A75B9A /* Debug */ = { 671 | isa = XCBuildConfiguration; 672 | buildSettings = { 673 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 674 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 675 | CODE_SIGN_IDENTITY = "iPhone Developer: David Wynne (WVKX278G5W)"; 676 | HEADER_SEARCH_PATHS = ( 677 | "$(inherited)", 678 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 679 | "$(SRCROOT)/node_modules/react-native/React/**", 680 | ); 681 | INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; 682 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 683 | OTHER_LDFLAGS = "-ObjC"; 684 | PRODUCT_NAME = LondonReact; 685 | PROVISIONING_PROFILE = "d8f23040-5086-4316-ace8-ba8530e55286"; 686 | }; 687 | name = Debug; 688 | }; 689 | 13B07F951A680F5B00A75B9A /* Release */ = { 690 | isa = XCBuildConfiguration; 691 | buildSettings = { 692 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 693 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 694 | CODE_SIGN_IDENTITY = "iPhone Developer: David Wynne (WVKX278G5W)"; 695 | HEADER_SEARCH_PATHS = ( 696 | "$(inherited)", 697 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 698 | "$(SRCROOT)/node_modules/react-native/React/**", 699 | ); 700 | INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; 701 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 702 | OTHER_LDFLAGS = "-ObjC"; 703 | PRODUCT_NAME = LondonReact; 704 | PROVISIONING_PROFILE = "d8f23040-5086-4316-ace8-ba8530e55286"; 705 | }; 706 | name = Release; 707 | }; 708 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 709 | isa = XCBuildConfiguration; 710 | buildSettings = { 711 | ALWAYS_SEARCH_USER_PATHS = NO; 712 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 713 | CLANG_CXX_LIBRARY = "libc++"; 714 | CLANG_ENABLE_MODULES = YES; 715 | CLANG_ENABLE_OBJC_ARC = YES; 716 | CLANG_WARN_BOOL_CONVERSION = YES; 717 | CLANG_WARN_CONSTANT_CONVERSION = YES; 718 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 719 | CLANG_WARN_EMPTY_BODY = YES; 720 | CLANG_WARN_ENUM_CONVERSION = YES; 721 | CLANG_WARN_INT_CONVERSION = YES; 722 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 723 | CLANG_WARN_UNREACHABLE_CODE = YES; 724 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 725 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 726 | COPY_PHASE_STRIP = NO; 727 | ENABLE_STRICT_OBJC_MSGSEND = YES; 728 | GCC_C_LANGUAGE_STANDARD = gnu99; 729 | GCC_DYNAMIC_NO_PIC = NO; 730 | GCC_OPTIMIZATION_LEVEL = 0; 731 | GCC_PREPROCESSOR_DEFINITIONS = ( 732 | "DEBUG=1", 733 | "$(inherited)", 734 | ); 735 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 736 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 737 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 738 | GCC_WARN_UNDECLARED_SELECTOR = YES; 739 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 740 | GCC_WARN_UNUSED_FUNCTION = YES; 741 | GCC_WARN_UNUSED_VARIABLE = YES; 742 | HEADER_SEARCH_PATHS = ( 743 | "$(inherited)", 744 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 745 | "$(SRCROOT)/node_modules/react-native/React/**", 746 | ); 747 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 748 | MTL_ENABLE_DEBUG_INFO = YES; 749 | ONLY_ACTIVE_ARCH = YES; 750 | SDKROOT = iphoneos; 751 | }; 752 | name = Debug; 753 | }; 754 | 83CBBA211A601CBA00E9B192 /* Release */ = { 755 | isa = XCBuildConfiguration; 756 | buildSettings = { 757 | ALWAYS_SEARCH_USER_PATHS = NO; 758 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 759 | CLANG_CXX_LIBRARY = "libc++"; 760 | CLANG_ENABLE_MODULES = YES; 761 | CLANG_ENABLE_OBJC_ARC = YES; 762 | CLANG_WARN_BOOL_CONVERSION = YES; 763 | CLANG_WARN_CONSTANT_CONVERSION = YES; 764 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 765 | CLANG_WARN_EMPTY_BODY = YES; 766 | CLANG_WARN_ENUM_CONVERSION = YES; 767 | CLANG_WARN_INT_CONVERSION = YES; 768 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 769 | CLANG_WARN_UNREACHABLE_CODE = YES; 770 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 771 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 772 | COPY_PHASE_STRIP = YES; 773 | ENABLE_NS_ASSERTIONS = NO; 774 | ENABLE_STRICT_OBJC_MSGSEND = YES; 775 | GCC_C_LANGUAGE_STANDARD = gnu99; 776 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 777 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 778 | GCC_WARN_UNDECLARED_SELECTOR = YES; 779 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 780 | GCC_WARN_UNUSED_FUNCTION = YES; 781 | GCC_WARN_UNUSED_VARIABLE = YES; 782 | HEADER_SEARCH_PATHS = ( 783 | "$(inherited)", 784 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 785 | "$(SRCROOT)/node_modules/react-native/React/**", 786 | ); 787 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 788 | MTL_ENABLE_DEBUG_INFO = NO; 789 | SDKROOT = iphoneos; 790 | VALIDATE_PRODUCT = YES; 791 | }; 792 | name = Release; 793 | }; 794 | /* End XCBuildConfiguration section */ 795 | 796 | /* Begin XCConfigurationList section */ 797 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "LondonReactTests" */ = { 798 | isa = XCConfigurationList; 799 | buildConfigurations = ( 800 | 00E356F61AD99517003FC87E /* Debug */, 801 | 00E356F71AD99517003FC87E /* Release */, 802 | ); 803 | defaultConfigurationIsVisible = 0; 804 | defaultConfigurationName = Release; 805 | }; 806 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "LondonReact" */ = { 807 | isa = XCConfigurationList; 808 | buildConfigurations = ( 809 | 13B07F941A680F5B00A75B9A /* Debug */, 810 | 13B07F951A680F5B00A75B9A /* Release */, 811 | ); 812 | defaultConfigurationIsVisible = 0; 813 | defaultConfigurationName = Release; 814 | }; 815 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "LondonReact" */ = { 816 | isa = XCConfigurationList; 817 | buildConfigurations = ( 818 | 83CBBA201A601CBA00E9B192 /* Debug */, 819 | 83CBBA211A601CBA00E9B192 /* Release */, 820 | ); 821 | defaultConfigurationIsVisible = 0; 822 | defaultConfigurationName = Release; 823 | }; 824 | /* End XCConfigurationList section */ 825 | }; 826 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 827 | } 828 | -------------------------------------------------------------------------------- /LondonReact.xcodeproj/xcshareddata/xcschemes/LondonReact.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 | -------------------------------------------------------------------------------- /LondonReactTests/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 | -------------------------------------------------------------------------------- /LondonReactTests/LondonReactTests.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 LondonReactTests : XCTestCase 21 | 22 | @end 23 | 24 | @implementation LondonReactTests 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:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 48 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 49 | 50 | redboxError = [[RCTRedBox sharedInstance] currentErrorMessage]; 51 | 52 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 53 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 54 | return YES; 55 | } 56 | return NO; 57 | }]; 58 | } 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /bugsnag-native.js: -------------------------------------------------------------------------------- 1 | export default class Bugsnag { 2 | static notify(error) { 3 | fetch('https://notify.bugsnag.com/', { 4 | method: 'post', 5 | headers: { 6 | 'Accept': 'application/json', 7 | 'Content-Type': 'application/json', 8 | }, 9 | body: JSON.stringify(this._build(error)) 10 | }).then(console.log).catch(console.log); 11 | } 12 | static _build(error) { 13 | return { 14 | apiKey: process.env.BUGSNAG_KEY, 15 | notifier: { 16 | name: 'React Native', 17 | version: '1.0.11', 18 | url: 'https://github.com/bugsnag/bugsnag-ruby' 19 | }, 20 | events: [{ 21 | payloadVersion: '2', 22 | exceptions: [{ 23 | errorClass: error.constructor.name || error.name || 'Error', 24 | message: error.message, 25 | stacktrace: this._processStackTrace(error) 26 | }], 27 | context: 'auth/session#create', 28 | severity: 'error', 29 | user: { 30 | id: '19', 31 | name: 'Simon Maynard', 32 | email: 'simon@bugsnag.com' 33 | }, 34 | app: { 35 | version: '1.1.3', 36 | releaseStage: 'production', 37 | }, 38 | 39 | device: { 40 | osVersion: '2.1.1', 41 | hostname: 'web1.internal' 42 | }, 43 | 44 | metaData: { 45 | someData: { 46 | key: 'value', 47 | setOfKeys: { 48 | key: 'value', 49 | key2: 'value' 50 | } 51 | }, 52 | } 53 | }] 54 | }; 55 | } 56 | static _processStackTrace(error) { 57 | return [{ 58 | file: 'controllers/auth/session_controller.rb', 59 | lineNumber: 1234, 60 | columnNumber: 123, 61 | method: 'create', 62 | inProject: true, 63 | }]; 64 | 65 | let blah = stacktrace.parse(error); 66 | return callSites.map(function(callSite) { 67 | return { 68 | file: callSite.getFileName(), 69 | method: callSite.getMethodName() || callSite.getFunctionName() || 'none', 70 | lineNumber: callSite.getLineNumber(), 71 | columnNumber: callSite.getColumnNumber() 72 | }; 73 | }); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | override: 3 | - npm install 4 | - npm install -g react-native-cli 5 | - sudo pip install awscli 6 | 7 | test: 8 | override: 9 | - npm test 10 | - react-native bundle --minify 11 | 12 | deployment: 13 | production: 14 | branch: master 15 | commands: 16 | - aws s3 cp iOS/main.jsbundle s3://london-react/main.jsbundle --acl public-read 17 | -------------------------------------------------------------------------------- /decorators.js: -------------------------------------------------------------------------------- 1 | import React from 'react-native'; 2 | 3 | function AssertReact(Component) { 4 | if (!(Component.prototype instanceof React.Component)) { 5 | throw new Error('Specified target is not a React component.'); 6 | } 7 | } 8 | 9 | export function Debug(Component) { 10 | AssertReact(Component); 11 | 12 | const original = Component.prototype.render; 13 | Component.prototype.render = function() { 14 | console.log( 15 | ` 16 | Props: ${JSON.stringify(this.props)} 17 | State: ${JSON.stringify(this.state)} 18 | ` 19 | ); 20 | return original.apply(this, arguments); 21 | }; 22 | return Component; 23 | } 24 | 25 | export function PureRender(Component) { 26 | AssertReact(Component); 27 | Component.prototype.shouldComponentUpdate = React.addons.PureRenderMixin.shouldComponentUpdate; 28 | return Component; 29 | } 30 | -------------------------------------------------------------------------------- /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 | /** 35 | * OPTION 2 36 | * Load from pre-bundled file on disk. To re-generate the static bundle 37 | * from the root of your project directory, run 38 | * 39 | * $ react-native bundle --minify 40 | * 41 | * see http://facebook.github.io/react-native/docs/runningondevice.html 42 | */ 43 | 44 | bool dev = false; 45 | 46 | if(dev) { 47 | // NSLog(@"Loading dev..."); 48 | jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; 49 | } else { 50 | NSTimeInterval timestamp = [[NSDate date] timeIntervalSince1970]; 51 | NSString *cdn = [NSString stringWithFormat: 52 | @"https://london-react.s3.amazonaws.com/main.jsbundle?cache=%f", 53 | timestamp 54 | ]; 55 | 56 | NSURL *url = [NSURL URLWithString:cdn]; 57 | NSData *urlData = [NSData dataWithContentsOfURL:url]; 58 | if (urlData) 59 | { 60 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 61 | NSString *documentsDirectory = [paths objectAtIndex:0]; 62 | NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory, @"updated.jsbundle"]; 63 | 64 | [urlData writeToFile:filePath atomically:YES]; 65 | jsCodeLocation = [NSURL URLWithString:filePath]; 66 | 67 | // NSLog(@"Loading latest..."); 68 | } else { 69 | jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 70 | // NSLog(@"Loading fallback..."); 71 | } 72 | } 73 | 74 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 75 | moduleName:@"LondonReact" 76 | launchOptions:launchOptions]; 77 | 78 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 79 | UIViewController *rootViewController = [[UIViewController alloc] init]; 80 | rootViewController.view = rootView; 81 | self.window.rootViewController = rootViewController; 82 | [self.window makeKeyAndVisible]; 83 | return YES; 84 | } 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /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 | "size" : "60x60", 25 | "idiom" : "iphone", 26 | "filename" : "logo-small.png", 27 | "scale" : "2x" 28 | }, 29 | { 30 | "size" : "60x60", 31 | "idiom" : "iphone", 32 | "filename" : "logo-250x250.png", 33 | "scale" : "3x" 34 | } 35 | ], 36 | "info" : { 37 | "version" : 1, 38 | "author" : "xcode" 39 | } 40 | } -------------------------------------------------------------------------------- /iOS/Images.xcassets/AppIcon.appiconset/logo-250x250.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JoeStanton/london-react/2f9d2904693fed2b911e44ecbca10aac174f748a/iOS/Images.xcassets/AppIcon.appiconset/logo-250x250.png -------------------------------------------------------------------------------- /iOS/Images.xcassets/AppIcon.appiconset/logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JoeStanton/london-react/2f9d2904693fed2b911e44ecbca10aac174f748a/iOS/Images.xcassets/AppIcon.appiconset/logo-small.png -------------------------------------------------------------------------------- /iOS/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "minimum-system-version" : "7.0", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "orientation" : "portrait", 11 | "idiom" : "iphone", 12 | "minimum-system-version" : "7.0", 13 | "subtype" : "retina4", 14 | "scale" : "2x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIcons 10 | 11 | CFBundleIcons~ipad 12 | 13 | CFBundleIdentifier 14 | com.RedBadger.ReactLondon 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | $(PRODUCT_NAME) 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1 27 | LSRequiresIPhoneOS 28 | 29 | NSLocationWhenInUseUsageDescription 30 | 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | UIRequiredDeviceCapabilities 34 | 35 | armv7 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UIViewControllerBasedStatusBarAppearance 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /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 | /* @flow */ 2 | 3 | import bugsnag from './bugsnag-native'; 4 | import regenerator from 'regenerator/runtime'; 5 | import React from 'react-native'; 6 | import Icon from 'FAKIconImage'; 7 | import dedent from 'dedent'; 8 | import Parse from './parse'; 9 | 10 | var { 11 | AlertIOS, 12 | AppRegistry, 13 | AsyncStorage, 14 | Image, 15 | LinkingIOS, 16 | NavigatorIOS, 17 | PushNotificationIOS, 18 | StatusBarIOS, 19 | StyleSheet, 20 | Text, 21 | TouchableOpacity, 22 | View 23 | } = React; 24 | 25 | ErrorUtils.setGlobalHandler(error => bugsnag.notify(error)); 26 | 27 | // TODO: Bind 28 | 29 | class LondonReact extends React.Component { 30 | componentWillMount() { 31 | StatusBarIOS.setStyle('light-content'); 32 | 33 | PushNotificationIOS.addEventListener('register', this._savePushToken); 34 | PushNotificationIOS.addEventListener('notification', this._notificationReceived); 35 | PushNotificationIOS.requestPermissions(this._savePushToken); 36 | } 37 | async _savePushToken(token) { 38 | await AsyncStorage.setItem('pushToken', token); 39 | await Parse.registerInstallation(token); 40 | } 41 | async _registerInstallation() { 42 | let pushToken = await AsyncStorage.getItem('pushToken'); 43 | try { 44 | return await Parse.registerInstallation(pushToken); 45 | } catch (e) { 46 | AlertIOS.alert(`Unable to register installation. ${e}`); 47 | } 48 | } 49 | _notificationReceived(notification) { 50 | AlertIOS.alert(notification); 51 | } 52 | render() { 53 | return ( 54 | 64 | ); 65 | } 66 | } 67 | 68 | class CurrentMeetup extends React.Component { 69 | state = { 70 | attending: null 71 | } 72 | 73 | talks = [ 74 | { 75 | name: 'Yacine Rezgui', 76 | title: 'Import.io', 77 | talk: 'Live coding with Native modules ', 78 | synopsis: dedent` 79 | Yacine will create a small application that uses the microphone to do speech to text with a native module communicating to the React code (iOS). 80 | `, 81 | bioPic: 'https://pbs.twimg.com/profile_images/533643942131425280/PZbS9agy.jpeg', 82 | twitter: 'yrezgui', 83 | github: 'yrezgui' 84 | }, 85 | { 86 | name: 'Viktor Charypar', 87 | title: 'Red Badger', 88 | talk: 'GraphQL at The Financial Times', 89 | synopsis: dedent` 90 | Recently released by Facebook, GraphQL isn't only useful for client-server communication. Viktor will show how Red Badger used the reference implementation - graphql-js - at theFinancial Times as a generic data presentation layer over a set of backend APIs and how to deal with related requirements like caching or authorisation. 91 | `, 92 | bioPic: 'https://pbs.twimg.com/profile_images/567296628315267073/BKibFa5T_400x400.jpeg', 93 | twitter: 'charypar', 94 | github: 'charypar' 95 | }, 96 | { name: 'Prospective Speaker', talk: 'Speaking Slot Available', empty: true }, 97 | ]; 98 | 99 | constructor() { 100 | super(); 101 | this._fetchAttendees(); 102 | } 103 | 104 | async _fetchAttendees() { 105 | const apiKey = process.env.MEETUP_API_KEY; 106 | const eventId = 224090322; 107 | const url = `https://api.meetup.com/2/event/${eventId}?key=${apiKey}&sign=true&photo-host=public&page=20`; 108 | 109 | let json; 110 | try { 111 | const response = await fetch(url); 112 | json = await response.json(); 113 | } catch(e) { 114 | AlertIOS.alert('Failed to fetch attendees'); 115 | } 116 | 117 | this.setState({attending: json.yes_rsvp_count}); 118 | } 119 | 120 | render() { 121 | return ( 122 | 123 | 124 | 125 | 126 | 127 | 128 | ); 129 | } 130 | } 131 | 132 | // @PureRender / @Debug 133 | class Date extends React.Component { 134 | _openCalendar() { 135 | LinkingIOS.openURL('calshow://'); 136 | } 137 | render() { 138 | return ( 139 | 140 | 141 | Date 142 | {this.props.date} 143 | 144 | 145 | ); 146 | } 147 | } 148 | 149 | class Venue extends React.Component { 150 | _openMaps() { 151 | LinkingIOS.openURL('http://maps.apple.com/?q=' + encodeURIComponent(`${this.props.name}, ${this.props.address}`)); 152 | } 153 | render() { 154 | return ( 155 | 156 | 157 | Venue 158 | {this.props.name} 159 | {this.props.address} 160 | 161 | 162 | ); 163 | } 164 | } 165 | 166 | class Button extends React.Component { 167 | render() { 168 | return ( 169 | 170 | 171 | {this.props.icon && } 177 | {this.props.text} 178 | 179 | 180 | ); 181 | } 182 | } 183 | 184 | class Twitter extends React.Component { 185 | _open() { 186 | const twitterAppURL = `twitter://user?screen_name=${this.props.handle}`; 187 | const browserURL = `https://twitter.com/${this.props.handle}`; 188 | 189 | LinkingIOS.canOpenURL(twitterAppURL, supported => { 190 | LinkingIOS.openURL(supported ? twitterAppURL : browserURL); 191 | }); 192 | } 193 | render() { 194 | return ( 195 |