├── .watchmanconfig ├── todolist.gif ├── app ├── themes │ ├── default │ │ ├── img │ │ │ └── time.png │ │ ├── index.js │ │ ├── variables.js │ │ └── styles.js │ └── index.js ├── reducers │ ├── theme.js │ ├── index.js │ ├── visibilityFilter.js │ └── todos.js ├── App.js ├── actions │ └── index.js ├── components │ ├── Button.js │ ├── Filter.js │ ├── Todos.js │ ├── AddTodo.js │ └── Todo.js └── containers │ ├── SceneContainer.js │ ├── AddTodoScene.js │ └── TodoListScene.js ├── android ├── app │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ └── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── assets │ │ │ └── fonts │ │ │ │ ├── Entypo.ttf │ │ │ │ ├── Zocial.ttf │ │ │ │ ├── EvilIcons.ttf │ │ │ │ ├── Foundation.ttf │ │ │ │ ├── Ionicons.ttf │ │ │ │ ├── Octicons.ttf │ │ │ │ ├── FontAwesome.ttf │ │ │ │ └── MaterialIcons.ttf │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── reactnativetodolist │ │ │ └── MainActivity.java │ ├── BUCK │ ├── proguard-rules.pro │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── keystores │ ├── debug.keystore.properties │ └── BUCK ├── settings.gradle ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── .buckconfig ├── index.ios.js ├── index.android.js ├── .editorconfig ├── ios ├── ReactNativeTodoList │ ├── AppDelegate.h │ ├── main.m │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── AppDelegate.m │ └── Base.lproj │ │ └── LaunchScreen.xib ├── ReactNativeTodoListTests │ ├── Info.plist │ └── ReactNativeTodoListTests.m └── ReactNativeTodoList.xcodeproj │ ├── xcshareddata │ └── xcschemes │ │ └── ReactNativeTodoList.xcscheme │ └── project.pbxproj ├── .gitignore ├── LICENSE ├── .eslintrc ├── package.json ├── README.md └── .flowconfig /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /todolist.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/todolist.gif -------------------------------------------------------------------------------- /app/themes/default/img/time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/app/themes/default/img/time.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ReactNativeTodoList 4 | 5 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './app/App'; 3 | 4 | AppRegistry.registerComponent('ReactNativeTodoList', () => App); 5 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './app/App'; 3 | 4 | AppRegistry.registerComponent('ReactNativeTodoList', () => App); 5 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uiheros/react-native-redux-todo-list/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /app/themes/default/index.js: -------------------------------------------------------------------------------- 1 | import variables from './variables'; 2 | import styles from './styles'; 3 | 4 | const theme = { 5 | styles, 6 | variables 7 | }; 8 | 9 | export default theme; 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeTodoList' 2 | 3 | include ':app' 4 | include ':react-native-vector-icons' 5 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/reducers/theme.js: -------------------------------------------------------------------------------- 1 | import { SET_THEME } from '../actions'; 2 | 3 | const theme = (state = 'slateGray', action) => { 4 | switch (action.type) { 5 | case SET_THEME: 6 | return action.theme; 7 | default: 8 | return state; 9 | } 10 | }; 11 | 12 | export default theme; 13 | -------------------------------------------------------------------------------- /app/reducers/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | import todos from './todos'; 3 | import visibilityFilter from './visibilityFilter'; 4 | import theme from './theme'; 5 | 6 | const todoApp = combineReducers({ 7 | todos, 8 | visibilityFilter, 9 | theme 10 | }); 11 | 12 | export default todoApp; 13 | -------------------------------------------------------------------------------- /app/reducers/visibilityFilter.js: -------------------------------------------------------------------------------- 1 | import { SET_VISIBILITY_FILTER } from '../actions'; 2 | 3 | const visibilityFilter = (state = 'SHOW_ACTIVE', action) => { 4 | switch (action.type) { 5 | case SET_VISIBILITY_FILTER: 6 | return action.filter; 7 | default: 8 | return state; 9 | } 10 | }; 11 | 12 | export default visibilityFilter; 13 | -------------------------------------------------------------------------------- /app/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { createStore } from 'redux'; 3 | import { Provider } from 'react-redux'; 4 | import todoApp from './reducers'; 5 | import SceneContainer from './containers/SceneContainer'; 6 | 7 | const store = createStore(todoApp); 8 | 9 | class App extends Component { 10 | 11 | render() { 12 | 13 | return ( 14 | 15 | 16 | 17 | ); 18 | } 19 | } 20 | 21 | export default App; 22 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList/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 | -------------------------------------------------------------------------------- /app/themes/default/variables.js: -------------------------------------------------------------------------------- 1 | const blue='#007aff'; 2 | const slategray='#708090'; 3 | const lightslategray='#778899'; 4 | 5 | const variables = { 6 | colorMain: slategray, 7 | colorSecondary: lightslategray, 8 | colorNavBg: slategray, 9 | colorNavbarText: blue, 10 | colorMainText: blue, 11 | colorSecondaryText: '#363636', 12 | colorBorder: '#cccccc', 13 | colorWhite: '#ffffff', 14 | colorDisabled: '#c7c7c7', 15 | colorPlaceHolderText: '#ddd', 16 | mainBgImg: require('./img/time.png'), 17 | }; 18 | 19 | export default variables; 20 | -------------------------------------------------------------------------------- /app/actions/index.js: -------------------------------------------------------------------------------- 1 | let nextTodoId = 0; 2 | 3 | export const SET_THEME = 'SET_THEME'; 4 | export const SET_VISIBILITY_FILTER = 'SET_VISIBILITY_FILTER'; 5 | 6 | export const addTodo = (title) => { 7 | return { 8 | type: 'ADD_TODO', 9 | id: nextTodoId++, 10 | title 11 | }; 12 | }; 13 | 14 | export const setVisibilityFilter = (filter) => { 15 | return { 16 | type: SET_VISIBILITY_FILTER, 17 | filter 18 | }; 19 | }; 20 | 21 | export const toggleTodo = (id) => { 22 | return { 23 | type: 'TOGGLE_TODO', 24 | id 25 | }; 26 | }; 27 | -------------------------------------------------------------------------------- /app/themes/index.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | import {default as slateGray} from './default'; 3 | 4 | export const themes = { 5 | 'slateGray': slateGray 6 | }; 7 | 8 | export const themeable = (component, themeMapper) => { 9 | const mapStateToProps = (state) => { 10 | const theme = themes[state.theme]; 11 | const props = themeMapper(theme); 12 | return { 13 | ...props 14 | }; 15 | }; 16 | 17 | const mapDispatchToProps = () => ({}); 18 | 19 | return connect( 20 | mapStateToProps, 21 | mapDispatchToProps 22 | )(component); 23 | }; 24 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList/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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | .deco 5 | 6 | # Xcode 7 | # 8 | build/ 9 | *.pbxuser 10 | !default.pbxuser 11 | *.mode1v3 12 | !default.mode1v3 13 | *.mode2v3 14 | !default.mode2v3 15 | *.perspectivev3 16 | !default.perspectivev3 17 | xcuserdata 18 | *.xccheckout 19 | *.moved-aside 20 | DerivedData 21 | *.hmap 22 | *.ipa 23 | *.xcuserstate 24 | project.xcworkspace 25 | 26 | # Android/IJ 27 | # 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 | -------------------------------------------------------------------------------- /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 "$projectDir/../../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList/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/ReactNativeTodoListTests/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 uiheros 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 | -------------------------------------------------------------------------------- /app/components/Button.js: -------------------------------------------------------------------------------- 1 | import React, { PropTypes } from 'react'; 2 | import { 3 | Text, 4 | TouchableHighlight 5 | } from 'react-native'; 6 | import { themeable } from '../themes'; 7 | 8 | const Button = (props) => { 9 | const { 10 | style, 11 | underlayColor, 12 | btnTextStyle, 13 | disabledStyle, 14 | disabled, 15 | children, 16 | onPress 17 | } = props; 18 | 19 | const btnStyles = [style]; 20 | if (disabled) btnStyles.push(disabledStyle); 21 | 22 | return ( 23 | 28 | { children } 29 | 30 | ); 31 | }; 32 | 33 | const ThemeableButton = themeable(Button, (theme) => { 34 | const { styles, variables } = theme; 35 | return { 36 | style: styles.button, 37 | btnTextStyle: styles.buttonText, 38 | underlayColor: variables.colorMain, 39 | disabledStyle: styles.buttonDisabled 40 | }; 41 | }); 42 | 43 | ThemeableButton.propTypes = { 44 | onPress: PropTypes.func.isRequired 45 | }; 46 | 47 | export default ThemeableButton; 48 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/components/Filter.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { 3 | Text, 4 | TouchableHighlight, 5 | } from 'react-native'; 6 | import { themeable } from '../themes'; 7 | 8 | class Filter extends Component { 9 | constructor(props) { 10 | super(props); 11 | this.onPress = this.onPress.bind(this); 12 | } 13 | 14 | onPress() { 15 | this.props.onPress(!this.props.activeOnly); 16 | } 17 | 18 | render() { 19 | const {style, textStyle, activeOnly} = this.props; 20 | const text = activeOnly ? 'Show Completed' : 'Show Active Only'; 21 | 22 | return ( 23 | 28 | {text} 29 | 30 | ); 31 | } 32 | } 33 | 34 | const ThemeableFilter = themeable(Filter, (theme) => { 35 | const { styles } = theme; 36 | return { 37 | style: styles.filterItem, 38 | textStyle: styles.filterTextStyle, 39 | }; 40 | }); 41 | 42 | ThemeableFilter.propTypes = { 43 | onPress: PropTypes.func.isRequired, 44 | activeOnly: PropTypes.bool.isRequired 45 | }; 46 | 47 | export default ThemeableFilter; 48 | -------------------------------------------------------------------------------- /app/containers/SceneContainer.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | Navigator, 4 | Image, 5 | } from 'react-native'; 6 | import { themeable } from '../themes'; 7 | import TodoList from './TodoListScene'; 8 | 9 | class Navigation extends Component { 10 | configureScene() { 11 | return { 12 | ...Navigator.SceneConfigs.PushFromRight, 13 | gestures: {} 14 | }; 15 | } 16 | 17 | renderScene(route, navigator) { 18 | if (route.component) { 19 | return React.createElement(route.component, { navigator, ...route.passProps }); 20 | } 21 | } 22 | 23 | render() { 24 | const {mainBgImgStyle, mainBgImgSrc} = this.props; 25 | 26 | return ( 27 | 28 | 33 | 34 | ); 35 | } 36 | } 37 | 38 | const ThemeableNavigation = themeable(Navigation, (theme) => { 39 | const { styles, variables } = theme; 40 | return { 41 | mainBgImgStyle: styles.mainBgImg, 42 | mainBgImgSrc: variables.mainBgImg 43 | }; 44 | }); 45 | 46 | export default ThemeableNavigation; 47 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "extends": "eslint:recommended", 4 | "ecmaFeatures": { 5 | "modules": true, 6 | "jsx": true 7 | }, 8 | "env": { 9 | "browser": true, 10 | "es6": true, 11 | "node": true, 12 | "jasmine": true 13 | }, 14 | "globals": { 15 | "module": true, 16 | "define": true 17 | }, 18 | "plugins": [ 19 | "react", 20 | "react-native" 21 | ], 22 | "rules":{ 23 | "camelcase": 2, 24 | "comma-dangle": 0, 25 | "indent": [2, 2, {"SwitchCase": 1}], 26 | "max-params": [2, 5], 27 | "max-depth": [2, 2], 28 | "complexity": [2, 6], 29 | "max-len": [2, 160, 4], 30 | "new-cap": 2, 31 | "semi": 2, 32 | "no-trailing-spaces": 2, 33 | "space-before-blocks": 2, 34 | "keyword-spacing": 2, 35 | "eol-last": 2, 36 | "no-multiple-empty-lines": 2, 37 | "react/jsx-no-undef": 2, 38 | "react/jsx-uses-vars": 2, 39 | "react/no-unknown-property": 2, 40 | "react/jsx-boolean-value": [1, "always"], 41 | "react/jsx-uses-react": 1, 42 | "react/no-did-mount-set-state": 1, 43 | "react/no-did-update-set-state": 1, 44 | "react/no-multi-comp": 1, 45 | "react/react-in-jsx-scope": 1, 46 | "react/self-closing-comp": 1, 47 | "react-native/no-unused-styles": 2, 48 | "react-native/split-platform-components": 2 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/components/Todos.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { View, ListView } from 'react-native'; 3 | import Todo from './Todo'; 4 | 5 | const ds = new ListView.DataSource({ 6 | rowHasChanged: (row1, row2) => row1.id !== row2.id, 7 | }); 8 | 9 | class Todos extends Component { 10 | constructor(props) { 11 | super(props); 12 | this.state = { 13 | dataSource: ds.cloneWithRows(props.todos) 14 | }; 15 | this.renderRow = this.renderRow.bind(this); 16 | } 17 | 18 | renderRow(todo) { 19 | const {onTodoPress} = this.props; 20 | return ; 21 | } 22 | 23 | updateDataSource(todos) { 24 | this.setState({ 25 | dataSource: ds.cloneWithRows(todos) 26 | }); 27 | } 28 | 29 | componentWillReceiveProps(newProps) { 30 | this.updateDataSource(newProps.todos); 31 | } 32 | 33 | render() { 34 | return ( 35 | 36 | 42 | 43 | ); 44 | } 45 | } 46 | 47 | Todos.propTypes = { 48 | todos: PropTypes.array.isRequired, 49 | onTodoPress: PropTypes.func.isRequired 50 | }; 51 | 52 | export default Todos; 53 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativetodolist/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativetodolist; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.oblador.vectoricons.VectorIconsPackage; 5 | import com.facebook.react.ReactPackage; 6 | import com.facebook.react.shell.MainReactPackage; 7 | 8 | import java.util.Arrays; 9 | import java.util.List; 10 | 11 | public class MainActivity extends ReactActivity { 12 | 13 | /** 14 | * Returns the name of the main component registered from JavaScript. 15 | * This is used to schedule rendering of the component. 16 | */ 17 | @Override 18 | protected String getMainComponentName() { 19 | return "ReactNativeTodoList"; 20 | } 21 | 22 | /** 23 | * Returns whether dev mode should be enabled. 24 | * This enables e.g. the dev menu. 25 | */ 26 | @Override 27 | protected boolean getUseDeveloperSupport() { 28 | return BuildConfig.DEBUG; 29 | } 30 | 31 | /** 32 | * A list of packages used by the app. If the app uses additional views 33 | * or modules besides the default ones, add more packages here. 34 | */ 35 | @Override 36 | protected List getPackages() { 37 | return Arrays.asList( 38 | new MainReactPackage(), 39 | new VectorIconsPackage() 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-redux-todo-list", 3 | "version": "1.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "ios": "react-native run-ios", 8 | "android": "react-native run-android", 9 | "lint": "eslint app/", 10 | "test": "npm run lint" 11 | }, 12 | "dependencies": { 13 | "react": "15.0.2", 14 | "react-native": "0.26.3", 15 | "react-native-navbar": "^1.5.0", 16 | "react-native-vector-icons": "^2.0.3", 17 | "react-redux": "^4.4.5", 18 | "redux": "^3.5.2" 19 | }, 20 | "devDependencies": { 21 | "babel-eslint": "^6.0.4", 22 | "eslint": "^2.11.1", 23 | "eslint-plugin-react": "^5.1.1", 24 | "eslint-plugin-react-native": "^1.1.0-beta" 25 | }, 26 | "author": "viruschidai@gmail.com", 27 | "license": "MIT", 28 | "description": "A sample React Native Todo app which uses Redux for managing app state", 29 | "main": "index.ios.js", 30 | "repository": { 31 | "type": "git", 32 | "url": "git+https://github.com/uiheros/react-native-redux-todo-list.git" 33 | }, 34 | "keywords": [ 35 | "react", 36 | "react-native", 37 | "redux", 38 | "todo", 39 | "todolist" 40 | ], 41 | "bugs": { 42 | "url": "https://github.com/uiheros/react-native-redux-todo-list/issues" 43 | }, 44 | "homepage": "https://github.com/uiheros/react-native-redux-todo-list#readme" 45 | } 46 | -------------------------------------------------------------------------------- /app/reducers/todos.js: -------------------------------------------------------------------------------- 1 | const todo = (state, action) => { 2 | switch (action.type) { 3 | case 'ADD_TODO': 4 | return { 5 | id: action.id, 6 | title: action.title, 7 | createdAt: new Date(), 8 | completedAt: null, 9 | completed: false 10 | }; 11 | case 'TOGGLE_TODO': 12 | if (state.id !== action.id) { 13 | return state; 14 | } 15 | 16 | return Object.assign({}, state, { 17 | completed: !state.completed, 18 | completedAt: !state.completed ? new Date() : null 19 | }); 20 | default: 21 | return state; 22 | } 23 | }; 24 | 25 | const defaultTodos = [ 26 | {id: 1, title: 'Clean up garage', createdAt: new Date(), completed: false}, 27 | {id: 2, title: 'Install BBQ', createdAt: new Date(), completed: false}, 28 | {id: 3, title: 'Watch NBA final', createdAt: new Date(), completed: false}, 29 | {id: 4, title: 'Buy supprise egg', createdAt: new Date(), completed: false}, 30 | {id: 5, title: 'Watch Iron Man 3', createdAt: new Date(), completed: false}, 31 | ]; 32 | 33 | const todos = (state = defaultTodos, action) => { 34 | switch (action.type) { 35 | case 'ADD_TODO': 36 | return [ 37 | ...state, 38 | todo(undefined, action) 39 | ]; 40 | case 'TOGGLE_TODO': 41 | return state.map(t => 42 | todo(t, action) 43 | ); 44 | default: 45 | return state; 46 | } 47 | }; 48 | 49 | export default todos; 50 | -------------------------------------------------------------------------------- /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.reactnativetodolist', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.reactnativetodolist', 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 | -------------------------------------------------------------------------------- /app/components/AddTodo.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { View, TextInput } from 'react-native'; 3 | import { themeable } from '../themes'; 4 | 5 | import Button from './Button'; 6 | 7 | class AddTodo extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | text: '' 12 | }; 13 | this.save = this.save.bind(this); 14 | this.reset = this.reset.bind(this); 15 | this.handleTextChange = this.handleTextChange.bind(this); 16 | } 17 | 18 | handleTextChange(text) { 19 | this.setState({text}); 20 | } 21 | 22 | reset() { 23 | this.setState({text: ''}); 24 | } 25 | 26 | save() { 27 | this.props.saveTodo(this.state.text); 28 | } 29 | 30 | render() { 31 | const { style, placeholderTextColor, textInputStyle } = this.props; 32 | const btnDisabled = this.state.text.trim().length === 0; 33 | return ( 34 | 35 | 43 | 44 | 45 | 46 | ); 47 | } 48 | } 49 | 50 | const ThemeableAddTodo = themeable(AddTodo, (theme) => { 51 | const { styles, variables } = theme; 52 | return { 53 | placeholderTextColor: variables.colorPlaceHolderText, 54 | style: styles.todoEditForm, 55 | textInputStyle: styles.addTodoInput 56 | }; 57 | }); 58 | 59 | ThemeableAddTodo.propTypes = { 60 | saveTodo: PropTypes.func, 61 | onFinish: PropTypes.func 62 | }; 63 | 64 | export default ThemeableAddTodo; 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-redux-todo-list 2 | 3 | A sample todo list app developed by using React Native and Redux. 4 | 5 | [![BuddyBuild](https://dashboard.buddybuild.com/api/statusImage?appID=57565cc3ecb54601001fe9d7&branch=master&build=latest)](https://dashboard.buddybuild.com/apps/57565cc3ecb54601001fe9d7/build/latest) 6 | [![Language](https://img.shields.io/badge/language-ES%206-orange.svg)](https://github.com/lukehoban/es6features#readme) 7 | [![Platforms](https://img.shields.io/badge/platform-iOS%20%7C%20Android-lightgrey.svg)](http://facebook.github.io/react-native/docs/getting-started.html) 8 | [![License](https://img.shields.io/github/license/uiheros/react-native-redux-todo-list.svg?style=flat)](https://github.com/uiheros/react-native-redux-todo-list/blob/master/LICENSE) 9 | 10 | ![alt tag](https://github.com/uiheros/react-native-redux-todo-list/blob/master/todolist.gif) 11 | 12 | ## How to run the app 13 | 14 | ### Install react-native 15 | 16 | If you don't have `react-native-cli` installed, please get it installed by following the instructions in [Get started with react-native](https://facebook.github.io/react-native/docs/getting-started.html#requirements) 17 | 18 | ### Clone this repo and install its dependencies 19 | 20 | ```bash 21 | git clone https://github.com/uiheros/react-native-redux-todo-list.git 22 | cd react-native-redux-todo-list 23 | npm install 24 | ``` 25 | 26 | ### Start the app 27 | 28 | #### For iOS, run 29 | ```bash 30 | react-native run-ios 31 | # or 32 | npm run ios 33 | 34 | ``` 35 | 36 | #### For Android, run 37 | ```bash 38 | react-native run-android 39 | # or 40 | npm run android 41 | ``` 42 | 43 | ### Development 44 | 45 | #### Lint the code 46 | 47 | ```bash 48 | npm run lint 49 | ``` 50 | 51 | You can also install the following plugins in your editor/IDE: 52 | 53 | - [Eslint plugins](https://github.com/viruschidai/learn-react-ecosystem/blob/master/docs/ESLINT.md) 54 | - [EditorConfig plugin](https://github.com/viruschidai/learn-react-ecosystem/blob/master/docs/EDITORCONFIG.md) 55 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList/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 | NSAllowsArbitraryLoads 44 | 45 | 46 | UIAppFonts 47 | 48 | Entypo.ttf 49 | EvilIcons.ttf 50 | FontAwesome.ttf 51 | Foundation.ttf 52 | Ionicons.ttf 53 | MaterialIcons.ttf 54 | Octicons.ttf 55 | Zocial.ttf 56 | 57 | 58 | -------------------------------------------------------------------------------- /app/containers/AddTodoScene.js: -------------------------------------------------------------------------------- 1 | import NavigationBar from 'react-native-navbar'; 2 | import React, { Component } from 'react'; 3 | import { 4 | View, 5 | ScrollView, 6 | } from 'react-native'; 7 | import { connect } from 'react-redux'; 8 | import { themeable } from '../themes'; 9 | import { addTodo } from '../actions'; 10 | import AddTodo from '../components/AddTodo'; 11 | 12 | class NewTodo extends Component { 13 | constructor(props) { 14 | super(props); 15 | this.cancel = this.backToList.bind(this); 16 | this.done = this.backToList.bind(this); 17 | this.save = this.save.bind(this); 18 | } 19 | 20 | backToList() { 21 | this.props.navigator.pop(); 22 | } 23 | 24 | save(text) { 25 | this.props.saveTodo(text); 26 | this.backToList(); 27 | } 28 | 29 | render() { 30 | const { 31 | style, 32 | navBarStyle, 33 | statusBarTintColor, 34 | statusBarStyle, 35 | navBarBtnTextColor, 36 | } = this.props; 37 | 38 | return ( 39 | 40 | 46 | 47 | 48 | 49 | 50 | ); 51 | } 52 | } 53 | 54 | const mapDispatchToProps = (dispatch) => { 55 | return { 56 | saveTodo: (title) => { 57 | dispatch(addTodo(title)); 58 | } 59 | }; 60 | }; 61 | 62 | const NewTodoContainer = connect( 63 | () => ({}), 64 | mapDispatchToProps 65 | )(NewTodo); 66 | 67 | 68 | const ThemableAddTodo = themeable(NewTodoContainer, (theme) => { 69 | const {styles, variables} = theme; 70 | return { 71 | style: styles.container, 72 | navBarStyle: styles.navBar, 73 | statusBarTintColor: variables.colorNavBg, 74 | statusBarStyle: variables.statusBarStyle, 75 | navBarBtnTextColor: variables.colorNavbarText 76 | }; 77 | }); 78 | 79 | export default ThemableAddTodo; 80 | -------------------------------------------------------------------------------- /app/components/Todo.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { 3 | View, 4 | Text, 5 | TouchableHighlight 6 | } from 'react-native'; 7 | import Icon from '../../node_modules/react-native-vector-icons/FontAwesome'; 8 | import { themeable } from '../themes'; 9 | 10 | class Todo extends Component { 11 | constructor(props) { 12 | super(props); 13 | this.onPress = this.onPress.bind(this); 14 | } 15 | 16 | onPress() { 17 | const {todo, onTodoPress} = this.props; 18 | onTodoPress(todo.id); 19 | } 20 | 21 | renderButton() { 22 | const {completeTaskIconStyle} = this.props; 23 | if (this.props.todo.completed) { 24 | return ; 25 | } else { 26 | return ; 27 | } 28 | } 29 | 30 | render() { 31 | const {todo, style, completeTaskColStyle, detailsStyle, timestampStyle, titleStyle} = this.props; 32 | const {title, createdAt, completedAt} = todo; 33 | return ( 34 | 35 | 40 | {this.renderButton()} 41 | 42 | 43 | {title} 44 | Created at: {createdAt.toGMTString()} 45 | {completedAt && Completed at: {completedAt.toGMTString()}} 46 | 47 | 48 | ); 49 | } 50 | } 51 | 52 | 53 | const ThemeableTodo = themeable(Todo, (theme) => { 54 | const { styles } = theme; 55 | return { 56 | style: styles.todoItem, 57 | completeTaskColStyle: styles.todoItemCompleteTask, 58 | completeTaskIconStyle: styles.todoItemCompleteTaskIcon, 59 | detailsStyle: styles.todoItemDetails, 60 | timestampStyle: styles.todoItemTimeStamp, 61 | titleStyle: styles.todoItemTitle 62 | }; 63 | }); 64 | 65 | ThemeableTodo.propTypes = { 66 | todo: PropTypes.object.isRequired, 67 | onTodoPress: PropTypes.func.isRequired 68 | }; 69 | 70 | export default ThemeableTodo; 71 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTRootView.h" 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | NSURL *jsCodeLocation; 19 | 20 | /** 21 | * Loading JavaScript code - uncomment the one you want. 22 | * 23 | * OPTION 1 24 | * Load from development server. Start the server from the repository root: 25 | * 26 | * $ npm start 27 | * 28 | * To run on device, change `localhost` to the IP address of your computer 29 | * (you can get this by typing `ifconfig` into the terminal and selecting the 30 | * `inet` value under `en0:`) and make sure your computer and iOS device are 31 | * on the same Wi-Fi network. 32 | */ 33 | 34 | jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]; 35 | 36 | /** 37 | * OPTION 2 38 | * Load from pre-bundled file on disk. The static bundle is automatically 39 | * generated by the "Bundle React Native code and images" build step when 40 | * running the project on an actual device or running the project on the 41 | * simulator in the "Release" build configuration. 42 | */ 43 | 44 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 45 | 46 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 47 | moduleName:@"ReactNativeTodoList" 48 | initialProperties:nil 49 | launchOptions:launchOptions]; 50 | 51 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 52 | UIViewController *rootViewController = [UIViewController new]; 53 | rootViewController.view = rootView; 54 | self.window.rootViewController = rootViewController; 55 | [self.window makeKeyAndVisible]; 56 | return YES; 57 | } 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoListTests/ReactNativeTodoListTests.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 ReactNativeTodoListTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation ReactNativeTodoListTests 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 | -------------------------------------------------------------------------------- /app/themes/default/styles.js: -------------------------------------------------------------------------------- 1 | import { 2 | StyleSheet, 3 | Dimensions 4 | } from 'react-native'; 5 | 6 | import variables from './variables'; 7 | 8 | const {height, width} = Dimensions.get('window'); 9 | 10 | const styles = StyleSheet.create({ 11 | mainBgImg: { 12 | alignSelf: 'center', 13 | width: width, 14 | height: height, 15 | }, 16 | container: { 17 | flex: 1, 18 | justifyContent: "space-between", 19 | alignItems: 'stretch', 20 | }, 21 | button: { 22 | flex: 1, 23 | alignSelf: 'stretch', 24 | justifyContent: 'center', 25 | backgroundColor: variables.colorMain, 26 | borderRadius: 5, 27 | marginTop: 50, 28 | paddingVertical: 15, 29 | }, 30 | buttonDisabled: { 31 | backgroundColor: variables.colorDisabled, 32 | }, 33 | buttonText: { 34 | fontSize: 14, 35 | textAlign: 'center', 36 | color: variables.colorWhite, 37 | }, 38 | todoItem: { 39 | alignItems: 'stretch', 40 | flexDirection: 'row', 41 | opacity: 1, 42 | }, 43 | todoItemDetails: { 44 | flex: 1, 45 | padding: 10, 46 | }, 47 | todoItemTitle: { 48 | color: variables.colorMainText, 49 | flex: 1, 50 | fontSize: 16, 51 | fontWeight: 'bold', 52 | }, 53 | todoItemTimeStamp: { 54 | marginTop: 10, 55 | fontSize: 12, 56 | color: variables.colorSecondaryText, 57 | }, 58 | todoItemCompleteTask: { 59 | padding: 20, 60 | backgroundColor: variables.colorMain, 61 | }, 62 | todoItemCompleteTaskIcon: { 63 | fontSize: 25, 64 | color: '#fff', 65 | }, 66 | filter: { 67 | flexDirection: 'row', 68 | justifyContent: 'center', 69 | alignItems: 'center', 70 | marginTop: 10, 71 | }, 72 | filterTextStyle: { 73 | width: width, 74 | paddingTop: 15, 75 | paddingBottom: 15, 76 | textAlign: 'center', 77 | color: variables.colorWhite, 78 | backgroundColor: variables.colorMain, 79 | }, 80 | todoEditForm: { 81 | justifyContent: 'center', 82 | alignItems: 'center', 83 | paddingTop: 30, 84 | paddingLeft: 10, 85 | paddingRight: 10, 86 | }, 87 | addTodoInput: { 88 | flex: 1, 89 | borderWidth: 1, 90 | borderColor: variables.colorBorder , 91 | borderRadius: 5, 92 | height: 40, 93 | color: variables.colorMainText, 94 | marginTop: 30, 95 | paddingLeft: 10, 96 | paddingRight: 10, 97 | }, 98 | }); 99 | 100 | export default styles; 101 | -------------------------------------------------------------------------------- /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 | 30 | # Do not strip any method/class that is annotated with @DoNotStrip 31 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 32 | -keepclassmembers class * { 33 | @com.facebook.proguard.annotations.DoNotStrip *; 34 | } 35 | 36 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 37 | void set*(***); 38 | *** get*(); 39 | } 40 | 41 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 42 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 43 | -keepclassmembers,includedescriptorclasses class * { native ; } 44 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 45 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 46 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 47 | 48 | -dontwarn com.facebook.react.** 49 | 50 | # okhttp 51 | 52 | -keepattributes Signature 53 | -keepattributes *Annotation* 54 | -keep class com.squareup.okhttp.** { *; } 55 | -keep interface com.squareup.okhttp.** { *; } 56 | -dontwarn com.squareup.okhttp.** 57 | 58 | # okio 59 | 60 | -keep class sun.misc.Unsafe { *; } 61 | -dontwarn java.nio.file.* 62 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 63 | -dontwarn okio.** 64 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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 | .*/node_modules/is-my-json-valid/test/.*\.json 50 | .*/node_modules/iconv-lite/encodings/tables/.*\.json 51 | .*/node_modules/y18n/test/.*\.json 52 | .*/node_modules/spdx-license-ids/spdx-license-ids.json 53 | .*/node_modules/spdx-exceptions/index.json 54 | .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json 55 | .*/node_modules/resolve/lib/core.json 56 | .*/node_modules/jsonparse/samplejson/.*\.json 57 | .*/node_modules/json5/test/.*\.json 58 | .*/node_modules/ua-parser-js/test/.*\.json 59 | .*/node_modules/builtin-modules/builtin-modules.json 60 | .*/node_modules/binary-extensions/binary-extensions.json 61 | .*/node_modules/url-regex/tlds.json 62 | .*/node_modules/joi/.*\.json 63 | .*/node_modules/isemail/.*\.json 64 | .*/node_modules/tr46/.*\.json 65 | 66 | 67 | [include] 68 | 69 | [libs] 70 | node_modules/react-native/Libraries/react-native/react-native-interface.js 71 | node_modules/react-native/flow 72 | flow/ 73 | 74 | [options] 75 | module.system=haste 76 | 77 | esproposal.class_static_fields=enable 78 | esproposal.class_instance_fields=enable 79 | 80 | munge_underscores=true 81 | 82 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 83 | 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' 84 | 85 | suppress_type=$FlowIssue 86 | suppress_type=$FlowFixMe 87 | suppress_type=$FixMe 88 | 89 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-4]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 90 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-4]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 91 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 92 | 93 | [version] 94 | 0.24.0 95 | -------------------------------------------------------------------------------- /app/containers/TodoListScene.js: -------------------------------------------------------------------------------- 1 | import NavigationBar from 'react-native-navbar'; 2 | import React, { Component } from 'react'; 3 | import { 4 | View, 5 | ScrollView, 6 | } from 'react-native'; 7 | 8 | import { connect } from 'react-redux'; 9 | import { themeable } from '../themes'; 10 | import { toggleTodo, setVisibilityFilter } from '../actions'; 11 | import Todos from '../components/Todos'; 12 | import Filter from '../components/Filter'; 13 | import NewTodo from './AddTodoScene'; 14 | 15 | class TodoListScene extends Component { 16 | constructor(props) { 17 | super(props); 18 | this.addNewTodo = this.addNewTodo.bind(this); 19 | } 20 | 21 | addNewTodo() { 22 | this.props.navigator.push({ 23 | component: NewTodo 24 | }); 25 | } 26 | 27 | render() { 28 | const { 29 | todos, 30 | style, 31 | navBarStyle, 32 | statusBarTintColor, 33 | statusBarStyle, 34 | navBarBtnTextColor, 35 | onFilterPress, 36 | onTodoPress, 37 | activeOnly 38 | } = this.props; 39 | 40 | return ( 41 | 42 | 48 | 49 | 50 | 51 | 52 | 53 | ); 54 | } 55 | } 56 | 57 | const getVisibleTodos = (todos, filter) => { 58 | switch (filter) { 59 | case 'SHOW_ALL': 60 | return todos; 61 | case 'SHOW_ACTIVE': 62 | return todos.filter(t => !t.completed); 63 | } 64 | }; 65 | 66 | const mapStateToProps = (state) => { 67 | return { 68 | todos: getVisibleTodos(state.todos, state.visibilityFilter), 69 | activeOnly: state.visibilityFilter === 'SHOW_ACTIVE' 70 | }; 71 | }; 72 | 73 | const mapDispatchToProps = (dispatch) => { 74 | return { 75 | onTodoPress: (id) => { 76 | dispatch(toggleTodo(id)); 77 | }, 78 | onFilterPress: (activeOnly) => { 79 | const filter = activeOnly ? 'SHOW_ACTIVE' : 'SHOW_ALL'; 80 | dispatch(setVisibilityFilter(filter)); 81 | } 82 | }; 83 | }; 84 | 85 | const TodoListSceneContainer = connect( 86 | mapStateToProps, 87 | mapDispatchToProps 88 | )(TodoListScene); 89 | 90 | const ThemableTodoListScene = themeable(TodoListSceneContainer, (theme) => { 91 | const {styles, variables} = theme; 92 | return { 93 | style: styles.container, 94 | navBarStyle: styles.navBar, 95 | statusBarTintColor: variables.colorNavBg, 96 | statusBarStyle: variables.statusBarStyle, 97 | navBarBtnTextColor: variables.colorNavbarText, 98 | filterStyle: styles.filterItem, 99 | filterTextStyle: styles.filterTextStyle 100 | }; 101 | }); 102 | 103 | export default ThemableTodoListScene; 104 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList/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/ReactNativeTodoList.xcodeproj/xcshareddata/xcschemes/ReactNativeTodoList.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 | -------------------------------------------------------------------------------- /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/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 | */ 61 | 62 | apply from: "../../node_modules/react-native/react.gradle" 63 | 64 | /** 65 | * Set this to true to create two separate APKs instead of one: 66 | * - An APK that only works on ARM devices 67 | * - An APK that only works on x86 devices 68 | * The advantage is the size of the APK is reduced by about 4MB. 69 | * Upload all the APKs to the Play Store and people will download 70 | * the correct one based on the CPU architecture of their device. 71 | */ 72 | def enableSeparateBuildPerCPUArchitecture = false 73 | 74 | /** 75 | * Run Proguard to shrink the Java bytecode in release builds. 76 | */ 77 | def enableProguardInReleaseBuilds = false 78 | 79 | android { 80 | compileSdkVersion 23 81 | buildToolsVersion "23.0.1" 82 | 83 | defaultConfig { 84 | applicationId "com.reactnativetodolist" 85 | minSdkVersion 16 86 | targetSdkVersion 22 87 | versionCode 1 88 | versionName "1.0" 89 | ndk { 90 | abiFilters "armeabi-v7a", "x86" 91 | } 92 | } 93 | splits { 94 | abi { 95 | reset() 96 | enable enableSeparateBuildPerCPUArchitecture 97 | universalApk false // If true, also generate a universal APK 98 | include "armeabi-v7a", "x86" 99 | } 100 | } 101 | buildTypes { 102 | release { 103 | minifyEnabled enableProguardInReleaseBuilds 104 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 105 | } 106 | } 107 | // applicationVariants are e.g. debug, release 108 | applicationVariants.all { variant -> 109 | variant.outputs.each { output -> 110 | // For each separate APK per architecture, set a unique version code as described here: 111 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 112 | def versionCodes = ["armeabi-v7a":1, "x86":2] 113 | def abi = output.getFilter(OutputFile.ABI) 114 | if (abi != null) { // null for the universal-debug, universal-release variants 115 | output.versionCodeOverride = 116 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 117 | } 118 | } 119 | } 120 | } 121 | 122 | dependencies { 123 | compile project(':react-native-vector-icons') 124 | compile fileTree(dir: "libs", include: ["*.jar"]) 125 | compile "com.android.support:appcompat-v7:23.0.1" 126 | compile "com.facebook.react:react-native:+" // From node_modules 127 | } 128 | 129 | // Run this once to be able to run the application with BUCK 130 | // puts all compile dependencies into folder libs for BUCK to use 131 | task copyDownloadableDepsToLibs(type: Copy) { 132 | from configurations.compile 133 | into 'libs' 134 | } 135 | -------------------------------------------------------------------------------- /ios/ReactNativeTodoList.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* ReactNativeTodoListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeTodoListTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 24 | ADAB1A719D2D4AF0A5A35C13 /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C0BAD3D93D84049A118023A /* libRNVectorIcons.a */; }; 25 | 26B55A57E6B14DE0BE55787C /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 90E29944BAB848D493460730 /* Entypo.ttf */; }; 26 | 722D536B5D6245219FD67D50 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 64A3E9C2975646108B3DFA09 /* EvilIcons.ttf */; }; 27 | BD7C4E5B6736480A9240745D /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CEEDD6C95AB54EE0A7070E85 /* FontAwesome.ttf */; }; 28 | 9820BA6AB11F4AD9A9982BF6 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6EFE1544DD174D30B0DA5EC4 /* Foundation.ttf */; }; 29 | 91C994FF0D6246A591B43429 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 189A64BB984E48D584B69894 /* Ionicons.ttf */; }; 30 | E084A86158E6496B91DE5D7B /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FDA88F0C103049BF9724F4E5 /* MaterialIcons.ttf */; }; 31 | 5F0D36CED04E4B3E83BB117D /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7D95D585611A47B9B6FC212C /* Octicons.ttf */; }; 32 | B673E3777CF84D7791B13166 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EF36E630A3E247269568A314 /* Zocial.ttf */; }; 33 | /* End PBXBuildFile section */ 34 | 35 | /* Begin PBXContainerItemProxy section */ 36 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 39 | proxyType = 2; 40 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 41 | remoteInfo = RCTActionSheet; 42 | }; 43 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTGeolocation; 49 | }; 50 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 55 | remoteInfo = RCTImage; 56 | }; 57 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 62 | remoteInfo = RCTNetwork; 63 | }; 64 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 69 | remoteInfo = RCTVibration; 70 | }; 71 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 74 | proxyType = 1; 75 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 76 | remoteInfo = ReactNativeTodoList; 77 | }; 78 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 81 | proxyType = 2; 82 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 83 | remoteInfo = RCTSettings; 84 | }; 85 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 90 | remoteInfo = RCTWebSocket; 91 | }; 92 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 97 | remoteInfo = React; 98 | }; 99 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 104 | remoteInfo = RCTLinking; 105 | }; 106 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 109 | proxyType = 2; 110 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 111 | remoteInfo = RCTText; 112 | }; 113 | /* End PBXContainerItemProxy section */ 114 | 115 | /* Begin PBXFileReference section */ 116 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = main.jsbundle; path = main.jsbundle; sourceTree = ""; }; 117 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = ../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj; sourceTree = ""; }; 118 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = ""; }; 119 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj; sourceTree = ""; }; 120 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj; sourceTree = ""; }; 121 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = ../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj; sourceTree = ""; }; 122 | 00E356EE1AD99517003FC87E /* ReactNativeTodoListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeTodoListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 123 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 124 | 00E356F21AD99517003FC87E /* ReactNativeTodoListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeTodoListTests.m; sourceTree = ""; }; 125 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = ../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj; sourceTree = ""; }; 126 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = ../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj; sourceTree = ""; }; 127 | 13B07F961A680F5B00A75B9A /* ReactNativeTodoList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeTodoList.app; sourceTree = BUILT_PRODUCTS_DIR; }; 128 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeTodoList/AppDelegate.h; sourceTree = ""; }; 129 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeTodoList/AppDelegate.m; sourceTree = ""; }; 130 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 131 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeTodoList/Images.xcassets; sourceTree = ""; }; 132 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeTodoList/Info.plist; sourceTree = ""; }; 133 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeTodoList/main.m; sourceTree = ""; }; 134 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../node_modules/react-native/React/React.xcodeproj; sourceTree = ""; }; 135 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = ""; }; 136 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../node_modules/react-native/Libraries/Text/RCTText.xcodeproj; sourceTree = ""; }; 137 | EA896AFB2CBB4E1D9B8D0215 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; name = "RNVectorIcons.xcodeproj"; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 138 | 2C0BAD3D93D84049A118023A /* libRNVectorIcons.a */ = {isa = PBXFileReference; name = "libRNVectorIcons.a"; path = "libRNVectorIcons.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 139 | 90E29944BAB848D493460730 /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 140 | 64A3E9C2975646108B3DFA09 /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 141 | CEEDD6C95AB54EE0A7070E85 /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 142 | 6EFE1544DD174D30B0DA5EC4 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 143 | 189A64BB984E48D584B69894 /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 144 | FDA88F0C103049BF9724F4E5 /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 145 | 7D95D585611A47B9B6FC212C /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 146 | EF36E630A3E247269568A314 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 147 | /* End PBXFileReference section */ 148 | 149 | /* Begin PBXFrameworksBuildPhase section */ 150 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 151 | isa = PBXFrameworksBuildPhase; 152 | buildActionMask = 2147483647; 153 | files = ( 154 | ); 155 | runOnlyForDeploymentPostprocessing = 0; 156 | }; 157 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 158 | isa = PBXFrameworksBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 162 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 163 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 164 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 165 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 166 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 167 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 168 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 169 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 170 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 171 | ADAB1A719D2D4AF0A5A35C13 /* libRNVectorIcons.a in Frameworks */, 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | }; 175 | /* End PBXFrameworksBuildPhase section */ 176 | 177 | /* Begin PBXGroup section */ 178 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 182 | ); 183 | name = Products; 184 | sourceTree = ""; 185 | }; 186 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 190 | ); 191 | name = Products; 192 | sourceTree = ""; 193 | }; 194 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 198 | ); 199 | name = Products; 200 | sourceTree = ""; 201 | }; 202 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 206 | ); 207 | name = Products; 208 | sourceTree = ""; 209 | }; 210 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 214 | ); 215 | name = Products; 216 | sourceTree = ""; 217 | }; 218 | 00E356EF1AD99517003FC87E /* ReactNativeTodoListTests */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 00E356F21AD99517003FC87E /* ReactNativeTodoListTests.m */, 222 | 00E356F01AD99517003FC87E /* Supporting Files */, 223 | ); 224 | path = ReactNativeTodoListTests; 225 | sourceTree = ""; 226 | }; 227 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 00E356F11AD99517003FC87E /* Info.plist */, 231 | ); 232 | name = "Supporting Files"; 233 | sourceTree = ""; 234 | }; 235 | 139105B71AF99BAD00B5F7CC /* Products */ = { 236 | isa = PBXGroup; 237 | children = ( 238 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 239 | ); 240 | name = Products; 241 | sourceTree = ""; 242 | }; 243 | 139FDEE71B06529A00C62182 /* Products */ = { 244 | isa = PBXGroup; 245 | children = ( 246 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 247 | ); 248 | name = Products; 249 | sourceTree = ""; 250 | }; 251 | 13B07FAE1A68108700A75B9A /* ReactNativeTodoList */ = { 252 | isa = PBXGroup; 253 | children = ( 254 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 255 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 256 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 257 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 258 | 13B07FB61A68108700A75B9A /* Info.plist */, 259 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 260 | 13B07FB71A68108700A75B9A /* main.m */, 261 | ); 262 | name = ReactNativeTodoList; 263 | sourceTree = ""; 264 | }; 265 | 146834001AC3E56700842450 /* Products */ = { 266 | isa = PBXGroup; 267 | children = ( 268 | 146834041AC3E56700842450 /* libReact.a */, 269 | ); 270 | name = Products; 271 | sourceTree = ""; 272 | }; 273 | 78C398B11ACF4ADC00677621 /* Products */ = { 274 | isa = PBXGroup; 275 | children = ( 276 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 277 | ); 278 | name = Products; 279 | sourceTree = ""; 280 | }; 281 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 282 | isa = PBXGroup; 283 | children = ( 284 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 285 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 286 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 287 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 288 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 289 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 290 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 291 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 292 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 293 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 294 | EA896AFB2CBB4E1D9B8D0215 /* RNVectorIcons.xcodeproj */, 295 | ); 296 | name = Libraries; 297 | sourceTree = ""; 298 | }; 299 | 832341B11AAA6A8300B99B32 /* Products */ = { 300 | isa = PBXGroup; 301 | children = ( 302 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 303 | ); 304 | name = Products; 305 | sourceTree = ""; 306 | }; 307 | 83CBB9F61A601CBA00E9B192 = { 308 | isa = PBXGroup; 309 | children = ( 310 | 13B07FAE1A68108700A75B9A /* ReactNativeTodoList */, 311 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 312 | 00E356EF1AD99517003FC87E /* ReactNativeTodoListTests */, 313 | 83CBBA001A601CBA00E9B192 /* Products */, 314 | 345DDC09F36345DC8487388A /* Resources */, 315 | ); 316 | indentWidth = 2; 317 | sourceTree = ""; 318 | tabWidth = 2; 319 | }; 320 | 83CBBA001A601CBA00E9B192 /* Products */ = { 321 | isa = PBXGroup; 322 | children = ( 323 | 13B07F961A680F5B00A75B9A /* ReactNativeTodoList.app */, 324 | 00E356EE1AD99517003FC87E /* ReactNativeTodoListTests.xctest */, 325 | ); 326 | name = Products; 327 | sourceTree = ""; 328 | }; 329 | 345DDC09F36345DC8487388A /* Resources */ = { 330 | isa = PBXGroup; 331 | children = ( 332 | 90E29944BAB848D493460730 /* Entypo.ttf */, 333 | 64A3E9C2975646108B3DFA09 /* EvilIcons.ttf */, 334 | CEEDD6C95AB54EE0A7070E85 /* FontAwesome.ttf */, 335 | 6EFE1544DD174D30B0DA5EC4 /* Foundation.ttf */, 336 | 189A64BB984E48D584B69894 /* Ionicons.ttf */, 337 | FDA88F0C103049BF9724F4E5 /* MaterialIcons.ttf */, 338 | 7D95D585611A47B9B6FC212C /* Octicons.ttf */, 339 | EF36E630A3E247269568A314 /* Zocial.ttf */, 340 | ); 341 | name = Resources; 342 | path = ""; 343 | sourceTree = ""; 344 | }; 345 | /* End PBXGroup section */ 346 | 347 | /* Begin PBXNativeTarget section */ 348 | 00E356ED1AD99517003FC87E /* ReactNativeTodoListTests */ = { 349 | isa = PBXNativeTarget; 350 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeTodoListTests" */; 351 | buildPhases = ( 352 | 00E356EA1AD99517003FC87E /* Sources */, 353 | 00E356EB1AD99517003FC87E /* Frameworks */, 354 | 00E356EC1AD99517003FC87E /* Resources */, 355 | ); 356 | buildRules = ( 357 | ); 358 | dependencies = ( 359 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 360 | ); 361 | name = ReactNativeTodoListTests; 362 | productName = ReactNativeTodoListTests; 363 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeTodoListTests.xctest */; 364 | productType = "com.apple.product-type.bundle.unit-test"; 365 | }; 366 | 13B07F861A680F5B00A75B9A /* ReactNativeTodoList */ = { 367 | isa = PBXNativeTarget; 368 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeTodoList" */; 369 | buildPhases = ( 370 | 13B07F871A680F5B00A75B9A /* Sources */, 371 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 372 | 13B07F8E1A680F5B00A75B9A /* Resources */, 373 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 374 | ); 375 | buildRules = ( 376 | ); 377 | dependencies = ( 378 | ); 379 | name = ReactNativeTodoList; 380 | productName = "Hello World"; 381 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeTodoList.app */; 382 | productType = "com.apple.product-type.application"; 383 | }; 384 | /* End PBXNativeTarget section */ 385 | 386 | /* Begin PBXProject section */ 387 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 388 | isa = PBXProject; 389 | attributes = { 390 | LastUpgradeCheck = 610; 391 | ORGANIZATIONNAME = Facebook; 392 | TargetAttributes = { 393 | 00E356ED1AD99517003FC87E = { 394 | CreatedOnToolsVersion = 6.2; 395 | TestTargetID = 13B07F861A680F5B00A75B9A; 396 | }; 397 | }; 398 | }; 399 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeTodoList" */; 400 | compatibilityVersion = "Xcode 3.2"; 401 | developmentRegion = English; 402 | hasScannedForEncodings = 0; 403 | knownRegions = ( 404 | en, 405 | Base, 406 | ); 407 | mainGroup = 83CBB9F61A601CBA00E9B192; 408 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 409 | projectDirPath = ""; 410 | projectReferences = ( 411 | { 412 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 413 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 414 | }, 415 | { 416 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 417 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 418 | }, 419 | { 420 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 421 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 422 | }, 423 | { 424 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 425 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 426 | }, 427 | { 428 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 429 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 430 | }, 431 | { 432 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 433 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 434 | }, 435 | { 436 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 437 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 438 | }, 439 | { 440 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 441 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 442 | }, 443 | { 444 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 445 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 446 | }, 447 | { 448 | ProductGroup = 146834001AC3E56700842450 /* Products */; 449 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 450 | }, 451 | ); 452 | projectRoot = ""; 453 | targets = ( 454 | 13B07F861A680F5B00A75B9A /* ReactNativeTodoList */, 455 | 00E356ED1AD99517003FC87E /* ReactNativeTodoListTests */, 456 | ); 457 | }; 458 | /* End PBXProject section */ 459 | 460 | /* Begin PBXReferenceProxy section */ 461 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 462 | isa = PBXReferenceProxy; 463 | fileType = archive.ar; 464 | path = libRCTActionSheet.a; 465 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 466 | sourceTree = BUILT_PRODUCTS_DIR; 467 | }; 468 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 469 | isa = PBXReferenceProxy; 470 | fileType = archive.ar; 471 | path = libRCTGeolocation.a; 472 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 473 | sourceTree = BUILT_PRODUCTS_DIR; 474 | }; 475 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 476 | isa = PBXReferenceProxy; 477 | fileType = archive.ar; 478 | path = libRCTImage.a; 479 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 480 | sourceTree = BUILT_PRODUCTS_DIR; 481 | }; 482 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 483 | isa = PBXReferenceProxy; 484 | fileType = archive.ar; 485 | path = libRCTNetwork.a; 486 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 487 | sourceTree = BUILT_PRODUCTS_DIR; 488 | }; 489 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 490 | isa = PBXReferenceProxy; 491 | fileType = archive.ar; 492 | path = libRCTVibration.a; 493 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 494 | sourceTree = BUILT_PRODUCTS_DIR; 495 | }; 496 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 497 | isa = PBXReferenceProxy; 498 | fileType = archive.ar; 499 | path = libRCTSettings.a; 500 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 501 | sourceTree = BUILT_PRODUCTS_DIR; 502 | }; 503 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 504 | isa = PBXReferenceProxy; 505 | fileType = archive.ar; 506 | path = libRCTWebSocket.a; 507 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 508 | sourceTree = BUILT_PRODUCTS_DIR; 509 | }; 510 | 146834041AC3E56700842450 /* libReact.a */ = { 511 | isa = PBXReferenceProxy; 512 | fileType = archive.ar; 513 | path = libReact.a; 514 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 515 | sourceTree = BUILT_PRODUCTS_DIR; 516 | }; 517 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 518 | isa = PBXReferenceProxy; 519 | fileType = archive.ar; 520 | path = libRCTLinking.a; 521 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 522 | sourceTree = BUILT_PRODUCTS_DIR; 523 | }; 524 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 525 | isa = PBXReferenceProxy; 526 | fileType = archive.ar; 527 | path = libRCTText.a; 528 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 529 | sourceTree = BUILT_PRODUCTS_DIR; 530 | }; 531 | /* End PBXReferenceProxy section */ 532 | 533 | /* Begin PBXResourcesBuildPhase section */ 534 | 00E356EC1AD99517003FC87E /* Resources */ = { 535 | isa = PBXResourcesBuildPhase; 536 | buildActionMask = 2147483647; 537 | files = ( 538 | ); 539 | runOnlyForDeploymentPostprocessing = 0; 540 | }; 541 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 542 | isa = PBXResourcesBuildPhase; 543 | buildActionMask = 2147483647; 544 | files = ( 545 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 546 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 547 | 26B55A57E6B14DE0BE55787C /* Entypo.ttf in Resources */, 548 | 722D536B5D6245219FD67D50 /* EvilIcons.ttf in Resources */, 549 | BD7C4E5B6736480A9240745D /* FontAwesome.ttf in Resources */, 550 | 9820BA6AB11F4AD9A9982BF6 /* Foundation.ttf in Resources */, 551 | 91C994FF0D6246A591B43429 /* Ionicons.ttf in Resources */, 552 | E084A86158E6496B91DE5D7B /* MaterialIcons.ttf in Resources */, 553 | 5F0D36CED04E4B3E83BB117D /* Octicons.ttf in Resources */, 554 | B673E3777CF84D7791B13166 /* Zocial.ttf in Resources */, 555 | ); 556 | runOnlyForDeploymentPostprocessing = 0; 557 | }; 558 | /* End PBXResourcesBuildPhase section */ 559 | 560 | /* Begin PBXShellScriptBuildPhase section */ 561 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 562 | isa = PBXShellScriptBuildPhase; 563 | buildActionMask = 2147483647; 564 | files = ( 565 | ); 566 | inputPaths = ( 567 | ); 568 | name = "Bundle React Native code and images"; 569 | outputPaths = ( 570 | ); 571 | runOnlyForDeploymentPostprocessing = 0; 572 | shellPath = /bin/sh; 573 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 574 | showEnvVarsInLog = 1; 575 | }; 576 | /* End PBXShellScriptBuildPhase section */ 577 | 578 | /* Begin PBXSourcesBuildPhase section */ 579 | 00E356EA1AD99517003FC87E /* Sources */ = { 580 | isa = PBXSourcesBuildPhase; 581 | buildActionMask = 2147483647; 582 | files = ( 583 | 00E356F31AD99517003FC87E /* ReactNativeTodoListTests.m in Sources */, 584 | ); 585 | runOnlyForDeploymentPostprocessing = 0; 586 | }; 587 | 13B07F871A680F5B00A75B9A /* Sources */ = { 588 | isa = PBXSourcesBuildPhase; 589 | buildActionMask = 2147483647; 590 | files = ( 591 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 592 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 593 | ); 594 | runOnlyForDeploymentPostprocessing = 0; 595 | }; 596 | /* End PBXSourcesBuildPhase section */ 597 | 598 | /* Begin PBXTargetDependency section */ 599 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 600 | isa = PBXTargetDependency; 601 | target = 13B07F861A680F5B00A75B9A /* ReactNativeTodoList */; 602 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 603 | }; 604 | /* End PBXTargetDependency section */ 605 | 606 | /* Begin PBXVariantGroup section */ 607 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 608 | isa = PBXVariantGroup; 609 | children = ( 610 | 13B07FB21A68108700A75B9A /* Base */, 611 | ); 612 | name = LaunchScreen.xib; 613 | path = ReactNativeTodoList; 614 | sourceTree = ""; 615 | }; 616 | /* End PBXVariantGroup section */ 617 | 618 | /* Begin XCBuildConfiguration section */ 619 | 00E356F61AD99517003FC87E /* Debug */ = { 620 | isa = XCBuildConfiguration; 621 | buildSettings = { 622 | BUNDLE_LOADER = "$(TEST_HOST)"; 623 | GCC_PREPROCESSOR_DEFINITIONS = ( 624 | "DEBUG=1", 625 | "$(inherited)", 626 | ); 627 | INFOPLIST_FILE = ReactNativeTodoListTests/Info.plist; 628 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 629 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 630 | PRODUCT_NAME = "$(TARGET_NAME)"; 631 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeTodoList.app/ReactNativeTodoList"; 632 | LIBRARY_SEARCH_PATHS = ( 633 | "$(inherited)", 634 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 635 | ); 636 | }; 637 | name = Debug; 638 | }; 639 | 00E356F71AD99517003FC87E /* Release */ = { 640 | isa = XCBuildConfiguration; 641 | buildSettings = { 642 | BUNDLE_LOADER = "$(TEST_HOST)"; 643 | COPY_PHASE_STRIP = NO; 644 | INFOPLIST_FILE = ReactNativeTodoListTests/Info.plist; 645 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 646 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 647 | PRODUCT_NAME = "$(TARGET_NAME)"; 648 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeTodoList.app/ReactNativeTodoList"; 649 | LIBRARY_SEARCH_PATHS = ( 650 | "$(inherited)", 651 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 652 | ); 653 | }; 654 | name = Release; 655 | }; 656 | 13B07F941A680F5B00A75B9A /* Debug */ = { 657 | isa = XCBuildConfiguration; 658 | buildSettings = { 659 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 660 | DEAD_CODE_STRIPPING = NO; 661 | HEADER_SEARCH_PATHS = ( 662 | "$(inherited)", 663 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 664 | "$(SRCROOT)/../node_modules/react-native/React/**", 665 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 666 | ); 667 | INFOPLIST_FILE = "ReactNativeTodoList/Info.plist"; 668 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 669 | OTHER_LDFLAGS = ( 670 | "-ObjC", 671 | "-lc++", 672 | ); 673 | PRODUCT_NAME = ReactNativeTodoList; 674 | }; 675 | name = Debug; 676 | }; 677 | 13B07F951A680F5B00A75B9A /* Release */ = { 678 | isa = XCBuildConfiguration; 679 | buildSettings = { 680 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 681 | HEADER_SEARCH_PATHS = ( 682 | "$(inherited)", 683 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 684 | "$(SRCROOT)/../node_modules/react-native/React/**", 685 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 686 | ); 687 | INFOPLIST_FILE = "ReactNativeTodoList/Info.plist"; 688 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 689 | OTHER_LDFLAGS = ( 690 | "-ObjC", 691 | "-lc++", 692 | ); 693 | PRODUCT_NAME = ReactNativeTodoList; 694 | }; 695 | name = Release; 696 | }; 697 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 698 | isa = XCBuildConfiguration; 699 | buildSettings = { 700 | ALWAYS_SEARCH_USER_PATHS = NO; 701 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 702 | CLANG_CXX_LIBRARY = "libc++"; 703 | CLANG_ENABLE_MODULES = YES; 704 | CLANG_ENABLE_OBJC_ARC = YES; 705 | CLANG_WARN_BOOL_CONVERSION = YES; 706 | CLANG_WARN_CONSTANT_CONVERSION = YES; 707 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 708 | CLANG_WARN_EMPTY_BODY = YES; 709 | CLANG_WARN_ENUM_CONVERSION = YES; 710 | CLANG_WARN_INT_CONVERSION = YES; 711 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 712 | CLANG_WARN_UNREACHABLE_CODE = YES; 713 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 714 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 715 | COPY_PHASE_STRIP = NO; 716 | ENABLE_STRICT_OBJC_MSGSEND = YES; 717 | GCC_C_LANGUAGE_STANDARD = gnu99; 718 | GCC_DYNAMIC_NO_PIC = NO; 719 | GCC_OPTIMIZATION_LEVEL = 0; 720 | GCC_PREPROCESSOR_DEFINITIONS = ( 721 | "DEBUG=1", 722 | "$(inherited)", 723 | ); 724 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 725 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 726 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 727 | GCC_WARN_UNDECLARED_SELECTOR = YES; 728 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 729 | GCC_WARN_UNUSED_FUNCTION = YES; 730 | GCC_WARN_UNUSED_VARIABLE = YES; 731 | HEADER_SEARCH_PATHS = ( 732 | "$(inherited)", 733 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 734 | "$(SRCROOT)/../node_modules/react-native/React/**", 735 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 736 | ); 737 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 738 | MTL_ENABLE_DEBUG_INFO = YES; 739 | ONLY_ACTIVE_ARCH = YES; 740 | SDKROOT = iphoneos; 741 | }; 742 | name = Debug; 743 | }; 744 | 83CBBA211A601CBA00E9B192 /* Release */ = { 745 | isa = XCBuildConfiguration; 746 | buildSettings = { 747 | ALWAYS_SEARCH_USER_PATHS = NO; 748 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 749 | CLANG_CXX_LIBRARY = "libc++"; 750 | CLANG_ENABLE_MODULES = YES; 751 | CLANG_ENABLE_OBJC_ARC = YES; 752 | CLANG_WARN_BOOL_CONVERSION = YES; 753 | CLANG_WARN_CONSTANT_CONVERSION = YES; 754 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 755 | CLANG_WARN_EMPTY_BODY = YES; 756 | CLANG_WARN_ENUM_CONVERSION = YES; 757 | CLANG_WARN_INT_CONVERSION = YES; 758 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 759 | CLANG_WARN_UNREACHABLE_CODE = YES; 760 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 761 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 762 | COPY_PHASE_STRIP = YES; 763 | ENABLE_NS_ASSERTIONS = NO; 764 | ENABLE_STRICT_OBJC_MSGSEND = YES; 765 | GCC_C_LANGUAGE_STANDARD = gnu99; 766 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 767 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 768 | GCC_WARN_UNDECLARED_SELECTOR = YES; 769 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 770 | GCC_WARN_UNUSED_FUNCTION = YES; 771 | GCC_WARN_UNUSED_VARIABLE = YES; 772 | HEADER_SEARCH_PATHS = ( 773 | "$(inherited)", 774 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 775 | "$(SRCROOT)/../node_modules/react-native/React/**", 776 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 777 | ); 778 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 779 | MTL_ENABLE_DEBUG_INFO = NO; 780 | SDKROOT = iphoneos; 781 | VALIDATE_PRODUCT = YES; 782 | }; 783 | name = Release; 784 | }; 785 | /* End XCBuildConfiguration section */ 786 | 787 | /* Begin XCConfigurationList section */ 788 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeTodoListTests" */ = { 789 | isa = XCConfigurationList; 790 | buildConfigurations = ( 791 | 00E356F61AD99517003FC87E /* Debug */, 792 | 00E356F71AD99517003FC87E /* Release */, 793 | ); 794 | defaultConfigurationIsVisible = 0; 795 | defaultConfigurationName = Release; 796 | }; 797 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeTodoList" */ = { 798 | isa = XCConfigurationList; 799 | buildConfigurations = ( 800 | 13B07F941A680F5B00A75B9A /* Debug */, 801 | 13B07F951A680F5B00A75B9A /* Release */, 802 | ); 803 | defaultConfigurationIsVisible = 0; 804 | defaultConfigurationName = Release; 805 | }; 806 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeTodoList" */ = { 807 | isa = XCConfigurationList; 808 | buildConfigurations = ( 809 | 83CBBA201A601CBA00E9B192 /* Debug */, 810 | 83CBBA211A601CBA00E9B192 /* Release */, 811 | ); 812 | defaultConfigurationIsVisible = 0; 813 | defaultConfigurationName = Release; 814 | }; 815 | /* End XCConfigurationList section */ 816 | }; 817 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 818 | } 819 | --------------------------------------------------------------------------------