├── .buckconfig ├── .editorconfig ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .watchmanconfig ├── LICENSE ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── navexpredux │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app ├── app.js ├── assets │ └── svg │ │ ├── IconSetting.js │ │ └── index.js ├── components │ ├── Article.js │ ├── Articles.js │ └── Settings.js ├── containers │ ├── AppContainer.js │ ├── Article.js │ └── Articles.js ├── redux │ ├── modules │ │ ├── article.js │ │ ├── articles.js │ │ └── routing.js │ └── reducers.js └── store │ └── configureStore.js ├── demo ├── android.gif ├── debugger.png └── ios.gif ├── index.android.js ├── index.ios.js ├── ios ├── navExpRedux.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── navExpRedux.xcscheme ├── navExpRedux │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── navExpReduxTests │ ├── Info.plist │ └── navExpReduxTests.m └── package.json /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | indent_style = space 3 | end_of_line = lf 4 | indent_size = 2 5 | charset = utf-8 6 | trim_trailing_whitespace = true 7 | 8 | [*.md] 9 | max_line_length = 0 10 | trim_trailing_whitespace = false 11 | 12 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | // original version from https://github.com/fbsamples/f8app/blob/master/.eslintrc 3 | 4 | "parser": "babel-eslint", 5 | 6 | "ecmaFeatures": { 7 | "jsx": true 8 | }, 9 | 10 | "extends": "eslint-config-airbnb", 11 | 12 | "env": { 13 | "es6": true, 14 | }, 15 | 16 | "plugins": [ 17 | "react" 18 | ], 19 | 20 | // Map from global var to bool specifying if it can be redefined 21 | "globals": { 22 | "__BUNDLE_START_TIME__": false, 23 | "__DEV__": true, 24 | "__dirname": false, 25 | "__filename": false, 26 | "__fbBatchedBridgeConfig": false, 27 | "alert": false, 28 | "cancelAnimationFrame": false, 29 | "clearImmediate": true, 30 | "clearInterval": false, 31 | "clearTimeout": false, 32 | "console": false, 33 | "document": false, 34 | "escape": false, 35 | "exports": false, 36 | "global": false, 37 | "jest": false, 38 | "pit": false, 39 | "Map": true, 40 | "module": false, 41 | "navigator": false, 42 | "process": false, 43 | "Promise": false, 44 | "requestAnimationFrame": true, 45 | "require": false, 46 | "Set": true, 47 | "setImmediate": true, 48 | "setInterval": false, 49 | "setTimeout": false, 50 | "window": false, 51 | "FormData": true, 52 | "XMLHttpRequest": false, 53 | 54 | // Flow "known-globals" annotations: 55 | "ReactElement": false, 56 | "ReactClass": false, 57 | "Class": false 58 | }, 59 | 60 | "rules": { 61 | // cnYes rules! 62 | "space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}], 63 | "arrow-body-style": 0, 64 | "react/prefer-stateless-function": 0, // disable https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md 65 | "import/no-unresolved": 0, 66 | 67 | // F8 app 68 | "comma-dangle": 0, // disallow trailing commas in object literals 69 | "no-cond-assign": 1, // disallow assignment in conditional expressions 70 | "no-console": 0, // disallow use of console (off by default in the node environment) 71 | "no-constant-condition": 0, // disallow use of constant expressions in conditions 72 | "no-control-regex": 1, // disallow control characters in regular expressions 73 | "no-debugger": 1, // disallow use of debugger 74 | "no-dupe-keys": 2, // disallow duplicate keys when creating object literals 75 | "no-empty": 0, // disallow empty statements 76 | "no-empty-character-class": 1, // disallow the use of empty character classes in regular expressions 77 | "no-ex-assign": 1, // disallow assigning to the exception in a catch block 78 | "no-extra-boolean-cast": 1, // disallow double-negation boolean casts in a boolean context 79 | "no-extra-parens": 0, // disallow unnecessary parentheses (off by default) 80 | "no-extra-semi": 1, // disallow unnecessary semicolons 81 | "no-func-assign": 0, // disallow overwriting functions written as function declarations 82 | "no-inner-declarations": 0, // disallow function or variable declarations in nested blocks 83 | "no-invalid-regexp": 1, // disallow invalid regular expression strings in the RegExp constructor 84 | "no-negated-in-lhs": 1, // disallow negation of the left operand of an in expression 85 | "no-obj-calls": 1, // disallow the use of object properties of the global object (Math and JSON) as functions 86 | "no-regex-spaces": 1, // disallow multiple spaces in a regular expression literal 87 | "no-reserved-keys": 0, // disallow reserved words being used as object literal keys (off by default) 88 | "no-sparse-arrays": 1, // disallow sparse arrays 89 | "no-unreachable": 2, // disallow unreachable statements after a return, throw, continue, or break statement 90 | "use-isnan": 1, // disallow comparisons with the value NaN 91 | "valid-jsdoc": 0, // Ensure JSDoc comments are valid (off by default) 92 | "valid-typeof": 1, // Ensure that the results of typeof are compared against a valid string 93 | 94 | // Best Practices 95 | // These are rules designed to prevent you from making mistakes. They either prescribe a better way of doing something or help you avoid footguns. 96 | 97 | "block-scoped-var": 0, // treat var statements as if they were block scoped (off by default) 98 | "complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default) 99 | "consistent-return": 0, // require return statements to either always or never specify values 100 | "curly": 1, // specify curly brace conventions for all control statements 101 | "default-case": 0, // require default case in switch statements (off by default) 102 | "dot-notation": 0, // encourages use of dot notation whenever possible 103 | "eqeqeq": 1, // require the use of === and !== 104 | "guard-for-in": 0, // make sure for-in loops have an if statement (off by default) 105 | "no-alert": 0, // disallow the use of alert, confirm, and prompt 106 | "no-caller": 1, // disallow use of arguments.caller or arguments.callee 107 | "no-div-regex": 1, // disallow division operators explicitly at beginning of regular expression (off by default) 108 | "no-else-return": 0, // disallow else after a return in an if (off by default) 109 | "no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default) 110 | "no-eval": 1, // disallow use of eval() 111 | "no-extend-native": 1, // disallow adding to native types 112 | "no-extra-bind": 1, // disallow unnecessary function binding 113 | "no-fallthrough": 1, // disallow fallthrough of case statements 114 | "no-floating-decimal": 1, // disallow the use of leading or trailing decimal points in numeric literals (off by default) 115 | "no-implied-eval": 1, // disallow use of eval()-like methods 116 | "no-labels": 1, // disallow use of labeled statements 117 | "no-iterator": 1, // disallow usage of __iterator__ property 118 | "no-lone-blocks": 1, // disallow unnecessary nested blocks 119 | "no-loop-func": 0, // disallow creation of functions within loops 120 | "no-multi-str": 0, // disallow use of multiline strings 121 | "no-native-reassign": 0, // disallow reassignments of native objects 122 | "no-new": 1, // disallow use of new operator when not part of the assignment or comparison 123 | "no-new-func": 1, // disallow use of new operator for Function object 124 | "no-new-wrappers": 1, // disallows creating new instances of String,Number, and Boolean 125 | "no-octal": 1, // disallow use of octal literals 126 | "no-octal-escape": 1, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251"; 127 | "no-proto": 1, // disallow usage of __proto__ property 128 | "no-redeclare": 0, // disallow declaring the same variable more then once 129 | "no-return-assign": 1, // disallow use of assignment in return statement 130 | "no-script-url": 1, // disallow use of javascript: urls. 131 | "no-self-compare": 1, // disallow comparisons where both sides are exactly the same (off by default) 132 | "no-sequences": 1, // disallow use of comma operator 133 | "no-unused-expressions": 0, // disallow usage of expressions in statement position 134 | "no-void": 1, // disallow use of void operator (off by default) 135 | "no-warning-comments": 0, // disallow usage of configurable warning terms in comments": 1, // e.g. TODO or FIXME (off by default) 136 | "no-with": 1, // disallow use of the with statement 137 | "radix": 1, // require use of the second argument for parseInt() (off by default) 138 | "vars-on-top": 0, // requires to declare all vars on top of their containing scope (off by default) 139 | "wrap-iife": 0, // require immediate function invocation to be wrapped in parentheses (off by default) 140 | "yoda": 1, // require or disallow Yoda conditions 141 | 142 | // Strict Mode 143 | // These rules relate to using strict mode. 144 | 145 | // "strict": [2, "global"], // require or disallow the "use strict" pragma in the global scope (off by default in the node environment) 146 | 147 | // Variables 148 | // These rules have to do with variable declarations. 149 | 150 | "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) 151 | "no-delete-var": 1, // disallow deletion of variables 152 | "no-label-var": 1, // disallow labels that share a name with a variable 153 | "no-shadow": 1, // disallow declaration of variables already declared in the outer scope 154 | "no-shadow-restricted-names": 1, // disallow shadowing of names such as arguments 155 | "no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block. 156 | "no-undefined": 0, // disallow use of undefined variable (off by default) 157 | "no-undef-init": 1, // disallow use of undefined when initializing variables 158 | "no-unused-vars": [1, {"vars": "all", "args": "none"}], // disallow declaration of variables that are not used in the code 159 | "no-use-before-define": 0, // disallow use of variables before they are defined 160 | 161 | // Node.js 162 | // These rules are specific to JavaScript running on Node.js. 163 | 164 | "handle-callback-err": 1, // enforces error handling in callbacks (off by default) (on by default in the node environment) 165 | "no-mixed-requires": 1, // disallow mixing regular variable and require declarations (off by default) (on by default in the node environment) 166 | "no-new-require": 1, // disallow use of new operator with the require function (off by default) (on by default in the node environment) 167 | "no-path-concat": 1, // disallow string concatenation with __dirname and __filename (off by default) (on by default in the node environment) 168 | "no-process-exit": 0, // disallow process.exit() (on by default in the node environment) 169 | "no-restricted-modules": 1, // restrict usage of specified node modules (off by default) 170 | "no-sync": 0, // disallow use of synchronous methods (off by default) 171 | 172 | // Stylistic Issues 173 | // These rules are purely matters of style and are quite subjective. 174 | 175 | "key-spacing": 0, 176 | "comma-spacing": 0, 177 | "no-multi-spaces": 0, 178 | "brace-style": 0, // enforce one true brace style (off by default) 179 | "camelcase": 0, // require camel case names 180 | "consistent-this": 1, // enforces consistent naming when capturing the current execution context (off by default) 181 | "eol-last": 1, // enforce newline at the end of file, with no multiple empty lines 182 | "func-names": 0, // require function expressions to have a name (off by default) 183 | "func-style": 0, // enforces use of function declarations or expressions (off by default) 184 | "new-cap": 0, // require a capital letter for constructors 185 | "new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments 186 | "no-nested-ternary": 0, // disallow nested ternary expressions (off by default) 187 | "no-array-constructor": 1, // disallow use of the Array constructor 188 | "no-lonely-if": 0, // disallow if as the only statement in an else block (off by default) 189 | "no-new-object": 1, // disallow use of the Object constructor 190 | "no-spaced-func": 1, // disallow space between function identifier and application 191 | "semi-spacing": 1, // disallow space before semicolon 192 | "no-ternary": 0, // disallow the use of ternary operators (off by default) 193 | "no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines 194 | "no-underscore-dangle": 0, // disallow dangling underscores in identifiers 195 | "no-mixed-spaces-and-tabs": 1, // disallow mixed spaces and tabs for indentation 196 | "quotes": [1, "single", "avoid-escape"], // specify whether double or single quotes should be used 197 | "quote-props": 0, // require quotes around object literal property names (off by default) 198 | "semi": 1, // require or disallow use of semicolons instead of ASI 199 | "sort-vars": 0, // sort variables within the same declaration block (off by default) 200 | "keyword-spacing": 1, // require a space after certain keywords (off by default) 201 | "space-in-brackets": 0, // require or disallow spaces inside brackets (off by default) 202 | "space-in-parens": 0, // require or disallow spaces inside parentheses (off by default) 203 | "space-infix-ops": 1, // require spaces around operators 204 | "space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default) 205 | "max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default) 206 | "one-var": 0, // allow just one var statement per function (off by default) 207 | "wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default) 208 | 209 | // Legacy 210 | // 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. 211 | 212 | "max-depth": 0, // specify the maximum depth that blocks can be nested (off by default) 213 | "max-len": 0, // specify the maximum length of a line in your program (off by default) 214 | "max-params": 0, // limits the number of parameters that can be used in the function declaration. (off by default) 215 | "max-statements": 0, // specify the maximum number of statement allowed in a function (off by default) 216 | "no-bitwise": 1, // disallow use of bitwise operators (off by default) 217 | "no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default) 218 | } 219 | } 220 | -------------------------------------------------------------------------------- /.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 | # Ugh 11 | .*/node_modules/babel.* 12 | .*/node_modules/babylon.* 13 | .*/node_modules/invariant.* 14 | 15 | # Ignore react and fbjs where there are overlaps, but don't ignore 16 | # anything that react-native relies on 17 | .*/node_modules/fbjs/lib/Map.js 18 | .*/node_modules/fbjs/lib/ErrorUtils.js 19 | 20 | # Flow has a built-in definition for the 'react' module which we prefer to use 21 | # over the currently-untyped source 22 | .*/node_modules/react/react.js 23 | .*/node_modules/react/lib/React.js 24 | .*/node_modules/react/lib/ReactDOM.js 25 | 26 | .*/__mocks__/.* 27 | .*/__tests__/.* 28 | 29 | .*/commoner/test/source/widget/share.js 30 | 31 | # Ignore commoner tests 32 | .*/node_modules/commoner/test/.* 33 | 34 | # See https://github.com/facebook/flow/issues/442 35 | .*/react-tools/node_modules/commoner/lib/reader.js 36 | 37 | # Ignore jest 38 | .*/node_modules/jest-cli/.* 39 | 40 | # Ignore Website 41 | .*/website/.* 42 | 43 | # Ignore generators 44 | .*/local-cli/generator.* 45 | 46 | # Ignore BUCK generated folders 47 | .*\.buckd/ 48 | 49 | # Ignore RNPM 50 | .*/local-cli/rnpm/.* 51 | 52 | .*/node_modules/is-my-json-valid/test/.*\.json 53 | .*/node_modules/iconv-lite/encodings/tables/.*\.json 54 | .*/node_modules/y18n/test/.*\.json 55 | .*/node_modules/spdx-license-ids/spdx-license-ids.json 56 | .*/node_modules/spdx-exceptions/index.json 57 | .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json 58 | .*/node_modules/resolve/lib/core.json 59 | .*/node_modules/jsonparse/samplejson/.*\.json 60 | .*/node_modules/json5/test/.*\.json 61 | .*/node_modules/ua-parser-js/test/.*\.json 62 | .*/node_modules/builtin-modules/builtin-modules.json 63 | .*/node_modules/binary-extensions/binary-extensions.json 64 | .*/node_modules/url-regex/tlds.json 65 | .*/node_modules/joi/.*\.json 66 | .*/node_modules/isemail/.*\.json 67 | .*/node_modules/tr46/.*\.json 68 | 69 | 70 | [include] 71 | 72 | [libs] 73 | node_modules/react-native/Libraries/react-native/react-native-interface.js 74 | node_modules/react-native/flow 75 | flow/ 76 | 77 | [options] 78 | module.system=haste 79 | 80 | esproposal.class_static_fields=enable 81 | esproposal.class_instance_fields=enable 82 | 83 | munge_underscores=true 84 | 85 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 86 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 87 | 88 | suppress_type=$FlowIssue 89 | suppress_type=$FlowFixMe 90 | suppress_type=$FixMe 91 | 92 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-6]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 93 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-6]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 94 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 95 | 96 | [version] 97 | ^0.26.0 98 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IJ 26 | # 27 | *.iml 28 | .idea 29 | .gradle 30 | local.properties 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | 37 | # BUCK 38 | buck-out/ 39 | \.buckd/ 40 | android/app/libs 41 | android/keystores/debug.keystore 42 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Joshua Lyman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React-Native-News-Boilerplate 2 | 3 | A React-Native boilerplate integrate with latest React-native and Redux: 4 | 5 | 1. working with latest React-Native NavigationExperimental API (version 0.29 At the time of writing) 6 | 1. HMR for reducers 7 | 1. integrate ESLint. ESLint rules follows [fbsamples/f8app](https://github.com/fbsamples/f8app/blob/master/.eslintrc) 8 | 1. integrate ESLint with [lint-staged](https://github.com/okonet/lint-staged) and [pre-commit](https://github.com/jish/pre-commit) 9 | 1. use [Redux Ducks](https://github.com/erikras/ducks-modular-redux) for easier maintaining action creators/reducers/constants. 10 | 1. integrate [redux-api-middleware](https://github.com/agraboso/redux-api-middleware) 11 | 1. integrate [remote-redux-devtools](https://github.com/zalmoxisus/remote-redux-devtools) 12 | 13 | based on [RN-NavigationExperimental-Redux-Example](https://github.com/jlyman/RN-NavigationExperimental-Redux-Example) 14 | 15 | ## getting started 16 | 17 | make sure you go through all the steps in [Getting Started](https://facebook.github.io/react-native/docs/getting-started.html) guide 18 | 19 | ``` 20 | $ npm install 21 | ``` 22 | 23 | for iOS 24 | ``` 25 | $ react-native run-ios 26 | ``` 27 | 28 | for Android 29 | ``` 30 | $ react-native run-android 31 | $ adb reverse tcp:5678 tcp:5678 # to enable redux developer tool 32 | ``` 33 | ## screenshots 34 | 35 | ![ios screenshot](demo/ios.gif?raw=true "Screencast of ios functionality") 36 | ![android screenshot](demo/android.gif?raw=true "Screencast of android functionality") 37 | ![redux debugger screencast](demo/debugger.png?raw=true "Screencast of redux debugger") 38 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.navexpredux', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.navexpredux', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.navexpredux" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':react-native-svg') 130 | compile fileTree(dir: "libs", include: ["*.jar"]) 131 | compile "com.android.support:appcompat-v7:23.0.1" 132 | compile "com.facebook.react:react-native:+" // From node_modules 133 | } 134 | 135 | // Run this once to be able to run the application with BUCK 136 | // puts all compile dependencies into folder libs for BUCK to use 137 | task copyDownloadableDepsToLibs(type: Copy) { 138 | from configurations.compile 139 | into 'libs' 140 | } 141 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/navexpredux/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.navexpredux; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.horcrux.svg.RNSvgPackage; 5 | 6 | public class MainActivity extends ReactActivity { 7 | 8 | /** 9 | * Returns the name of the main component registered from JavaScript. 10 | * This is used to schedule rendering of the component. 11 | */ 12 | @Override 13 | protected String getMainComponentName() { 14 | return "navExpRedux"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/navexpredux/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.navexpredux; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | import com.horcrux.svg.RNSvgPackage; 6 | 7 | import com.facebook.react.ReactApplication; 8 | import com.facebook.react.ReactInstanceManager; 9 | import com.facebook.react.ReactNativeHost; 10 | import com.facebook.react.ReactPackage; 11 | import com.facebook.react.shell.MainReactPackage; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | protected boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage(), 28 | new RNSvgPackage() 29 | ); 30 | } 31 | }; 32 | 33 | @Override 34 | public ReactNativeHost getReactNativeHost() { 35 | return mReactNativeHost; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | navExpRedux 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'navExpRedux' 2 | 3 | include ':app' 4 | include ':react-native-svg' 5 | project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android') 6 | -------------------------------------------------------------------------------- /app/app.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Provider } from 'react-redux'; 3 | 4 | import AppContainer from './containers/AppContainer'; 5 | import configureStore from './store/configureStore'; 6 | 7 | const store = configureStore(); 8 | 9 | export default class App extends Component { 10 | render() { 11 | return ( 12 | 13 | 14 | 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/assets/svg/IconSetting.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import Svg,{ 3 | Path 4 | } from 'react-native-svg'; 5 | 6 | export class IconSetting extends Component { 7 | shouldComponentUpdate() { 8 | return false; 9 | } 10 | render() { 11 | // Path d="M8.31 7.314c.028.288-.07.587-.293.81L1.882 14.26c-.393.393-1.025.397-1.418.004-.39-.39-.392-1.022.004-1.418L5.9 7.414.568 2.46c-.41-.38-.414-.996-.023-1.387C.938.68 1.58.67 1.982 1.045l6.015 5.59c.202.187.306.432.312.68z" fill="#B2B2B2" 12 | return ( 13 | 14 | 15 | 16 | 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/assets/svg/index.js: -------------------------------------------------------------------------------- 1 | export { IconSetting } from './IconSetting'; 2 | -------------------------------------------------------------------------------- /app/components/Article.js: -------------------------------------------------------------------------------- 1 | import React, { PropTypes, Component } from 'react'; 2 | import { ActivityIndicator, ScrollView, View, Text, StyleSheet } from 'react-native'; 3 | import unescape from 'lodash.unescape'; 4 | 5 | import HtmlRender from 'react-native-html-render'; 6 | 7 | class Article extends Component { 8 | componentWillMount() { 9 | const { route, loadArticle } = this.props; 10 | loadArticle(route.article.newsId); 11 | } 12 | 13 | componentWillReceiveProps(nextProps) { 14 | const { route, loadArticle } = nextProps; 15 | if (this.props.route.article.newsId !== nextProps.route.article.newsId) { 16 | loadArticle(route.article.newsId); 17 | } 18 | } 19 | 20 | render() { 21 | const { article } = this.props; 22 | 23 | if (article.loading) { 24 | return ( 25 | 26 | 27 | 28 | ); 29 | } 30 | 31 | return ( 32 | 33 | 34 | {article.title} 35 | 36 | 37 | {}} 39 | value={unescape(article.content)} 40 | /> 41 | 42 | 43 | ); 44 | } 45 | } 46 | 47 | Article.propTypes = { 48 | route: PropTypes.object.isRequired, 49 | article: PropTypes.object.isRequired, 50 | loadArticle: PropTypes.func.isRequired, 51 | }; 52 | 53 | const styles = StyleSheet.create({ 54 | container: { 55 | flex: 1, 56 | backgroundColor: '#fff', 57 | padding: 20 58 | }, 59 | center: { 60 | justifyContent: 'center', 61 | alignItems: 'center', 62 | flex: 1, 63 | backgroundColor: '#fff' 64 | }, 65 | titleText: { 66 | fontSize: 24, 67 | fontWeight: '600' 68 | } 69 | }); 70 | 71 | export default Article; 72 | -------------------------------------------------------------------------------- /app/components/Articles.js: -------------------------------------------------------------------------------- 1 | import React, { PropTypes, Component } from 'react'; 2 | import { Image, View, ScrollView, TouchableOpacity, Text, StyleSheet } from 'react-native'; 3 | 4 | class Articles extends Component { 5 | componentWillMount() { 6 | this.props.loadArticles(); 7 | } 8 | 9 | renderArticle(article) { 10 | const { handleNewsPress } = this.props; 11 | 12 | return ( 13 | { handleNewsPress(article); }} 17 | > 18 | 19 | {article.title} 20 | 21 | {!!article.hasCoverPhoto && 22 | 27 | } 28 | 29 | ); 30 | } 31 | 32 | render() { 33 | const { articles } = this.props; 34 | 35 | return ( 36 | 37 | {Object.keys(articles).map(index => this.renderArticle(articles[index]))} 38 | 39 | ); 40 | } 41 | } 42 | 43 | Articles.propTypes = { 44 | articles: PropTypes.object.isRequired, 45 | loadArticles: PropTypes.func.isRequired, 46 | handleNewsPress: PropTypes.func.isRequired, 47 | }; 48 | 49 | const styles = StyleSheet.create({ 50 | container: { 51 | flex: 1, 52 | backgroundColor: '#fff' 53 | }, 54 | newsRow: { 55 | height: 100, 56 | borderStyle: 'solid', 57 | borderColor: '#ccc', 58 | borderBottomWidth: 1, 59 | alignItems: 'center', 60 | flexDirection: 'row', 61 | paddingLeft: 10, 62 | }, 63 | img: { 64 | height: 86, 65 | width: 86 66 | }, 67 | content: { 68 | flex: 1 69 | } 70 | }); 71 | 72 | export default Articles; 73 | -------------------------------------------------------------------------------- /app/components/Settings.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | StyleSheet 6 | } from 'react-native'; 7 | 8 | class Settings extends Component { 9 | render() { 10 | return ( 11 | 14 | Settings Page 15 | 16 | ); 17 | } 18 | } 19 | 20 | const styles = StyleSheet.create({ 21 | container: { 22 | flex: 1, 23 | justifyContent: 'center', 24 | alignItems: 'center', 25 | backgroundColor: '#fff' 26 | } 27 | }); 28 | 29 | 30 | export default Settings; 31 | -------------------------------------------------------------------------------- /app/containers/AppContainer.js: -------------------------------------------------------------------------------- 1 | import React, { PropTypes } from 'react'; 2 | import { BackAndroid, TouchableOpacity, NavigationExperimental, StyleSheet } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | 5 | import { navigatePush, navigatePop } from '../redux/modules/routing'; 6 | import Articles from './Articles'; 7 | import Article from './Article'; 8 | import Settings from '../components/Settings'; 9 | import { IconSetting } from '../assets/svg'; 10 | 11 | const { 12 | CardStack: NavigationCardStack, 13 | Header: NavigationHeader, 14 | } = NavigationExperimental; 15 | 16 | 17 | class AppContainer extends React.Component { 18 | constructor(props) { 19 | super(props); 20 | this._renderHeader = this._renderHeader.bind(this); 21 | this._renderScene = this._renderScene.bind(this); 22 | } 23 | 24 | componentWillMount() { 25 | BackAndroid.addEventListener('hardwareBackPress', this.handleBackButton.bind(this)); 26 | } 27 | 28 | handleBackButton() { 29 | if (this.props.navigationState.index) { 30 | this.props.handleNavigateBack(); 31 | return true; 32 | } 33 | return false; 34 | } 35 | 36 | _renderScene({ scene }) { 37 | const { route } = scene; 38 | const componentsMapping = { 39 | Articles, 40 | Article, 41 | Settings 42 | }; 43 | 44 | const toRender = componentsMapping[route.key] || null; 45 | return React.createElement(toRender, { route }); 46 | } 47 | 48 | _renderHeader(sceneProps) { 49 | const { handleNavigateBack, pushRoute } = this.props; 50 | 51 | return ( 52 | { 58 | return ( 59 | { pushRoute({ key: 'Settings' }); }} 62 | > 63 | 64 | 65 | ); 66 | }} 67 | 68 | renderTitleComponent={props => { 69 | const route = props.scene.route; 70 | const title = route.key === 'Articles' ? 'DEMO' : 'NEWS'; 71 | return {title}; 72 | }} 73 | /> 74 | ); 75 | } 76 | 77 | render() { 78 | const { navigationState, handleNavigateBack } = this.props; 79 | 80 | return ( 81 | // Redux is handling the reduction of our state for us. We grab the navigationState 82 | // we have in our Redux store and pass it directly to the . 83 | 90 | ); 91 | } 92 | 93 | } 94 | 95 | AppContainer.propTypes = { 96 | navigationState: PropTypes.object, 97 | pushRoute: PropTypes.func.isRequired, 98 | handleNavigateBack: PropTypes.func.isRequired 99 | }; 100 | 101 | const styles = StyleSheet.create({ 102 | outerContainer: { 103 | flex: 1 104 | }, 105 | container: { 106 | flex: 1 107 | }, 108 | center: { 109 | flex: 1, 110 | alignItems: 'center', 111 | justifyContent: 'center', 112 | } 113 | }); 114 | 115 | export default connect( 116 | state => ({ 117 | navigationState: state.routing 118 | }), 119 | dispatch => ({ 120 | handleNavigateBack: (action) => { 121 | dispatch(navigatePop()); 122 | }, 123 | pushRoute: (action) => { 124 | dispatch(navigatePush(action)); 125 | } 126 | }) 127 | )(AppContainer); 128 | -------------------------------------------------------------------------------- /app/containers/Article.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | 3 | import Article from '../components/Article'; 4 | import { fetchArticle } from '../redux/modules/article'; 5 | 6 | 7 | const mapStateToProps = ({ article }) => { 8 | return { 9 | article 10 | }; 11 | }; 12 | 13 | const mapDispatchToProps = (dispatch) => { 14 | return { 15 | loadArticle: (newsId) => { 16 | dispatch(fetchArticle(newsId)); 17 | } 18 | }; 19 | }; 20 | 21 | export default connect( 22 | mapStateToProps, 23 | mapDispatchToProps 24 | )(Article); 25 | -------------------------------------------------------------------------------- /app/containers/Articles.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | 3 | import Articles from '../components/Articles'; 4 | import { navigatePush } from '../redux/modules/routing'; 5 | import { fetchArticles } from '../redux/modules/articles'; 6 | 7 | 8 | const mapStateToProps = ({ articles }) => { 9 | return { 10 | articles 11 | }; 12 | }; 13 | 14 | const mapDispatchToProps = (dispatch) => { 15 | return { 16 | loadArticles: () => { 17 | dispatch(fetchArticles()); 18 | }, 19 | handleNewsPress: (article) => { 20 | dispatch(navigatePush({ key: 'Article', article })); 21 | } 22 | }; 23 | }; 24 | 25 | export default connect( 26 | mapStateToProps, 27 | mapDispatchToProps 28 | )(Articles); 29 | -------------------------------------------------------------------------------- /app/redux/modules/article.js: -------------------------------------------------------------------------------- 1 | import { CALL_API } from 'redux-api-middleware'; 2 | 3 | export const ARTICLE_REQUEST = 'ARTICLE_REQUEST'; 4 | export const ARTICLE_SUCCESS = 'ARTICLE_SUCCESS'; 5 | export const ARTICLE_FAILURE = 'ARTICLE_FAILURE'; 6 | 7 | const API_ROOT = 'http://m.cnyes.com/api/v2'; 8 | 9 | export function fetchArticle(id) { 10 | console.log('url', `${API_ROOT}/news/${id}?isMobile=1`); 11 | return { 12 | [CALL_API]: { 13 | endpoint: `${API_ROOT}/news/${id}?isMobile=1`, 14 | method: 'GET', 15 | types: [ARTICLE_REQUEST, ARTICLE_SUCCESS, ARTICLE_FAILURE] 16 | } 17 | }; 18 | } 19 | 20 | export default function reducer(state = {}, action) { 21 | switch (action.type) { 22 | case ARTICLE_REQUEST: 23 | return { 24 | loading: true, 25 | }; 26 | case ARTICLE_SUCCESS: 27 | return { ...action.payload.items, loading: false }; 28 | case ARTICLE_FAILURE: 29 | return { error: true, message: action.payload.message, loading: false }; 30 | default: 31 | return state; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/redux/modules/articles.js: -------------------------------------------------------------------------------- 1 | import merge from 'lodash.merge'; 2 | import { CALL_API } from 'redux-api-middleware'; 3 | 4 | export const ARTICLES_REQUEST = 'ARTICLES_REQUEST'; 5 | export const ARTICLES_SUCCESS = 'ARTICLES_SUCCESS'; 6 | export const ARTICLES_FAILURE = 'ARTICLES_FAILURE'; 7 | 8 | const API_ROOT = 'http://m.cnyes.com/api/v2'; 9 | 10 | export function fetchArticles() { 11 | return { 12 | [CALL_API]: { 13 | endpoint: `${API_ROOT}/news/headline`, 14 | method: 'GET', 15 | types: [ARTICLES_REQUEST, ARTICLES_SUCCESS, ARTICLES_FAILURE] 16 | } 17 | }; 18 | } 19 | 20 | export default function reducer(state = {}, action) { 21 | switch (action.type) { 22 | case ARTICLES_SUCCESS: 23 | return merge({}, state, action.payload.items.data); 24 | case ARTICLES_FAILURE: 25 | return action.payload.message; 26 | default: 27 | return state; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/redux/modules/routing.js: -------------------------------------------------------------------------------- 1 | import * as NavigationStateUtils from 'NavigationStateUtils'; 2 | 3 | // Actions 4 | export const NAVIGATE = 'NAVIGATE'; 5 | export const NAV_PUSH = 'NAV_PUSH'; 6 | export const NAV_POP = 'NAV_POP'; 7 | export const NAV_JUMP_TO_KEY = 'NAV_JUMP_TO_KEY'; 8 | export const NAV_JUMP_TO_INDEX = 'NAV_JUMP_TO_INDEX'; 9 | export const NAV_RESET = 'NAV_RESET'; 10 | 11 | const initialNavState = { 12 | index: 0, 13 | routes: [ 14 | { key: 'Articles' } 15 | ] 16 | }; 17 | 18 | // Action Creators 19 | export function navigatePush(data) { 20 | // state = typeof state === 'string' ? { key: state, title: state } : state; // eslint-disable-line no-param-reassign 21 | return { 22 | type: NAV_PUSH, 23 | data 24 | }; 25 | } 26 | 27 | export function navigatePop() { 28 | return { 29 | type: NAV_POP 30 | }; 31 | } 32 | 33 | export function navigateJumpToKey(key) { 34 | return { 35 | type: NAV_JUMP_TO_KEY, 36 | key 37 | }; 38 | } 39 | 40 | export function navigateJumpToIndex(index) { 41 | return { 42 | type: NAV_JUMP_TO_INDEX, 43 | index 44 | }; 45 | } 46 | 47 | export function navigateReset(routes, index) { 48 | return { 49 | type: NAV_RESET, 50 | index, 51 | routes 52 | }; 53 | } 54 | 55 | export default function reducer(state = initialNavState, action) { 56 | switch (action.type) { 57 | case NAV_PUSH: 58 | if (state.routes[state.index].key === (action.state && action.state.key)) { 59 | return state; 60 | } 61 | return NavigationStateUtils.push(state, action.data); 62 | 63 | case NAV_POP: 64 | if (state.index === 0 || state.routes.length === 1) { 65 | return state; 66 | } 67 | return NavigationStateUtils.pop(state); 68 | 69 | case NAV_JUMP_TO_KEY: 70 | return NavigationStateUtils.jumpTo(state, action.key); 71 | 72 | case NAV_JUMP_TO_INDEX: 73 | return NavigationStateUtils.jumpToIndex(state, action.index); 74 | 75 | case NAV_RESET: 76 | return NavigationStateUtils.reset(state, action.routes, action.index); 77 | 78 | default: 79 | return state; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /app/redux/reducers.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | import routing from './modules/routing'; 3 | import article from './modules/article'; 4 | import articles from './modules/articles'; 5 | 6 | export default combineReducers({ 7 | routing, 8 | article, 9 | articles 10 | }); 11 | -------------------------------------------------------------------------------- /app/store/configureStore.js: -------------------------------------------------------------------------------- 1 | import { Platform } from 'react-native'; 2 | import { createStore, applyMiddleware, compose } from 'redux'; 3 | import reducers from '../redux/reducers'; 4 | import devTools from 'remote-redux-devtools'; 5 | import { apiMiddleware } from 'redux-api-middleware'; 6 | 7 | const createStoreWithMiddleware = applyMiddleware(apiMiddleware)(createStore); 8 | 9 | let enhancer; 10 | 11 | if (__DEV__) { 12 | enhancer = compose( 13 | devTools({ 14 | name: Platform.OS, 15 | hostname: 'localhost', 16 | port: 5678 17 | }) 18 | ); 19 | } 20 | 21 | export default function configureStore(initialState = {}) { 22 | const store = createStoreWithMiddleware(reducers, initialState, enhancer); 23 | 24 | if (module.hot) { 25 | module.hot.accept(() => { 26 | store.replaceReducer(require('../redux/reducers').default); // eslint-disable-line global-require 27 | }); 28 | } 29 | 30 | return store; 31 | } 32 | -------------------------------------------------------------------------------- /demo/android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/demo/android.gif -------------------------------------------------------------------------------- /demo/debugger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/demo/debugger.png -------------------------------------------------------------------------------- /demo/ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chunghe/React-Native-News-Boilerplate/783423c223b26097e43ab4883c08ea4bd1a5171b/demo/ios.gif -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './app/app'; 3 | 4 | AppRegistry.registerComponent('navExpRedux', () => App); 5 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './app/app'; 3 | 4 | AppRegistry.registerComponent('navExpRedux', () => App); 5 | -------------------------------------------------------------------------------- /ios/navExpRedux.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* navExpReduxTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* navExpReduxTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 3BA14F343E1349FB9C1CB119 /* libRNSVG.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E7529129C18347B69D7757E4 /* libRNSVG.a */; }; 26 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 33 | proxyType = 2; 34 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 35 | remoteInfo = RCTActionSheet; 36 | }; 37 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 40 | proxyType = 2; 41 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 42 | remoteInfo = RCTGeolocation; 43 | }; 44 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 49 | remoteInfo = RCTImage; 50 | }; 51 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 56 | remoteInfo = RCTNetwork; 57 | }; 58 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 63 | remoteInfo = RCTVibration; 64 | }; 65 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 68 | proxyType = 1; 69 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 70 | remoteInfo = navExpRedux; 71 | }; 72 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 77 | remoteInfo = RCTSettings; 78 | }; 79 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 82 | proxyType = 2; 83 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 84 | remoteInfo = RCTWebSocket; 85 | }; 86 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 91 | remoteInfo = React; 92 | }; 93 | 5B2F62381D9CA44600321792 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 586CF2CA1CB541FAB5ABC539 /* RNSVG.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 0CF68AC11AF0540F00FF9E5C; 98 | remoteInfo = RNSVG; 99 | }; 100 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 105 | remoteInfo = RCTLinking; 106 | }; 107 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 110 | proxyType = 2; 111 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 112 | remoteInfo = RCTText; 113 | }; 114 | /* End PBXContainerItemProxy section */ 115 | 116 | /* Begin PBXFileReference section */ 117 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 118 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 119 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 120 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 121 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 122 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 123 | 00E356EE1AD99517003FC87E /* navExpReduxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = navExpReduxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 124 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 125 | 00E356F21AD99517003FC87E /* navExpReduxTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = navExpReduxTests.m; sourceTree = ""; }; 126 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 127 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 128 | 13B07F961A680F5B00A75B9A /* navExpRedux.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = navExpRedux.app; sourceTree = BUILT_PRODUCTS_DIR; }; 129 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = navExpRedux/AppDelegate.h; sourceTree = ""; }; 130 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = navExpRedux/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 = navExpRedux/Images.xcassets; sourceTree = ""; }; 133 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = navExpRedux/Info.plist; sourceTree = ""; }; 134 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = navExpRedux/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 | 586CF2CA1CB541FAB5ABC539 /* RNSVG.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNSVG.xcodeproj; path = "../node_modules/react-native-svg/ios/RNSVG.xcodeproj"; sourceTree = ""; }; 137 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 138 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 139 | E7529129C18347B69D7757E4 /* libRNSVG.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNSVG.a; sourceTree = ""; }; 140 | /* End PBXFileReference section */ 141 | 142 | /* Begin PBXFrameworksBuildPhase section */ 143 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 144 | isa = PBXFrameworksBuildPhase; 145 | buildActionMask = 2147483647; 146 | files = ( 147 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 148 | ); 149 | runOnlyForDeploymentPostprocessing = 0; 150 | }; 151 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 152 | isa = PBXFrameworksBuildPhase; 153 | buildActionMask = 2147483647; 154 | files = ( 155 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 156 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 157 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 158 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 159 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 160 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 161 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 162 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 163 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 164 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 165 | 3BA14F343E1349FB9C1CB119 /* libRNSVG.a in Frameworks */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXFrameworksBuildPhase section */ 170 | 171 | /* Begin PBXGroup section */ 172 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 176 | ); 177 | name = Products; 178 | sourceTree = ""; 179 | }; 180 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 184 | ); 185 | name = Products; 186 | sourceTree = ""; 187 | }; 188 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 192 | ); 193 | name = Products; 194 | sourceTree = ""; 195 | }; 196 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 200 | ); 201 | name = Products; 202 | sourceTree = ""; 203 | }; 204 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 208 | ); 209 | name = Products; 210 | sourceTree = ""; 211 | }; 212 | 00E356EF1AD99517003FC87E /* navExpReduxTests */ = { 213 | isa = PBXGroup; 214 | children = ( 215 | 00E356F21AD99517003FC87E /* navExpReduxTests.m */, 216 | 00E356F01AD99517003FC87E /* Supporting Files */, 217 | ); 218 | path = navExpReduxTests; 219 | sourceTree = ""; 220 | }; 221 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 222 | isa = PBXGroup; 223 | children = ( 224 | 00E356F11AD99517003FC87E /* Info.plist */, 225 | ); 226 | name = "Supporting Files"; 227 | sourceTree = ""; 228 | }; 229 | 139105B71AF99BAD00B5F7CC /* Products */ = { 230 | isa = PBXGroup; 231 | children = ( 232 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 233 | ); 234 | name = Products; 235 | sourceTree = ""; 236 | }; 237 | 139FDEE71B06529A00C62182 /* Products */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 241 | ); 242 | name = Products; 243 | sourceTree = ""; 244 | }; 245 | 13B07FAE1A68108700A75B9A /* navExpRedux */ = { 246 | isa = PBXGroup; 247 | children = ( 248 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 249 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 250 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 251 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 252 | 13B07FB61A68108700A75B9A /* Info.plist */, 253 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 254 | 13B07FB71A68108700A75B9A /* main.m */, 255 | ); 256 | name = navExpRedux; 257 | sourceTree = ""; 258 | }; 259 | 146834001AC3E56700842450 /* Products */ = { 260 | isa = PBXGroup; 261 | children = ( 262 | 146834041AC3E56700842450 /* libReact.a */, 263 | ); 264 | name = Products; 265 | sourceTree = ""; 266 | }; 267 | 5B2F622B1D9CA44600321792 /* Products */ = { 268 | isa = PBXGroup; 269 | children = ( 270 | 5B2F62391D9CA44600321792 /* libRNSVG.a */, 271 | ); 272 | name = Products; 273 | sourceTree = ""; 274 | }; 275 | 78C398B11ACF4ADC00677621 /* Products */ = { 276 | isa = PBXGroup; 277 | children = ( 278 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 279 | ); 280 | name = Products; 281 | sourceTree = ""; 282 | }; 283 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 284 | isa = PBXGroup; 285 | children = ( 286 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 287 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 288 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 289 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 290 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 291 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 292 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 293 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 294 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 295 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 296 | 586CF2CA1CB541FAB5ABC539 /* RNSVG.xcodeproj */, 297 | ); 298 | name = Libraries; 299 | sourceTree = ""; 300 | }; 301 | 832341B11AAA6A8300B99B32 /* Products */ = { 302 | isa = PBXGroup; 303 | children = ( 304 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 305 | ); 306 | name = Products; 307 | sourceTree = ""; 308 | }; 309 | 83CBB9F61A601CBA00E9B192 = { 310 | isa = PBXGroup; 311 | children = ( 312 | 13B07FAE1A68108700A75B9A /* navExpRedux */, 313 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 314 | 00E356EF1AD99517003FC87E /* navExpReduxTests */, 315 | 83CBBA001A601CBA00E9B192 /* Products */, 316 | ); 317 | indentWidth = 2; 318 | sourceTree = ""; 319 | tabWidth = 2; 320 | }; 321 | 83CBBA001A601CBA00E9B192 /* Products */ = { 322 | isa = PBXGroup; 323 | children = ( 324 | 13B07F961A680F5B00A75B9A /* navExpRedux.app */, 325 | 00E356EE1AD99517003FC87E /* navExpReduxTests.xctest */, 326 | ); 327 | name = Products; 328 | sourceTree = ""; 329 | }; 330 | /* End PBXGroup section */ 331 | 332 | /* Begin PBXNativeTarget section */ 333 | 00E356ED1AD99517003FC87E /* navExpReduxTests */ = { 334 | isa = PBXNativeTarget; 335 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "navExpReduxTests" */; 336 | buildPhases = ( 337 | 00E356EA1AD99517003FC87E /* Sources */, 338 | 00E356EB1AD99517003FC87E /* Frameworks */, 339 | 00E356EC1AD99517003FC87E /* Resources */, 340 | ); 341 | buildRules = ( 342 | ); 343 | dependencies = ( 344 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 345 | ); 346 | name = navExpReduxTests; 347 | productName = navExpReduxTests; 348 | productReference = 00E356EE1AD99517003FC87E /* navExpReduxTests.xctest */; 349 | productType = "com.apple.product-type.bundle.unit-test"; 350 | }; 351 | 13B07F861A680F5B00A75B9A /* navExpRedux */ = { 352 | isa = PBXNativeTarget; 353 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "navExpRedux" */; 354 | buildPhases = ( 355 | 13B07F871A680F5B00A75B9A /* Sources */, 356 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 357 | 13B07F8E1A680F5B00A75B9A /* Resources */, 358 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 359 | ); 360 | buildRules = ( 361 | ); 362 | dependencies = ( 363 | ); 364 | name = navExpRedux; 365 | productName = "Hello World"; 366 | productReference = 13B07F961A680F5B00A75B9A /* navExpRedux.app */; 367 | productType = "com.apple.product-type.application"; 368 | }; 369 | /* End PBXNativeTarget section */ 370 | 371 | /* Begin PBXProject section */ 372 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 373 | isa = PBXProject; 374 | attributes = { 375 | LastUpgradeCheck = 610; 376 | ORGANIZATIONNAME = Facebook; 377 | TargetAttributes = { 378 | 00E356ED1AD99517003FC87E = { 379 | CreatedOnToolsVersion = 6.2; 380 | TestTargetID = 13B07F861A680F5B00A75B9A; 381 | }; 382 | }; 383 | }; 384 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "navExpRedux" */; 385 | compatibilityVersion = "Xcode 3.2"; 386 | developmentRegion = English; 387 | hasScannedForEncodings = 0; 388 | knownRegions = ( 389 | en, 390 | Base, 391 | ); 392 | mainGroup = 83CBB9F61A601CBA00E9B192; 393 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 394 | projectDirPath = ""; 395 | projectReferences = ( 396 | { 397 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 398 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 399 | }, 400 | { 401 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 402 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 403 | }, 404 | { 405 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 406 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 407 | }, 408 | { 409 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 410 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 411 | }, 412 | { 413 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 414 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 415 | }, 416 | { 417 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 418 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 419 | }, 420 | { 421 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 422 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 423 | }, 424 | { 425 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 426 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 427 | }, 428 | { 429 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 430 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 431 | }, 432 | { 433 | ProductGroup = 146834001AC3E56700842450 /* Products */; 434 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 435 | }, 436 | { 437 | ProductGroup = 5B2F622B1D9CA44600321792 /* Products */; 438 | ProjectRef = 586CF2CA1CB541FAB5ABC539 /* RNSVG.xcodeproj */; 439 | }, 440 | ); 441 | projectRoot = ""; 442 | targets = ( 443 | 13B07F861A680F5B00A75B9A /* navExpRedux */, 444 | 00E356ED1AD99517003FC87E /* navExpReduxTests */, 445 | ); 446 | }; 447 | /* End PBXProject section */ 448 | 449 | /* Begin PBXReferenceProxy section */ 450 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 451 | isa = PBXReferenceProxy; 452 | fileType = archive.ar; 453 | path = libRCTActionSheet.a; 454 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 455 | sourceTree = BUILT_PRODUCTS_DIR; 456 | }; 457 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 458 | isa = PBXReferenceProxy; 459 | fileType = archive.ar; 460 | path = libRCTGeolocation.a; 461 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 462 | sourceTree = BUILT_PRODUCTS_DIR; 463 | }; 464 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 465 | isa = PBXReferenceProxy; 466 | fileType = archive.ar; 467 | path = libRCTImage.a; 468 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 469 | sourceTree = BUILT_PRODUCTS_DIR; 470 | }; 471 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 472 | isa = PBXReferenceProxy; 473 | fileType = archive.ar; 474 | path = libRCTNetwork.a; 475 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 476 | sourceTree = BUILT_PRODUCTS_DIR; 477 | }; 478 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 479 | isa = PBXReferenceProxy; 480 | fileType = archive.ar; 481 | path = libRCTVibration.a; 482 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 483 | sourceTree = BUILT_PRODUCTS_DIR; 484 | }; 485 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 486 | isa = PBXReferenceProxy; 487 | fileType = archive.ar; 488 | path = libRCTSettings.a; 489 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 490 | sourceTree = BUILT_PRODUCTS_DIR; 491 | }; 492 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 493 | isa = PBXReferenceProxy; 494 | fileType = archive.ar; 495 | path = libRCTWebSocket.a; 496 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 497 | sourceTree = BUILT_PRODUCTS_DIR; 498 | }; 499 | 146834041AC3E56700842450 /* libReact.a */ = { 500 | isa = PBXReferenceProxy; 501 | fileType = archive.ar; 502 | path = libReact.a; 503 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 504 | sourceTree = BUILT_PRODUCTS_DIR; 505 | }; 506 | 5B2F62391D9CA44600321792 /* libRNSVG.a */ = { 507 | isa = PBXReferenceProxy; 508 | fileType = archive.ar; 509 | path = libRNSVG.a; 510 | remoteRef = 5B2F62381D9CA44600321792 /* PBXContainerItemProxy */; 511 | sourceTree = BUILT_PRODUCTS_DIR; 512 | }; 513 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 514 | isa = PBXReferenceProxy; 515 | fileType = archive.ar; 516 | path = libRCTLinking.a; 517 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 518 | sourceTree = BUILT_PRODUCTS_DIR; 519 | }; 520 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 521 | isa = PBXReferenceProxy; 522 | fileType = archive.ar; 523 | path = libRCTText.a; 524 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 525 | sourceTree = BUILT_PRODUCTS_DIR; 526 | }; 527 | /* End PBXReferenceProxy section */ 528 | 529 | /* Begin PBXResourcesBuildPhase section */ 530 | 00E356EC1AD99517003FC87E /* Resources */ = { 531 | isa = PBXResourcesBuildPhase; 532 | buildActionMask = 2147483647; 533 | files = ( 534 | ); 535 | runOnlyForDeploymentPostprocessing = 0; 536 | }; 537 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 538 | isa = PBXResourcesBuildPhase; 539 | buildActionMask = 2147483647; 540 | files = ( 541 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 542 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 543 | ); 544 | runOnlyForDeploymentPostprocessing = 0; 545 | }; 546 | /* End PBXResourcesBuildPhase section */ 547 | 548 | /* Begin PBXShellScriptBuildPhase section */ 549 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 550 | isa = PBXShellScriptBuildPhase; 551 | buildActionMask = 2147483647; 552 | files = ( 553 | ); 554 | inputPaths = ( 555 | ); 556 | name = "Bundle React Native code and images"; 557 | outputPaths = ( 558 | ); 559 | runOnlyForDeploymentPostprocessing = 0; 560 | shellPath = /bin/sh; 561 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 562 | }; 563 | /* End PBXShellScriptBuildPhase section */ 564 | 565 | /* Begin PBXSourcesBuildPhase section */ 566 | 00E356EA1AD99517003FC87E /* Sources */ = { 567 | isa = PBXSourcesBuildPhase; 568 | buildActionMask = 2147483647; 569 | files = ( 570 | 00E356F31AD99517003FC87E /* navExpReduxTests.m in Sources */, 571 | ); 572 | runOnlyForDeploymentPostprocessing = 0; 573 | }; 574 | 13B07F871A680F5B00A75B9A /* Sources */ = { 575 | isa = PBXSourcesBuildPhase; 576 | buildActionMask = 2147483647; 577 | files = ( 578 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 579 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 580 | ); 581 | runOnlyForDeploymentPostprocessing = 0; 582 | }; 583 | /* End PBXSourcesBuildPhase section */ 584 | 585 | /* Begin PBXTargetDependency section */ 586 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 587 | isa = PBXTargetDependency; 588 | target = 13B07F861A680F5B00A75B9A /* navExpRedux */; 589 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 590 | }; 591 | /* End PBXTargetDependency section */ 592 | 593 | /* Begin PBXVariantGroup section */ 594 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 595 | isa = PBXVariantGroup; 596 | children = ( 597 | 13B07FB21A68108700A75B9A /* Base */, 598 | ); 599 | name = LaunchScreen.xib; 600 | path = navExpRedux; 601 | sourceTree = ""; 602 | }; 603 | /* End PBXVariantGroup section */ 604 | 605 | /* Begin XCBuildConfiguration section */ 606 | 00E356F61AD99517003FC87E /* Debug */ = { 607 | isa = XCBuildConfiguration; 608 | buildSettings = { 609 | BUNDLE_LOADER = "$(TEST_HOST)"; 610 | GCC_PREPROCESSOR_DEFINITIONS = ( 611 | "DEBUG=1", 612 | "$(inherited)", 613 | ); 614 | INFOPLIST_FILE = navExpReduxTests/Info.plist; 615 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 616 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 617 | LIBRARY_SEARCH_PATHS = ( 618 | "$(inherited)", 619 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 620 | ); 621 | PRODUCT_NAME = "$(TARGET_NAME)"; 622 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/navExpRedux.app/navExpRedux"; 623 | }; 624 | name = Debug; 625 | }; 626 | 00E356F71AD99517003FC87E /* Release */ = { 627 | isa = XCBuildConfiguration; 628 | buildSettings = { 629 | BUNDLE_LOADER = "$(TEST_HOST)"; 630 | COPY_PHASE_STRIP = NO; 631 | INFOPLIST_FILE = navExpReduxTests/Info.plist; 632 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 633 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 634 | LIBRARY_SEARCH_PATHS = ( 635 | "$(inherited)", 636 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 637 | ); 638 | PRODUCT_NAME = "$(TARGET_NAME)"; 639 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/navExpRedux.app/navExpRedux"; 640 | }; 641 | name = Release; 642 | }; 643 | 13B07F941A680F5B00A75B9A /* Debug */ = { 644 | isa = XCBuildConfiguration; 645 | buildSettings = { 646 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 647 | DEAD_CODE_STRIPPING = NO; 648 | HEADER_SEARCH_PATHS = ( 649 | "$(inherited)", 650 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 651 | "$(SRCROOT)/../node_modules/react-native/React/**", 652 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 653 | ); 654 | INFOPLIST_FILE = navExpRedux/Info.plist; 655 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 656 | OTHER_LDFLAGS = ( 657 | "$(inherited)", 658 | "-ObjC", 659 | "-lc++", 660 | ); 661 | PRODUCT_NAME = navExpRedux; 662 | }; 663 | name = Debug; 664 | }; 665 | 13B07F951A680F5B00A75B9A /* Release */ = { 666 | isa = XCBuildConfiguration; 667 | buildSettings = { 668 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 669 | HEADER_SEARCH_PATHS = ( 670 | "$(inherited)", 671 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 672 | "$(SRCROOT)/../node_modules/react-native/React/**", 673 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 674 | ); 675 | INFOPLIST_FILE = navExpRedux/Info.plist; 676 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 677 | OTHER_LDFLAGS = ( 678 | "$(inherited)", 679 | "-ObjC", 680 | "-lc++", 681 | ); 682 | PRODUCT_NAME = navExpRedux; 683 | }; 684 | name = Release; 685 | }; 686 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 687 | isa = XCBuildConfiguration; 688 | buildSettings = { 689 | ALWAYS_SEARCH_USER_PATHS = NO; 690 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 691 | CLANG_CXX_LIBRARY = "libc++"; 692 | CLANG_ENABLE_MODULES = YES; 693 | CLANG_ENABLE_OBJC_ARC = YES; 694 | CLANG_WARN_BOOL_CONVERSION = YES; 695 | CLANG_WARN_CONSTANT_CONVERSION = YES; 696 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 697 | CLANG_WARN_EMPTY_BODY = YES; 698 | CLANG_WARN_ENUM_CONVERSION = YES; 699 | CLANG_WARN_INT_CONVERSION = YES; 700 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 701 | CLANG_WARN_UNREACHABLE_CODE = YES; 702 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 703 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 704 | COPY_PHASE_STRIP = NO; 705 | ENABLE_STRICT_OBJC_MSGSEND = YES; 706 | GCC_C_LANGUAGE_STANDARD = gnu99; 707 | GCC_DYNAMIC_NO_PIC = NO; 708 | GCC_OPTIMIZATION_LEVEL = 0; 709 | GCC_PREPROCESSOR_DEFINITIONS = ( 710 | "DEBUG=1", 711 | "$(inherited)", 712 | ); 713 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 714 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 715 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 716 | GCC_WARN_UNDECLARED_SELECTOR = YES; 717 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 718 | GCC_WARN_UNUSED_FUNCTION = YES; 719 | GCC_WARN_UNUSED_VARIABLE = YES; 720 | HEADER_SEARCH_PATHS = ( 721 | "$(inherited)", 722 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 723 | "$(SRCROOT)/../node_modules/react-native/React/**", 724 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 725 | ); 726 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 727 | MTL_ENABLE_DEBUG_INFO = YES; 728 | ONLY_ACTIVE_ARCH = YES; 729 | SDKROOT = iphoneos; 730 | }; 731 | name = Debug; 732 | }; 733 | 83CBBA211A601CBA00E9B192 /* Release */ = { 734 | isa = XCBuildConfiguration; 735 | buildSettings = { 736 | ALWAYS_SEARCH_USER_PATHS = NO; 737 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 738 | CLANG_CXX_LIBRARY = "libc++"; 739 | CLANG_ENABLE_MODULES = YES; 740 | CLANG_ENABLE_OBJC_ARC = YES; 741 | CLANG_WARN_BOOL_CONVERSION = YES; 742 | CLANG_WARN_CONSTANT_CONVERSION = YES; 743 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 744 | CLANG_WARN_EMPTY_BODY = YES; 745 | CLANG_WARN_ENUM_CONVERSION = YES; 746 | CLANG_WARN_INT_CONVERSION = YES; 747 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 748 | CLANG_WARN_UNREACHABLE_CODE = YES; 749 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 750 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 751 | COPY_PHASE_STRIP = YES; 752 | ENABLE_NS_ASSERTIONS = NO; 753 | ENABLE_STRICT_OBJC_MSGSEND = YES; 754 | GCC_C_LANGUAGE_STANDARD = gnu99; 755 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 756 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 757 | GCC_WARN_UNDECLARED_SELECTOR = YES; 758 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 759 | GCC_WARN_UNUSED_FUNCTION = YES; 760 | GCC_WARN_UNUSED_VARIABLE = YES; 761 | HEADER_SEARCH_PATHS = ( 762 | "$(inherited)", 763 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 764 | "$(SRCROOT)/../node_modules/react-native/React/**", 765 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 766 | ); 767 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 768 | MTL_ENABLE_DEBUG_INFO = NO; 769 | SDKROOT = iphoneos; 770 | VALIDATE_PRODUCT = YES; 771 | }; 772 | name = Release; 773 | }; 774 | /* End XCBuildConfiguration section */ 775 | 776 | /* Begin XCConfigurationList section */ 777 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "navExpReduxTests" */ = { 778 | isa = XCConfigurationList; 779 | buildConfigurations = ( 780 | 00E356F61AD99517003FC87E /* Debug */, 781 | 00E356F71AD99517003FC87E /* Release */, 782 | ); 783 | defaultConfigurationIsVisible = 0; 784 | defaultConfigurationName = Release; 785 | }; 786 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "navExpRedux" */ = { 787 | isa = XCConfigurationList; 788 | buildConfigurations = ( 789 | 13B07F941A680F5B00A75B9A /* Debug */, 790 | 13B07F951A680F5B00A75B9A /* Release */, 791 | ); 792 | defaultConfigurationIsVisible = 0; 793 | defaultConfigurationName = Release; 794 | }; 795 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "navExpRedux" */ = { 796 | isa = XCConfigurationList; 797 | buildConfigurations = ( 798 | 83CBBA201A601CBA00E9B192 /* Debug */, 799 | 83CBBA211A601CBA00E9B192 /* Release */, 800 | ); 801 | defaultConfigurationIsVisible = 0; 802 | defaultConfigurationName = Release; 803 | }; 804 | /* End XCConfigurationList section */ 805 | }; 806 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 807 | } 808 | -------------------------------------------------------------------------------- /ios/navExpRedux.xcodeproj/xcshareddata/xcschemes/navExpRedux.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 | -------------------------------------------------------------------------------- /ios/navExpRedux/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/navExpRedux/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 "RCTBundleURLProvider.h" 13 | #import "RCTRootView.h" 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"navExpRedux" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/navExpRedux/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/navExpRedux/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/navExpRedux/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSAllowsArbitraryLoads 45 | 46 | 47 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ios/navExpRedux/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/navExpReduxTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/navExpReduxTests/navExpReduxTests.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 "RCTLog.h" 14 | #import "RCTRootView.h" 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface navExpReduxTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation navExpReduxTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "navExpRedux", 3 | "version": "1.0.0", 4 | "private": true, 5 | "author": "Joshua Lyman", 6 | "license": "MIT", 7 | "scripts": { 8 | "lint": "eslint .", 9 | "lint-staged": "lint-staged", 10 | "lint-pass": "echo '\\033[4;32m♡' Awsome!!! you are great to commit ♡' \\033[0m'", 11 | "postinstall": "remotedev-debugger --hostname localhost --port 5678 --injectserver" 12 | }, 13 | "lint-staged": { 14 | "eslint": "*.js" 15 | }, 16 | "pre-commit": [ 17 | "lint-staged", 18 | "lint-pass" 19 | ], 20 | "dependencies": { 21 | "lodash.merge": "^4.4.0", 22 | "lodash.unescape": "^4.0.1", 23 | "react": "~15.3.1", 24 | "react-native": "~0.34.1", 25 | "react-native-html-render": "^1.0.4", 26 | "react-native-svg": "^4.3.1", 27 | "react-redux": "^4.4.0", 28 | "redux": "^3.3.1", 29 | "redux-api-middleware": "chunghe/RN-redux-api-middleware#master" 30 | }, 31 | "devDependencies": { 32 | "babel-eslint": "^6.1.0", 33 | "eslint": "^2.13.1", 34 | "eslint-config-airbnb": "^9.0.1", 35 | "eslint-plugin-import": "^1.9.2", 36 | "eslint-plugin-jsx-a11y": "^1.5.3", 37 | "eslint-plugin-react": "^5.2.2", 38 | "lint-staged": "^1.0.1", 39 | "pre-commit": "^1.1.3", 40 | "remote-redux-devtools": "^0.4.9", 41 | "remote-redux-devtools-on-debugger": "^0.6.2", 42 | "rnpm-plugin-upgrade": "^0.26.0" 43 | } 44 | } 45 | --------------------------------------------------------------------------------