├── .add-pre-commit-hook ├── .buckconfig ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .pre-commit ├── .watchmanconfig ├── LICENSE ├── README.md ├── index.android.js ├── index.ios.js ├── js ├── App.js ├── AppNavigator.js ├── actions │ ├── drawer.js │ ├── sideBarNav.js │ └── types.js ├── components │ ├── index │ │ └── index.js │ ├── loaders │ │ ├── ProgressBar.android.js │ │ ├── ProgressBar.ios.js │ │ ├── Spinner.android.js │ │ └── Spinner.ios.js │ ├── sideBar │ │ └── index.js │ └── splashscreen │ │ └── index.js ├── configureStore.js ├── promise.js ├── reducers │ ├── cardNavigation.js │ ├── drawer.js │ └── index.js ├── setup.js └── themes │ └── base-theme.js └── package.json /.add-pre-commit-hook: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cp ./.pre-commit ./.git/hooks/pre-commit 4 | exit 0 5 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/react-native-native-base-seed/26a386da4ab762d7312c7f1c1e9ea90bdce36818/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "extends": "airbnb", 4 | "plugins": [ 5 | "react", 6 | "jsx-a11y", 7 | "import", 8 | "react-native" 9 | ], 10 | "rules": { 11 | "no-underscore-dangle": "off", 12 | "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] 13 | }, 14 | "settings": { 15 | "import/resolver": { 16 | "node": { 17 | "extensions": [".js", ".android.js", ".ios.js"] 18 | } 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*[.]android.js 5 | 6 | # Ignore templates with `@flow` in header 7 | .*/local-cli/generator.* 8 | 9 | # Ignore malformed json 10 | .*/node_modules/y18n/test/.*\.json 11 | 12 | # Ignore the website subdir 13 | /website/.* 14 | 15 | # Ignore BUCK generated dirs 16 | /\.buckd/ 17 | 18 | # Ignore unexpected extra @providesModule 19 | .*/node_modules/commoner/test/source/widget/share.js 20 | 21 | # Ignore duplicate module providers 22 | # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root 23 | .*/Libraries/react-native/React.js 24 | .*/Libraries/react-native/ReactNative.js 25 | .*/node_modules/jest-runtime/build/__tests__/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | node_modules/react-native/flow 32 | flow/ 33 | 34 | [options] 35 | module.system=haste 36 | 37 | esproposal.class_static_fields=enable 38 | esproposal.class_instance_fields=enable 39 | 40 | experimental.strict_type_args=true 41 | 42 | munge_underscores=true 43 | 44 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 45 | 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' 46 | 47 | suppress_type=$FlowIssue 48 | suppress_type=$FlowFixMe 49 | suppress_type=$FixMe 50 | 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 52 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 53 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 54 | 55 | unsafe.enable_getters_and_setters=true 56 | 57 | [version] 58 | ^0.30.0 59 | -------------------------------------------------------------------------------- /.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 | .idea 28 | .gradle 29 | local.properties 30 | 31 | # node.js 32 | # 33 | node_modules/ 34 | npm-debug.log 35 | 36 | # BUCK 37 | buck-out/ 38 | \.buckd/ 39 | android/app/libs 40 | android/keystores/debug.keystore 41 | -------------------------------------------------------------------------------- /.pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/zsh 2 | 3 | # function lintit () { 4 | # OUTPUT=$(git diff --name-only | grep -E '(.js|.jsx)$') 5 | # a=("${(f)OUTPUT}") 6 | # e=$(npm run eslint $a) 7 | # echo $e 8 | # if [[ "$e" != *"0 errors"* ] || [ "$e" != *"0 errors"* ]]; then 9 | # echo "ERROR: Check eslint hints." 10 | # exit 1 # reject 11 | # fi 12 | # } 13 | # lintit 14 | # exit 0 15 | 16 | STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") 17 | 18 | if [[ "$STAGED_FILES" = "" ]]; then 19 | exit 0 20 | fi 21 | 22 | PASS=true 23 | 24 | echo "\nValidating Javascript:\n" 25 | 26 | 27 | for FILE in $STAGED_FILES 28 | do 29 | npm run eslint "$FILE" 30 | 31 | if [[ "$?" == 0 ]]; then 32 | echo "\t\033[32mESLint Passed: $FILE\033[0m" 33 | else 34 | echo "\t\033[41mESLint Failed: $FILE\033[0m" 35 | PASS=false 36 | fi 37 | done 38 | 39 | echo "\nJavascript validation completed!\n" 40 | 41 | if ! $PASS; then 42 | echo "\033[41mCOMMIT FAILED:\033[0m Your commit contains files that should pass ESLint but do not. Please fix the ESLint errors and try again.\n" 43 | exit 1 44 | else 45 | echo "\033[42mCOMMIT SUCCEEDED\033[0m\n" 46 | fi 47 | 48 | exit $? 49 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## No longer maintained 2 | # React Native-NativeBase Seed v5.2.0 3 | 4 | React Native-NativeBase Seed is a basic configuration that every React Native app must have. 5 | 6 | This is open source and perfect for any newbie to start with React Native. 7 | 8 | This is a [React Native](https://github.com/facebook/react-native) Project with [NativeBase](http://nativebase.io/documentation), [Navigation Experimental](https://facebook.github.io/react-native/docs/navigation.html#navigationexperimental), [Redux](http://redux.js.org/), [CodePush](https://github.com/Microsoft/react-native-code-push), Router, Push Notification and other basic must-have libraries. 9 | 10 | 11 | ## Get Started 12 | 13 | ### 1. System Requirements 14 | 15 | * Globally installed [node](https://nodejs.org/en/) >= 4.0 16 | 17 | * Globally installed [npm](https://www.npmjs.org/) >= 3.0 18 | 19 | * Globally installed [rnpm](https://github.com/rnpm/rnpm) *(only if React Native version < 0.29)* 20 | 21 | * Globally installed [react-native CLI](https://facebook.github.io/react-native/docs/getting-started.html) 22 | 23 | * Install [CodePush](https://microsoft.github.io/code-push/) globally and get keys for your app. 24 | 25 | 26 | ### 2. Installation 27 | 28 | A few set of commands, and you are ready to get going. 29 | 30 | ``` 31 | git clone git@github.com:GeekyAnts/react-native-native-base-seed.git 32 | 33 | cd react-native-native-base-seed 34 | 35 | npm install 36 | 37 | react-native upgrade 38 | 39 | react-native android 40 | ``` 41 | If React Native < 0.29 42 | 43 | ```sh 44 | $rnpm link 45 | ``` 46 | 47 | If React Native >= 0.29 48 | 49 | ```sh 50 | $ react-native link 51 | ``` 52 | 53 | While running `react-native android` do not overwrite `index.android.js` file. 54 | 55 | [CodePush](https://github.com/Microsoft/react-native-code-push) plugin installation and key deployment. 56 | 57 | 58 | ### 3. Simulate for iOS 59 | 60 | **Method One** 61 | 62 | * Open the project in XCode from **ios/ReactNativeNativeBaseSeed.xcodeproj** 63 | 64 | * Hit the play button. 65 | 66 | 67 | **Method Two** 68 | 69 | * Run the following command in your terminal 70 | 71 | ```sh 72 | $ react-native run-ios 73 | ``` 74 | 75 | ### 4. Simulate for Android 76 | 77 | * Make sure you have an **Android emulator** installed and running. 78 | 79 | * Run the following command in your terminal 80 | 81 | ```sh 82 | $ react-native run-android 83 | ``` 84 | 85 | Note: If you are building React Native-NativeBase Seed for first time on your system, please follow Method One to simulate on iOS. (To link the CodePush plugin through Xcode for iOS) 86 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | 2 | import { AppRegistry } from 'react-native'; 3 | import setup from './js/setup'; 4 | 5 | AppRegistry.registerComponent('ReactNativeNativeBaseSeed', setup); 6 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | 2 | import { AppRegistry } from 'react-native'; 3 | import setup from './js/setup'; 4 | 5 | AppRegistry.registerComponent('ReactNativeNativeBaseSeed', setup); 6 | -------------------------------------------------------------------------------- /js/App.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { StyleSheet } from 'react-native'; 4 | import CodePush from 'react-native-code-push'; 5 | import Modal from 'react-native-modalbox'; 6 | 7 | import { Container, Content, Text, View } from 'native-base'; 8 | 9 | import AppNavigator from './AppNavigator'; 10 | import ProgressBar from './components/loaders/ProgressBar'; 11 | import theme from './themes/base-theme'; 12 | 13 | const styles = StyleSheet.create({ 14 | container: { 15 | flex: 1, 16 | width: null, 17 | height: null, 18 | }, 19 | modal: { 20 | justifyContent: 'center', 21 | alignItems: 'center', 22 | }, 23 | modal1: { 24 | height: 300, 25 | }, 26 | }); 27 | 28 | class App extends Component { 29 | 30 | constructor(props) { 31 | super(props); 32 | this.state = { 33 | showDownloadingModal: false, 34 | showInstalling: false, 35 | downloadProgress: 0, 36 | }; 37 | } 38 | 39 | componentDidMount() { 40 | CodePush.sync({ updateDialog: true, installMode: CodePush.InstallMode.IMMEDIATE }, 41 | (status) => { 42 | switch (status) { 43 | case CodePush.SyncStatus.DOWNLOADING_PACKAGE: 44 | this.setState({ showDownloadingModal: true }); 45 | this._modal.open(); 46 | break; 47 | case CodePush.SyncStatus.INSTALLING_UPDATE: 48 | this.setState({ showInstalling: true }); 49 | break; 50 | case CodePush.SyncStatus.UPDATE_INSTALLED: 51 | this._modal.close(); 52 | this.setState({ showDownloadingModal: false }); 53 | break; 54 | default: 55 | break; 56 | } 57 | }, 58 | ({ receivedBytes, totalBytes }) => { 59 | this.setState({ downloadProgress: (receivedBytes / totalBytes) * 100 }); 60 | } 61 | ); 62 | } 63 | 64 | render() { 65 | if (this.state.showDownloadingModal) { 66 | return ( 67 | 68 | 69 | { this._modal = c; }} 73 | swipeToClose={false} 74 | > 75 | 76 | {this.state.showInstalling ? 77 | 78 | Installing update... 79 | : 80 | 81 | 82 | Downloading update... {`${parseInt(this.state.downloadProgress, 10)} %`} 83 | 84 | 85 | 86 | } 87 | 88 | 89 | 90 | 91 | ); 92 | } 93 | 94 | return ; 95 | } 96 | } 97 | 98 | export default App; 99 | -------------------------------------------------------------------------------- /js/AppNavigator.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { BackAndroid, StatusBar, NavigationExperimental } from 'react-native'; 4 | import { connect } from 'react-redux'; 5 | import { Drawer } from 'native-base'; 6 | import { actions } from 'react-native-navigation-redux-helpers'; 7 | 8 | import { closeDrawer } from './actions/drawer'; 9 | 10 | import Index from './components/index/'; 11 | import SplashPage from './components/splashscreen/'; 12 | import SideBar from './components/sideBar'; 13 | import { statusBarColor } from './themes/base-theme'; 14 | 15 | 16 | const { 17 | popRoute, 18 | } = actions; 19 | 20 | const { 21 | CardStack: NavigationCardStack, 22 | } = NavigationExperimental; 23 | 24 | class AppNavigator extends Component { 25 | 26 | static propTypes = { 27 | drawerState: React.PropTypes.string, 28 | popRoute: React.PropTypes.func, 29 | closeDrawer: React.PropTypes.func, 30 | navigation: React.PropTypes.shape({ 31 | key: React.PropTypes.string, 32 | routes: React.PropTypes.array, 33 | }), 34 | } 35 | 36 | componentDidMount() { 37 | BackAndroid.addEventListener('hardwareBackPress', () => { 38 | const routes = this.props.navigation.routes; 39 | 40 | if (routes[routes.length - 1].key === 'home' || routes[routes.length - 1].key === 'login') { 41 | return false; 42 | } 43 | 44 | this.props.popRoute(this.props.navigation.key); 45 | return true; 46 | }); 47 | } 48 | 49 | componentDidUpdate() { 50 | if (this.props.drawerState === 'opened') { 51 | this.openDrawer(); 52 | } 53 | 54 | if (this.props.drawerState === 'closed') { 55 | this._drawer.close(); 56 | } 57 | } 58 | 59 | popRoute() { 60 | this.props.popRoute(); 61 | } 62 | 63 | openDrawer() { 64 | this._drawer.open(); 65 | } 66 | 67 | closeDrawer() { 68 | if (this.props.drawerState === 'opened') { 69 | this.props.closeDrawer(); 70 | } 71 | } 72 | 73 | _renderScene(props) { // eslint-disable-line class-methods-use-this 74 | switch (props.scene.route.key) { 75 | case 'splashscreen': 76 | return ; 77 | case 'index': 78 | return ; 79 | default : 80 | return ; 81 | } 82 | } 83 | 84 | render() { 85 | return ( 86 | { this._drawer = ref; }} 88 | type="overlay" 89 | tweenDuration={150} 90 | content={} 91 | tapToClose 92 | acceptPan={false} 93 | onClose={() => this.closeDrawer()} 94 | openDrawerOffset={0.2} 95 | panCloseMask={0.2} 96 | styles={{ 97 | drawer: { 98 | shadowColor: '#000000', 99 | shadowOpacity: 0.8, 100 | shadowRadius: 3, 101 | }, 102 | }} 103 | tweenHandler={(ratio) => { //eslint-disable-line 104 | return { 105 | drawer: { shadowRadius: ratio < 0.2 ? ratio * 5 * 5 : 5 }, 106 | main: { 107 | opacity: (2 - ratio) / 2, 108 | }, 109 | }; 110 | }} 111 | negotiatePan 112 | > 113 | 117 | 122 | 123 | ); 124 | } 125 | } 126 | 127 | function bindAction(dispatch) { 128 | return { 129 | closeDrawer: () => dispatch(closeDrawer()), 130 | popRoute: () => dispatch(popRoute()), 131 | }; 132 | } 133 | 134 | const mapStateToProps = state => ({ 135 | drawerState: state.drawer.drawerState, 136 | navigation: state.cardNavigation, 137 | }); 138 | 139 | export default connect(mapStateToProps, bindAction)(AppNavigator); 140 | -------------------------------------------------------------------------------- /js/actions/drawer.js: -------------------------------------------------------------------------------- 1 | 2 | import type { Action } from './types'; 3 | 4 | export const OPEN_DRAWER = 'OPEN_DRAWER'; 5 | export const CLOSE_DRAWER = 'CLOSE_DRAWER'; 6 | 7 | export function openDrawer():Action { 8 | return { 9 | type: OPEN_DRAWER, 10 | }; 11 | } 12 | 13 | export function closeDrawer():Action { 14 | return { 15 | type: CLOSE_DRAWER, 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /js/actions/sideBarNav.js: -------------------------------------------------------------------------------- 1 | 2 | import { actions } from 'react-native-navigation-redux-helpers'; 3 | import { closeDrawer } from './drawer'; 4 | 5 | const { 6 | replaceAt, 7 | popRoute, 8 | pushRoute, 9 | } = actions; 10 | 11 | export default function navigateTo(route, homeRoute) { 12 | return (dispatch, getState) => { 13 | const navigation = getState().cardNavigation; 14 | const currentRouteKey = navigation.routes[navigation.routes.length - 1].key; 15 | 16 | dispatch(closeDrawer()); 17 | 18 | if (currentRouteKey !== homeRoute && route !== homeRoute) { 19 | dispatch(replaceAt(currentRouteKey, { key: route, index: 1 }, navigation.key)); 20 | } else if (currentRouteKey !== homeRoute && route === homeRoute) { 21 | dispatch(popRoute(navigation.key)); 22 | } else if (currentRouteKey === homeRoute && route !== homeRoute) { 23 | dispatch(pushRoute({ key: route, index: 1 }, navigation.key)); 24 | } 25 | }; 26 | } 27 | -------------------------------------------------------------------------------- /js/actions/types.js: -------------------------------------------------------------------------------- 1 | 2 | export type Action = 3 | { type: 'PUSH_NEW_ROUTE', route: string } 4 | | { type: 'POP_ROUTE' } 5 | | { type: 'POP_TO_ROUTE', route: string } 6 | | { type: 'REPLACE_ROUTE', route: string } 7 | | { type: 'REPLACE_OR_PUSH_ROUTE', route: string } 8 | | { type: 'OPEN_DRAWER'} 9 | | { type: 'CLOSE_DRAWER'} 10 | 11 | export type Dispatch = (action:Action | Array) => any; 12 | export type GetState = () => Object; 13 | export type PromiseAction = Promise; 14 | -------------------------------------------------------------------------------- /js/components/index/index.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { connect } from 'react-redux'; 4 | import { actions } from 'react-native-navigation-redux-helpers'; 5 | import { Container, Content, Text } from 'native-base'; 6 | 7 | import myTheme from '../../themes/base-theme'; 8 | 9 | const { 10 | pushRoute, 11 | replaceAt, 12 | } = actions; 13 | 14 | class Index extends Component { 15 | 16 | static propTypes = { 17 | replaceAt: React.PropTypes.func, 18 | pushRoute: React.PropTypes.func, 19 | navigation: React.PropTypes.shape({ 20 | key: React.PropTypes.string, 21 | }), 22 | } 23 | 24 | replaceAt(route) { 25 | this.props.replaceAt('index', { key: route }, this.props.navigation.key); 26 | } 27 | 28 | pushRoute(route) { 29 | this.props.pushRoute({ key: route, index: 1 }, this.props.navigation.key); 30 | } 31 | 32 | render() { // eslint-disable-line class-methods-use-this 33 | return ( 34 | 35 | 36 | 37 | React Native - NativeBase Seed 38 | 39 | 40 | 41 | ); 42 | } 43 | } 44 | 45 | function bindActions(dispatch) { 46 | return { 47 | replaceAt: (routeKey, route, key) => dispatch(replaceAt(routeKey, route, key)), 48 | pushRoute: (route, key) => dispatch(pushRoute(route, key)), 49 | }; 50 | } 51 | 52 | const mapStateToProps = state => ({ 53 | navigation: state.cardNavigation, 54 | }); 55 | 56 | export default connect(mapStateToProps, bindActions)(Index); 57 | -------------------------------------------------------------------------------- /js/components/loaders/ProgressBar.android.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import React from 'react'; 4 | import ProgressBarAndroid from 'react-native'; 5 | import NativeBaseComponent from 'native-base/dist/Components/Base/NativeBaseComponent'; 6 | import computeProps from 'native-base/dist/Utils/computeProps'; 7 | 8 | 9 | export default class SpinnerNB extends NativeBaseComponent { 10 | 11 | prepareRootProps() { 12 | const type = { 13 | height: 40, 14 | }; 15 | 16 | const defaultProps = { 17 | style: type, 18 | }; 19 | 20 | return computeProps(this.props, defaultProps); 21 | } 22 | 23 | 24 | render() { 25 | const getColor = () => { 26 | if (this.props.color) { 27 | return this.props.color; 28 | } else if (this.props.inverse) { 29 | return this.getTheme().inverseProgressColor; 30 | } 31 | 32 | return this.getTheme().defaultProgressColor; 33 | }; 34 | 35 | return ( 36 | 43 | ); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /js/components/loaders/ProgressBar.ios.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import React from 'react'; 4 | import { ProgressViewIOS } from 'react-native'; 5 | import NativeBaseComponent from 'native-base/dist/Components/Base/NativeBaseComponent'; 6 | 7 | export default class ProgressBarNB extends NativeBaseComponent { 8 | 9 | 10 | render() { 11 | const getColor = () => { 12 | if (this.props.color) { 13 | return this.props.color; 14 | } else if (this.props.inverse) { 15 | return this.getTheme().inverseProgressColor; 16 | } 17 | 18 | return this.getTheme().defaultProgressColor; 19 | }; 20 | 21 | return ( 22 | 26 | ); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /js/components/loaders/Spinner.android.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import React from 'react'; 4 | import ProgressBarAndroid from 'react-native'; 5 | import NativeBaseComponent from 'native-base/dist/Components/Base/NativeBaseComponent'; 6 | import computeProps from 'native-base/dist/Utils/computeProps'; 7 | 8 | export default class SpinnerNB extends NativeBaseComponent { 9 | 10 | prepareRootProps() { 11 | const type = { 12 | height: 40, 13 | }; 14 | 15 | const defaultProps = { 16 | style: type, 17 | }; 18 | 19 | return computeProps(this.props, defaultProps); 20 | } 21 | 22 | 23 | render() { 24 | const getColor = () => { 25 | if (this.props.color) { 26 | return this.props.color; 27 | } else if (this.props.inverse) { 28 | return this.getTheme().inverseSpinnerColor; 29 | } 30 | 31 | return this.getTheme().defaultSpinnerColor; 32 | }; 33 | 34 | return ( 35 | 40 | ); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /js/components/loaders/Spinner.ios.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import React from 'react'; 4 | import { ActivityIndicatorIOS } from 'react-native'; 5 | import NativeBaseComponent from 'native-base/dist/Components/Base/NativeBaseComponent'; 6 | import computeProps from 'native-base/dist/Utils/computeProps'; 7 | 8 | 9 | export default class SpinnerNB extends NativeBaseComponent { 10 | 11 | prepareRootProps() { 12 | const type = { 13 | height: 80, 14 | }; 15 | 16 | const defaultProps = { 17 | style: type, 18 | }; 19 | 20 | return computeProps(this.props, defaultProps); 21 | } 22 | 23 | 24 | render() { 25 | const getColor = () => { 26 | if (this.props.color) { 27 | return this.props.color; 28 | } else if (this.props.inverse) { 29 | return this.getTheme().inverseSpinnerColor; 30 | } 31 | 32 | return this.getTheme().defaultSpinnerColor; 33 | }; 34 | 35 | return ( 36 | 41 | ); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /js/components/sideBar/index.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { connect } from 'react-redux'; 4 | import { View } from 'native-base'; 5 | 6 | import navigateTo from '../../actions/sideBarNav'; 7 | 8 | class SideBar extends Component { 9 | 10 | static propTypes = { 11 | navigateTo: React.PropTypes.func, 12 | } 13 | navigateTo(route) { 14 | this.props.navigateTo(route, 'index'); 15 | } 16 | 17 | render() { // eslint-disable-line class-methods-use-this 18 | return ( 19 | 20 | ); 21 | } 22 | } 23 | 24 | function bindAction(dispatch) { 25 | return { 26 | navigateTo: (route, homeRoute) => dispatch(navigateTo(route, homeRoute)), 27 | }; 28 | } 29 | 30 | const mapStateToProps = state => ({ 31 | navigation: state.cardNavigation, 32 | }); 33 | 34 | export default connect(mapStateToProps, bindAction)(SideBar); 35 | -------------------------------------------------------------------------------- /js/components/splashscreen/index.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { View } from 'native-base'; 4 | 5 | 6 | export default class SplashPage extends Component { 7 | 8 | static propTypes = { 9 | navigator: React.PropTypes.shape({}), 10 | } 11 | 12 | componentWillMount() { 13 | const navigator = this.props.navigator; 14 | setTimeout(() => { 15 | navigator.replace({ 16 | id: 'index', 17 | }); 18 | }, 1500); 19 | } 20 | 21 | 22 | render() { // eslint-disable-line class-methods-use-this 23 | return ( 24 | 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /js/configureStore.js: -------------------------------------------------------------------------------- 1 | 2 | import { persistStore } from 'redux-persist'; 3 | import { AsyncStorage } from 'react-native'; 4 | import { createStore, applyMiddleware, compose } from 'redux'; 5 | import devTools from 'remote-redux-devtools'; 6 | import thunk from 'redux-thunk'; 7 | import reducer from './reducers'; 8 | import promise from './promise'; 9 | 10 | export default function configureStore(onCompletion:()=>void):any { 11 | const enhancer = compose( 12 | applyMiddleware(thunk, promise), 13 | devTools({ 14 | name: 'ReactNativeNativeBaseSeed', realtime: true, 15 | }), 16 | ); 17 | 18 | const store = createStore(reducer, enhancer); 19 | persistStore(store, { storage: AsyncStorage }, onCompletion); 20 | 21 | return store; 22 | } 23 | -------------------------------------------------------------------------------- /js/promise.js: -------------------------------------------------------------------------------- 1 | 2 | function warn(error) { 3 | throw error; // To let the caller handle the rejection 4 | } 5 | 6 | module.exports = () => next => action => ( 7 | typeof action.then === 'function' 8 | ? Promise.resolve(action).then(next, warn) 9 | : next(action) 10 | ); 11 | -------------------------------------------------------------------------------- /js/reducers/cardNavigation.js: -------------------------------------------------------------------------------- 1 | 2 | import { cardStackReducer } from 'react-native-navigation-redux-helpers'; 3 | 4 | const initialState = { 5 | key: 'global', 6 | index: 0, 7 | routes: [ 8 | { 9 | key: 'index', 10 | index: 0, 11 | }, 12 | ], 13 | }; 14 | 15 | module.exports = cardStackReducer(initialState); 16 | -------------------------------------------------------------------------------- /js/reducers/drawer.js: -------------------------------------------------------------------------------- 1 | 2 | import type { Action } from '../actions/types'; 3 | import { OPEN_DRAWER, CLOSE_DRAWER } from '../actions/drawer'; 4 | 5 | export type State = { 6 | drawerState: string, 7 | drawerDisabled: boolean 8 | } 9 | 10 | const initialState = { 11 | drawerState: 'closed', 12 | drawerDisabled: true, 13 | }; 14 | 15 | export default function (state:State = initialState, action:Action): State { 16 | if (action.type === OPEN_DRAWER) { 17 | return { 18 | ...state, 19 | drawerState: 'opened', 20 | }; 21 | } 22 | 23 | if (action.type === CLOSE_DRAWER) { 24 | return { 25 | ...state, 26 | drawerState: 'closed', 27 | }; 28 | } 29 | 30 | return state; 31 | } 32 | -------------------------------------------------------------------------------- /js/reducers/index.js: -------------------------------------------------------------------------------- 1 | 2 | import { combineReducers } from 'redux'; 3 | 4 | import drawer from './drawer'; 5 | import cardNavigation from './cardNavigation'; 6 | 7 | export default combineReducers({ 8 | drawer, 9 | cardNavigation, 10 | }); 11 | -------------------------------------------------------------------------------- /js/setup.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { Provider } from 'react-redux'; 4 | import App from './App'; 5 | import configureStore from './configureStore'; 6 | 7 | function setup():React.Component { 8 | class Root extends Component { 9 | 10 | constructor() { 11 | super(); 12 | this.state = { 13 | isLoading: false, 14 | store: configureStore(() => this.setState({ isLoading: false })), 15 | }; 16 | } 17 | 18 | render() { 19 | return ( 20 | 21 | 22 | 23 | ); 24 | } 25 | } 26 | return Root; 27 | } 28 | 29 | export default setup; 30 | -------------------------------------------------------------------------------- /js/themes/base-theme.js: -------------------------------------------------------------------------------- 1 | import color from 'color'; 2 | 3 | import { Platform } from 'react-native'; 4 | 5 | export default { 6 | 7 | // Badge 8 | badgeBg: '#ED1727', 9 | badgeColor: '#fff', 10 | 11 | 12 | // Button 13 | btnFontFamily: (Platform.OS === 'ios') ? 'HelveticaNeue' : 'Roboto_medium', 14 | btnDisabledBg: '#b5b5b5', 15 | btnDisabledClr: '#f1f1f1', 16 | 17 | get btnPrimaryBg() { 18 | return this.brandPrimary; 19 | }, 20 | get btnPrimaryColor() { 21 | return this.inverseTextColor; 22 | }, 23 | get btnInfoBg() { 24 | return this.brandInfo; 25 | }, 26 | get btnInfoColor() { 27 | return this.inverseTextColor; 28 | }, 29 | get btnSuccessBg() { 30 | return this.brandSuccess; 31 | }, 32 | get btnSuccessColor() { 33 | return this.inverseTextColor; 34 | }, 35 | get btnDangerBg() { 36 | return this.brandDanger; 37 | }, 38 | get btnDangerColor() { 39 | return this.inverseTextColor; 40 | }, 41 | get btnWarningBg() { 42 | return this.brandWarning; 43 | }, 44 | get btnWarningColor() { 45 | return this.inverseTextColor; 46 | }, 47 | get btnTextSize() { 48 | return (Platform.OS === 'ios') ? this.fontSizeBase * 1.1 : 49 | this.fontSizeBase - 1; 50 | }, 51 | get btnTextSizeLarge() { 52 | return this.fontSizeBase * 1.5; 53 | }, 54 | get btnTextSizeSmall() { 55 | return this.fontSizeBase * 0.8; 56 | }, 57 | get borderRadiusLarge() { 58 | return this.fontSizeBase * 3.8; 59 | }, 60 | 61 | buttonPadding: 6, 62 | 63 | get iconSizeLarge() { 64 | return this.iconFontSize * 1.5; 65 | }, 66 | get iconSizeSmall() { 67 | return this.iconFontSize * 0.6; 68 | }, 69 | 70 | 71 | // Card 72 | cardDefaultBg: '#fff', 73 | 74 | 75 | // Check Box 76 | checkboxBgColor: '#039BE5', 77 | checkboxSize: 23, 78 | checkboxTickColor: '#fff', 79 | 80 | 81 | // Color 82 | brandPrimary: '#5067FF', 83 | brandInfo: '#5bc0de', 84 | brandSuccess: '#5cb85c', 85 | brandDanger: '#d9534f', 86 | brandWarning: '#f0ad4e', 87 | brandSidebar: '#252932', 88 | 89 | 90 | // Font 91 | fontFamily: (Platform.OS === 'ios') ? 'HelveticaNeue' : 'Roboto', 92 | fontSizeBase: 15, 93 | 94 | get fontSizeH1() { 95 | return this.fontSizeBase * 1.8; 96 | }, 97 | get fontSizeH2() { 98 | return this.fontSizeBase * 1.6; 99 | }, 100 | get fontSizeH3() { 101 | return this.fontSizeBase * 1.4; 102 | }, 103 | 104 | 105 | // Footer 106 | footerHeight: 55, 107 | footerDefaultBg: (Platform.OS === 'ios') ? '#F8F8F8' : '#4179F7', 108 | 109 | 110 | // FooterTab 111 | tabBarTextColor: (Platform.OS === 'ios') ? '#6b6b6b' : '#b3c7f9', 112 | tabBarActiveTextColor: (Platform.OS === 'ios') ? '#007aff' : '#fff', 113 | tabActiveBgColor: (Platform.OS === 'ios') ? '#cde1f9' : undefined, 114 | 115 | 116 | // Header 117 | iosToolbarBtnColor: '#007aff', 118 | toolbarDefaultBg: (Platform.OS === 'ios') ? '#F8F8F8' : '#4179F7', 119 | toolbarHeight: (Platform.OS === 'ios') ? 64 : 56, 120 | toolbarIconSize: (Platform.OS === 'ios') ? 20 : 22, 121 | toolbarInputColor: '#CECDD2', 122 | toolbarInverseBg: '#222', 123 | toolbarTextColor: (Platform.OS === 'ios') ? '#000' : '#fff', 124 | get statusBarColor() { 125 | return color(this.toolbarDefaultBg).darken(0.2).hexString(); 126 | }, 127 | 128 | 129 | // Icon 130 | iconFamily: 'Ionicons', 131 | iconFontSize: (Platform.OS === 'ios') ? 30 : 28, 132 | iconMargin: 7, 133 | 134 | 135 | // InputGroup 136 | inputFontSize: 15, 137 | inputBorderColor: '#D9D5DC', 138 | inputSuccessBorderColor: '#2b8339', 139 | inputErrorBorderColor: '#ed2f2f', 140 | 141 | get inputColor() { 142 | return this.textColor; 143 | }, 144 | get inputColorPlaceholder() { 145 | return '#575757'; 146 | }, 147 | 148 | inputGroupMarginBottom: 10, 149 | inputHeightBase: 40, 150 | inputPaddingLeft: 5, 151 | 152 | get inputPaddingLeftIcon() { 153 | return this.inputPaddingLeft * 8; 154 | }, 155 | 156 | 157 | // Line Height 158 | btnLineHeight: 19, 159 | lineHeightH1: 32, 160 | lineHeightH2: 27, 161 | lineHeightH3: 22, 162 | iconLineHeight: (Platform.OS === 'ios') ? 37 : 30, 163 | lineHeight: (Platform.OS === 'ios') ? 20 : 24, 164 | 165 | 166 | // List 167 | listBorderColor: '#ddd', 168 | listDividerBg: '#ddd', 169 | listItemHeight: 45, 170 | listItemPadding: 9, 171 | listNoteColor: '#808080', 172 | listNoteSize: 13, 173 | 174 | 175 | // Progress Bar 176 | defaultProgressColor: '#E4202D', 177 | inverseProgressColor: '#1A191B', 178 | 179 | 180 | // Radio Button 181 | radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, 182 | radioColor: '#7e7e7e', 183 | 184 | get radioSelectedColor() { 185 | return color(this.radioColor).darken(0.2).hexString(); 186 | }, 187 | 188 | 189 | // Spinner 190 | defaultSpinnerColor: '#45D56E', 191 | inverseSpinnerColor: '#1A191B', 192 | 193 | 194 | // Tabs 195 | tabBgColor: '#F8F8F8', 196 | tabFontSize: 15, 197 | tabTextColor: '#fff', 198 | 199 | 200 | // Text 201 | textColor: '#000', 202 | inverseTextColor: '#fff', 203 | 204 | 205 | // Title 206 | titleFontSize: (Platform.OS === 'ios') ? 17 : 19, 207 | subTitleFontSize: (Platform.OS === 'ios') ? 12 : 14, 208 | subtitleColor: '#8e8e93', 209 | 210 | 211 | // Other 212 | borderRadiusBase: (Platform.OS === 'ios') ? 5 : 2, 213 | borderWidth: 1, 214 | contentPadding: 10, 215 | 216 | get darkenHeader() { 217 | return color(this.tabBgColor).darken(0.03).hexString(); 218 | }, 219 | 220 | dropdownBg: '#000', 221 | dropdownLinkColor: '#414142', 222 | inputLineHeight: 24, 223 | jumbotronBg: '#C9C9CE', 224 | jumbotronPadding: 30, 225 | }; 226 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeNativeBaseSeed", 3 | "version": "5.3.0", 4 | "private": true, 5 | "scripts": { 6 | "postinstall": "remotedev-debugger && sh .add-pre-commit-hook", 7 | "start": "node_modules/react-native/packager/packager.sh", 8 | "eslint": "eslint" 9 | }, 10 | "dependencies": { 11 | "color": "^0.11.3", 12 | "lodash": "^4.13.1", 13 | "moment": "^2.13.0", 14 | "native-base": "0.5.22", 15 | "react": "15.4.2", 16 | "react-native": "0.41.2", 17 | "react-native-code-push": "1.17.0-beta", 18 | "react-native-easy-grid": "0.1.8", 19 | "react-native-modalbox": "^1.3.4", 20 | "react-native-navigation-redux-helpers": "^0.5.0", 21 | "react-native-vector-icons": "^4.0.0", 22 | "react-redux": "^5.0.2", 23 | "redux": "^3.6.0", 24 | "redux-persist": "^4.0.0", 25 | "redux-thunk": "^2.2.0", 26 | "remote-redux-devtools": "^0.5.0", 27 | "remote-redux-devtools-on-debugger": "^0.7.0" 28 | }, 29 | "devDependencies": { 30 | "chai": "^3.5.0", 31 | "babel-eslint": "^6.1.2", 32 | "eslint": "^3.5.0", 33 | "eslint-config-airbnb": "^11.1.0", 34 | "eslint-plugin-import": "^1.14.0", 35 | "eslint-plugin-jsx-a11y": "^2.2.1", 36 | "eslint-plugin-react": "^6.2.0", 37 | "eslint-plugin-react-native": "^2.0.0", 38 | "mocha": "^2.5.3" 39 | }, 40 | "keywords": [ 41 | "android", 42 | "ios", 43 | "react", 44 | "native", 45 | "react-native", 46 | "native-base", 47 | "native-modules", 48 | "react-component", 49 | "navbar", 50 | "packager", 51 | "rnpm", 52 | "es6", 53 | "redux", 54 | "react-native-code-push", 55 | "react-native boilerplate", 56 | "react-native with redux", 57 | "react-native with redux boilerplate", 58 | "native-base boilerplate", 59 | "react-native with native-base" 60 | ] 61 | } 62 | --------------------------------------------------------------------------------