├── .eslintrc ├── .gitignore ├── .npmignore ├── Example └── items │ ├── .buckconfig │ ├── .flowconfig │ ├── .gitignore │ ├── .npmignore │ ├── .watchmanconfig │ ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── items │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ ├── build.gradle │ ├── gradle.properties │ └── settings.gradle │ ├── apsl.png │ ├── graphql.png │ ├── iOS │ ├── Fonts │ │ ├── Entypo.ttf │ │ ├── EvilIcons.ttf │ │ ├── FontAwesome.ttf │ │ ├── Foundation.ttf │ │ ├── Ionicons.ttf │ │ ├── MaterialIcons.ttf │ │ ├── Octicons.ttf │ │ └── Zocial.ttf │ ├── items.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── items.xcscheme │ ├── items │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── main.jsbundle │ │ └── main.m │ └── itemsTests │ │ ├── Info.plist │ │ └── itemsTests.m │ ├── index.ios.js │ ├── package.json │ └── rn.png ├── ItemCell.js ├── LICENSE ├── README.md └── package.json /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | 4 | "ecmaFeatures": { 5 | "jsx": true 6 | }, 7 | 8 | "env": { 9 | "es6": true, 10 | "jasmine": true, 11 | "node": 1, 12 | }, 13 | 14 | "plugins": [ 15 | "react" 16 | ], 17 | 18 | "globals": { 19 | "__DEV__": true, 20 | "__dirname": false, 21 | "__fbBatchedBridgeConfig": false, 22 | "cancelAnimationFrame": false, 23 | "clearImmediate": true, 24 | "clearInterval": false, 25 | "clearTimeout": false, 26 | "console": false, 27 | "document": false, 28 | "escape": false, 29 | "exports": false, 30 | "fetch": false, 31 | "global": false, 32 | "jest": false, 33 | "Map": true, 34 | "module": false, 35 | "navigator": false, 36 | "process": false, 37 | "Promise": true, 38 | "requestAnimationFrame": true, 39 | "require": false, 40 | "Set": true, 41 | "setImmediate": true, 42 | "setInterval": false, 43 | "setTimeout": false, 44 | "window": false, 45 | "XMLHttpRequest": false, 46 | "pit": false, 47 | "FormData": true, 48 | }, 49 | 50 | "rules": { 51 | "comma-dangle": 0, 52 | "no-cond-assign": 1, 53 | "no-console": 0, 54 | "no-constant-condition": 0, 55 | "no-control-regex": 1, 56 | "no-debugger": 1, 57 | "no-dupe-keys": 1, 58 | "no-empty": 0, 59 | "no-empty-character-class": 1, 60 | "no-ex-assign": 1, 61 | "no-extra-boolean-cast": 1, 62 | "no-extra-semi": 1, 63 | "no-func-assign": 1, 64 | "no-inner-declarations": 0, 65 | "no-invalid-regexp": 1, 66 | "no-negated-in-lhs": 1, 67 | "no-obj-calls": 1, 68 | "no-regex-spaces": 1, 69 | "no-reserved-keys": 0, 70 | "no-sparse-arrays": 1, 71 | "no-unreachable": 1, 72 | "use-isnan": 1, 73 | "valid-jsdoc": 0, 74 | "valid-typeof": 1, 75 | 76 | "block-scoped-var": 0, 77 | "complexity": 0, 78 | "consistent-return": 0, 79 | "curly": 1, 80 | "default-case": 0, 81 | "dot-notation": 1, 82 | "eqeqeq": 1, 83 | "guard-for-in": 0, 84 | "no-alert": 1, 85 | "no-caller": 1, 86 | "no-div-regex": 1, 87 | "no-else-return": 0, 88 | "no-empty-label": 1, 89 | "no-eq-null": 0, 90 | "no-eval": 1, 91 | "no-extend-native": 1, 92 | "no-extra-bind": 1, 93 | "no-fallthrough": 1, 94 | "no-floating-decimal": 1, 95 | "no-implied-eval": 1, 96 | "no-labels": 1, 97 | "no-iterator": 1, 98 | "no-lone-blocks": 1, 99 | "no-loop-func": 0, 100 | "no-multi-str": 0, 101 | "no-native-reassign": 0, 102 | "no-new": 1, 103 | "no-new-func": 1, 104 | "no-new-wrappers": 1, 105 | "no-octal": 1, 106 | "no-octal-escape": 1, 107 | "no-proto": 1, 108 | "no-redeclare": 0, 109 | "no-return-assign": 1, 110 | "no-script-url": 1, 111 | "no-self-compare": 1, 112 | "no-sequences": 1, 113 | "no-unused-expressions": 0, 114 | "no-void": 1, 115 | "no-warning-comments": 0, 116 | "no-with": 1, 117 | "radix": 1, 118 | "semi-spacing": 1, 119 | "vars-on-top": 0, 120 | "wrap-iife": 0, 121 | "yoda": 1, 122 | 123 | "strict": 0, 124 | 125 | "no-catch-shadow": 1, 126 | "no-delete-var": 1, 127 | "no-label-var": 1, 128 | "no-shadow": 1, 129 | "no-shadow-restricted-names": 1, 130 | "no-undef": 2, 131 | "no-undefined": 0, 132 | "no-undef-init": 1, 133 | "no-unused-vars": [1, {"vars": "all", "args": "none"}], 134 | "no-use-before-define": 0, 135 | "handle-callback-err": 1, 136 | "no-mixed-requires": 1, 137 | "no-new-require": 1, 138 | "no-path-concat": 1, 139 | "no-process-exit": 0, 140 | "no-restricted-modules": 1, 141 | "no-sync": 0, 142 | 143 | "key-spacing": 0, 144 | "comma-spacing": 0, 145 | "no-multi-spaces": 0, 146 | "brace-style": 0, 147 | "camelcase": 0, 148 | "consistent-this": [1, "self"], 149 | "eol-last": 1, 150 | "func-names": 0, 151 | "func-style": 0, 152 | "new-cap": 0, 153 | "new-parens": 1, 154 | "no-nested-ternary": 0, 155 | "no-array-constructor": 1, 156 | "no-lonely-if": 0, 157 | "no-new-object": 1, 158 | "no-spaced-func": 1, 159 | "no-ternary": 0, 160 | "no-trailing-spaces": 1, 161 | "no-underscore-dangle": 0, 162 | "no-extra-parens": 0, 163 | "no-mixed-spaces-and-tabs": 1, 164 | "quotes": [1, "single", "avoid-escape"], 165 | "quote-props": 0, 166 | "semi": 0, 167 | "sort-vars": 0, 168 | "space-after-keywords": 1, 169 | "space-in-brackets": 0, 170 | "space-in-parens": 0, 171 | "space-infix-ops": 1, 172 | "space-return-throw-case": 1, 173 | "space-unary-ops": [1, { "words": true, "nonwords": false }], 174 | "max-nested-callbacks": 0, 175 | "one-var": 0, 176 | "wrap-regex": 0, 177 | 178 | "max-depth": 0, 179 | "max-len": 0, 180 | "max-params": 0, 181 | "max-statements": 0, 182 | "no-bitwise": 1, 183 | "no-plusplus": 0, 184 | 185 | "react/display-name": 0, 186 | "react/jsx-boolean-value": 0, 187 | "react/jsx-quotes": [1, "single", "avoid-escape"], 188 | "react/jsx-no-undef": 1, 189 | "react/jsx-sort-props": 0, 190 | "react/jsx-uses-react": 0, 191 | "react/jsx-uses-vars": 1, 192 | "react/no-did-mount-set-state": [1, "allow-in-func"], 193 | "react/no-did-update-set-state": [1, "allow-in-func"], 194 | "react/no-multi-comp": 0, 195 | "react/no-unknown-property": 0, 196 | "react/prop-types": 0, 197 | "react/react-in-jsx-scope": 0, 198 | "react/self-closing-comp": 1, 199 | "react/wrap-multilines": 0 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | node_modules/ 5 | *.pbxuser 6 | !default.pbxuser 7 | *.mode1v3 8 | !default.mode1v3 9 | *.mode2v3 10 | !default.mode2v3 11 | *.perspectivev3 12 | !default.perspectivev3 13 | xcuserdata 14 | *.xccheckout 15 | *.moved-aside 16 | DerivedData 17 | *.hmap 18 | *.ipa 19 | *.xcuserstate 20 | 21 | # CocoaPods 22 | # 23 | # We recommend against adding the Pods directory to your .gitignore. However 24 | # you should judge for yourself, the pros and cons are mentioned at: 25 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 26 | # 27 | #Pods/ 28 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | Example/ 2 | -------------------------------------------------------------------------------- /Example/items/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /Example/items/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*.android.js 5 | 6 | # Ignore templates with `@flow` in header 7 | .*/local-cli/generator.* 8 | 9 | # Ignore malformed json 10 | .*/node_modules/y18n/test/.*\.json 11 | 12 | # Ignore the website subdir 13 | /website/.* 14 | 15 | # Ignore BUCK generated dirs 16 | /\.buckd/ 17 | 18 | # Ignore unexpected extra @providesModule 19 | .*/node_modules/commoner/test/source/widget/share.js 20 | 21 | # Ignore duplicate module providers 22 | # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root 23 | .*/Libraries/react-native/React.js 24 | .*/Libraries/react-native/ReactNative.js 25 | .*/node_modules/jest-runtime/build/__tests__/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | node_modules/react-native/flow 32 | flow/ 33 | 34 | [options] 35 | module.system=haste 36 | 37 | esproposal.class_static_fields=enable 38 | esproposal.class_instance_fields=enable 39 | 40 | experimental.strict_type_args=true 41 | 42 | munge_underscores=true 43 | 44 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 45 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 46 | 47 | suppress_type=$FlowIssue 48 | suppress_type=$FlowFixMe 49 | suppress_type=$FixMe 50 | 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 52 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 53 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 54 | 55 | unsafe.enable_getters_and_setters=true 56 | 57 | [version] 58 | ^0.30.0 59 | -------------------------------------------------------------------------------- /Example/items/.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 | -------------------------------------------------------------------------------- /Example/items/.npmignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # node.js 25 | # 26 | node_modules/ 27 | npm-debug.log 28 | -------------------------------------------------------------------------------- /Example/items/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Example/items/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.items', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.items', 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 | -------------------------------------------------------------------------------- /Example/items/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.items" 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 fileTree(dir: "libs", include: ["*.jar"]) 130 | compile "com.android.support:appcompat-v7:23.0.1" 131 | compile "com.facebook.react:react-native:+" // From node_modules 132 | } 133 | 134 | // Run this once to be able to run the application with BUCK 135 | // puts all compile dependencies into folder libs for BUCK to use 136 | task copyDownloadableDepsToLibs(type: Copy) { 137 | from configurations.compile 138 | into 'libs' 139 | } 140 | -------------------------------------------------------------------------------- /Example/items/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 | -------------------------------------------------------------------------------- /Example/items/android/app/src/main/java/com/items/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.items; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "items"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Example/items/android/app/src/main/java/com/items/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.items; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | protected boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage() 27 | ); 28 | } 29 | }; 30 | 31 | @Override 32 | public ReactNativeHost getReactNativeHost() { 33 | return mReactNativeHost; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Example/items/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 | -------------------------------------------------------------------------------- /Example/items/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 | -------------------------------------------------------------------------------- /Example/items/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'items' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /Example/items/apsl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/apsl.png -------------------------------------------------------------------------------- /Example/items/graphql.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/graphql.png -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/Entypo.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/Foundation.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/Ionicons.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/Octicons.ttf -------------------------------------------------------------------------------- /Example/items/iOS/Fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/iOS/Fonts/Zocial.ttf -------------------------------------------------------------------------------- /Example/items/iOS/items.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* itemsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* itemsTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 38C9AB4C1D8FEB4C00E83F0C /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB441D8FEB4C00E83F0C /* Entypo.ttf */; }; 26 | 38C9AB4D1D8FEB4C00E83F0C /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB451D8FEB4C00E83F0C /* EvilIcons.ttf */; }; 27 | 38C9AB4E1D8FEB4C00E83F0C /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB461D8FEB4C00E83F0C /* FontAwesome.ttf */; }; 28 | 38C9AB4F1D8FEB4C00E83F0C /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB471D8FEB4C00E83F0C /* Foundation.ttf */; }; 29 | 38C9AB501D8FEB4C00E83F0C /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB481D8FEB4C00E83F0C /* Ionicons.ttf */; }; 30 | 38C9AB511D8FEB4C00E83F0C /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB491D8FEB4C00E83F0C /* MaterialIcons.ttf */; }; 31 | 38C9AB521D8FEB4C00E83F0C /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB4A1D8FEB4C00E83F0C /* Octicons.ttf */; }; 32 | 38C9AB531D8FEB4C00E83F0C /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 38C9AB4B1D8FEB4C00E83F0C /* Zocial.ttf */; }; 33 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 40 | proxyType = 2; 41 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 42 | remoteInfo = RCTActionSheet; 43 | }; 44 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 49 | remoteInfo = RCTGeolocation; 50 | }; 51 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 56 | remoteInfo = RCTImage; 57 | }; 58 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 63 | remoteInfo = RCTNetwork; 64 | }; 65 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 70 | remoteInfo = RCTVibration; 71 | }; 72 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 75 | proxyType = 1; 76 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 77 | remoteInfo = items; 78 | }; 79 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 82 | proxyType = 2; 83 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 84 | remoteInfo = RCTSettings; 85 | }; 86 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 91 | remoteInfo = RCTWebSocket; 92 | }; 93 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 98 | remoteInfo = React; 99 | }; 100 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 105 | remoteInfo = RCTLinking; 106 | }; 107 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 110 | proxyType = 2; 111 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 112 | remoteInfo = RCTText; 113 | }; 114 | /* End PBXContainerItemProxy section */ 115 | 116 | /* Begin PBXFileReference section */ 117 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 118 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 119 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 120 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 121 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 122 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 123 | 00E356EE1AD99517003FC87E /* itemsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = itemsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 124 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 125 | 00E356F21AD99517003FC87E /* itemsTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = itemsTests.m; sourceTree = ""; }; 126 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 127 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 128 | 13B07F961A680F5B00A75B9A /* items.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = items.app; sourceTree = BUILT_PRODUCTS_DIR; }; 129 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = items/AppDelegate.h; sourceTree = ""; }; 130 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = items/AppDelegate.m; sourceTree = ""; }; 131 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 132 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = items/Images.xcassets; sourceTree = ""; }; 133 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = items/Info.plist; sourceTree = ""; }; 134 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = items/main.m; sourceTree = ""; }; 135 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 136 | 38C9AB441D8FEB4C00E83F0C /* Entypo.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Entypo.ttf; sourceTree = ""; }; 137 | 38C9AB451D8FEB4C00E83F0C /* EvilIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = EvilIcons.ttf; sourceTree = ""; }; 138 | 38C9AB461D8FEB4C00E83F0C /* FontAwesome.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = FontAwesome.ttf; sourceTree = ""; }; 139 | 38C9AB471D8FEB4C00E83F0C /* Foundation.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Foundation.ttf; sourceTree = ""; }; 140 | 38C9AB481D8FEB4C00E83F0C /* Ionicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Ionicons.ttf; sourceTree = ""; }; 141 | 38C9AB491D8FEB4C00E83F0C /* MaterialIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = MaterialIcons.ttf; sourceTree = ""; }; 142 | 38C9AB4A1D8FEB4C00E83F0C /* Octicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Octicons.ttf; sourceTree = ""; }; 143 | 38C9AB4B1D8FEB4C00E83F0C /* Zocial.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Zocial.ttf; sourceTree = ""; }; 144 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 145 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 146 | /* End PBXFileReference section */ 147 | 148 | /* Begin PBXFrameworksBuildPhase section */ 149 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 150 | isa = PBXFrameworksBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 154 | ); 155 | runOnlyForDeploymentPostprocessing = 0; 156 | }; 157 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 158 | isa = PBXFrameworksBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 162 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 163 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 164 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 165 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 166 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 167 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 168 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 169 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 170 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 171 | ); 172 | runOnlyForDeploymentPostprocessing = 0; 173 | }; 174 | /* End PBXFrameworksBuildPhase section */ 175 | 176 | /* Begin PBXGroup section */ 177 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 181 | ); 182 | name = Products; 183 | sourceTree = ""; 184 | }; 185 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 189 | ); 190 | name = Products; 191 | sourceTree = ""; 192 | }; 193 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 197 | ); 198 | name = Products; 199 | sourceTree = ""; 200 | }; 201 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 205 | ); 206 | name = Products; 207 | sourceTree = ""; 208 | }; 209 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 213 | ); 214 | name = Products; 215 | sourceTree = ""; 216 | }; 217 | 00E356EF1AD99517003FC87E /* itemsTests */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 00E356F21AD99517003FC87E /* itemsTests.m */, 221 | 00E356F01AD99517003FC87E /* Supporting Files */, 222 | ); 223 | path = itemsTests; 224 | sourceTree = ""; 225 | }; 226 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | 00E356F11AD99517003FC87E /* Info.plist */, 230 | ); 231 | name = "Supporting Files"; 232 | sourceTree = ""; 233 | }; 234 | 139105B71AF99BAD00B5F7CC /* Products */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 238 | ); 239 | name = Products; 240 | sourceTree = ""; 241 | }; 242 | 139FDEE71B06529A00C62182 /* Products */ = { 243 | isa = PBXGroup; 244 | children = ( 245 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 246 | ); 247 | name = Products; 248 | sourceTree = ""; 249 | }; 250 | 13B07FAE1A68108700A75B9A /* items */ = { 251 | isa = PBXGroup; 252 | children = ( 253 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 254 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 255 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 256 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 257 | 13B07FB61A68108700A75B9A /* Info.plist */, 258 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 259 | 13B07FB71A68108700A75B9A /* main.m */, 260 | ); 261 | name = items; 262 | sourceTree = ""; 263 | }; 264 | 146834001AC3E56700842450 /* Products */ = { 265 | isa = PBXGroup; 266 | children = ( 267 | 146834041AC3E56700842450 /* libReact.a */, 268 | ); 269 | name = Products; 270 | sourceTree = ""; 271 | }; 272 | 38C9AB431D8FEB4C00E83F0C /* Fonts */ = { 273 | isa = PBXGroup; 274 | children = ( 275 | 38C9AB441D8FEB4C00E83F0C /* Entypo.ttf */, 276 | 38C9AB451D8FEB4C00E83F0C /* EvilIcons.ttf */, 277 | 38C9AB461D8FEB4C00E83F0C /* FontAwesome.ttf */, 278 | 38C9AB471D8FEB4C00E83F0C /* Foundation.ttf */, 279 | 38C9AB481D8FEB4C00E83F0C /* Ionicons.ttf */, 280 | 38C9AB491D8FEB4C00E83F0C /* MaterialIcons.ttf */, 281 | 38C9AB4A1D8FEB4C00E83F0C /* Octicons.ttf */, 282 | 38C9AB4B1D8FEB4C00E83F0C /* Zocial.ttf */, 283 | ); 284 | path = Fonts; 285 | sourceTree = ""; 286 | }; 287 | 78C398B11ACF4ADC00677621 /* Products */ = { 288 | isa = PBXGroup; 289 | children = ( 290 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 291 | ); 292 | name = Products; 293 | sourceTree = ""; 294 | }; 295 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 296 | isa = PBXGroup; 297 | children = ( 298 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 299 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 300 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 301 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 302 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 303 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 304 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 305 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 306 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 307 | 139FDEE61B06529A00C62182 /* RCTWebSocket.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 | 38C9AB431D8FEB4C00E83F0C /* Fonts */, 324 | 13B07FAE1A68108700A75B9A /* items */, 325 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 326 | 00E356EF1AD99517003FC87E /* itemsTests */, 327 | 83CBBA001A601CBA00E9B192 /* Products */, 328 | ); 329 | indentWidth = 2; 330 | sourceTree = ""; 331 | tabWidth = 2; 332 | }; 333 | 83CBBA001A601CBA00E9B192 /* Products */ = { 334 | isa = PBXGroup; 335 | children = ( 336 | 13B07F961A680F5B00A75B9A /* items.app */, 337 | 00E356EE1AD99517003FC87E /* itemsTests.xctest */, 338 | ); 339 | name = Products; 340 | sourceTree = ""; 341 | }; 342 | /* End PBXGroup section */ 343 | 344 | /* Begin PBXNativeTarget section */ 345 | 00E356ED1AD99517003FC87E /* itemsTests */ = { 346 | isa = PBXNativeTarget; 347 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "itemsTests" */; 348 | buildPhases = ( 349 | 00E356EA1AD99517003FC87E /* Sources */, 350 | 00E356EB1AD99517003FC87E /* Frameworks */, 351 | 00E356EC1AD99517003FC87E /* Resources */, 352 | ); 353 | buildRules = ( 354 | ); 355 | dependencies = ( 356 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 357 | ); 358 | name = itemsTests; 359 | productName = itemsTests; 360 | productReference = 00E356EE1AD99517003FC87E /* itemsTests.xctest */; 361 | productType = "com.apple.product-type.bundle.unit-test"; 362 | }; 363 | 13B07F861A680F5B00A75B9A /* items */ = { 364 | isa = PBXNativeTarget; 365 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "items" */; 366 | buildPhases = ( 367 | 13B07F871A680F5B00A75B9A /* Sources */, 368 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 369 | 13B07F8E1A680F5B00A75B9A /* Resources */, 370 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 371 | ); 372 | buildRules = ( 373 | ); 374 | dependencies = ( 375 | ); 376 | name = items; 377 | productName = "Hello World"; 378 | productReference = 13B07F961A680F5B00A75B9A /* items.app */; 379 | productType = "com.apple.product-type.application"; 380 | }; 381 | /* End PBXNativeTarget section */ 382 | 383 | /* Begin PBXProject section */ 384 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 385 | isa = PBXProject; 386 | attributes = { 387 | LastUpgradeCheck = 0610; 388 | ORGANIZATIONNAME = Facebook; 389 | TargetAttributes = { 390 | 00E356ED1AD99517003FC87E = { 391 | CreatedOnToolsVersion = 6.2; 392 | TestTargetID = 13B07F861A680F5B00A75B9A; 393 | }; 394 | }; 395 | }; 396 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "items" */; 397 | compatibilityVersion = "Xcode 3.2"; 398 | developmentRegion = English; 399 | hasScannedForEncodings = 0; 400 | knownRegions = ( 401 | en, 402 | Base, 403 | ); 404 | mainGroup = 83CBB9F61A601CBA00E9B192; 405 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 406 | projectDirPath = ""; 407 | projectReferences = ( 408 | { 409 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 410 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 411 | }, 412 | { 413 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 414 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 415 | }, 416 | { 417 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 418 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 419 | }, 420 | { 421 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 422 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 423 | }, 424 | { 425 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 426 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 427 | }, 428 | { 429 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 430 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 431 | }, 432 | { 433 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 434 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 435 | }, 436 | { 437 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 438 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 439 | }, 440 | { 441 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 442 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 443 | }, 444 | { 445 | ProductGroup = 146834001AC3E56700842450 /* Products */; 446 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 447 | }, 448 | ); 449 | projectRoot = ""; 450 | targets = ( 451 | 13B07F861A680F5B00A75B9A /* items */, 452 | 00E356ED1AD99517003FC87E /* itemsTests */, 453 | ); 454 | }; 455 | /* End PBXProject section */ 456 | 457 | /* Begin PBXReferenceProxy section */ 458 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 459 | isa = PBXReferenceProxy; 460 | fileType = archive.ar; 461 | path = libRCTActionSheet.a; 462 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 463 | sourceTree = BUILT_PRODUCTS_DIR; 464 | }; 465 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 466 | isa = PBXReferenceProxy; 467 | fileType = archive.ar; 468 | path = libRCTGeolocation.a; 469 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 470 | sourceTree = BUILT_PRODUCTS_DIR; 471 | }; 472 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 473 | isa = PBXReferenceProxy; 474 | fileType = archive.ar; 475 | path = libRCTImage.a; 476 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 477 | sourceTree = BUILT_PRODUCTS_DIR; 478 | }; 479 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 480 | isa = PBXReferenceProxy; 481 | fileType = archive.ar; 482 | path = libRCTNetwork.a; 483 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 484 | sourceTree = BUILT_PRODUCTS_DIR; 485 | }; 486 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 487 | isa = PBXReferenceProxy; 488 | fileType = archive.ar; 489 | path = libRCTVibration.a; 490 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 491 | sourceTree = BUILT_PRODUCTS_DIR; 492 | }; 493 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 494 | isa = PBXReferenceProxy; 495 | fileType = archive.ar; 496 | path = libRCTSettings.a; 497 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 498 | sourceTree = BUILT_PRODUCTS_DIR; 499 | }; 500 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 501 | isa = PBXReferenceProxy; 502 | fileType = archive.ar; 503 | path = libRCTWebSocket.a; 504 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 505 | sourceTree = BUILT_PRODUCTS_DIR; 506 | }; 507 | 146834041AC3E56700842450 /* libReact.a */ = { 508 | isa = PBXReferenceProxy; 509 | fileType = archive.ar; 510 | path = libReact.a; 511 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 512 | sourceTree = BUILT_PRODUCTS_DIR; 513 | }; 514 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 515 | isa = PBXReferenceProxy; 516 | fileType = archive.ar; 517 | path = libRCTLinking.a; 518 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 519 | sourceTree = BUILT_PRODUCTS_DIR; 520 | }; 521 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 522 | isa = PBXReferenceProxy; 523 | fileType = archive.ar; 524 | path = libRCTText.a; 525 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 526 | sourceTree = BUILT_PRODUCTS_DIR; 527 | }; 528 | /* End PBXReferenceProxy section */ 529 | 530 | /* Begin PBXResourcesBuildPhase section */ 531 | 00E356EC1AD99517003FC87E /* Resources */ = { 532 | isa = PBXResourcesBuildPhase; 533 | buildActionMask = 2147483647; 534 | files = ( 535 | ); 536 | runOnlyForDeploymentPostprocessing = 0; 537 | }; 538 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 539 | isa = PBXResourcesBuildPhase; 540 | buildActionMask = 2147483647; 541 | files = ( 542 | 38C9AB511D8FEB4C00E83F0C /* MaterialIcons.ttf in Resources */, 543 | 38C9AB521D8FEB4C00E83F0C /* Octicons.ttf in Resources */, 544 | 38C9AB531D8FEB4C00E83F0C /* Zocial.ttf in Resources */, 545 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 546 | 38C9AB4E1D8FEB4C00E83F0C /* FontAwesome.ttf in Resources */, 547 | 38C9AB4D1D8FEB4C00E83F0C /* EvilIcons.ttf in Resources */, 548 | 38C9AB501D8FEB4C00E83F0C /* Ionicons.ttf in Resources */, 549 | 38C9AB4F1D8FEB4C00E83F0C /* Foundation.ttf in Resources */, 550 | 38C9AB4C1D8FEB4C00E83F0C /* Entypo.ttf in Resources */, 551 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 552 | ); 553 | runOnlyForDeploymentPostprocessing = 0; 554 | }; 555 | /* End PBXResourcesBuildPhase section */ 556 | 557 | /* Begin PBXShellScriptBuildPhase section */ 558 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 559 | isa = PBXShellScriptBuildPhase; 560 | buildActionMask = 2147483647; 561 | files = ( 562 | ); 563 | inputPaths = ( 564 | ); 565 | name = "Bundle React Native code and images"; 566 | outputPaths = ( 567 | ); 568 | runOnlyForDeploymentPostprocessing = 0; 569 | shellPath = /bin/sh; 570 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 571 | }; 572 | /* End PBXShellScriptBuildPhase section */ 573 | 574 | /* Begin PBXSourcesBuildPhase section */ 575 | 00E356EA1AD99517003FC87E /* Sources */ = { 576 | isa = PBXSourcesBuildPhase; 577 | buildActionMask = 2147483647; 578 | files = ( 579 | 00E356F31AD99517003FC87E /* itemsTests.m in Sources */, 580 | ); 581 | runOnlyForDeploymentPostprocessing = 0; 582 | }; 583 | 13B07F871A680F5B00A75B9A /* Sources */ = { 584 | isa = PBXSourcesBuildPhase; 585 | buildActionMask = 2147483647; 586 | files = ( 587 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 588 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 589 | ); 590 | runOnlyForDeploymentPostprocessing = 0; 591 | }; 592 | /* End PBXSourcesBuildPhase section */ 593 | 594 | /* Begin PBXTargetDependency section */ 595 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 596 | isa = PBXTargetDependency; 597 | target = 13B07F861A680F5B00A75B9A /* items */; 598 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 599 | }; 600 | /* End PBXTargetDependency section */ 601 | 602 | /* Begin PBXVariantGroup section */ 603 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 604 | isa = PBXVariantGroup; 605 | children = ( 606 | 13B07FB21A68108700A75B9A /* Base */, 607 | ); 608 | name = LaunchScreen.xib; 609 | path = items; 610 | sourceTree = ""; 611 | }; 612 | /* End PBXVariantGroup section */ 613 | 614 | /* Begin XCBuildConfiguration section */ 615 | 00E356F61AD99517003FC87E /* Debug */ = { 616 | isa = XCBuildConfiguration; 617 | buildSettings = { 618 | BUNDLE_LOADER = "$(TEST_HOST)"; 619 | GCC_PREPROCESSOR_DEFINITIONS = ( 620 | "DEBUG=1", 621 | "$(inherited)", 622 | ); 623 | INFOPLIST_FILE = itemsTests/Info.plist; 624 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 625 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 626 | PRODUCT_NAME = "$(TARGET_NAME)"; 627 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/items.app/items"; 628 | }; 629 | name = Debug; 630 | }; 631 | 00E356F71AD99517003FC87E /* Release */ = { 632 | isa = XCBuildConfiguration; 633 | buildSettings = { 634 | BUNDLE_LOADER = "$(TEST_HOST)"; 635 | COPY_PHASE_STRIP = NO; 636 | INFOPLIST_FILE = itemsTests/Info.plist; 637 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 638 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 639 | PRODUCT_NAME = "$(TARGET_NAME)"; 640 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/items.app/items"; 641 | }; 642 | name = Release; 643 | }; 644 | 13B07F941A680F5B00A75B9A /* Debug */ = { 645 | isa = XCBuildConfiguration; 646 | buildSettings = { 647 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 648 | DEAD_CODE_STRIPPING = NO; 649 | HEADER_SEARCH_PATHS = ( 650 | "$(inherited)", 651 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 652 | "$(SRCROOT)/../node_modules/react-native/React/**", 653 | ); 654 | INFOPLIST_FILE = items/Info.plist; 655 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 656 | OTHER_LDFLAGS = ( 657 | "$(inherited)", 658 | "-ObjC", 659 | "-lc++", 660 | ); 661 | PRODUCT_NAME = items; 662 | }; 663 | name = Debug; 664 | }; 665 | 13B07F951A680F5B00A75B9A /* Release */ = { 666 | isa = XCBuildConfiguration; 667 | buildSettings = { 668 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 669 | HEADER_SEARCH_PATHS = ( 670 | "$(inherited)", 671 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 672 | "$(SRCROOT)/../node_modules/react-native/React/**", 673 | ); 674 | INFOPLIST_FILE = items/Info.plist; 675 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 676 | OTHER_LDFLAGS = ( 677 | "$(inherited)", 678 | "-ObjC", 679 | "-lc++", 680 | ); 681 | PRODUCT_NAME = items; 682 | }; 683 | name = Release; 684 | }; 685 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 686 | isa = XCBuildConfiguration; 687 | buildSettings = { 688 | ALWAYS_SEARCH_USER_PATHS = NO; 689 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 690 | CLANG_CXX_LIBRARY = "libc++"; 691 | CLANG_ENABLE_MODULES = YES; 692 | CLANG_ENABLE_OBJC_ARC = YES; 693 | CLANG_WARN_BOOL_CONVERSION = YES; 694 | CLANG_WARN_CONSTANT_CONVERSION = YES; 695 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 696 | CLANG_WARN_EMPTY_BODY = YES; 697 | CLANG_WARN_ENUM_CONVERSION = YES; 698 | CLANG_WARN_INT_CONVERSION = YES; 699 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 700 | CLANG_WARN_UNREACHABLE_CODE = YES; 701 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 702 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 703 | COPY_PHASE_STRIP = NO; 704 | ENABLE_STRICT_OBJC_MSGSEND = YES; 705 | GCC_C_LANGUAGE_STANDARD = gnu99; 706 | GCC_DYNAMIC_NO_PIC = NO; 707 | GCC_OPTIMIZATION_LEVEL = 0; 708 | GCC_PREPROCESSOR_DEFINITIONS = ( 709 | "DEBUG=1", 710 | "$(inherited)", 711 | ); 712 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 713 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 714 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 715 | GCC_WARN_UNDECLARED_SELECTOR = YES; 716 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 717 | GCC_WARN_UNUSED_FUNCTION = YES; 718 | GCC_WARN_UNUSED_VARIABLE = YES; 719 | HEADER_SEARCH_PATHS = ( 720 | "$(inherited)", 721 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 722 | "$(SRCROOT)/../node_modules/react-native/React/**", 723 | ); 724 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 725 | MTL_ENABLE_DEBUG_INFO = YES; 726 | ONLY_ACTIVE_ARCH = YES; 727 | SDKROOT = iphoneos; 728 | }; 729 | name = Debug; 730 | }; 731 | 83CBBA211A601CBA00E9B192 /* Release */ = { 732 | isa = XCBuildConfiguration; 733 | buildSettings = { 734 | ALWAYS_SEARCH_USER_PATHS = NO; 735 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 736 | CLANG_CXX_LIBRARY = "libc++"; 737 | CLANG_ENABLE_MODULES = YES; 738 | CLANG_ENABLE_OBJC_ARC = YES; 739 | CLANG_WARN_BOOL_CONVERSION = YES; 740 | CLANG_WARN_CONSTANT_CONVERSION = YES; 741 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 742 | CLANG_WARN_EMPTY_BODY = YES; 743 | CLANG_WARN_ENUM_CONVERSION = YES; 744 | CLANG_WARN_INT_CONVERSION = YES; 745 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 746 | CLANG_WARN_UNREACHABLE_CODE = YES; 747 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 748 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 749 | COPY_PHASE_STRIP = YES; 750 | ENABLE_NS_ASSERTIONS = NO; 751 | ENABLE_STRICT_OBJC_MSGSEND = YES; 752 | GCC_C_LANGUAGE_STANDARD = gnu99; 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 | ); 764 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 765 | MTL_ENABLE_DEBUG_INFO = NO; 766 | SDKROOT = iphoneos; 767 | VALIDATE_PRODUCT = YES; 768 | }; 769 | name = Release; 770 | }; 771 | /* End XCBuildConfiguration section */ 772 | 773 | /* Begin XCConfigurationList section */ 774 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "itemsTests" */ = { 775 | isa = XCConfigurationList; 776 | buildConfigurations = ( 777 | 00E356F61AD99517003FC87E /* Debug */, 778 | 00E356F71AD99517003FC87E /* Release */, 779 | ); 780 | defaultConfigurationIsVisible = 0; 781 | defaultConfigurationName = Release; 782 | }; 783 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "items" */ = { 784 | isa = XCConfigurationList; 785 | buildConfigurations = ( 786 | 13B07F941A680F5B00A75B9A /* Debug */, 787 | 13B07F951A680F5B00A75B9A /* Release */, 788 | ); 789 | defaultConfigurationIsVisible = 0; 790 | defaultConfigurationName = Release; 791 | }; 792 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "items" */ = { 793 | isa = XCConfigurationList; 794 | buildConfigurations = ( 795 | 83CBBA201A601CBA00E9B192 /* Debug */, 796 | 83CBBA211A601CBA00E9B192 /* Release */, 797 | ); 798 | defaultConfigurationIsVisible = 0; 799 | defaultConfigurationName = Release; 800 | }; 801 | /* End XCConfigurationList section */ 802 | }; 803 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 804 | } 805 | -------------------------------------------------------------------------------- /Example/items/iOS/items.xcodeproj/xcshareddata/xcschemes/items.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 | -------------------------------------------------------------------------------- /Example/items/iOS/items/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 | -------------------------------------------------------------------------------- /Example/items/iOS/items/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTBundleURLProvider.h" 13 | #import "RCTRootView.h" 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"items" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Example/items/iOS/items/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 | -------------------------------------------------------------------------------- /Example/items/iOS/items/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 | } -------------------------------------------------------------------------------- /Example/items/iOS/items/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 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSTemporaryExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UIAppFonts 39 | 40 | FontAwesome.ttf 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Example/items/iOS/items/main.jsbundle: -------------------------------------------------------------------------------- 1 | // Offline JS 2 | // To re-generate the offline bundle, run this from the root of your project: 3 | // 4 | // $ react-native bundle --minify 5 | // 6 | // See http://facebook.github.io/react-native/docs/runningondevice.html for more details. 7 | 8 | throw new Error('Offline JS file is empty. See iOS/main.jsbundle for instructions'); 9 | -------------------------------------------------------------------------------- /Example/items/iOS/items/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 | -------------------------------------------------------------------------------- /Example/items/iOS/itemsTests/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 | -------------------------------------------------------------------------------- /Example/items/iOS/itemsTests/itemsTests.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 itemsTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation itemsTests 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 | -------------------------------------------------------------------------------- /Example/items/index.ios.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import React from 'react' 4 | import { 5 | AppRegistry, 6 | StyleSheet, 7 | ListView, 8 | } from 'react-native' 9 | import ItemCell from 'react-native-item-cell' 10 | 11 | const items = React.createClass({ 12 | getInitialState: function() { 13 | const itemsArray = [ 14 | 'Item 1', 15 | 'Item 2', 16 | 'Item 3', 17 | 'Settings', 18 | 'It appears that the systematic use of complex symbols can be defined in such a way as to impose the extended c-command discussed in connection with (34).', 19 | 'With this clarification, any associated supporting element is unspecified with respect to a corpus of utterance tokens upon which conformity has been defined by the paired utterance test.' 20 | ] 21 | const dataSource = new ListView.DataSource({ 22 | rowHasChanged: (r1, r2) => r1 !== r2 23 | }) 24 | return { 25 | ds: dataSource.cloneWithRows(itemsArray) 26 | } 27 | }, 28 | 29 | _renderRow: function(rowData, sectionID, rowID, highlightRow) { 30 | if (rowID === '1') { 31 | return ( 32 | 36 | Local assets icon 37 | 38 | ) 39 | } 40 | if (rowID === '5') { 41 | return ( 42 | 44 | {`URL Icon - ${rowData}`} 45 | 46 | ) 47 | } 48 | if (rowID === '2') { 49 | return ( 50 | 51 | Local image 52 | 53 | ) 54 | } 55 | if (rowID === '3') { 56 | return ( 57 | 58 | React Native 59 | 60 | ) 61 | } 62 | var disclosure = (rowID % 2 === 0) ? true : false; 63 | return ( 64 | 65 | {rowData} 66 | 67 | ) 68 | }, 69 | 70 | render: function() { 71 | return ( 72 | 79 | ) 80 | } 81 | }) 82 | 83 | const styles = StyleSheet.create({ 84 | container: { 85 | flex: 1, 86 | backgroundColor: '#efedf4', 87 | paddingTop: 20, 88 | }, 89 | }) 90 | 91 | AppRegistry.registerComponent('items', () => items) 92 | -------------------------------------------------------------------------------- /Example/items/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "items", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node_modules/react-native/packager/packager.sh" 7 | }, 8 | "dependencies": { 9 | "react": "^15.3.1", 10 | "react-native": "^0.33.0", 11 | "react-native-item-cell": "^1.5.0" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Example/items/rn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/APSL/react-native-item-cell/cba5ac021c67c06a63ddfed777f7072c153c1b56/Example/items/rn.png -------------------------------------------------------------------------------- /ItemCell.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import React, { PropTypes } from 'react' 4 | import { 5 | View, 6 | Text, 7 | Image, 8 | StyleSheet, 9 | PixelRatio, 10 | TouchableHighlight, 11 | Platform 12 | } from 'react-native' 13 | import Icon from 'react-native-vector-icons/FontAwesome' 14 | import shallowCompare from 'react-addons-shallow-compare' 15 | 16 | const IC_GREY_BORDER_COLOR = '#C8C7CC' 17 | 18 | class ItemCell extends React.Component { 19 | state: Object 20 | 21 | shouldComponentUpdate(nextProps: Object, nextState: Object) { 22 | return shallowCompare(this, nextProps, nextState) 23 | } 24 | 25 | _renderDisclosureIndicator () { 26 | const { showDisclosureIndicator, value } = this.props 27 | if (showDisclosureIndicator && !value) { 28 | return ( 29 | 34 | ) 35 | } else if (value) { 36 | return ( 37 | 38 | {value} 39 | 40 | ) 41 | } 42 | } 43 | 44 | _renderIcon () { 45 | if (this.props.icon) { 46 | return ( 47 | 48 | 53 | 54 | ) 55 | } 56 | } 57 | 58 | _renderText () { 59 | const { children, subtitle } = this.props 60 | if (subtitle) { 61 | return ( 62 | 63 | 64 | {children} 65 | 66 | 67 | {subtitle} 68 | 69 | 70 | ) 71 | } 72 | return ( 73 | 74 | {this.props.children} 75 | 76 | ) 77 | } 78 | 79 | render () { 80 | const touchableProps = { 81 | accessible: this.props.accessible, 82 | delayLongPress: this.props.delayLongPress, 83 | delayPressIn: this.props.delayPressIn, 84 | delayPressOut: this.props.delayPressOut, 85 | onLongPress: this.props.onLongPress, 86 | onPress: this.props.onPress, 87 | onPressIn: this.props.onPressIn, 88 | onPressOut: this.props.onPressOut, 89 | underlayColor: this.props.underlayColor || '#D9D9D9' 90 | } 91 | return ( 92 | 93 | 94 | 95 | {this._renderIcon()} 96 | 97 | 98 | 99 | {this._renderText()} 100 | 101 | {this._renderDisclosureIndicator()} 102 | 103 | 104 | 105 | 106 | 107 | 108 | ) 109 | } 110 | } 111 | 112 | ItemCell.propTypes = { 113 | ...TouchableHighlight.propTypes, 114 | backgroundColor: PropTypes.string, 115 | subtitle: PropTypes.string, 116 | children: PropTypes.string.isRequired, 117 | value: PropTypes.string, 118 | showDisclosureIndicator: PropTypes.bool, 119 | chevronColor: PropTypes.string, 120 | icon: PropTypes.oneOfType([ 121 | PropTypes.number, 122 | PropTypes.shape({ 123 | uri: PropTypes.string, 124 | }), 125 | ]), 126 | } 127 | 128 | const styles = StyleSheet.create({ 129 | container: { 130 | flexDirection: 'row', 131 | minHeight: 43, 132 | }, 133 | leftContainer: { 134 | minWidth: 15, 135 | }, 136 | rightContainer: { 137 | flex: 1, 138 | }, 139 | textIconContainer: { 140 | flexDirection: 'row', 141 | alignItems: 'center', 142 | justifyContent: 'center', 143 | }, 144 | disclosureContainer: { 145 | minWidth: 30, 146 | flexDirection: 'row', 147 | alignItems: 'center', 148 | justifyContent: 'center', 149 | }, 150 | iconContainer: { 151 | flex: 1, 152 | width: 59, 153 | flexDirection: 'row', 154 | alignItems: 'center', 155 | justifyContent: 'center', 156 | }, 157 | icon: { 158 | width: 29, 159 | height: 29, 160 | borderRadius: 8, 161 | backgroundColor: '#333' 162 | }, 163 | border: { 164 | height: 1 / PixelRatio.get(), 165 | backgroundColor: IC_GREY_BORDER_COLOR, 166 | }, 167 | text: { 168 | flex: 1, 169 | paddingTop: 12, 170 | paddingBottom: 12, 171 | fontSize: 15, 172 | }, 173 | subtitle: { 174 | fontSize: 11, 175 | color: '#444', 176 | paddingBottom: 6, 177 | }, 178 | subtitleContainer: { 179 | flex: 1, 180 | ...Platform.select({ 181 | ios: { 182 | minHeight: 43, 183 | }, 184 | android: { 185 | minHeight: 48, 186 | } 187 | }) 188 | }, 189 | chevron: { 190 | width: 25, 191 | paddingRight: 15, 192 | alignSelf: 'center', 193 | }, 194 | value: { 195 | fontSize: 15, 196 | color: '#808080', 197 | textAlign: 'right', 198 | paddingRight: 15, 199 | } 200 | }) 201 | 202 | export default ItemCell 203 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 APSL 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-item-cell 2 | A React Native default iOS item cell. The cell grows with the inner text. 3 | 4 |

5 | ItemCell component screenshot 6 |

7 | 8 | 9 | ## Install 10 | 11 | RN>=0.18 is required for `1.4.x`. Install the package: 12 | 13 | ```bash 14 | $ yarn add react-native-item-cell 15 | ``` 16 | 17 | Install ``FontAwesome`` from the awesome Joel Oblador's ``react-native-vector-icons``: https://github.com/oblador/react-native-vector-icons#installation 18 | 19 | 20 | ## Usage 21 | 22 | ```javascript 23 | 24 | Item 25 | 26 | ``` 27 | 28 | ## Prop API 29 | 30 | | Prop | Type | Description | 31 | |------|------|-------------| 32 | |``showDisclosureIndicator`` | ``bool`` | Shows a small arrow at the right side of the cell. | 33 | |``icon`` | ``{uri: string}`` object or ``require()`` | URI to render left icon with an URL for the image source or ``require`` for a local image source. | 34 | |``children`` | ``string`` | The inner text to render. | 35 | | `subtitle` | `string` | An optional subtitle to render below the `children`. | 36 | | `value` | `string` | An optional value to display instead of the disclosure indicator. | 37 | | `backgroundColor` | `string` | The color code of the cell background color. | 38 | | `textStyle` | `Text.propTypes.style` | The cell text style. | 39 | | `chevronColor` | `string` color code | The color code for the disclosure indicator. | 40 | 41 | ## License 42 | 43 | MIT 44 | 45 | ## Author 46 | 47 | Álvaro Medina Ballester 48 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-item-cell", 3 | "version": "1.6.2", 4 | "description": "React Native default style iOS item cell", 5 | "main": "ItemCell.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/APSL/react-native-item-cell.git" 12 | }, 13 | "keywords": [ 14 | "react-native", 15 | "react-component", 16 | "ios" 17 | ], 18 | "dependencies": { 19 | "react-native-vector-icons": ">=1.0.4", 20 | "react-addons-shallow-compare": "^15.3.1" 21 | }, 22 | "author": "Alvaro Medina Ballester", 23 | "license": "MIT", 24 | "bugs": { 25 | "url": "https://github.com/APSL/react-native-item-cell/issues" 26 | }, 27 | "homepage": "https://github.com/APSL/react-native-item-cell#readme", 28 | "devDependencies": { 29 | "babel-eslint": "^4.1.3", 30 | "eslint": "^1.6.0", 31 | "eslint-plugin-react": "^3.5.1" 32 | } 33 | } --------------------------------------------------------------------------------