├── .buckconfig ├── .flowconfig ├── .gitignore ├── .watchmanconfig ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── todoapp │ │ │ └── MainActivity.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── index.android.js ├── index.ios.js ├── ios ├── TodoApp.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── TodoApp.xcscheme ├── TodoApp │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── TodoAppTests │ ├── Info.plist │ └── TodoAppTests.m ├── package.json └── src ├── CheckBox.js ├── ListView.js ├── ListViewItem.js ├── OmniBox.js ├── TodoModel.js ├── TodoService.js └── Utils.js /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*.web.js 5 | .*/*.android.js 6 | 7 | # Some modules have their own node_modules with overlap 8 | .*/node_modules/node-haste/.* 9 | 10 | # Ugh 11 | .*/node_modules/babel.* 12 | .*/node_modules/babylon.* 13 | .*/node_modules/invariant.* 14 | 15 | # Ignore react and fbjs where there are overlaps, but don't ignore 16 | # anything that react-native relies on 17 | .*/node_modules/fbjs/lib/Map.js 18 | .*/node_modules/fbjs/lib/ErrorUtils.js 19 | 20 | # Flow has a built-in definition for the 'react' module which we prefer to use 21 | # over the currently-untyped source 22 | .*/node_modules/react/react.js 23 | .*/node_modules/react/lib/React.js 24 | .*/node_modules/react/lib/ReactDOM.js 25 | 26 | .*/__mocks__/.* 27 | .*/__tests__/.* 28 | 29 | .*/commoner/test/source/widget/share.js 30 | 31 | # Ignore commoner tests 32 | .*/node_modules/commoner/test/.* 33 | 34 | # See https://github.com/facebook/flow/issues/442 35 | .*/react-tools/node_modules/commoner/lib/reader.js 36 | 37 | # Ignore jest 38 | .*/node_modules/jest-cli/.* 39 | 40 | # Ignore Website 41 | .*/website/.* 42 | 43 | # Ignore generators 44 | .*/local-cli/generator.* 45 | 46 | # Ignore BUCK generated folders 47 | .*\.buckd/ 48 | 49 | # Ignore RNPM 50 | .*/local-cli/rnpm/.* 51 | 52 | .*/node_modules/is-my-json-valid/test/.*\.json 53 | .*/node_modules/iconv-lite/encodings/tables/.*\.json 54 | .*/node_modules/y18n/test/.*\.json 55 | .*/node_modules/spdx-license-ids/spdx-license-ids.json 56 | .*/node_modules/spdx-exceptions/index.json 57 | .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json 58 | .*/node_modules/resolve/lib/core.json 59 | .*/node_modules/jsonparse/samplejson/.*\.json 60 | .*/node_modules/json5/test/.*\.json 61 | .*/node_modules/ua-parser-js/test/.*\.json 62 | .*/node_modules/builtin-modules/builtin-modules.json 63 | .*/node_modules/binary-extensions/binary-extensions.json 64 | .*/node_modules/url-regex/tlds.json 65 | .*/node_modules/joi/.*\.json 66 | .*/node_modules/isemail/.*\.json 67 | .*/node_modules/tr46/.*\.json 68 | 69 | 70 | [include] 71 | 72 | [libs] 73 | node_modules/react-native/Libraries/react-native/react-native-interface.js 74 | node_modules/react-native/flow 75 | flow/ 76 | 77 | [options] 78 | module.system=haste 79 | 80 | esproposal.class_static_fields=enable 81 | esproposal.class_instance_fields=enable 82 | 83 | experimental.strict_type_args=true 84 | 85 | munge_underscores=true 86 | 87 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 88 | 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' 89 | 90 | suppress_type=$FlowIssue 91 | suppress_type=$FlowFixMe 92 | suppress_type=$FixMe 93 | 94 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-6]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 95 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-6]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 96 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 97 | 98 | [version] 99 | ^0.26.0 100 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IJ 26 | # 27 | *.iml 28 | .idea 29 | .gradle 30 | local.properties 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | 37 | # BUCK 38 | buck-out/ 39 | \.buckd/ 40 | android/app/libs 41 | android/keystores/debug.keystore 42 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Todo App with React Native, Realm 2 | 3 | ### Guide 4 | https://hellokoding.com/todo-app-with-react-native-realm/ 5 | 6 | ### What you'll need 7 | - MacOS, Xcode 8 | - NodeJS 9 | - NPM 10 | - React Native 0.28+ 11 | 12 | ### Stack 13 | - ES6 14 | - React Native 15 | 16 | ### Run 17 | ```bash 18 | git clone git@github.com:hellokoding/todoapp-reactnative-realm.git 19 | cd todoapp-reactnative-realm 20 | npm install 21 | react-native link 22 | react-native run-ios 23 | ``` 24 | -------------------------------------------------------------------------------- /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.todoapp', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.todoapp', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.todoapp" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':realm') 130 | compile project(':react-native-vector-icons') 131 | compile fileTree(dir: "libs", include: ["*.jar"]) 132 | compile "com.android.support:appcompat-v7:23.0.1" 133 | compile "com.facebook.react:react-native:+" // From node_modules 134 | } 135 | 136 | // Run this once to be able to run the application with BUCK 137 | // puts all compile dependencies into folder libs for BUCK to use 138 | task copyDownloadableDepsToLibs(type: Copy) { 139 | from configurations.compile 140 | into 'libs' 141 | } 142 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/todoapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.todoapp; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import io.realm.react.RealmReactPackage; 5 | import com.oblador.vectoricons.VectorIconsPackage; 6 | import com.facebook.react.ReactPackage; 7 | import com.facebook.react.shell.MainReactPackage; 8 | 9 | import java.util.Arrays; 10 | import java.util.List; 11 | 12 | public class MainActivity extends ReactActivity { 13 | 14 | /** 15 | * Returns the name of the main component registered from JavaScript. 16 | * This is used to schedule rendering of the component. 17 | */ 18 | @Override 19 | protected String getMainComponentName() { 20 | return "TodoApp"; 21 | } 22 | 23 | /** 24 | * Returns whether dev mode should be enabled. 25 | * This enables e.g. the dev menu. 26 | */ 27 | @Override 28 | protected boolean getUseDeveloperSupport() { 29 | return BuildConfig.DEBUG; 30 | } 31 | 32 | /** 33 | * A list of packages used by the app. If the app uses additional views 34 | * or modules besides the default ones, add more packages here. 35 | */ 36 | @Override 37 | protected List getPackages() { 38 | return Arrays.asList( 39 | new MainReactPackage(), 40 | new RealmReactPackage(), 41 | new VectorIconsPackage() 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TodoApp 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokoding/todoapp-reactnative-realm/9d5ae45ff2a53467275aae8da0e7a80b87bfd714/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TodoApp' 2 | 3 | include ':app' 4 | include ':realm' 5 | project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android') 6 | include ':react-native-vector-icons' 7 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 8 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | class TodoApp extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | Welcome to React Native! 21 | 22 | 23 | To get started, edit index.android.js 24 | 25 | 26 | Shake or press menu button for dev menu 27 | 28 | 29 | ); 30 | } 31 | } 32 | 33 | const styles = StyleSheet.create({ 34 | container: { 35 | flex: 1, 36 | justifyContent: 'center', 37 | alignItems: 'center', 38 | backgroundColor: '#F5FCFF', 39 | }, 40 | welcome: { 41 | fontSize: 20, 42 | textAlign: 'center', 43 | margin: 10, 44 | }, 45 | instructions: { 46 | textAlign: 'center', 47 | color: '#333333', 48 | marginBottom: 5, 49 | }, 50 | }); 51 | 52 | AppRegistry.registerComponent('TodoApp', () => TodoApp); 53 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { AppRegistry, StyleSheet, Text, View } from 'react-native'; 3 | import ListView from './src/ListView'; 4 | 5 | class TodoApp extends Component { 6 | render() { 7 | return ( 8 | 9 | 10 | 11 | ); 12 | } 13 | } 14 | 15 | const styles = StyleSheet.create({ 16 | container: { 17 | flex: 1, 18 | justifyContent: 'center', 19 | paddingTop: 30, 20 | paddingBottom: 10, 21 | paddingLeft: 2, 22 | paddingRight: 2, 23 | backgroundColor: '#F8F8F8', 24 | } 25 | }); 26 | 27 | AppRegistry.registerComponent('TodoApp', () => TodoApp); 28 | -------------------------------------------------------------------------------- /ios/TodoApp.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 /* TodoAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TodoAppTests.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 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 25 | 80474B907C3E4DD2B3FE79F4 /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C5EF66BABC09437E8640CA1B /* libRNVectorIcons.a */; }; 26 | 75E2F951892640ED9E386F01 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = ECDD34C8E61D4EAD8B5E111F /* Entypo.ttf */; }; 27 | 1149F3D20A474E77AF249A17 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F2E389C2E38C4A59BC734EDB /* EvilIcons.ttf */; }; 28 | 9456F85417324F099E98B9E1 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1CC4C5BFDC084289BF60EF4C /* FontAwesome.ttf */; }; 29 | 8E0D7F8353F74FB2A591DBCD /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8111B775DFCD42A586E48385 /* Foundation.ttf */; }; 30 | 51757069546F4C8F9CE590F0 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 84E4DF6121CF40899722B121 /* Ionicons.ttf */; }; 31 | 370578C914D941F79DFA8BB0 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 44EF4FBDDA664728AAB85612 /* MaterialIcons.ttf */; }; 32 | 4BC2237D037345909547DAC0 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 714C6EF795694F63B3170E7A /* Octicons.ttf */; }; 33 | 008C91153BD74BA5A189CACD /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D6915EDDD780408BA1CB205B /* Zocial.ttf */; }; 34 | 75E6F210B85143E8A1DCDB23 /* libRealmReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CF577EACDA144DF86160ED3 /* libRealmReact.a */; }; 35 | DB13915473AE42EC9A352BF3 /* libc++.tbd in Resources */ = {isa = PBXBuildFile; fileRef = 7106304F7B1B4CD5A8C04E4D /* libc++.tbd */; }; 36 | F0B5BDF8A2FC46C69622B22A /* libz.tbd in Resources */ = {isa = PBXBuildFile; fileRef = 82778C367E064D9B8F32D652 /* libz.tbd */; }; 37 | /* End PBXBuildFile section */ 38 | 39 | /* Begin PBXContainerItemProxy section */ 40 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 43 | proxyType = 2; 44 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 45 | remoteInfo = RCTActionSheet; 46 | }; 47 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 50 | proxyType = 2; 51 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 52 | remoteInfo = RCTGeolocation; 53 | }; 54 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 59 | remoteInfo = RCTImage; 60 | }; 61 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 66 | remoteInfo = RCTNetwork; 67 | }; 68 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 73 | remoteInfo = RCTVibration; 74 | }; 75 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 78 | proxyType = 1; 79 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 80 | remoteInfo = TodoApp; 81 | }; 82 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 85 | proxyType = 2; 86 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 87 | remoteInfo = RCTSettings; 88 | }; 89 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 92 | proxyType = 2; 93 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 94 | remoteInfo = RCTWebSocket; 95 | }; 96 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 99 | proxyType = 2; 100 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 101 | remoteInfo = React; 102 | }; 103 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 106 | proxyType = 2; 107 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 108 | remoteInfo = RCTLinking; 109 | }; 110 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 111 | isa = PBXContainerItemProxy; 112 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 113 | proxyType = 2; 114 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 115 | remoteInfo = RCTText; 116 | }; 117 | /* End PBXContainerItemProxy section */ 118 | 119 | /* Begin PBXFileReference section */ 120 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = main.jsbundle; path = main.jsbundle; sourceTree = ""; }; 121 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = ../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj; sourceTree = ""; }; 122 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = ""; }; 123 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj; sourceTree = ""; }; 124 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj; sourceTree = ""; }; 125 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = ../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj; sourceTree = ""; }; 126 | 00E356EE1AD99517003FC87E /* TodoAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TodoAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 127 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 128 | 00E356F21AD99517003FC87E /* TodoAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TodoAppTests.m; sourceTree = ""; }; 129 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = ../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj; sourceTree = ""; }; 130 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = ../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj; sourceTree = ""; }; 131 | 13B07F961A680F5B00A75B9A /* TodoApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TodoApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 132 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = TodoApp/AppDelegate.h; sourceTree = ""; }; 133 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = TodoApp/AppDelegate.m; sourceTree = ""; }; 134 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 135 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = TodoApp/Images.xcassets; sourceTree = ""; }; 136 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TodoApp/Info.plist; sourceTree = ""; }; 137 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TodoApp/main.m; sourceTree = ""; }; 138 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../node_modules/react-native/React/React.xcodeproj; sourceTree = ""; }; 139 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = ""; }; 140 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../node_modules/react-native/Libraries/Text/RCTText.xcodeproj; sourceTree = ""; }; 141 | 315DD51D6D3A47BC85B59B0E /* 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; }; 142 | C5EF66BABC09437E8640CA1B /* libRNVectorIcons.a */ = {isa = PBXFileReference; name = "libRNVectorIcons.a"; path = "libRNVectorIcons.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 143 | ECDD34C8E61D4EAD8B5E111F /* 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; }; 144 | F2E389C2E38C4A59BC734EDB /* 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; }; 145 | 1CC4C5BFDC084289BF60EF4C /* 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; }; 146 | 8111B775DFCD42A586E48385 /* 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; }; 147 | 84E4DF6121CF40899722B121 /* 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; }; 148 | 44EF4FBDDA664728AAB85612 /* 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; }; 149 | 714C6EF795694F63B3170E7A /* 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; }; 150 | D6915EDDD780408BA1CB205B /* 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; }; 151 | 07691CA9D7F74F7C95869EFE /* RealmReact.xcodeproj */ = {isa = PBXFileReference; name = "RealmReact.xcodeproj"; path = "../node_modules/realm/react-native/ios/RealmReact.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 152 | 0CF577EACDA144DF86160ED3 /* libRealmReact.a */ = {isa = PBXFileReference; name = "libRealmReact.a"; path = "libRealmReact.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 153 | 7106304F7B1B4CD5A8C04E4D /* libc++.tbd */ = {isa = PBXFileReference; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; fileEncoding = undefined; lastKnownFileType = sourcecode.text-based-dylib-definition; explicitFileType = undefined; includeInIndex = 0; }; 154 | 82778C367E064D9B8F32D652 /* libz.tbd */ = {isa = PBXFileReference; name = "libz.tbd"; path = "usr/lib/libz.tbd"; sourceTree = SDKROOT; fileEncoding = undefined; lastKnownFileType = sourcecode.text-based-dylib-definition; explicitFileType = undefined; includeInIndex = 0; }; 155 | /* End PBXFileReference section */ 156 | 157 | /* Begin PBXFrameworksBuildPhase section */ 158 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 159 | isa = PBXFrameworksBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 167 | isa = PBXFrameworksBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 171 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 172 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 173 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 174 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 175 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 176 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 177 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 178 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 179 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 180 | 80474B907C3E4DD2B3FE79F4 /* libRNVectorIcons.a in Frameworks */, 181 | 75E6F210B85143E8A1DCDB23 /* libRealmReact.a in Frameworks */, 182 | DB13915473AE42EC9A352BF3 /* libc++.tbd in Resources */, 183 | F0B5BDF8A2FC46C69622B22A /* libz.tbd in Resources */, 184 | ); 185 | runOnlyForDeploymentPostprocessing = 0; 186 | }; 187 | /* End PBXFrameworksBuildPhase section */ 188 | 189 | /* Begin PBXGroup section */ 190 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 194 | ); 195 | name = Products; 196 | sourceTree = ""; 197 | }; 198 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 202 | ); 203 | name = Products; 204 | sourceTree = ""; 205 | }; 206 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 207 | isa = PBXGroup; 208 | children = ( 209 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 210 | ); 211 | name = Products; 212 | sourceTree = ""; 213 | }; 214 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 215 | isa = PBXGroup; 216 | children = ( 217 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 218 | ); 219 | name = Products; 220 | sourceTree = ""; 221 | }; 222 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 223 | isa = PBXGroup; 224 | children = ( 225 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 226 | ); 227 | name = Products; 228 | sourceTree = ""; 229 | }; 230 | 00E356EF1AD99517003FC87E /* TodoAppTests */ = { 231 | isa = PBXGroup; 232 | children = ( 233 | 00E356F21AD99517003FC87E /* TodoAppTests.m */, 234 | 00E356F01AD99517003FC87E /* Supporting Files */, 235 | ); 236 | path = TodoAppTests; 237 | sourceTree = ""; 238 | }; 239 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 240 | isa = PBXGroup; 241 | children = ( 242 | 00E356F11AD99517003FC87E /* Info.plist */, 243 | ); 244 | name = "Supporting Files"; 245 | sourceTree = ""; 246 | }; 247 | 139105B71AF99BAD00B5F7CC /* Products */ = { 248 | isa = PBXGroup; 249 | children = ( 250 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 251 | ); 252 | name = Products; 253 | sourceTree = ""; 254 | }; 255 | 139FDEE71B06529A00C62182 /* Products */ = { 256 | isa = PBXGroup; 257 | children = ( 258 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 259 | ); 260 | name = Products; 261 | sourceTree = ""; 262 | }; 263 | 13B07FAE1A68108700A75B9A /* TodoApp */ = { 264 | isa = PBXGroup; 265 | children = ( 266 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 267 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 268 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 269 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 270 | 13B07FB61A68108700A75B9A /* Info.plist */, 271 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 272 | 13B07FB71A68108700A75B9A /* main.m */, 273 | ); 274 | name = TodoApp; 275 | sourceTree = ""; 276 | }; 277 | 146834001AC3E56700842450 /* Products */ = { 278 | isa = PBXGroup; 279 | children = ( 280 | 146834041AC3E56700842450 /* libReact.a */, 281 | ); 282 | name = Products; 283 | sourceTree = ""; 284 | }; 285 | 78C398B11ACF4ADC00677621 /* Products */ = { 286 | isa = PBXGroup; 287 | children = ( 288 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 289 | ); 290 | name = Products; 291 | sourceTree = ""; 292 | }; 293 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 294 | isa = PBXGroup; 295 | children = ( 296 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 297 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 298 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 299 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 300 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 301 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 302 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 303 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 304 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 305 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 306 | 315DD51D6D3A47BC85B59B0E /* RNVectorIcons.xcodeproj */, 307 | 07691CA9D7F74F7C95869EFE /* RealmReact.xcodeproj */, 308 | ); 309 | name = Libraries; 310 | sourceTree = ""; 311 | }; 312 | 832341B11AAA6A8300B99B32 /* Products */ = { 313 | isa = PBXGroup; 314 | children = ( 315 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 316 | ); 317 | name = Products; 318 | sourceTree = ""; 319 | }; 320 | 83CBB9F61A601CBA00E9B192 = { 321 | isa = PBXGroup; 322 | children = ( 323 | 13B07FAE1A68108700A75B9A /* TodoApp */, 324 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 325 | 00E356EF1AD99517003FC87E /* TodoAppTests */, 326 | 83CBBA001A601CBA00E9B192 /* Products */, 327 | 67A2553F35FE4C80B7F21C66 /* Resources */, 328 | B31DF943DC9F48CC8F613CAD /* Frameworks */, 329 | ); 330 | indentWidth = 2; 331 | sourceTree = ""; 332 | tabWidth = 2; 333 | }; 334 | 83CBBA001A601CBA00E9B192 /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 13B07F961A680F5B00A75B9A /* TodoApp.app */, 338 | 00E356EE1AD99517003FC87E /* TodoAppTests.xctest */, 339 | ); 340 | name = Products; 341 | sourceTree = ""; 342 | }; 343 | 67A2553F35FE4C80B7F21C66 /* Resources */ = { 344 | isa = PBXGroup; 345 | children = ( 346 | ECDD34C8E61D4EAD8B5E111F /* Entypo.ttf */, 347 | F2E389C2E38C4A59BC734EDB /* EvilIcons.ttf */, 348 | 1CC4C5BFDC084289BF60EF4C /* FontAwesome.ttf */, 349 | 8111B775DFCD42A586E48385 /* Foundation.ttf */, 350 | 84E4DF6121CF40899722B121 /* Ionicons.ttf */, 351 | 44EF4FBDDA664728AAB85612 /* MaterialIcons.ttf */, 352 | 714C6EF795694F63B3170E7A /* Octicons.ttf */, 353 | D6915EDDD780408BA1CB205B /* Zocial.ttf */, 354 | ); 355 | name = Resources; 356 | path = ""; 357 | sourceTree = ""; 358 | }; 359 | B31DF943DC9F48CC8F613CAD /* Frameworks */ = { 360 | isa = PBXGroup; 361 | children = ( 362 | 7106304F7B1B4CD5A8C04E4D /* libc++.tbd */, 363 | 82778C367E064D9B8F32D652 /* libz.tbd */, 364 | ); 365 | name = Frameworks; 366 | path = ""; 367 | sourceTree = ""; 368 | }; 369 | /* End PBXGroup section */ 370 | 371 | /* Begin PBXNativeTarget section */ 372 | 00E356ED1AD99517003FC87E /* TodoAppTests */ = { 373 | isa = PBXNativeTarget; 374 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TodoAppTests" */; 375 | buildPhases = ( 376 | 00E356EA1AD99517003FC87E /* Sources */, 377 | 00E356EB1AD99517003FC87E /* Frameworks */, 378 | 00E356EC1AD99517003FC87E /* Resources */, 379 | ); 380 | buildRules = ( 381 | ); 382 | dependencies = ( 383 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 384 | ); 385 | name = TodoAppTests; 386 | productName = TodoAppTests; 387 | productReference = 00E356EE1AD99517003FC87E /* TodoAppTests.xctest */; 388 | productType = "com.apple.product-type.bundle.unit-test"; 389 | }; 390 | 13B07F861A680F5B00A75B9A /* TodoApp */ = { 391 | isa = PBXNativeTarget; 392 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TodoApp" */; 393 | buildPhases = ( 394 | 13B07F871A680F5B00A75B9A /* Sources */, 395 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 396 | 13B07F8E1A680F5B00A75B9A /* Resources */, 397 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 398 | ); 399 | buildRules = ( 400 | ); 401 | dependencies = ( 402 | ); 403 | name = TodoApp; 404 | productName = "Hello World"; 405 | productReference = 13B07F961A680F5B00A75B9A /* TodoApp.app */; 406 | productType = "com.apple.product-type.application"; 407 | }; 408 | /* End PBXNativeTarget section */ 409 | 410 | /* Begin PBXProject section */ 411 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 412 | isa = PBXProject; 413 | attributes = { 414 | LastUpgradeCheck = 610; 415 | ORGANIZATIONNAME = Facebook; 416 | TargetAttributes = { 417 | 00E356ED1AD99517003FC87E = { 418 | CreatedOnToolsVersion = 6.2; 419 | TestTargetID = 13B07F861A680F5B00A75B9A; 420 | }; 421 | }; 422 | }; 423 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TodoApp" */; 424 | compatibilityVersion = "Xcode 3.2"; 425 | developmentRegion = English; 426 | hasScannedForEncodings = 0; 427 | knownRegions = ( 428 | en, 429 | Base, 430 | ); 431 | mainGroup = 83CBB9F61A601CBA00E9B192; 432 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 433 | projectDirPath = ""; 434 | projectReferences = ( 435 | { 436 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 437 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 438 | }, 439 | { 440 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 441 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 442 | }, 443 | { 444 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 445 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 446 | }, 447 | { 448 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 449 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 450 | }, 451 | { 452 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 453 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 454 | }, 455 | { 456 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 457 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 458 | }, 459 | { 460 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 461 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 462 | }, 463 | { 464 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 465 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 466 | }, 467 | { 468 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 469 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 470 | }, 471 | { 472 | ProductGroup = 146834001AC3E56700842450 /* Products */; 473 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 474 | }, 475 | ); 476 | projectRoot = ""; 477 | targets = ( 478 | 13B07F861A680F5B00A75B9A /* TodoApp */, 479 | 00E356ED1AD99517003FC87E /* TodoAppTests */, 480 | ); 481 | }; 482 | /* End PBXProject section */ 483 | 484 | /* Begin PBXReferenceProxy section */ 485 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 486 | isa = PBXReferenceProxy; 487 | fileType = archive.ar; 488 | path = libRCTActionSheet.a; 489 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 490 | sourceTree = BUILT_PRODUCTS_DIR; 491 | }; 492 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 493 | isa = PBXReferenceProxy; 494 | fileType = archive.ar; 495 | path = libRCTGeolocation.a; 496 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 497 | sourceTree = BUILT_PRODUCTS_DIR; 498 | }; 499 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 500 | isa = PBXReferenceProxy; 501 | fileType = archive.ar; 502 | path = libRCTImage.a; 503 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 504 | sourceTree = BUILT_PRODUCTS_DIR; 505 | }; 506 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 507 | isa = PBXReferenceProxy; 508 | fileType = archive.ar; 509 | path = libRCTNetwork.a; 510 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 511 | sourceTree = BUILT_PRODUCTS_DIR; 512 | }; 513 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 514 | isa = PBXReferenceProxy; 515 | fileType = archive.ar; 516 | path = libRCTVibration.a; 517 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 518 | sourceTree = BUILT_PRODUCTS_DIR; 519 | }; 520 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 521 | isa = PBXReferenceProxy; 522 | fileType = archive.ar; 523 | path = libRCTSettings.a; 524 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 525 | sourceTree = BUILT_PRODUCTS_DIR; 526 | }; 527 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 528 | isa = PBXReferenceProxy; 529 | fileType = archive.ar; 530 | path = libRCTWebSocket.a; 531 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 532 | sourceTree = BUILT_PRODUCTS_DIR; 533 | }; 534 | 146834041AC3E56700842450 /* libReact.a */ = { 535 | isa = PBXReferenceProxy; 536 | fileType = archive.ar; 537 | path = libReact.a; 538 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 539 | sourceTree = BUILT_PRODUCTS_DIR; 540 | }; 541 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 542 | isa = PBXReferenceProxy; 543 | fileType = archive.ar; 544 | path = libRCTLinking.a; 545 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 546 | sourceTree = BUILT_PRODUCTS_DIR; 547 | }; 548 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 549 | isa = PBXReferenceProxy; 550 | fileType = archive.ar; 551 | path = libRCTText.a; 552 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 553 | sourceTree = BUILT_PRODUCTS_DIR; 554 | }; 555 | /* End PBXReferenceProxy section */ 556 | 557 | /* Begin PBXResourcesBuildPhase section */ 558 | 00E356EC1AD99517003FC87E /* Resources */ = { 559 | isa = PBXResourcesBuildPhase; 560 | buildActionMask = 2147483647; 561 | files = ( 562 | ); 563 | runOnlyForDeploymentPostprocessing = 0; 564 | }; 565 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 566 | isa = PBXResourcesBuildPhase; 567 | buildActionMask = 2147483647; 568 | files = ( 569 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 570 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 571 | 75E2F951892640ED9E386F01 /* Entypo.ttf in Resources */, 572 | 1149F3D20A474E77AF249A17 /* EvilIcons.ttf in Resources */, 573 | 9456F85417324F099E98B9E1 /* FontAwesome.ttf in Resources */, 574 | 8E0D7F8353F74FB2A591DBCD /* Foundation.ttf in Resources */, 575 | 51757069546F4C8F9CE590F0 /* Ionicons.ttf in Resources */, 576 | 370578C914D941F79DFA8BB0 /* MaterialIcons.ttf in Resources */, 577 | 4BC2237D037345909547DAC0 /* Octicons.ttf in Resources */, 578 | 008C91153BD74BA5A189CACD /* Zocial.ttf in Resources */, 579 | ); 580 | runOnlyForDeploymentPostprocessing = 0; 581 | }; 582 | /* End PBXResourcesBuildPhase section */ 583 | 584 | /* Begin PBXShellScriptBuildPhase section */ 585 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 586 | isa = PBXShellScriptBuildPhase; 587 | buildActionMask = 2147483647; 588 | files = ( 589 | ); 590 | inputPaths = ( 591 | ); 592 | name = "Bundle React Native code and images"; 593 | outputPaths = ( 594 | ); 595 | runOnlyForDeploymentPostprocessing = 0; 596 | shellPath = /bin/sh; 597 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 598 | showEnvVarsInLog = 1; 599 | }; 600 | /* End PBXShellScriptBuildPhase section */ 601 | 602 | /* Begin PBXSourcesBuildPhase section */ 603 | 00E356EA1AD99517003FC87E /* Sources */ = { 604 | isa = PBXSourcesBuildPhase; 605 | buildActionMask = 2147483647; 606 | files = ( 607 | 00E356F31AD99517003FC87E /* TodoAppTests.m in Sources */, 608 | ); 609 | runOnlyForDeploymentPostprocessing = 0; 610 | }; 611 | 13B07F871A680F5B00A75B9A /* Sources */ = { 612 | isa = PBXSourcesBuildPhase; 613 | buildActionMask = 2147483647; 614 | files = ( 615 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 616 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 617 | ); 618 | runOnlyForDeploymentPostprocessing = 0; 619 | }; 620 | /* End PBXSourcesBuildPhase section */ 621 | 622 | /* Begin PBXTargetDependency section */ 623 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 624 | isa = PBXTargetDependency; 625 | target = 13B07F861A680F5B00A75B9A /* TodoApp */; 626 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 627 | }; 628 | /* End PBXTargetDependency section */ 629 | 630 | /* Begin PBXVariantGroup section */ 631 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 632 | isa = PBXVariantGroup; 633 | children = ( 634 | 13B07FB21A68108700A75B9A /* Base */, 635 | ); 636 | name = LaunchScreen.xib; 637 | path = TodoApp; 638 | sourceTree = ""; 639 | }; 640 | /* End PBXVariantGroup section */ 641 | 642 | /* Begin XCBuildConfiguration section */ 643 | 00E356F61AD99517003FC87E /* Debug */ = { 644 | isa = XCBuildConfiguration; 645 | buildSettings = { 646 | BUNDLE_LOADER = "$(TEST_HOST)"; 647 | GCC_PREPROCESSOR_DEFINITIONS = ( 648 | "DEBUG=1", 649 | "$(inherited)", 650 | ); 651 | INFOPLIST_FILE = TodoAppTests/Info.plist; 652 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 653 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 654 | PRODUCT_NAME = "$(TARGET_NAME)"; 655 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TodoApp.app/TodoApp"; 656 | LIBRARY_SEARCH_PATHS = ( 657 | "$(inherited)", 658 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 659 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 660 | ); 661 | }; 662 | name = Debug; 663 | }; 664 | 00E356F71AD99517003FC87E /* Release */ = { 665 | isa = XCBuildConfiguration; 666 | buildSettings = { 667 | BUNDLE_LOADER = "$(TEST_HOST)"; 668 | COPY_PHASE_STRIP = NO; 669 | INFOPLIST_FILE = TodoAppTests/Info.plist; 670 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 671 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 672 | PRODUCT_NAME = "$(TARGET_NAME)"; 673 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TodoApp.app/TodoApp"; 674 | LIBRARY_SEARCH_PATHS = ( 675 | "$(inherited)", 676 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 677 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 678 | ); 679 | }; 680 | name = Release; 681 | }; 682 | 13B07F941A680F5B00A75B9A /* Debug */ = { 683 | isa = XCBuildConfiguration; 684 | buildSettings = { 685 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 686 | DEAD_CODE_STRIPPING = NO; 687 | HEADER_SEARCH_PATHS = ( 688 | "$(inherited)", 689 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 690 | "$(SRCROOT)/../node_modules/react-native/React/**", 691 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 692 | "$(SRCROOT)/../node_modules/realm/src/**", 693 | ); 694 | INFOPLIST_FILE = "TodoApp/Info.plist"; 695 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 696 | OTHER_LDFLAGS = ( 697 | "-ObjC", 698 | "-lc++", 699 | ); 700 | PRODUCT_NAME = TodoApp; 701 | }; 702 | name = Debug; 703 | }; 704 | 13B07F951A680F5B00A75B9A /* Release */ = { 705 | isa = XCBuildConfiguration; 706 | buildSettings = { 707 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 708 | HEADER_SEARCH_PATHS = ( 709 | "$(inherited)", 710 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 711 | "$(SRCROOT)/../node_modules/react-native/React/**", 712 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 713 | "$(SRCROOT)/../node_modules/realm/src/**", 714 | ); 715 | INFOPLIST_FILE = "TodoApp/Info.plist"; 716 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 717 | OTHER_LDFLAGS = ( 718 | "-ObjC", 719 | "-lc++", 720 | ); 721 | PRODUCT_NAME = TodoApp; 722 | }; 723 | name = Release; 724 | }; 725 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 726 | isa = XCBuildConfiguration; 727 | buildSettings = { 728 | ALWAYS_SEARCH_USER_PATHS = NO; 729 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 730 | CLANG_CXX_LIBRARY = "libc++"; 731 | CLANG_ENABLE_MODULES = YES; 732 | CLANG_ENABLE_OBJC_ARC = YES; 733 | CLANG_WARN_BOOL_CONVERSION = YES; 734 | CLANG_WARN_CONSTANT_CONVERSION = YES; 735 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 736 | CLANG_WARN_EMPTY_BODY = YES; 737 | CLANG_WARN_ENUM_CONVERSION = YES; 738 | CLANG_WARN_INT_CONVERSION = YES; 739 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 740 | CLANG_WARN_UNREACHABLE_CODE = YES; 741 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 742 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 743 | COPY_PHASE_STRIP = NO; 744 | ENABLE_STRICT_OBJC_MSGSEND = YES; 745 | GCC_C_LANGUAGE_STANDARD = gnu99; 746 | GCC_DYNAMIC_NO_PIC = NO; 747 | GCC_OPTIMIZATION_LEVEL = 0; 748 | GCC_PREPROCESSOR_DEFINITIONS = ( 749 | "DEBUG=1", 750 | "$(inherited)", 751 | ); 752 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 753 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 754 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 755 | GCC_WARN_UNDECLARED_SELECTOR = YES; 756 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 757 | GCC_WARN_UNUSED_FUNCTION = YES; 758 | GCC_WARN_UNUSED_VARIABLE = YES; 759 | HEADER_SEARCH_PATHS = ( 760 | "$(inherited)", 761 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 762 | "$(SRCROOT)/../node_modules/react-native/React/**", 763 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 764 | "$(SRCROOT)/../node_modules/realm/src/**", 765 | ); 766 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 767 | MTL_ENABLE_DEBUG_INFO = YES; 768 | ONLY_ACTIVE_ARCH = YES; 769 | SDKROOT = iphoneos; 770 | }; 771 | name = Debug; 772 | }; 773 | 83CBBA211A601CBA00E9B192 /* Release */ = { 774 | isa = XCBuildConfiguration; 775 | buildSettings = { 776 | ALWAYS_SEARCH_USER_PATHS = NO; 777 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 778 | CLANG_CXX_LIBRARY = "libc++"; 779 | CLANG_ENABLE_MODULES = YES; 780 | CLANG_ENABLE_OBJC_ARC = YES; 781 | CLANG_WARN_BOOL_CONVERSION = YES; 782 | CLANG_WARN_CONSTANT_CONVERSION = YES; 783 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 784 | CLANG_WARN_EMPTY_BODY = YES; 785 | CLANG_WARN_ENUM_CONVERSION = YES; 786 | CLANG_WARN_INT_CONVERSION = YES; 787 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 788 | CLANG_WARN_UNREACHABLE_CODE = YES; 789 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 790 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 791 | COPY_PHASE_STRIP = YES; 792 | ENABLE_NS_ASSERTIONS = NO; 793 | ENABLE_STRICT_OBJC_MSGSEND = YES; 794 | GCC_C_LANGUAGE_STANDARD = gnu99; 795 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 796 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 797 | GCC_WARN_UNDECLARED_SELECTOR = YES; 798 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 799 | GCC_WARN_UNUSED_FUNCTION = YES; 800 | GCC_WARN_UNUSED_VARIABLE = YES; 801 | HEADER_SEARCH_PATHS = ( 802 | "$(inherited)", 803 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 804 | "$(SRCROOT)/../node_modules/react-native/React/**", 805 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 806 | "$(SRCROOT)/../node_modules/realm/src/**", 807 | ); 808 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 809 | MTL_ENABLE_DEBUG_INFO = NO; 810 | SDKROOT = iphoneos; 811 | VALIDATE_PRODUCT = YES; 812 | }; 813 | name = Release; 814 | }; 815 | /* End XCBuildConfiguration section */ 816 | 817 | /* Begin XCConfigurationList section */ 818 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TodoAppTests" */ = { 819 | isa = XCConfigurationList; 820 | buildConfigurations = ( 821 | 00E356F61AD99517003FC87E /* Debug */, 822 | 00E356F71AD99517003FC87E /* Release */, 823 | ); 824 | defaultConfigurationIsVisible = 0; 825 | defaultConfigurationName = Release; 826 | }; 827 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TodoApp" */ = { 828 | isa = XCConfigurationList; 829 | buildConfigurations = ( 830 | 13B07F941A680F5B00A75B9A /* Debug */, 831 | 13B07F951A680F5B00A75B9A /* Release */, 832 | ); 833 | defaultConfigurationIsVisible = 0; 834 | defaultConfigurationName = Release; 835 | }; 836 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TodoApp" */ = { 837 | isa = XCConfigurationList; 838 | buildConfigurations = ( 839 | 83CBBA201A601CBA00E9B192 /* Debug */, 840 | 83CBBA211A601CBA00E9B192 /* Release */, 841 | ); 842 | defaultConfigurationIsVisible = 0; 843 | defaultConfigurationName = Release; 844 | }; 845 | /* End XCConfigurationList section */ 846 | }; 847 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 848 | } 849 | -------------------------------------------------------------------------------- /ios/TodoApp.xcodeproj/xcshareddata/xcschemes/TodoApp.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ios/TodoApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/TodoApp/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:@"TodoApp" 48 | initialProperties:nil 49 | launchOptions:launchOptions]; 50 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 51 | 52 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 53 | UIViewController *rootViewController = [UIViewController new]; 54 | rootViewController.view = rootView; 55 | self.window.rootViewController = rootViewController; 56 | [self.window makeKeyAndVisible]; 57 | return YES; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /ios/TodoApp/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/TodoApp/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/TodoApp/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 | NSExceptionDomains 44 | 45 | localhost 46 | 47 | NSTemporaryExceptionAllowsInsecureHTTPLoads 48 | 49 | 50 | 51 | 52 | UIAppFonts 53 | 54 | Entypo.ttf 55 | EvilIcons.ttf 56 | FontAwesome.ttf 57 | Foundation.ttf 58 | Ionicons.ttf 59 | MaterialIcons.ttf 60 | Octicons.ttf 61 | Zocial.ttf 62 | 63 | 64 | -------------------------------------------------------------------------------- /ios/TodoApp/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/TodoAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/TodoAppTests/TodoAppTests.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 TodoAppTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation TodoAppTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TodoApp", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start" 7 | }, 8 | "dependencies": { 9 | "react": "15.2.0", 10 | "react-native": "0.28.0", 11 | "react-native-sortable-listview": "0.0.8", 12 | "react-native-vector-icons": "^2.0.3", 13 | "react-timer-mixin": "^0.13.3", 14 | "realm": "^0.14.1" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/CheckBox.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import Icon from 'react-native-vector-icons/MaterialIcons'; 3 | 4 | class CheckBox extends Component { 5 | constructor(props) { 6 | super(props); 7 | this.state = { 8 | data: this.props.data 9 | }; 10 | } 11 | 12 | componentWillReceiveProps(props) { 13 | this.setState({ 14 | data: props.data 15 | }); 16 | } 17 | 18 | render() { 19 | let iconName = this.state.data.completed ? 'check-box' : 'check-box-outline-blank'; 20 | let color = this.props.color || '#000'; 21 | 22 | return ( 23 | 35 | 36 | ); 37 | } 38 | } 39 | 40 | module.exports = CheckBox; 41 | -------------------------------------------------------------------------------- /src/ListView.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Text, View, TouchableHighlight} from 'react-native'; 3 | import TodoModel from './TodoModel'; 4 | import OmniBox from './OmniBox'; 5 | import SortableListView from 'react-native-sortable-listview'; 6 | import ListViewItem from './ListViewItem'; 7 | import Utils from './Utils'; 8 | import TodoService from './TodoService'; 9 | 10 | let dataList = TodoService.findAll(); 11 | var dataListOrder = getOrder(dataList); 12 | 13 | function getOrder(list) { 14 | return Object.keys(list); 15 | } 16 | 17 | function moveOrderItem(listView, fromIndex, toIndex) { 18 | Utils.move(dataListOrder, parseInt(fromIndex), parseInt(toIndex)); 19 | if (listView.forceUpdate) listView.forceUpdate(); 20 | } 21 | 22 | class ListView extends Component { 23 | constructor(props) { 24 | super(props); 25 | this.updateDataList = this.updateDataList.bind(this); 26 | this._onCompletedChange = this._onCompletedChange.bind(this); 27 | this.state = { 28 | dataList: dataList 29 | } 30 | } 31 | 32 | updateDataList(dataList) { 33 | dataListOrder = getOrder(dataList); 34 | this.setState({ 35 | dataList: dataList 36 | }); 37 | } 38 | 39 | _onCompletedChange() { 40 | if (this.forceUpdate) this.forceUpdate(); 41 | } 42 | 43 | render() { 44 | let listView = (); 45 | if (this.state.dataList.length) { 46 | listView = ( 47 | moveOrderItem(this, e.from, e.to)} 53 | renderRow={(dataItem, section, index) => } 54 | /> 55 | ); 56 | } 57 | 58 | return ( 59 | 60 | 63 | {listView} 64 | 65 | ) 66 | } 67 | }; 68 | 69 | module.exports = ListView; 70 | -------------------------------------------------------------------------------- /src/ListViewItem.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {TouchableHighlight, View, Text} from 'react-native'; 3 | import CheckBox from './CheckBox'; 4 | import TodoService from './TodoService'; 5 | 6 | class ListViewItem extends Component { 7 | constructor(props) { 8 | super(props); 9 | this._onCheckBoxPressed = this._onCheckBoxPressed.bind(this); 10 | this.state = { 11 | data: this.props.data 12 | } 13 | } 14 | 15 | componentWillReceiveProps(props) { 16 | this.setState({ 17 | data: props.data 18 | }) 19 | } 20 | 21 | _onCheckBoxPressed() { 22 | var data = this.state.data; 23 | TodoService.update(data, () => { 24 | data.completed = !data.completed; 25 | }); 26 | this.setState({ 27 | data: data 28 | }); 29 | 30 | this.props.onCompletedChange(); 31 | } 32 | 33 | render() { 34 | let data = this.state.data; 35 | let color = data.completed ? '#C5C8C9' : '#000'; 36 | let textDecorationLine = data.completed ? 'line-through' : 'none'; 37 | return ( 38 | 39 | 40 | 41 | {data.title} 42 | 43 | 44 | ) 45 | } 46 | } 47 | 48 | module.exports = ListViewItem; 49 | -------------------------------------------------------------------------------- /src/OmniBox.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { TextInput } from 'react-native'; 3 | import TodoModel from './TodoModel'; 4 | import TodoService from './TodoService'; 5 | import Utils from './Utils'; 6 | 7 | class OmniBox extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.onChange = this.onChange.bind(this); 11 | this.onKeyPress = this.onKeyPress.bind(this); 12 | } 13 | 14 | componentWillMount() { 15 | this.setState({ 16 | newValue: '' 17 | }); 18 | } 19 | 20 | onChange(event){ 21 | var title = event.nativeEvent.text; 22 | var dataList = this.props.data.filter((item) => item.title.match(new RegExp('.*' + title +'.*', 'gi'))); 23 | 24 | this.setState({ 25 | newValue: title 26 | }); 27 | this.props.updateDataList(dataList); 28 | } 29 | 30 | onKeyPress(event){ 31 | if (event.nativeEvent.key == 'Enter' && this.state.newValue) { 32 | var newDataItem = new TodoModel(this.state.newValue); 33 | 34 | var dataList = this.props.data; 35 | var dataItem = Utils.findTodo(newDataItem, dataList); 36 | if(dataItem) { 37 | Utils.move(dataList, (dataList.indexOf(dataItem)), 0); 38 | 39 | this.setState({ 40 | newValue: '' 41 | }); 42 | this.props.updateDataList(dataList); 43 | return; 44 | } 45 | 46 | dataList.unshift(newDataItem); 47 | TodoService.save(newDataItem); 48 | 49 | this.setState({ 50 | newValue: '' 51 | }); 52 | this.props.updateDataList(dataList); 53 | } 54 | } 55 | 56 | render() { 57 | return ( 58 | 64 | 65 | ); 66 | } 67 | } 68 | 69 | module.exports = OmniBox; 70 | -------------------------------------------------------------------------------- /src/TodoModel.js: -------------------------------------------------------------------------------- 1 | import Utils from './Utils'; 2 | 3 | class TodoModel { 4 | constructor(title, completed) { 5 | this.id = Utils.guid(); 6 | this.title = title; 7 | this.completed = completed || false; 8 | this.createdAt = new Date(); 9 | this.updatedAt = new Date(); 10 | } 11 | } 12 | 13 | module.exports = TodoModel; 14 | -------------------------------------------------------------------------------- /src/TodoService.js: -------------------------------------------------------------------------------- 1 | import Realm from 'realm'; 2 | import TodoModel from './TodoModel'; 3 | 4 | let repository = new Realm({ 5 | schema: [{ 6 | name: 'Todo', 7 | primaryKey: 'id', 8 | properties: { 9 | id: {type: 'string', indexed: true}, 10 | title: 'string', 11 | completed: 'bool', 12 | createdAt: 'date', 13 | updatedAt: 'date' 14 | } 15 | }] 16 | }); 17 | 18 | let TodoService = { 19 | findAll: function(sortBy) { 20 | if (!sortBy) sortBy = [['completed', false], ['updatedAt', true]]; 21 | return repository.objects('Todo').sorted(sortBy); 22 | }, 23 | 24 | save: function(todo) { 25 | if (repository.objects('Todo').filtered("title = '" + todo.title + "'").length) return; 26 | 27 | repository.write(() => { 28 | todo.updatedAt = new Date(); 29 | repository.create('Todo', todo); 30 | }) 31 | }, 32 | 33 | update: function(todo, callback) { 34 | if (!callback) return; 35 | repository.write(() => { 36 | callback(); 37 | todo.updatedAt = new Date(); 38 | }); 39 | } 40 | }; 41 | 42 | TodoService.save(new TodoModel('Hello Koding')); 43 | TodoService.save(new TodoModel('Make a Todo App with React Native')); 44 | TodoService.save(new TodoModel('Check to complete a todo')); 45 | TodoService.save(new TodoModel('Long press, drag and drop a todo to sort')); 46 | TodoService.save(new TodoModel('Save data with Realm')); 47 | TodoService.save(new TodoModel('Sync data with Firebase')); 48 | 49 | module.exports = TodoService; 50 | -------------------------------------------------------------------------------- /src/Utils.js: -------------------------------------------------------------------------------- 1 | let Utils = { 2 | guid: function() { 3 | return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { 4 | var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); 5 | return v.toString(16); 6 | }); 7 | }, 8 | 9 | move: function(array, fromIndex, toIndex) { 10 | return array.splice(toIndex, 0, array.splice(fromIndex, 1)[0]); 11 | }, 12 | 13 | findTodo: function(todo, todoList) { 14 | return todoList.find((item) => item.title.toLowerCase() === todo.title.toLowerCase()); 15 | } 16 | }; 17 | 18 | module.exports = Utils; 19 | --------------------------------------------------------------------------------