├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── README.md ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── SimpleLineIcons.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── coinschart │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── demo.png ├── index.android.js ├── index.ios.js ├── ios ├── CoinsChart-tvOS │ └── Info.plist ├── CoinsChart-tvOSTests │ └── Info.plist ├── CoinsChart.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── CoinsChart-tvOS.xcscheme │ │ └── CoinsChart.xcscheme ├── CoinsChart │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── CoinsChartTests │ ├── CoinsChartTests.m │ └── Info.plist ├── package.json └── src ├── api.js ├── app.js ├── components ├── chart │ └── line.js ├── coin │ ├── add.js │ ├── change.js │ ├── coin.js │ └── row.js └── range │ ├── range.js │ └── switcher.js ├── containers ├── add.js ├── chart.js ├── list.js └── ranges.js ├── redux ├── chart.js ├── coins.js └── index.js └── screens ├── add.js └── list.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native", "flow"], 3 | "plugins": ["transform-decorators-legacy"] 4 | } -------------------------------------------------------------------------------- /.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 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | emoji=true 26 | 27 | module.system=haste 28 | 29 | munge_underscores=true 30 | 31 | 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' 32 | 33 | suppress_type=$FlowIssue 34 | suppress_type=$FlowFixMe 35 | suppress_type=$FixMe 36 | 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 41 | 42 | unsafe.enable_getters_and_setters=true 43 | 44 | [version] 45 | ^0.47.0 46 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.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/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 50 | 51 | fastlane/report.xml 52 | fastlane/Preview.html 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Charts in React Native Tutorial Series 2 | 3 | Learn how to make animated charts in React Native. 4 | 5 | ## Blog Series 6 | 7 | 1. [Part 1. Setting up a new project and dependencies. Building presentational chart component](http://rationalappdev.com/charts-in-react-native-part-1). 8 | 2. [Part 2. Building the list of coins and fetching the prices using API](http://rationalappdev.com/charts-in-react-native-part-2). 9 | 3. [Part 3. Final part. Using real data for the chart and date ranges and adding new coins.](http://rationalappdev.com/charts-in-react-native-part-3). 10 | 11 | ## Demo 12 | 13 | Demo 14 | -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.coinschart", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.coinschart", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /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 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | apply from: "../../node_modules/react-native/react.gradle" 76 | 77 | /** 78 | * Set this to true to create two separate APKs instead of one: 79 | * - An APK that only works on ARM devices 80 | * - An APK that only works on x86 devices 81 | * The advantage is the size of the APK is reduced by about 4MB. 82 | * Upload all the APKs to the Play Store and people will download 83 | * the correct one based on the CPU architecture of their device. 84 | */ 85 | def enableSeparateBuildPerCPUArchitecture = false 86 | 87 | /** 88 | * Run Proguard to shrink the Java bytecode in release builds. 89 | */ 90 | def enableProguardInReleaseBuilds = false 91 | 92 | android { 93 | compileSdkVersion 23 94 | buildToolsVersion "23.0.1" 95 | 96 | defaultConfig { 97 | applicationId "com.coinschart" 98 | minSdkVersion 16 99 | targetSdkVersion 22 100 | versionCode 1 101 | versionName "1.0" 102 | ndk { 103 | abiFilters "armeabi-v7a", "x86" 104 | } 105 | } 106 | splits { 107 | abi { 108 | reset() 109 | enable enableSeparateBuildPerCPUArchitecture 110 | universalApk false // If true, also generate a universal APK 111 | include "armeabi-v7a", "x86" 112 | } 113 | } 114 | buildTypes { 115 | release { 116 | minifyEnabled enableProguardInReleaseBuilds 117 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 118 | } 119 | } 120 | // applicationVariants are e.g. debug, release 121 | applicationVariants.all { variant -> 122 | variant.outputs.each { output -> 123 | // For each separate APK per architecture, set a unique version code as described here: 124 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 125 | def versionCodes = ["armeabi-v7a":1, "x86":2] 126 | def abi = output.getFilter(OutputFile.ABI) 127 | if (abi != null) { // null for the universal-debug, universal-release variants 128 | output.versionCodeOverride = 129 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 130 | } 131 | } 132 | } 133 | } 134 | 135 | dependencies { 136 | compile project(':react-native-vector-icons') 137 | compile fileTree(dir: "libs", include: ["*.jar"]) 138 | compile "com.android.support:appcompat-v7:23.0.1" 139 | compile "com.facebook.react:react-native:+" // From node_modules 140 | } 141 | 142 | // Run this once to be able to run the application with BUCK 143 | // puts all compile dependencies into folder libs for BUCK to use 144 | task copyDownloadableDepsToLibs(type: Copy) { 145 | from configurations.compile 146 | into 'libs' 147 | } 148 | -------------------------------------------------------------------------------- /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 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/coinschart/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.coinschart; 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 "CoinsChart"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/coinschart/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.coinschart; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.oblador.vectoricons.VectorIconsPackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 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 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new VectorIconsPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CoinsChart 3 | 4 | -------------------------------------------------------------------------------- /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:2.2.3' 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/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/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.14.1-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 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 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 = 'CoinsChart' 2 | include ':react-native-vector-icons' 3 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CoinsChart", 3 | "displayName": "CoinsChart" 4 | } -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rationalappdev/react-native-charts-tutorial/69c58705f58a028f4024d2c143be7fed1bde7e6b/demo.png -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/app'; 3 | 4 | AppRegistry.registerComponent('CoinsChart', () => App); -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/app'; 3 | 4 | AppRegistry.registerComponent('CoinsChart', () => App); -------------------------------------------------------------------------------- /ios/CoinsChart-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/CoinsChart-tvOSTests/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/CoinsChart.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 /* CoinsChartTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CoinsChartTests.m */; }; 16 | 0DA0EDCC672D4B36A87AAF8A /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6C45C7ECEB2F40AE8B51BA2B /* EvilIcons.ttf */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 18C9AB4F997E41379BF13658 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4A225B5D5644473BA5F22020 /* Ionicons.ttf */; }; 27 | 19087DC9EE0E46258389185F /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BCCEC673A9B14D89AEB35E6A /* Zocial.ttf */; }; 28 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 29 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 30 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 31 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 32 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 33 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 34 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 35 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 36 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 37 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 38 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 39 | 2DCD954D1E0B4F2C00145EB5 /* CoinsChartTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CoinsChartTests.m */; }; 40 | 37B4463DDB25454097782C90 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FFA8B59A49E34A12911D6C11 /* MaterialCommunityIcons.ttf */; }; 41 | 38C441A114F54965B9A52BEB /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 40AB249AEAC04ABE806EA8B0 /* MaterialIcons.ttf */; }; 42 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 43 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 44 | 981D49B1E4C4458B8FB76240 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E03AB0E3FC8348BAA76604C1 /* Octicons.ttf */; }; 45 | A10CB7929FCE407796E4119B /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7F54A74B9F5F4028A490352C /* SimpleLineIcons.ttf */; }; 46 | A26EB311D43F4E4B97295DF1 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 88510181437146938C9BD6BA /* Foundation.ttf */; }; 47 | B2BD0905CFD940A384D82187 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4EEA0E4AAE0243828B9B7838 /* FontAwesome.ttf */; }; 48 | B510E2441F1D1B0000C4D44D /* libART.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B510E2411F1D1A9F00C4D44D /* libART.a */; }; 49 | D462EF0E59CB41BB968696CF /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8F89E543223D4FE5838FF5DC /* Entypo.ttf */; }; 50 | D8E279AF32E247C9A826DC3C /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8578438EB5FE40889426E85C /* libRNVectorIcons.a */; }; 51 | /* End PBXBuildFile section */ 52 | 53 | /* Begin PBXContainerItemProxy section */ 54 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 59 | remoteInfo = RCTActionSheet; 60 | }; 61 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 66 | remoteInfo = RCTGeolocation; 67 | }; 68 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 73 | remoteInfo = RCTImage; 74 | }; 75 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 78 | proxyType = 2; 79 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 80 | remoteInfo = RCTNetwork; 81 | }; 82 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 85 | proxyType = 2; 86 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 87 | remoteInfo = RCTVibration; 88 | }; 89 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 92 | proxyType = 1; 93 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 94 | remoteInfo = CoinsChart; 95 | }; 96 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 99 | proxyType = 2; 100 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 101 | remoteInfo = RCTSettings; 102 | }; 103 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 106 | proxyType = 2; 107 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 108 | remoteInfo = RCTWebSocket; 109 | }; 110 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 111 | isa = PBXContainerItemProxy; 112 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 113 | proxyType = 2; 114 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 115 | remoteInfo = React; 116 | }; 117 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 118 | isa = PBXContainerItemProxy; 119 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 120 | proxyType = 1; 121 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 122 | remoteInfo = "CoinsChart-tvOS"; 123 | }; 124 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 125 | isa = PBXContainerItemProxy; 126 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 127 | proxyType = 2; 128 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 129 | remoteInfo = "RCTImage-tvOS"; 130 | }; 131 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 132 | isa = PBXContainerItemProxy; 133 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 134 | proxyType = 2; 135 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 136 | remoteInfo = "RCTLinking-tvOS"; 137 | }; 138 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 139 | isa = PBXContainerItemProxy; 140 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 141 | proxyType = 2; 142 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 143 | remoteInfo = "RCTNetwork-tvOS"; 144 | }; 145 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 146 | isa = PBXContainerItemProxy; 147 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 148 | proxyType = 2; 149 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 150 | remoteInfo = "RCTSettings-tvOS"; 151 | }; 152 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 153 | isa = PBXContainerItemProxy; 154 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 155 | proxyType = 2; 156 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 157 | remoteInfo = "RCTText-tvOS"; 158 | }; 159 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 160 | isa = PBXContainerItemProxy; 161 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 162 | proxyType = 2; 163 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 164 | remoteInfo = "RCTWebSocket-tvOS"; 165 | }; 166 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 167 | isa = PBXContainerItemProxy; 168 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 169 | proxyType = 2; 170 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 171 | remoteInfo = "React-tvOS"; 172 | }; 173 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 174 | isa = PBXContainerItemProxy; 175 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 176 | proxyType = 2; 177 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 178 | remoteInfo = yoga; 179 | }; 180 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 181 | isa = PBXContainerItemProxy; 182 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 183 | proxyType = 2; 184 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 185 | remoteInfo = "yoga-tvOS"; 186 | }; 187 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 188 | isa = PBXContainerItemProxy; 189 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 190 | proxyType = 2; 191 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 192 | remoteInfo = cxxreact; 193 | }; 194 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 195 | isa = PBXContainerItemProxy; 196 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 197 | proxyType = 2; 198 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 199 | remoteInfo = "cxxreact-tvOS"; 200 | }; 201 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 202 | isa = PBXContainerItemProxy; 203 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 204 | proxyType = 2; 205 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 206 | remoteInfo = jschelpers; 207 | }; 208 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 209 | isa = PBXContainerItemProxy; 210 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 211 | proxyType = 2; 212 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 213 | remoteInfo = "jschelpers-tvOS"; 214 | }; 215 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 216 | isa = PBXContainerItemProxy; 217 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 218 | proxyType = 2; 219 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 220 | remoteInfo = RCTAnimation; 221 | }; 222 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 223 | isa = PBXContainerItemProxy; 224 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 225 | proxyType = 2; 226 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 227 | remoteInfo = "RCTAnimation-tvOS"; 228 | }; 229 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 230 | isa = PBXContainerItemProxy; 231 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 232 | proxyType = 2; 233 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 234 | remoteInfo = RCTLinking; 235 | }; 236 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 237 | isa = PBXContainerItemProxy; 238 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 239 | proxyType = 2; 240 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 241 | remoteInfo = RCTText; 242 | }; 243 | B510E2301F1D19B700C4D44D /* PBXContainerItemProxy */ = { 244 | isa = PBXContainerItemProxy; 245 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 246 | proxyType = 2; 247 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 248 | remoteInfo = "third-party"; 249 | }; 250 | B510E2321F1D19B700C4D44D /* PBXContainerItemProxy */ = { 251 | isa = PBXContainerItemProxy; 252 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 253 | proxyType = 2; 254 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 255 | remoteInfo = "third-party-tvOS"; 256 | }; 257 | B510E2341F1D19B700C4D44D /* PBXContainerItemProxy */ = { 258 | isa = PBXContainerItemProxy; 259 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 260 | proxyType = 2; 261 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 262 | remoteInfo = "double-conversion"; 263 | }; 264 | B510E2361F1D19B700C4D44D /* PBXContainerItemProxy */ = { 265 | isa = PBXContainerItemProxy; 266 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 267 | proxyType = 2; 268 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 269 | remoteInfo = "double-conversion-tvOS"; 270 | }; 271 | B510E2391F1D19B700C4D44D /* PBXContainerItemProxy */ = { 272 | isa = PBXContainerItemProxy; 273 | containerPortal = B5375070E872473AB8901FF3 /* RNVectorIcons.xcodeproj */; 274 | proxyType = 2; 275 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395; 276 | remoteInfo = RNVectorIcons; 277 | }; 278 | B510E2401F1D1A9F00C4D44D /* PBXContainerItemProxy */ = { 279 | isa = PBXContainerItemProxy; 280 | containerPortal = B510E23B1F1D1A9F00C4D44D /* ART.xcodeproj */; 281 | proxyType = 2; 282 | remoteGlobalIDString = 0CF68AC11AF0540F00FF9E5C; 283 | remoteInfo = ART; 284 | }; 285 | B510E2421F1D1A9F00C4D44D /* PBXContainerItemProxy */ = { 286 | isa = PBXContainerItemProxy; 287 | containerPortal = B510E23B1F1D1A9F00C4D44D /* ART.xcodeproj */; 288 | proxyType = 2; 289 | remoteGlobalIDString = 323A12871E5F266B004975B8; 290 | remoteInfo = "ART-tvOS"; 291 | }; 292 | /* End PBXContainerItemProxy section */ 293 | 294 | /* Begin PBXFileReference section */ 295 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 296 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 297 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 298 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 299 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 300 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 301 | 00E356EE1AD99517003FC87E /* CoinsChartTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CoinsChartTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 302 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 303 | 00E356F21AD99517003FC87E /* CoinsChartTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CoinsChartTests.m; sourceTree = ""; }; 304 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 305 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 306 | 13B07F961A680F5B00A75B9A /* CoinsChart.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CoinsChart.app; sourceTree = BUILT_PRODUCTS_DIR; }; 307 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = CoinsChart/AppDelegate.h; sourceTree = ""; }; 308 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = CoinsChart/AppDelegate.m; sourceTree = ""; }; 309 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 310 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = CoinsChart/Images.xcassets; sourceTree = ""; }; 311 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = CoinsChart/Info.plist; sourceTree = ""; }; 312 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = CoinsChart/main.m; sourceTree = ""; }; 313 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 314 | 2D02E47B1E0B4A5D006451C7 /* CoinsChart-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CoinsChart-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 315 | 2D02E4901E0B4A5D006451C7 /* CoinsChart-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "CoinsChart-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 316 | 40AB249AEAC04ABE806EA8B0 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; }; 317 | 4A225B5D5644473BA5F22020 /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; }; 318 | 4EEA0E4AAE0243828B9B7838 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; }; 319 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 320 | 6C45C7ECEB2F40AE8B51BA2B /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; }; 321 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 322 | 7F54A74B9F5F4028A490352C /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; }; 323 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 324 | 8578438EB5FE40889426E85C /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; }; 325 | 88510181437146938C9BD6BA /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; }; 326 | 8F89E543223D4FE5838FF5DC /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; }; 327 | B510E23B1F1D1A9F00C4D44D /* ART.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ART.xcodeproj; path = "../node_modules/react-native/Libraries/ART/ART.xcodeproj"; sourceTree = ""; }; 328 | B5375070E872473AB8901FF3 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; }; 329 | BCCEC673A9B14D89AEB35E6A /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; }; 330 | E03AB0E3FC8348BAA76604C1 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; }; 331 | FFA8B59A49E34A12911D6C11 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialCommunityIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; }; 332 | /* End PBXFileReference section */ 333 | 334 | /* Begin PBXFrameworksBuildPhase section */ 335 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 336 | isa = PBXFrameworksBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | }; 343 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 344 | isa = PBXFrameworksBuildPhase; 345 | buildActionMask = 2147483647; 346 | files = ( 347 | B510E2441F1D1B0000C4D44D /* libART.a in Frameworks */, 348 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 349 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 350 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 351 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 352 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 353 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 354 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 355 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 356 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 357 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 358 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 359 | D8E279AF32E247C9A826DC3C /* libRNVectorIcons.a in Frameworks */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 364 | isa = PBXFrameworksBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 368 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 369 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 370 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 371 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 372 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 373 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 374 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 379 | isa = PBXFrameworksBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | }; 385 | /* End PBXFrameworksBuildPhase section */ 386 | 387 | /* Begin PBXGroup section */ 388 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 389 | isa = PBXGroup; 390 | children = ( 391 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 392 | ); 393 | name = Products; 394 | sourceTree = ""; 395 | }; 396 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 397 | isa = PBXGroup; 398 | children = ( 399 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 400 | ); 401 | name = Products; 402 | sourceTree = ""; 403 | }; 404 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 405 | isa = PBXGroup; 406 | children = ( 407 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 408 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 409 | ); 410 | name = Products; 411 | sourceTree = ""; 412 | }; 413 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 414 | isa = PBXGroup; 415 | children = ( 416 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 417 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 418 | ); 419 | name = Products; 420 | sourceTree = ""; 421 | }; 422 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 423 | isa = PBXGroup; 424 | children = ( 425 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 426 | ); 427 | name = Products; 428 | sourceTree = ""; 429 | }; 430 | 00E356EF1AD99517003FC87E /* CoinsChartTests */ = { 431 | isa = PBXGroup; 432 | children = ( 433 | 00E356F21AD99517003FC87E /* CoinsChartTests.m */, 434 | 00E356F01AD99517003FC87E /* Supporting Files */, 435 | ); 436 | path = CoinsChartTests; 437 | sourceTree = ""; 438 | }; 439 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 440 | isa = PBXGroup; 441 | children = ( 442 | 00E356F11AD99517003FC87E /* Info.plist */, 443 | ); 444 | name = "Supporting Files"; 445 | sourceTree = ""; 446 | }; 447 | 139105B71AF99BAD00B5F7CC /* Products */ = { 448 | isa = PBXGroup; 449 | children = ( 450 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 451 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 452 | ); 453 | name = Products; 454 | sourceTree = ""; 455 | }; 456 | 139FDEE71B06529A00C62182 /* Products */ = { 457 | isa = PBXGroup; 458 | children = ( 459 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 460 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 461 | ); 462 | name = Products; 463 | sourceTree = ""; 464 | }; 465 | 13B07FAE1A68108700A75B9A /* CoinsChart */ = { 466 | isa = PBXGroup; 467 | children = ( 468 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 469 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 470 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 471 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 472 | 13B07FB61A68108700A75B9A /* Info.plist */, 473 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 474 | 13B07FB71A68108700A75B9A /* main.m */, 475 | ); 476 | name = CoinsChart; 477 | sourceTree = ""; 478 | }; 479 | 146834001AC3E56700842450 /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 146834041AC3E56700842450 /* libReact.a */, 483 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 484 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 485 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 486 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 487 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 488 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 489 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 490 | B510E2311F1D19B700C4D44D /* libthird-party.a */, 491 | B510E2331F1D19B700C4D44D /* libthird-party.a */, 492 | B510E2351F1D19B700C4D44D /* libdouble-conversion.a */, 493 | B510E2371F1D19B700C4D44D /* libdouble-conversion.a */, 494 | ); 495 | name = Products; 496 | sourceTree = ""; 497 | }; 498 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 499 | isa = PBXGroup; 500 | children = ( 501 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 502 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 503 | ); 504 | name = Products; 505 | sourceTree = ""; 506 | }; 507 | 69EC9324AD114A96B459DF0F /* Resources */ = { 508 | isa = PBXGroup; 509 | children = ( 510 | 8F89E543223D4FE5838FF5DC /* Entypo.ttf */, 511 | 6C45C7ECEB2F40AE8B51BA2B /* EvilIcons.ttf */, 512 | 4EEA0E4AAE0243828B9B7838 /* FontAwesome.ttf */, 513 | 88510181437146938C9BD6BA /* Foundation.ttf */, 514 | 4A225B5D5644473BA5F22020 /* Ionicons.ttf */, 515 | FFA8B59A49E34A12911D6C11 /* MaterialCommunityIcons.ttf */, 516 | 40AB249AEAC04ABE806EA8B0 /* MaterialIcons.ttf */, 517 | E03AB0E3FC8348BAA76604C1 /* Octicons.ttf */, 518 | 7F54A74B9F5F4028A490352C /* SimpleLineIcons.ttf */, 519 | BCCEC673A9B14D89AEB35E6A /* Zocial.ttf */, 520 | ); 521 | name = Resources; 522 | sourceTree = ""; 523 | }; 524 | 78C398B11ACF4ADC00677621 /* Products */ = { 525 | isa = PBXGroup; 526 | children = ( 527 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 528 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 529 | ); 530 | name = Products; 531 | sourceTree = ""; 532 | }; 533 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 534 | isa = PBXGroup; 535 | children = ( 536 | B510E23B1F1D1A9F00C4D44D /* ART.xcodeproj */, 537 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 538 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 539 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 540 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 541 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 542 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 543 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 544 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 545 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 546 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 547 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 548 | B5375070E872473AB8901FF3 /* RNVectorIcons.xcodeproj */, 549 | ); 550 | name = Libraries; 551 | sourceTree = ""; 552 | }; 553 | 832341B11AAA6A8300B99B32 /* Products */ = { 554 | isa = PBXGroup; 555 | children = ( 556 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 557 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 558 | ); 559 | name = Products; 560 | sourceTree = ""; 561 | }; 562 | 83CBB9F61A601CBA00E9B192 = { 563 | isa = PBXGroup; 564 | children = ( 565 | 13B07FAE1A68108700A75B9A /* CoinsChart */, 566 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 567 | 00E356EF1AD99517003FC87E /* CoinsChartTests */, 568 | 83CBBA001A601CBA00E9B192 /* Products */, 569 | 69EC9324AD114A96B459DF0F /* Resources */, 570 | ); 571 | indentWidth = 2; 572 | sourceTree = ""; 573 | tabWidth = 2; 574 | }; 575 | 83CBBA001A601CBA00E9B192 /* Products */ = { 576 | isa = PBXGroup; 577 | children = ( 578 | 13B07F961A680F5B00A75B9A /* CoinsChart.app */, 579 | 00E356EE1AD99517003FC87E /* CoinsChartTests.xctest */, 580 | 2D02E47B1E0B4A5D006451C7 /* CoinsChart-tvOS.app */, 581 | 2D02E4901E0B4A5D006451C7 /* CoinsChart-tvOSTests.xctest */, 582 | ); 583 | name = Products; 584 | sourceTree = ""; 585 | }; 586 | B510E2111F1D19B700C4D44D /* Products */ = { 587 | isa = PBXGroup; 588 | children = ( 589 | B510E23A1F1D19B700C4D44D /* libRNVectorIcons.a */, 590 | ); 591 | name = Products; 592 | sourceTree = ""; 593 | }; 594 | B510E23C1F1D1A9F00C4D44D /* Products */ = { 595 | isa = PBXGroup; 596 | children = ( 597 | B510E2411F1D1A9F00C4D44D /* libART.a */, 598 | B510E2431F1D1A9F00C4D44D /* libART-tvOS.a */, 599 | ); 600 | name = Products; 601 | sourceTree = ""; 602 | }; 603 | /* End PBXGroup section */ 604 | 605 | /* Begin PBXNativeTarget section */ 606 | 00E356ED1AD99517003FC87E /* CoinsChartTests */ = { 607 | isa = PBXNativeTarget; 608 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CoinsChartTests" */; 609 | buildPhases = ( 610 | 00E356EA1AD99517003FC87E /* Sources */, 611 | 00E356EB1AD99517003FC87E /* Frameworks */, 612 | 00E356EC1AD99517003FC87E /* Resources */, 613 | ); 614 | buildRules = ( 615 | ); 616 | dependencies = ( 617 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 618 | ); 619 | name = CoinsChartTests; 620 | productName = CoinsChartTests; 621 | productReference = 00E356EE1AD99517003FC87E /* CoinsChartTests.xctest */; 622 | productType = "com.apple.product-type.bundle.unit-test"; 623 | }; 624 | 13B07F861A680F5B00A75B9A /* CoinsChart */ = { 625 | isa = PBXNativeTarget; 626 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CoinsChart" */; 627 | buildPhases = ( 628 | 13B07F871A680F5B00A75B9A /* Sources */, 629 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 630 | 13B07F8E1A680F5B00A75B9A /* Resources */, 631 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 632 | ); 633 | buildRules = ( 634 | ); 635 | dependencies = ( 636 | ); 637 | name = CoinsChart; 638 | productName = "Hello World"; 639 | productReference = 13B07F961A680F5B00A75B9A /* CoinsChart.app */; 640 | productType = "com.apple.product-type.application"; 641 | }; 642 | 2D02E47A1E0B4A5D006451C7 /* CoinsChart-tvOS */ = { 643 | isa = PBXNativeTarget; 644 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CoinsChart-tvOS" */; 645 | buildPhases = ( 646 | 2D02E4771E0B4A5D006451C7 /* Sources */, 647 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 648 | 2D02E4791E0B4A5D006451C7 /* Resources */, 649 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 650 | ); 651 | buildRules = ( 652 | ); 653 | dependencies = ( 654 | ); 655 | name = "CoinsChart-tvOS"; 656 | productName = "CoinsChart-tvOS"; 657 | productReference = 2D02E47B1E0B4A5D006451C7 /* CoinsChart-tvOS.app */; 658 | productType = "com.apple.product-type.application"; 659 | }; 660 | 2D02E48F1E0B4A5D006451C7 /* CoinsChart-tvOSTests */ = { 661 | isa = PBXNativeTarget; 662 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CoinsChart-tvOSTests" */; 663 | buildPhases = ( 664 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 665 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 666 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 667 | ); 668 | buildRules = ( 669 | ); 670 | dependencies = ( 671 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 672 | ); 673 | name = "CoinsChart-tvOSTests"; 674 | productName = "CoinsChart-tvOSTests"; 675 | productReference = 2D02E4901E0B4A5D006451C7 /* CoinsChart-tvOSTests.xctest */; 676 | productType = "com.apple.product-type.bundle.unit-test"; 677 | }; 678 | /* End PBXNativeTarget section */ 679 | 680 | /* Begin PBXProject section */ 681 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 682 | isa = PBXProject; 683 | attributes = { 684 | LastUpgradeCheck = 0830; 685 | ORGANIZATIONNAME = Facebook; 686 | TargetAttributes = { 687 | 00E356ED1AD99517003FC87E = { 688 | CreatedOnToolsVersion = 6.2; 689 | DevelopmentTeam = D5N9JGF976; 690 | TestTargetID = 13B07F861A680F5B00A75B9A; 691 | }; 692 | 13B07F861A680F5B00A75B9A = { 693 | DevelopmentTeam = D5N9JGF976; 694 | }; 695 | 2D02E47A1E0B4A5D006451C7 = { 696 | CreatedOnToolsVersion = 8.2.1; 697 | DevelopmentTeam = D5N9JGF976; 698 | ProvisioningStyle = Automatic; 699 | }; 700 | 2D02E48F1E0B4A5D006451C7 = { 701 | CreatedOnToolsVersion = 8.2.1; 702 | DevelopmentTeam = D5N9JGF976; 703 | ProvisioningStyle = Automatic; 704 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 705 | }; 706 | }; 707 | }; 708 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CoinsChart" */; 709 | compatibilityVersion = "Xcode 3.2"; 710 | developmentRegion = English; 711 | hasScannedForEncodings = 0; 712 | knownRegions = ( 713 | en, 714 | Base, 715 | ); 716 | mainGroup = 83CBB9F61A601CBA00E9B192; 717 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 718 | projectDirPath = ""; 719 | projectReferences = ( 720 | { 721 | ProductGroup = B510E23C1F1D1A9F00C4D44D /* Products */; 722 | ProjectRef = B510E23B1F1D1A9F00C4D44D /* ART.xcodeproj */; 723 | }, 724 | { 725 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 726 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 727 | }, 728 | { 729 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 730 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 731 | }, 732 | { 733 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 734 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 735 | }, 736 | { 737 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 738 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 739 | }, 740 | { 741 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 742 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 743 | }, 744 | { 745 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 746 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 747 | }, 748 | { 749 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 750 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 751 | }, 752 | { 753 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 754 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 755 | }, 756 | { 757 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 758 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 759 | }, 760 | { 761 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 762 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 763 | }, 764 | { 765 | ProductGroup = 146834001AC3E56700842450 /* Products */; 766 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 767 | }, 768 | { 769 | ProductGroup = B510E2111F1D19B700C4D44D /* Products */; 770 | ProjectRef = B5375070E872473AB8901FF3 /* RNVectorIcons.xcodeproj */; 771 | }, 772 | ); 773 | projectRoot = ""; 774 | targets = ( 775 | 13B07F861A680F5B00A75B9A /* CoinsChart */, 776 | 00E356ED1AD99517003FC87E /* CoinsChartTests */, 777 | 2D02E47A1E0B4A5D006451C7 /* CoinsChart-tvOS */, 778 | 2D02E48F1E0B4A5D006451C7 /* CoinsChart-tvOSTests */, 779 | ); 780 | }; 781 | /* End PBXProject section */ 782 | 783 | /* Begin PBXReferenceProxy section */ 784 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 785 | isa = PBXReferenceProxy; 786 | fileType = archive.ar; 787 | path = libRCTActionSheet.a; 788 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 789 | sourceTree = BUILT_PRODUCTS_DIR; 790 | }; 791 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 792 | isa = PBXReferenceProxy; 793 | fileType = archive.ar; 794 | path = libRCTGeolocation.a; 795 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 796 | sourceTree = BUILT_PRODUCTS_DIR; 797 | }; 798 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 799 | isa = PBXReferenceProxy; 800 | fileType = archive.ar; 801 | path = libRCTImage.a; 802 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 803 | sourceTree = BUILT_PRODUCTS_DIR; 804 | }; 805 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 806 | isa = PBXReferenceProxy; 807 | fileType = archive.ar; 808 | path = libRCTNetwork.a; 809 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 810 | sourceTree = BUILT_PRODUCTS_DIR; 811 | }; 812 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 813 | isa = PBXReferenceProxy; 814 | fileType = archive.ar; 815 | path = libRCTVibration.a; 816 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 817 | sourceTree = BUILT_PRODUCTS_DIR; 818 | }; 819 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 820 | isa = PBXReferenceProxy; 821 | fileType = archive.ar; 822 | path = libRCTSettings.a; 823 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 824 | sourceTree = BUILT_PRODUCTS_DIR; 825 | }; 826 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 827 | isa = PBXReferenceProxy; 828 | fileType = archive.ar; 829 | path = libRCTWebSocket.a; 830 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 831 | sourceTree = BUILT_PRODUCTS_DIR; 832 | }; 833 | 146834041AC3E56700842450 /* libReact.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = libReact.a; 837 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = "libRCTImage-tvOS.a"; 844 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = "libRCTLinking-tvOS.a"; 851 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = "libRCTNetwork-tvOS.a"; 858 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = "libRCTSettings-tvOS.a"; 865 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = "libRCTText-tvOS.a"; 872 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = "libRCTWebSocket-tvOS.a"; 879 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = libReact.a; 886 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = libyoga.a; 893 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = libyoga.a; 900 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = libcxxreact.a; 907 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = libcxxreact.a; 914 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = libjschelpers.a; 921 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = libjschelpers.a; 928 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = libRCTAnimation.a; 935 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = libRCTAnimation.a; 942 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 946 | isa = PBXReferenceProxy; 947 | fileType = archive.ar; 948 | path = libRCTLinking.a; 949 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 950 | sourceTree = BUILT_PRODUCTS_DIR; 951 | }; 952 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 953 | isa = PBXReferenceProxy; 954 | fileType = archive.ar; 955 | path = libRCTText.a; 956 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 957 | sourceTree = BUILT_PRODUCTS_DIR; 958 | }; 959 | B510E2311F1D19B700C4D44D /* libthird-party.a */ = { 960 | isa = PBXReferenceProxy; 961 | fileType = archive.ar; 962 | path = "libthird-party.a"; 963 | remoteRef = B510E2301F1D19B700C4D44D /* PBXContainerItemProxy */; 964 | sourceTree = BUILT_PRODUCTS_DIR; 965 | }; 966 | B510E2331F1D19B700C4D44D /* libthird-party.a */ = { 967 | isa = PBXReferenceProxy; 968 | fileType = archive.ar; 969 | path = "libthird-party.a"; 970 | remoteRef = B510E2321F1D19B700C4D44D /* PBXContainerItemProxy */; 971 | sourceTree = BUILT_PRODUCTS_DIR; 972 | }; 973 | B510E2351F1D19B700C4D44D /* libdouble-conversion.a */ = { 974 | isa = PBXReferenceProxy; 975 | fileType = archive.ar; 976 | path = "libdouble-conversion.a"; 977 | remoteRef = B510E2341F1D19B700C4D44D /* PBXContainerItemProxy */; 978 | sourceTree = BUILT_PRODUCTS_DIR; 979 | }; 980 | B510E2371F1D19B700C4D44D /* libdouble-conversion.a */ = { 981 | isa = PBXReferenceProxy; 982 | fileType = archive.ar; 983 | path = "libdouble-conversion.a"; 984 | remoteRef = B510E2361F1D19B700C4D44D /* PBXContainerItemProxy */; 985 | sourceTree = BUILT_PRODUCTS_DIR; 986 | }; 987 | B510E23A1F1D19B700C4D44D /* libRNVectorIcons.a */ = { 988 | isa = PBXReferenceProxy; 989 | fileType = archive.ar; 990 | path = libRNVectorIcons.a; 991 | remoteRef = B510E2391F1D19B700C4D44D /* PBXContainerItemProxy */; 992 | sourceTree = BUILT_PRODUCTS_DIR; 993 | }; 994 | B510E2411F1D1A9F00C4D44D /* libART.a */ = { 995 | isa = PBXReferenceProxy; 996 | fileType = archive.ar; 997 | path = libART.a; 998 | remoteRef = B510E2401F1D1A9F00C4D44D /* PBXContainerItemProxy */; 999 | sourceTree = BUILT_PRODUCTS_DIR; 1000 | }; 1001 | B510E2431F1D1A9F00C4D44D /* libART-tvOS.a */ = { 1002 | isa = PBXReferenceProxy; 1003 | fileType = archive.ar; 1004 | path = "libART-tvOS.a"; 1005 | remoteRef = B510E2421F1D1A9F00C4D44D /* PBXContainerItemProxy */; 1006 | sourceTree = BUILT_PRODUCTS_DIR; 1007 | }; 1008 | /* End PBXReferenceProxy section */ 1009 | 1010 | /* Begin PBXResourcesBuildPhase section */ 1011 | 00E356EC1AD99517003FC87E /* Resources */ = { 1012 | isa = PBXResourcesBuildPhase; 1013 | buildActionMask = 2147483647; 1014 | files = ( 1015 | ); 1016 | runOnlyForDeploymentPostprocessing = 0; 1017 | }; 1018 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1019 | isa = PBXResourcesBuildPhase; 1020 | buildActionMask = 2147483647; 1021 | files = ( 1022 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1023 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1024 | D462EF0E59CB41BB968696CF /* Entypo.ttf in Resources */, 1025 | 0DA0EDCC672D4B36A87AAF8A /* EvilIcons.ttf in Resources */, 1026 | B2BD0905CFD940A384D82187 /* FontAwesome.ttf in Resources */, 1027 | A26EB311D43F4E4B97295DF1 /* Foundation.ttf in Resources */, 1028 | 18C9AB4F997E41379BF13658 /* Ionicons.ttf in Resources */, 1029 | 37B4463DDB25454097782C90 /* MaterialCommunityIcons.ttf in Resources */, 1030 | 38C441A114F54965B9A52BEB /* MaterialIcons.ttf in Resources */, 1031 | 981D49B1E4C4458B8FB76240 /* Octicons.ttf in Resources */, 1032 | A10CB7929FCE407796E4119B /* SimpleLineIcons.ttf in Resources */, 1033 | 19087DC9EE0E46258389185F /* Zocial.ttf in Resources */, 1034 | ); 1035 | runOnlyForDeploymentPostprocessing = 0; 1036 | }; 1037 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1038 | isa = PBXResourcesBuildPhase; 1039 | buildActionMask = 2147483647; 1040 | files = ( 1041 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1042 | ); 1043 | runOnlyForDeploymentPostprocessing = 0; 1044 | }; 1045 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1046 | isa = PBXResourcesBuildPhase; 1047 | buildActionMask = 2147483647; 1048 | files = ( 1049 | ); 1050 | runOnlyForDeploymentPostprocessing = 0; 1051 | }; 1052 | /* End PBXResourcesBuildPhase section */ 1053 | 1054 | /* Begin PBXShellScriptBuildPhase section */ 1055 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1056 | isa = PBXShellScriptBuildPhase; 1057 | buildActionMask = 2147483647; 1058 | files = ( 1059 | ); 1060 | inputPaths = ( 1061 | ); 1062 | name = "Bundle React Native code and images"; 1063 | outputPaths = ( 1064 | ); 1065 | runOnlyForDeploymentPostprocessing = 0; 1066 | shellPath = /bin/sh; 1067 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1068 | }; 1069 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1070 | isa = PBXShellScriptBuildPhase; 1071 | buildActionMask = 2147483647; 1072 | files = ( 1073 | ); 1074 | inputPaths = ( 1075 | ); 1076 | name = "Bundle React Native Code And Images"; 1077 | outputPaths = ( 1078 | ); 1079 | runOnlyForDeploymentPostprocessing = 0; 1080 | shellPath = /bin/sh; 1081 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1082 | }; 1083 | /* End PBXShellScriptBuildPhase section */ 1084 | 1085 | /* Begin PBXSourcesBuildPhase section */ 1086 | 00E356EA1AD99517003FC87E /* Sources */ = { 1087 | isa = PBXSourcesBuildPhase; 1088 | buildActionMask = 2147483647; 1089 | files = ( 1090 | 00E356F31AD99517003FC87E /* CoinsChartTests.m in Sources */, 1091 | ); 1092 | runOnlyForDeploymentPostprocessing = 0; 1093 | }; 1094 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1095 | isa = PBXSourcesBuildPhase; 1096 | buildActionMask = 2147483647; 1097 | files = ( 1098 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1099 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1100 | ); 1101 | runOnlyForDeploymentPostprocessing = 0; 1102 | }; 1103 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1104 | isa = PBXSourcesBuildPhase; 1105 | buildActionMask = 2147483647; 1106 | files = ( 1107 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1108 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1109 | ); 1110 | runOnlyForDeploymentPostprocessing = 0; 1111 | }; 1112 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1113 | isa = PBXSourcesBuildPhase; 1114 | buildActionMask = 2147483647; 1115 | files = ( 1116 | 2DCD954D1E0B4F2C00145EB5 /* CoinsChartTests.m in Sources */, 1117 | ); 1118 | runOnlyForDeploymentPostprocessing = 0; 1119 | }; 1120 | /* End PBXSourcesBuildPhase section */ 1121 | 1122 | /* Begin PBXTargetDependency section */ 1123 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1124 | isa = PBXTargetDependency; 1125 | target = 13B07F861A680F5B00A75B9A /* CoinsChart */; 1126 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1127 | }; 1128 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1129 | isa = PBXTargetDependency; 1130 | target = 2D02E47A1E0B4A5D006451C7 /* CoinsChart-tvOS */; 1131 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1132 | }; 1133 | /* End PBXTargetDependency section */ 1134 | 1135 | /* Begin PBXVariantGroup section */ 1136 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1137 | isa = PBXVariantGroup; 1138 | children = ( 1139 | 13B07FB21A68108700A75B9A /* Base */, 1140 | ); 1141 | name = LaunchScreen.xib; 1142 | path = CoinsChart; 1143 | sourceTree = ""; 1144 | }; 1145 | /* End PBXVariantGroup section */ 1146 | 1147 | /* Begin XCBuildConfiguration section */ 1148 | 00E356F61AD99517003FC87E /* Debug */ = { 1149 | isa = XCBuildConfiguration; 1150 | buildSettings = { 1151 | BUNDLE_LOADER = "$(TEST_HOST)"; 1152 | DEVELOPMENT_TEAM = D5N9JGF976; 1153 | GCC_PREPROCESSOR_DEFINITIONS = ( 1154 | "DEBUG=1", 1155 | "$(inherited)", 1156 | ); 1157 | HEADER_SEARCH_PATHS = ( 1158 | "$(inherited)", 1159 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1160 | ); 1161 | INFOPLIST_FILE = CoinsChartTests/Info.plist; 1162 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1163 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1164 | LIBRARY_SEARCH_PATHS = ( 1165 | "$(inherited)", 1166 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1167 | ); 1168 | OTHER_LDFLAGS = ( 1169 | "-ObjC", 1170 | "-lc++", 1171 | ); 1172 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1173 | PRODUCT_NAME = "$(TARGET_NAME)"; 1174 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CoinsChart.app/CoinsChart"; 1175 | }; 1176 | name = Debug; 1177 | }; 1178 | 00E356F71AD99517003FC87E /* Release */ = { 1179 | isa = XCBuildConfiguration; 1180 | buildSettings = { 1181 | BUNDLE_LOADER = "$(TEST_HOST)"; 1182 | COPY_PHASE_STRIP = NO; 1183 | DEVELOPMENT_TEAM = D5N9JGF976; 1184 | HEADER_SEARCH_PATHS = ( 1185 | "$(inherited)", 1186 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1187 | ); 1188 | INFOPLIST_FILE = CoinsChartTests/Info.plist; 1189 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1190 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1191 | LIBRARY_SEARCH_PATHS = ( 1192 | "$(inherited)", 1193 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1194 | ); 1195 | OTHER_LDFLAGS = ( 1196 | "-ObjC", 1197 | "-lc++", 1198 | ); 1199 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1200 | PRODUCT_NAME = "$(TARGET_NAME)"; 1201 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CoinsChart.app/CoinsChart"; 1202 | }; 1203 | name = Release; 1204 | }; 1205 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1206 | isa = XCBuildConfiguration; 1207 | buildSettings = { 1208 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1209 | CURRENT_PROJECT_VERSION = 1; 1210 | DEAD_CODE_STRIPPING = NO; 1211 | DEVELOPMENT_TEAM = D5N9JGF976; 1212 | HEADER_SEARCH_PATHS = ( 1213 | "$(inherited)", 1214 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1215 | ); 1216 | INFOPLIST_FILE = CoinsChart/Info.plist; 1217 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1218 | OTHER_LDFLAGS = ( 1219 | "$(inherited)", 1220 | "-ObjC", 1221 | "-lc++", 1222 | ); 1223 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1224 | PRODUCT_NAME = CoinsChart; 1225 | VERSIONING_SYSTEM = "apple-generic"; 1226 | }; 1227 | name = Debug; 1228 | }; 1229 | 13B07F951A680F5B00A75B9A /* Release */ = { 1230 | isa = XCBuildConfiguration; 1231 | buildSettings = { 1232 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1233 | CURRENT_PROJECT_VERSION = 1; 1234 | DEVELOPMENT_TEAM = D5N9JGF976; 1235 | HEADER_SEARCH_PATHS = ( 1236 | "$(inherited)", 1237 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1238 | ); 1239 | INFOPLIST_FILE = CoinsChart/Info.plist; 1240 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1241 | OTHER_LDFLAGS = ( 1242 | "$(inherited)", 1243 | "-ObjC", 1244 | "-lc++", 1245 | ); 1246 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1247 | PRODUCT_NAME = CoinsChart; 1248 | VERSIONING_SYSTEM = "apple-generic"; 1249 | }; 1250 | name = Release; 1251 | }; 1252 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1253 | isa = XCBuildConfiguration; 1254 | buildSettings = { 1255 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1256 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1257 | CLANG_ANALYZER_NONNULL = YES; 1258 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1259 | CLANG_WARN_INFINITE_RECURSION = YES; 1260 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1261 | DEBUG_INFORMATION_FORMAT = dwarf; 1262 | DEVELOPMENT_TEAM = D5N9JGF976; 1263 | ENABLE_TESTABILITY = YES; 1264 | GCC_NO_COMMON_BLOCKS = YES; 1265 | HEADER_SEARCH_PATHS = ( 1266 | "$(inherited)", 1267 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1268 | ); 1269 | INFOPLIST_FILE = "CoinsChart-tvOS/Info.plist"; 1270 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1271 | LIBRARY_SEARCH_PATHS = ( 1272 | "$(inherited)", 1273 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1274 | ); 1275 | OTHER_LDFLAGS = ( 1276 | "-ObjC", 1277 | "-lc++", 1278 | ); 1279 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CoinsChart-tvOS"; 1280 | PRODUCT_NAME = "$(TARGET_NAME)"; 1281 | SDKROOT = appletvos; 1282 | TARGETED_DEVICE_FAMILY = 3; 1283 | TVOS_DEPLOYMENT_TARGET = 9.2; 1284 | }; 1285 | name = Debug; 1286 | }; 1287 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1288 | isa = XCBuildConfiguration; 1289 | buildSettings = { 1290 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1291 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1292 | CLANG_ANALYZER_NONNULL = YES; 1293 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1294 | CLANG_WARN_INFINITE_RECURSION = YES; 1295 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1296 | COPY_PHASE_STRIP = NO; 1297 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1298 | DEVELOPMENT_TEAM = D5N9JGF976; 1299 | GCC_NO_COMMON_BLOCKS = YES; 1300 | HEADER_SEARCH_PATHS = ( 1301 | "$(inherited)", 1302 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1303 | ); 1304 | INFOPLIST_FILE = "CoinsChart-tvOS/Info.plist"; 1305 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1306 | LIBRARY_SEARCH_PATHS = ( 1307 | "$(inherited)", 1308 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1309 | ); 1310 | OTHER_LDFLAGS = ( 1311 | "-ObjC", 1312 | "-lc++", 1313 | ); 1314 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CoinsChart-tvOS"; 1315 | PRODUCT_NAME = "$(TARGET_NAME)"; 1316 | SDKROOT = appletvos; 1317 | TARGETED_DEVICE_FAMILY = 3; 1318 | TVOS_DEPLOYMENT_TARGET = 9.2; 1319 | }; 1320 | name = Release; 1321 | }; 1322 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1323 | isa = XCBuildConfiguration; 1324 | buildSettings = { 1325 | BUNDLE_LOADER = "$(TEST_HOST)"; 1326 | CLANG_ANALYZER_NONNULL = YES; 1327 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1328 | CLANG_WARN_INFINITE_RECURSION = YES; 1329 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1330 | DEBUG_INFORMATION_FORMAT = dwarf; 1331 | DEVELOPMENT_TEAM = D5N9JGF976; 1332 | ENABLE_TESTABILITY = YES; 1333 | GCC_NO_COMMON_BLOCKS = YES; 1334 | INFOPLIST_FILE = "CoinsChart-tvOSTests/Info.plist"; 1335 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1336 | LIBRARY_SEARCH_PATHS = ( 1337 | "$(inherited)", 1338 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1339 | ); 1340 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CoinsChart-tvOSTests"; 1341 | PRODUCT_NAME = "$(TARGET_NAME)"; 1342 | SDKROOT = appletvos; 1343 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CoinsChart-tvOS.app/CoinsChart-tvOS"; 1344 | TVOS_DEPLOYMENT_TARGET = 10.1; 1345 | }; 1346 | name = Debug; 1347 | }; 1348 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1349 | isa = XCBuildConfiguration; 1350 | buildSettings = { 1351 | BUNDLE_LOADER = "$(TEST_HOST)"; 1352 | CLANG_ANALYZER_NONNULL = YES; 1353 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1354 | CLANG_WARN_INFINITE_RECURSION = YES; 1355 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1356 | COPY_PHASE_STRIP = NO; 1357 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1358 | DEVELOPMENT_TEAM = D5N9JGF976; 1359 | GCC_NO_COMMON_BLOCKS = YES; 1360 | INFOPLIST_FILE = "CoinsChart-tvOSTests/Info.plist"; 1361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1362 | LIBRARY_SEARCH_PATHS = ( 1363 | "$(inherited)", 1364 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1365 | ); 1366 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CoinsChart-tvOSTests"; 1367 | PRODUCT_NAME = "$(TARGET_NAME)"; 1368 | SDKROOT = appletvos; 1369 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CoinsChart-tvOS.app/CoinsChart-tvOS"; 1370 | TVOS_DEPLOYMENT_TARGET = 10.1; 1371 | }; 1372 | name = Release; 1373 | }; 1374 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1375 | isa = XCBuildConfiguration; 1376 | buildSettings = { 1377 | ALWAYS_SEARCH_USER_PATHS = NO; 1378 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1379 | CLANG_CXX_LIBRARY = "libc++"; 1380 | CLANG_ENABLE_MODULES = YES; 1381 | CLANG_ENABLE_OBJC_ARC = YES; 1382 | CLANG_WARN_BOOL_CONVERSION = YES; 1383 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1385 | CLANG_WARN_EMPTY_BODY = YES; 1386 | CLANG_WARN_ENUM_CONVERSION = YES; 1387 | CLANG_WARN_INFINITE_RECURSION = YES; 1388 | CLANG_WARN_INT_CONVERSION = YES; 1389 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1391 | CLANG_WARN_UNREACHABLE_CODE = YES; 1392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1394 | COPY_PHASE_STRIP = NO; 1395 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1396 | ENABLE_TESTABILITY = YES; 1397 | GCC_C_LANGUAGE_STANDARD = gnu99; 1398 | GCC_DYNAMIC_NO_PIC = NO; 1399 | GCC_NO_COMMON_BLOCKS = YES; 1400 | GCC_OPTIMIZATION_LEVEL = 0; 1401 | GCC_PREPROCESSOR_DEFINITIONS = ( 1402 | "DEBUG=1", 1403 | "$(inherited)", 1404 | ); 1405 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1406 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1407 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1408 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1409 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1410 | GCC_WARN_UNUSED_FUNCTION = YES; 1411 | GCC_WARN_UNUSED_VARIABLE = YES; 1412 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1413 | MTL_ENABLE_DEBUG_INFO = YES; 1414 | ONLY_ACTIVE_ARCH = YES; 1415 | SDKROOT = iphoneos; 1416 | }; 1417 | name = Debug; 1418 | }; 1419 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1420 | isa = XCBuildConfiguration; 1421 | buildSettings = { 1422 | ALWAYS_SEARCH_USER_PATHS = NO; 1423 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1424 | CLANG_CXX_LIBRARY = "libc++"; 1425 | CLANG_ENABLE_MODULES = YES; 1426 | CLANG_ENABLE_OBJC_ARC = YES; 1427 | CLANG_WARN_BOOL_CONVERSION = YES; 1428 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1430 | CLANG_WARN_EMPTY_BODY = YES; 1431 | CLANG_WARN_ENUM_CONVERSION = YES; 1432 | CLANG_WARN_INFINITE_RECURSION = YES; 1433 | CLANG_WARN_INT_CONVERSION = YES; 1434 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1435 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1436 | CLANG_WARN_UNREACHABLE_CODE = YES; 1437 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1439 | COPY_PHASE_STRIP = YES; 1440 | ENABLE_NS_ASSERTIONS = NO; 1441 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1442 | GCC_C_LANGUAGE_STANDARD = gnu99; 1443 | GCC_NO_COMMON_BLOCKS = YES; 1444 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1445 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1446 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1447 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1448 | GCC_WARN_UNUSED_FUNCTION = YES; 1449 | GCC_WARN_UNUSED_VARIABLE = YES; 1450 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1451 | MTL_ENABLE_DEBUG_INFO = NO; 1452 | SDKROOT = iphoneos; 1453 | VALIDATE_PRODUCT = YES; 1454 | }; 1455 | name = Release; 1456 | }; 1457 | /* End XCBuildConfiguration section */ 1458 | 1459 | /* Begin XCConfigurationList section */ 1460 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CoinsChartTests" */ = { 1461 | isa = XCConfigurationList; 1462 | buildConfigurations = ( 1463 | 00E356F61AD99517003FC87E /* Debug */, 1464 | 00E356F71AD99517003FC87E /* Release */, 1465 | ); 1466 | defaultConfigurationIsVisible = 0; 1467 | defaultConfigurationName = Release; 1468 | }; 1469 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CoinsChart" */ = { 1470 | isa = XCConfigurationList; 1471 | buildConfigurations = ( 1472 | 13B07F941A680F5B00A75B9A /* Debug */, 1473 | 13B07F951A680F5B00A75B9A /* Release */, 1474 | ); 1475 | defaultConfigurationIsVisible = 0; 1476 | defaultConfigurationName = Release; 1477 | }; 1478 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CoinsChart-tvOS" */ = { 1479 | isa = XCConfigurationList; 1480 | buildConfigurations = ( 1481 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1482 | 2D02E4981E0B4A5E006451C7 /* Release */, 1483 | ); 1484 | defaultConfigurationIsVisible = 0; 1485 | defaultConfigurationName = Release; 1486 | }; 1487 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CoinsChart-tvOSTests" */ = { 1488 | isa = XCConfigurationList; 1489 | buildConfigurations = ( 1490 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1491 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1492 | ); 1493 | defaultConfigurationIsVisible = 0; 1494 | defaultConfigurationName = Release; 1495 | }; 1496 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CoinsChart" */ = { 1497 | isa = XCConfigurationList; 1498 | buildConfigurations = ( 1499 | 83CBBA201A601CBA00E9B192 /* Debug */, 1500 | 83CBBA211A601CBA00E9B192 /* Release */, 1501 | ); 1502 | defaultConfigurationIsVisible = 0; 1503 | defaultConfigurationName = Release; 1504 | }; 1505 | /* End XCConfigurationList section */ 1506 | }; 1507 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1508 | } 1509 | -------------------------------------------------------------------------------- /ios/CoinsChart.xcodeproj/xcshareddata/xcschemes/CoinsChart-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/CoinsChart.xcodeproj/xcshareddata/xcschemes/CoinsChart.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/CoinsChart/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/CoinsChart/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 13 | #import 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:@"CoinsChart" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/CoinsChart/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/CoinsChart/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/CoinsChart/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | CoinsChart 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UIAppFonts 41 | 42 | Entypo.ttf 43 | EvilIcons.ttf 44 | FontAwesome.ttf 45 | Foundation.ttf 46 | Ionicons.ttf 47 | MaterialCommunityIcons.ttf 48 | MaterialIcons.ttf 49 | Octicons.ttf 50 | SimpleLineIcons.ttf 51 | Zocial.ttf 52 | 53 | UILaunchStoryboardName 54 | LaunchScreen 55 | UIRequiredDeviceCapabilities 56 | 57 | armv7 58 | 59 | UISupportedInterfaceOrientations 60 | 61 | UIInterfaceOrientationPortrait 62 | UIInterfaceOrientationLandscapeLeft 63 | UIInterfaceOrientationLandscapeRight 64 | 65 | UIViewControllerBasedStatusBarAppearance 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /ios/CoinsChart/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/CoinsChartTests/CoinsChartTests.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 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface CoinsChartTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation CoinsChartTests 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 = [[[RCTSharedApplication() 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 | -------------------------------------------------------------------------------- /ios/CoinsChartTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CoinsChart", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest", 8 | "flow": "flow" 9 | }, 10 | "dependencies": { 11 | "art": "^0.10.1", 12 | "lodash": "^4.17.4", 13 | "numeral": "^2.0.6", 14 | "react": "16.0.0-alpha.12", 15 | "react-native": "0.46.3", 16 | "react-native-vector-icons": "^4.2.0", 17 | "react-navigation": "^1.0.0-beta.11", 18 | "react-redux": "^5.0.5", 19 | "redux": "^3.7.2", 20 | "redux-thunk": "^2.2.0" 21 | }, 22 | "devDependencies": { 23 | "babel-cli": "^6.24.1", 24 | "babel-jest": "20.0.3", 25 | "babel-plugin-transform-decorators-legacy": "^1.3.4", 26 | "babel-preset-flow": "^6.23.0", 27 | "babel-preset-react-native": "2.1.0", 28 | "flow-bin": "^0.47.0", 29 | "jest": "20.0.4", 30 | "react-test-renderer": "16.0.0-alpha.12", 31 | "redux-devtools-extension": "^2.13.2" 32 | }, 33 | "jest": { 34 | "preset": "react-native" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/api.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | const API = 'https://min-api.cryptocompare.com'; 4 | 5 | const headers = { 6 | 'Accept': 'application/json', 7 | 'Content-Type': 'application/json', 8 | 'X-Requested-With': 'XMLHttpRequest' 9 | }; 10 | 11 | export const get = async (uri: string): Promise => { 12 | const response = await fetch(`${API}/${uri}`, { 13 | method: 'GET', 14 | headers, 15 | }); 16 | return response.json(); 17 | }; 18 | -------------------------------------------------------------------------------- /src/app.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { createStore, applyMiddleware } from 'redux'; 3 | import { Provider } from 'react-redux'; 4 | import { composeWithDevTools } from 'redux-devtools-extension'; 5 | import thunk from 'redux-thunk'; 6 | import reducer from './redux'; 7 | import List from './screens/list'; 8 | import Add from './screens/add'; 9 | import { StackNavigator } from 'react-navigation'; 10 | 11 | // Type navigation object that's being passed to every screen by react-navigation 12 | export type Navigation = { 13 | navigate: (screen: string, params?: Object) => void, 14 | goBack: () => void, 15 | state: { 16 | routeName: string, 17 | params?: Object, 18 | } 19 | }; 20 | 21 | const store = createStore( 22 | reducer, 23 | composeWithDevTools(applyMiddleware(thunk)), 24 | ); 25 | 26 | // Configure navigation 27 | const Screens = StackNavigator({ 28 | list: { screen: List }, // list with the chart 29 | add: { screen: Add }, // add new coin screen 30 | }, { 31 | mode: 'modal', // Add screen slides up from the bottom 32 | headerMode: 'none', // disable headers 33 | }); 34 | 35 | export default class App extends Component { 36 | render() { 37 | return ( 38 | 39 | 40 | 41 | ); 42 | } 43 | } -------------------------------------------------------------------------------- /src/components/chart/line.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | Dimensions, 6 | LayoutAnimation, 7 | StyleSheet, 8 | View 9 | } from 'react-native'; 10 | import { 11 | Group, 12 | Path, 13 | Surface, 14 | Shape 15 | } from 'react-native/Libraries/ART/ReactNativeART'; 16 | 17 | export default class Line extends Component { 18 | 19 | props: { 20 | values: Array, 21 | fillColor: string, 22 | strokeColor: string, 23 | strokeWidth: number, 24 | }; 25 | 26 | static defaultProps = { 27 | fillColor: 'rgba(103, 58, 183, 1)', // solid violet color 28 | strokeColor: 'rgba(103, 58, 183, 0.25)', // semi-transparent violet 29 | strokeWidth: 8, 30 | }; 31 | 32 | state = { 33 | // set initial width to screen width so when animated it stays constant, 34 | // try setting it to zero and see what happens on initial load 35 | width: Dimensions.get('window').width, 36 | // set initial height to zero so when updated to actual height and 37 | // animated, the chart raises from the bottom to the top of the container 38 | height: 0, 39 | }; 40 | 41 | componentWillUpdate() { 42 | LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); 43 | } 44 | 45 | // Handle container view's onLayout event to get its width and height after rendered and 46 | // update the state so the component can render the chart using actual width and height 47 | onLayout = (event: Object) => { 48 | // pull out width and height out of event.nativeEvent.layout 49 | const { 50 | nativeEvent: { 51 | layout: { 52 | width, 53 | height 54 | } 55 | } 56 | } = event; 57 | // update the state 58 | this.setState({ 59 | width, 60 | height, 61 | }) 62 | }; 63 | 64 | buildPath = (values: Array): Path => { 65 | const { 66 | strokeWidth, 67 | } = this.props; 68 | const { 69 | width, 70 | height, 71 | } = this.state; 72 | 73 | let firstPoint: boolean = true, 74 | // holds x and y coordinates of the previous point when iterating 75 | previous: { x: number, y: number }; 76 | 77 | const 78 | minValue = Math.min(...values), 79 | maxValue = Math.max(...values) - minValue, 80 | // step between each value point on horizontal (x) axis 81 | stepX = width / (values.length - 1 || 1), 82 | // step between each value point on vertical (y) axis 83 | stepY = maxValue 84 | ? (height - strokeWidth * 2) / maxValue 85 | : 0, 86 | // adjust values so that min value becomes 0 and goes to the bottom edge 87 | adjustedValues = values.map(value => value - minValue) 88 | ; 89 | 90 | let path = Path() 91 | // start from the left bottom corner so we could fill the area with color 92 | .moveTo(-strokeWidth, strokeWidth); 93 | 94 | adjustedValues.forEach((number, index) => { 95 | let x = index * stepX, 96 | y = -number * stepY - strokeWidth; 97 | if (firstPoint) { 98 | // straight line to the first point 99 | path.lineTo(-strokeWidth, y); 100 | } 101 | else { 102 | // make curved line 103 | path.curveTo(previous.x + stepX / 3, previous.y, x - stepX / 3, y, x, y); 104 | } 105 | // save current x and y coordinates for the next point 106 | previous = { x, y }; 107 | firstPoint = false; 108 | }); 109 | 110 | return path 111 | // line to the right bottom corner so we could fill the area with color 112 | .lineTo(width + strokeWidth, strokeWidth) 113 | .close(); 114 | }; 115 | 116 | render() { 117 | const { 118 | values, 119 | fillColor, 120 | strokeColor, 121 | strokeWidth 122 | } = this.props; 123 | const { 124 | width, 125 | height, 126 | } = this.state; 127 | return ( 128 | 132 | 133 | 134 | 140 | 141 | 142 | 143 | ); 144 | } 145 | 146 | } 147 | 148 | const styles = StyleSheet.create({ 149 | container: { 150 | flex: 1, 151 | // align at the bottom of the container so when animated it rises to the top 152 | justifyContent: 'flex-end', 153 | }, 154 | }); 155 | -------------------------------------------------------------------------------- /src/components/coin/add.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | Dimensions, 6 | StyleSheet, 7 | Text, 8 | TouchableOpacity, 9 | View, 10 | } from 'react-native'; 11 | import Icon from 'react-native-vector-icons/Ionicons'; 12 | 13 | // Get screen width 14 | const { width } = Dimensions.get('window'); 15 | 16 | export default class Add extends Component { 17 | 18 | props: { 19 | onPress: () => void, 20 | }; 21 | 22 | render() { 23 | const { onPress } = this.props; 24 | return ( 25 | 26 | 27 | 28 | {' '} 29 | Add coin 30 | 31 | 32 | ); 33 | } 34 | 35 | } 36 | 37 | const styles = StyleSheet.create({ 38 | container: { 39 | alignItems: 'center', // center horizontally 40 | width: width, // take the screen width 41 | marginTop: 15, 42 | }, 43 | button: { 44 | flexDirection: 'row', // arrange icon and text in a row 45 | alignItems: 'center', // center vertically 46 | padding: 15, 47 | }, 48 | icon: { 49 | fontSize: 24, 50 | color: '#FFFFFF', 51 | }, 52 | text: { 53 | color: '#FFFFFF', 54 | fontFamily: 'Avenir', 55 | fontSize: 16, 56 | }, 57 | }); -------------------------------------------------------------------------------- /src/components/coin/change.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { PureComponent } from 'react'; 4 | import { 5 | StyleSheet, 6 | Text, 7 | View 8 | } from 'react-native'; 9 | import Icon from 'react-native-vector-icons/FontAwesome'; 10 | 11 | const getBadgeStyles = (value: number): Array => [ 12 | styles.badge, 13 | value < 0 ? styles.bad : (value > 0 ? styles.good : styles.same) 14 | ]; 15 | 16 | export default class Change extends PureComponent { 17 | 18 | props: { 19 | value: ?number, 20 | }; 21 | 22 | render() { 23 | const { value: input } = this.props; 24 | const value: number = input || 0; // convert to number 25 | const icon = value === 0 || !value 26 | ? {' '} 27 | : ; 28 | return ( 29 | 30 | {icon} 31 | 32 | {Math.abs(value)}% 33 | 34 | 35 | ); 36 | } 37 | 38 | } 39 | 40 | const styles = StyleSheet.create({ 41 | badge: { 42 | borderRadius: 20, 43 | flexDirection: 'row', 44 | alignItems: 'center', 45 | paddingLeft: 5, 46 | paddingRight: 5, 47 | minHeight: 16, 48 | }, 49 | good: { backgroundColor: '#4CAF50' }, 50 | bad: { backgroundColor: '#FF5505' }, 51 | same: { backgroundColor: '#F5A623' }, 52 | value: { 53 | color: '#FFFFFF', 54 | fontFamily: 'Avenir', 55 | fontSize: 11, 56 | marginTop: 0, 57 | }, 58 | icon: { 59 | fontSize: 18, 60 | lineHeight: 16, 61 | marginRight: 2, 62 | color: '#FFFFFF', 63 | backgroundColor: 'transparent', 64 | textAlign: 'center', 65 | }, 66 | }); 67 | -------------------------------------------------------------------------------- /src/components/coin/coin.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | Dimensions, 6 | StyleSheet, 7 | Text, 8 | TouchableOpacity, 9 | View 10 | } from 'react-native'; 11 | import numeral from 'numeral'; 12 | import Change from './change'; 13 | 14 | // Get screen width 15 | const { width } = Dimensions.get('window'); 16 | 17 | export default class Coin extends Component { 18 | 19 | props: { 20 | symbol: string, 21 | name: string, 22 | price: number, 23 | change: number, 24 | active: boolean, 25 | onPress: Function, 26 | }; 27 | 28 | static defaultProps = { 29 | active: false, 30 | }; 31 | 32 | onPress = () => { 33 | const { symbol, onPress } = this.props; 34 | onPress(symbol); 35 | }; 36 | 37 | render() { 38 | const { 39 | symbol, 40 | name, 41 | price, 42 | change, 43 | active, 44 | } = this.props; 45 | return ( 46 | 50 | 51 | 52 | {symbol} 53 | 54 | 55 | 56 | {price ? numeral(price).format('$0,0[.]0[0000]') : '—'} 57 | 58 | 59 | 60 | 61 | 62 | 63 | {name} 64 | 65 | 66 | {change !== undefined && } 67 | 68 | 69 | 70 | ); 71 | } 72 | 73 | } 74 | 75 | const styles = StyleSheet.create({ 76 | container: { 77 | borderRadius: 10, 78 | padding: 10, 79 | width: (width - 20) / 2, // take half of the screen width minus margin 80 | }, 81 | active: { 82 | backgroundColor: 'rgba(255,255,255,0.05)', // highlight selected coin 83 | }, 84 | row: { 85 | flexDirection: 'row', 86 | }, 87 | right: { 88 | flex: 1, 89 | alignSelf: 'flex-end', 90 | alignItems: 'flex-end', 91 | }, 92 | text: { 93 | color: '#FFFFFF', 94 | fontFamily: 'Avenir', 95 | fontSize: 16, 96 | fontWeight: '500', 97 | }, 98 | name: { 99 | color: 'rgba(255,255,255,0.5)', 100 | fontSize: 12, 101 | fontWeight: '300', 102 | }, 103 | }); 104 | -------------------------------------------------------------------------------- /src/components/coin/row.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | StyleSheet, 6 | Text, 7 | TouchableHighlight, 8 | View 9 | } from 'react-native'; 10 | 11 | export default class Row extends Component { 12 | 13 | props: { 14 | symbol: string, 15 | name: string, 16 | onPress: Function, 17 | }; 18 | 19 | onPress = () => { 20 | const { 21 | symbol, 22 | name, 23 | onPress, 24 | } = this.props; 25 | onPress(symbol, name); 26 | }; 27 | 28 | render() { 29 | const { 30 | symbol, 31 | name, 32 | } = this.props; 33 | return ( 34 | 39 | 40 | 41 | {symbol} 42 | 43 | 44 | {name} 45 | 46 | 47 | 48 | ); 49 | } 50 | 51 | } 52 | 53 | const styles = StyleSheet.create({ 54 | container: { 55 | flex: 1, 56 | borderBottomColor: 'rgba(255,255,255,0.25)', 57 | borderBottomWidth: StyleSheet.hairlineWidth, 58 | padding: 10, 59 | }, 60 | text: { 61 | color: '#FFFFFF', 62 | fontFamily: 'Avenir', 63 | fontSize: 16, 64 | fontWeight: '500', 65 | }, 66 | name: { 67 | color: 'rgba(255,255,255,0.5)', 68 | fontSize: 12, 69 | fontWeight: '300', 70 | }, 71 | }); -------------------------------------------------------------------------------- /src/components/range/range.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | StyleSheet, 6 | Text, 7 | TouchableOpacity, 8 | } from 'react-native'; 9 | 10 | export default class Range extends Component { 11 | 12 | props: { 13 | name: string, 14 | active: boolean, 15 | onPress: (range: string) => void, 16 | }; 17 | 18 | onPress = () => { 19 | const { 20 | name, 21 | onPress 22 | } = this.props; 23 | onPress(name); 24 | }; 25 | 26 | render() { 27 | const { 28 | name, 29 | active, 30 | } = this.props; 31 | return ( 32 | 33 | {name} 34 | 35 | ); 36 | } 37 | 38 | } 39 | 40 | const styles = StyleSheet.create({ 41 | container: { 42 | padding: 15, 43 | }, 44 | text: { 45 | color: 'rgba(255,255,255,0.5)', 46 | fontFamily: 'Avenir', 47 | fontSize: 12, 48 | }, 49 | active: { 50 | color: '#FFFFFF', 51 | }, 52 | }); -------------------------------------------------------------------------------- /src/components/range/switcher.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | StyleSheet, 4 | View 5 | } from 'react-native'; 6 | import Range from './range'; 7 | 8 | export default class Switcher extends Component { 9 | 10 | render() { 11 | const { 12 | ranges, 13 | current, 14 | onSelectRange, 15 | } = this.props; 16 | return ( 17 | 18 | {ranges.map((name, index) => 19 | )} 25 | 26 | ); 27 | } 28 | 29 | } 30 | 31 | const styles = StyleSheet.create({ 32 | container: { 33 | flexDirection: 'row', 34 | justifyContent: 'space-between', 35 | }, 36 | }); -------------------------------------------------------------------------------- /src/containers/add.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | ListView, 6 | RefreshControl 7 | } from 'react-native'; 8 | import { connect } from 'react-redux'; 9 | import { bindActionCreators } from 'redux'; 10 | import { addCoin } from '../redux/coins'; 11 | import Row from '../components/coin/row'; 12 | 13 | // Type API response shape 14 | type Response = { 15 | Data: { 16 | [symbol: string]: { 17 | CoinName: string, 18 | Name: string, 19 | }, 20 | }, 21 | }; 22 | 23 | // Type coin object 24 | type Coin = { 25 | symbol: string, 26 | name: string, 27 | }; 28 | 29 | @connect( 30 | (state) => ({}), 31 | (dispatch) => bindActionCreators({ addCoin }, dispatch) 32 | ) 33 | export default class Add extends Component { 34 | 35 | props: { 36 | onAddedCoin: () => void, 37 | }; 38 | 39 | state = { 40 | // Used to show activity indicator when the data is being loaded 41 | loading: true, 42 | // Holds the data for ListView 43 | dataSource: new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }) 44 | }; 45 | 46 | // Load list data when component is about to get mounted 47 | componentWillMount() { 48 | this.loadListData(); 49 | }; 50 | 51 | // Load the data, transform it, and update the list 52 | loadListData = async () => { 53 | const response = await this.fetchCoinList(); 54 | const coins = this.transformAPIResponse(response); 55 | this.updateDataSource(coins); 56 | }; 57 | 58 | // Query API and return raw response 59 | fetchCoinList = async (): Promise => { 60 | const response = await fetch('https://www.cryptocompare.com/api/data/coinlist'); 61 | return response.json(); 62 | }; 63 | 64 | // Transform API response into Array<{ symbol, name }> format 65 | transformAPIResponse = (response: Response): Array => { 66 | const coins = response.Data; 67 | return Object.keys(coins).map(symbol => ({ 68 | symbol: coins[symbol].Name, 69 | name: coins[symbol].CoinName, 70 | })); 71 | }; 72 | 73 | // Update the state with coin data 74 | updateDataSource(coins: Array) { 75 | this.setState({ 76 | dataSource: this.state.dataSource.cloneWithRows(coins), 77 | loading: false, 78 | }); 79 | } 80 | 81 | // Render each row using Row component 82 | renderRow = (coin: Coin) => { 83 | const { symbol, name } = coin; 84 | return 89 | }; 90 | 91 | // Handle row presses 92 | onAddCoin = (symbol: string, name: string) => { 93 | const { addCoin, onAddedCoin } = this.props; 94 | addCoin(symbol, name); // redux action 95 | onAddedCoin(); // closes the modal 96 | }; 97 | 98 | render() { 99 | const { loading } = this.state; 100 | return ( 101 | 110 | } 111 | /> 112 | ); 113 | } 114 | 115 | } -------------------------------------------------------------------------------- /src/containers/chart.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | ActivityIndicator, 4 | StyleSheet, 5 | View 6 | } from 'react-native'; 7 | import { connect } from 'react-redux'; 8 | import { bindActionCreators } from 'redux'; 9 | import { updateChartPrices } from '../redux/chart'; 10 | import Line from '../components/chart/line'; 11 | 12 | @connect( 13 | (state) => { 14 | const { 15 | coins: { 16 | current: symbol, 17 | }, 18 | chart: { 19 | range, 20 | prices, 21 | loading, 22 | }, 23 | } = state; 24 | return { 25 | symbol, 26 | range, 27 | prices, 28 | loading, 29 | }; 30 | }, 31 | (dispatch) => bindActionCreators({ updateChartPrices }, dispatch) 32 | ) 33 | export default class Chart extends Component { 34 | 35 | state = { 36 | viewHeight: 0, 37 | prices: [], 38 | }; 39 | 40 | componentWillMount() { 41 | this.props.updateChartPrices(); 42 | } 43 | 44 | componentWillReceiveProps(nextProps) { 45 | // Update chart data if current symbol or range were changed 46 | if (nextProps.symbol !== this.props.symbol 47 | || nextProps.range !== this.props.range) { 48 | this.props.updateChartPrices(); 49 | } 50 | this.setState({ prices: nextProps.prices }); 51 | } 52 | 53 | render() { 54 | const { 55 | loading, 56 | prices, 57 | } = this.props; 58 | 59 | return ( 60 | 61 | {loading && 62 | 63 | } 64 | {prices.length > 0 && } 67 | 68 | ); 69 | } 70 | 71 | } 72 | 73 | const styles = StyleSheet.create({ 74 | container: { 75 | flex: 38, // take 38% of the screen height 76 | backgroundColor: '#FFFFFF', 77 | }, 78 | loading: { 79 | ...StyleSheet.absoluteFillObject, // overlay the chart 80 | alignItems: 'center', // center horizontally 81 | justifyContent: 'center', // center vertically 82 | zIndex: 1, // show in front of the chart 83 | }, 84 | }); -------------------------------------------------------------------------------- /src/containers/list.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | RefreshControl, 4 | ScrollView, 5 | StyleSheet, 6 | View 7 | } from 'react-native'; 8 | import { connect } from 'react-redux'; 9 | import { bindActionCreators } from 'redux'; 10 | import { updatePrices, selectCoin } from '../redux/coins'; 11 | import Coin from '../components/coin/coin'; 12 | import Add from '../components/coin/add'; 13 | 14 | @connect( 15 | (state) => { 16 | const { 17 | // pull some data out of coins reducer 18 | coins: { 19 | current, // currently selected coin 20 | list, // list of all coins 21 | loading, // whether prices are being updated 22 | } 23 | } = state; 24 | return { 25 | current, 26 | list, 27 | loading, 28 | }; 29 | }, 30 | (dispatch) => bindActionCreators({ updatePrices, selectCoin }, dispatch) 31 | ) 32 | export default class List extends Component { 33 | 34 | componentWillMount() { 35 | this.props.updatePrices(); 36 | } 37 | 38 | render() { 39 | const { 40 | current, 41 | list, 42 | loading, 43 | selectCoin, 44 | updatePrices, 45 | onAddCoin, 46 | } = this.props; 47 | return ( 48 | 49 | 61 | } 62 | > 63 | {list.map((coin, index) => { 64 | const { 65 | symbol, 66 | name, 67 | price, 68 | priceChange, 69 | } = coin; 70 | return ; 79 | })} 80 | 81 | 82 | 83 | ); 84 | } 85 | 86 | } 87 | 88 | const styles = StyleSheet.create({ 89 | container: { 90 | flex: 62, // take 62% of the screen height 91 | backgroundColor: '#673AB7', 92 | }, 93 | list: { 94 | flexDirection: 'row', // arrange coins in rows 95 | flexWrap: 'wrap', // allow multiple rows 96 | paddingHorizontal: 10, 97 | }, 98 | }); 99 | -------------------------------------------------------------------------------- /src/containers/ranges.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | StyleSheet, 4 | View 5 | } from 'react-native'; 6 | 7 | import { connect } from 'react-redux'; 8 | import { bindActionCreators } from 'redux'; 9 | import { selectRange } from '../redux/chart'; 10 | import Switcher from '../components/range/switcher'; 11 | import { RANGES } from '../redux/chart'; 12 | 13 | @connect( 14 | (state) => { 15 | const { 16 | chart: { 17 | range, 18 | }, 19 | } = state; 20 | return { 21 | range, 22 | }; 23 | }, 24 | (dispatch) => bindActionCreators({ selectRange }, dispatch) 25 | ) 26 | export default class Ranges extends Component { 27 | 28 | render() { 29 | const { 30 | range, 31 | selectRange, 32 | } = this.props; 33 | return ( 34 | 35 | 40 | 41 | ); 42 | } 43 | 44 | } 45 | 46 | const styles = StyleSheet.create({ 47 | container: { 48 | backgroundColor: '#673AB7', 49 | }, 50 | }); -------------------------------------------------------------------------------- /src/redux/chart.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import { get } from '../api'; 4 | import type { Store } from './index'; 5 | 6 | // ----------------------------------------------------------------------------- 7 | // Constants 8 | // ----------------------------------------------------------------------------- 9 | 10 | export const RANGE_1D = '1D'; 11 | export const RANGE_1W = '1W'; 12 | export const RANGE_1M = '1M'; 13 | export const RANGE_3M = '3M'; 14 | export const RANGE_6M = '6M'; 15 | export const RANGE_1Y = '1Y'; 16 | export const RANGE_MAX = 'MAX'; 17 | export const RANGES = [RANGE_1D, RANGE_1W, RANGE_1M, RANGE_3M, RANGE_6M, RANGE_1Y, RANGE_MAX]; 18 | 19 | // ----------------------------------------------------------------------------- 20 | // Types 21 | // ----------------------------------------------------------------------------- 22 | 23 | export type Range = typeof RANGE_1D 24 | | typeof RANGE_1W 25 | | typeof RANGE_1M 26 | | typeof RANGE_3M 27 | | typeof RANGE_6M 28 | | typeof RANGE_1Y 29 | | typeof RANGE_MAX; 30 | 31 | export type State = { 32 | +loading: boolean, // activity indicator flag 33 | +range: Range, // current date range 34 | +prices: Array, // historical prices 35 | }; 36 | 37 | type Action = 38 | | { type: 'LOADING_CHART_PRICES' } 39 | | { type: 'SELECTED_CHART_RANGE', range: Range } 40 | | { 41 | type: 'UPDATED_CHART_PRICES', 42 | response: { 43 | Data: Array<{ 44 | close: number, 45 | high: number, 46 | low: number, 47 | open: number, 48 | time: number, 49 | volumefrom: number, 50 | volumeto: number, 51 | }>, 52 | TimeFrom: number, 53 | TimeTo: number, 54 | } 55 | } 56 | ; 57 | 58 | type GetState = () => Store; 59 | type PromiseAction = Promise; 60 | type ThunkAction = (dispatch: Dispatch, getState: GetState) => any; 61 | type Dispatch = (action: Action | ThunkAction | PromiseAction | Array) => any; 62 | 63 | // ----------------------------------------------------------------------------- 64 | // Initial state 65 | // ----------------------------------------------------------------------------- 66 | 67 | const initialState: State = { 68 | loading: true, // show activity indicator on first load 69 | range: '1D', // default to one day range 70 | prices: [], // no price data initially 71 | }; 72 | 73 | // ----------------------------------------------------------------------------- 74 | // Actions 75 | // ----------------------------------------------------------------------------- 76 | 77 | // Change current date range 78 | export const selectRange = (range: Range): Action => ({ 79 | type: 'SELECTED_CHART_RANGE', 80 | range 81 | }); 82 | 83 | // Fetch prices using API and dispatch the data to reducer 84 | export const updateChartPrices = (): ThunkAction => async (dispatch, getState) => { 85 | dispatch({ type: 'LOADING_CHART_PRICES' }); 86 | const { 87 | coins: { current }, 88 | chart: { range }, 89 | } = getState(); 90 | const response = await get(buildAPIQuery(current, range)); 91 | 92 | dispatch({ 93 | type: 'UPDATED_CHART_PRICES', 94 | response, 95 | }); 96 | }; 97 | 98 | // Build API query based on symbol of interest and current date range 99 | const buildAPIQuery = (symbol: string, range: Range): string => { 100 | 101 | let endpoint = 'histohour'; 102 | let aggregate = 1; 103 | let limit = 24; 104 | 105 | switch (range) { 106 | case RANGE_1D: 107 | endpoint = 'histohour'; 108 | aggregate = 1; 109 | limit = 24; 110 | break; 111 | case RANGE_1W: 112 | endpoint = 'histoday'; 113 | aggregate = 1; 114 | limit = 7; 115 | break; 116 | case RANGE_1M: 117 | endpoint = 'histoday'; 118 | aggregate = 1; 119 | limit = 30; 120 | break; 121 | case RANGE_3M: 122 | endpoint = 'histoday'; 123 | aggregate = 3; 124 | limit = 30; 125 | break; 126 | case RANGE_6M: 127 | endpoint = 'histoday'; 128 | aggregate = 6; 129 | limit = 30; 130 | break; 131 | case RANGE_1Y: 132 | endpoint = 'histoday'; 133 | aggregate = 12; 134 | limit = 30; 135 | break; 136 | case RANGE_MAX: 137 | endpoint = 'histoday'; 138 | aggregate = 200; 139 | limit = 2000; // maximum allowed limit 140 | break; 141 | } 142 | 143 | return `data/${endpoint}?fsym=${symbol}&tsym=USD&aggregate=${aggregate}&limit=${limit}`; 144 | }; 145 | 146 | // ----------------------------------------------------------------------------- 147 | // Reducer 148 | // ----------------------------------------------------------------------------- 149 | 150 | export default function reducer(state: State = initialState, action: Action) { 151 | switch (action.type) { 152 | 153 | case 'LOADING_CHART_PRICES': { 154 | return { 155 | ...state, 156 | loading: true, 157 | }; 158 | } 159 | 160 | case 'UPDATED_CHART_PRICES': { 161 | const { response: { Data } } = action; 162 | return { 163 | ...state, 164 | loading: false, 165 | prices: !!Data ? Data.map(item => item.close) : [] // use closing prices 166 | }; 167 | } 168 | 169 | case 'SELECTED_CHART_RANGE': { 170 | const { range } = action; 171 | return { 172 | ...state, 173 | range, 174 | }; 175 | } 176 | 177 | default: { 178 | return state; 179 | } 180 | } 181 | } -------------------------------------------------------------------------------- /src/redux/coins.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import { get } from '../api'; 4 | import type { Store } from './index'; 5 | 6 | // ----------------------------------------------------------------------------- 7 | // Types 8 | // ----------------------------------------------------------------------------- 9 | 10 | // Type the state created by reducer in this file 11 | export type State = { 12 | +loading: boolean, 13 | +current: string, 14 | +list: Array, 15 | }; 16 | 17 | // Type coin object 18 | type Coin = { 19 | symbol: string, 20 | name: string, 21 | price?: number, 22 | price24hAgo?: number, 23 | priceChange?: number, 24 | }; 25 | 26 | // Type all actions along with the data that gets passed 27 | type Action = 28 | | { type: 'LOADING_PRICES' } 29 | | { type: 'SELECTED_COIN', symbol: string } 30 | | { type: 'ADDED_COIN', symbol: string, name: string } 31 | | { type: 'UPDATED_24H_AGO_PRICE', symbol: string, price: number } 32 | | { type: 'UPDATED_PRICES', 33 | response: { 34 | [symbol: string]: { 35 | ['USD' | 'EUR' | 'BTC']: number 36 | } 37 | } 38 | }; 39 | 40 | // Type Redux actions and functions 41 | type GetState = () => Store; 42 | type PromiseAction = Promise; 43 | type ThunkAction = (dispatch: Dispatch, getState: GetState) => any; 44 | type Dispatch = (action: Action | ThunkAction | PromiseAction | Array) => any; 45 | 46 | // ----------------------------------------------------------------------------- 47 | // Initial state 48 | // ----------------------------------------------------------------------------- 49 | 50 | const initialState: State = { 51 | // loading flag to show activity indicator when prices are being updated 52 | loading: true, 53 | // Preselect BTC coin 54 | current: 'BTC', 55 | // Predefine a list of coins 56 | list: [ 57 | { symbol: 'BTC', name: 'Bitcoin' }, 58 | { symbol: 'ETH', name: 'Ethereum' }, 59 | { symbol: 'XRP', name: 'Ripple' }, 60 | { symbol: 'LTC', name: 'Litecoin' }, 61 | { symbol: 'ETC', name: 'Ethereum Classic' }, 62 | { symbol: 'DASH',name: 'DigitalCash' }, 63 | { symbol: 'XEM', name: 'NEM' }, 64 | { symbol: 'XMR', name: 'Monero' }, 65 | ], 66 | }; 67 | 68 | // ----------------------------------------------------------------------------- 69 | // Actions 70 | // ----------------------------------------------------------------------------- 71 | 72 | // Add a coin 73 | export const addCoin = (symbol: string, name: string): ThunkAction => async dispatch => { 74 | dispatch({ 75 | type: 'ADDED_COIN', 76 | symbol, 77 | name, 78 | }); 79 | dispatch(updatePrices()); 80 | }; 81 | 82 | // Select a coin 83 | export const selectCoin = (symbol: string): Action => ({ 84 | type: 'SELECTED_COIN', 85 | symbol, 86 | }); 87 | 88 | // Update prices for all coins 89 | export const updatePrices = (): ThunkAction => async (dispatch, getState) => { 90 | dispatch({ type: 'LOADING_PRICES' }); 91 | const { 92 | coins: { 93 | list 94 | } 95 | } = getState(); 96 | const symbols = coinsToCommaSeparatedSymbolList(list); 97 | const response = await get(`data/pricemulti?fsyms=${symbols}&tsyms=USD`); 98 | dispatch({ 99 | type: 'UPDATED_PRICES', 100 | response, 101 | }); 102 | // Update 24 hour ago prices for each coin 103 | list.forEach(coin => 104 | dispatch(fetch24hAgoPrice(coin.symbol)) 105 | ); 106 | }; 107 | 108 | // Fetch 24 hour ago price for a coin 109 | export const fetch24hAgoPrice = (symbol: string): ThunkAction => async dispatch => { 110 | const timestamp = Math.round(new Date().getTime() / 1000); 111 | const timestampYesterday = timestamp - (24 * 3600); 112 | const response = await get(`data/histohour?fsym=${symbol}&tsym=USD&limit=1&toTs=${timestampYesterday}`); 113 | if (response.Data.length > 0) { 114 | // Get last entry's close price in Data array since the API returns two entries 115 | const price = response.Data.slice(-1).pop().close; 116 | dispatch({ 117 | type: 'UPDATED_24H_AGO_PRICE', 118 | symbol, 119 | price, 120 | }); 121 | } 122 | }; 123 | 124 | // ----------------------------------------------------------------------------- 125 | // Reducer 126 | // ----------------------------------------------------------------------------- 127 | 128 | export default function reducer(state: State = initialState, action: Action) { 129 | switch (action.type) { 130 | 131 | // Update loading state 132 | case 'LOADING_PRICES': { 133 | return { 134 | ...state, 135 | loading: true, 136 | }; 137 | } 138 | 139 | // Update all coin prices 140 | case 'UPDATED_PRICES': { 141 | const { list } = state; 142 | const { response } = action; 143 | return { 144 | ...state, 145 | // map through each coin 146 | list: list.map(coin => ({ 147 | ...coin, 148 | // to update the prices 149 | price: response[coin.symbol] ? response[coin.symbol].USD : undefined, 150 | })), 151 | loading: false, 152 | }; 153 | } 154 | 155 | // Update 24 hour ago price for a specific coin 156 | case 'UPDATED_24H_AGO_PRICE': { 157 | const { list } = state; 158 | const { symbol, price } = action; 159 | return { 160 | ...state, 161 | // map through each coin 162 | list: list.map(coin => ({ 163 | ...coin, 164 | // to find the one that matches 165 | ...(coin.symbol === symbol ? { 166 | // and update it's 24 hour ago price 167 | price24hAgo: price, 168 | // and the change compared to current price 169 | priceChange: coin.price ? getPriceChange(coin.price, price) : undefined, 170 | } : { 171 | // don't change any values if didn't match 172 | }) 173 | })), 174 | }; 175 | } 176 | 177 | // Add new coin 178 | case 'ADDED_COIN': { 179 | const { symbol, name } = action; 180 | 181 | // Coin is already in the list 182 | if (state.list.find(coin => coin.symbol === symbol)) { 183 | return state; 184 | } 185 | 186 | return { 187 | ...state, 188 | list: [ 189 | ...state.list, 190 | { symbol, name }, 191 | ], 192 | }; 193 | } 194 | 195 | // Change current coin 196 | case 'SELECTED_COIN': { 197 | const { symbol } = action; 198 | return { 199 | ...state, 200 | current: symbol, 201 | }; 202 | } 203 | 204 | default: { 205 | return state; 206 | } 207 | } 208 | } 209 | 210 | // ----------------------------------------------------------------------------- 211 | // Helpers 212 | // ----------------------------------------------------------------------------- 213 | 214 | // Convert coin array to a comma separated symbol list for the API calls 215 | const coinsToCommaSeparatedSymbolList = (list: Array): string => list 216 | .map(item => item.symbol) 217 | .reduce((prev, current) => prev + ',' + current); 218 | 219 | // Get percentage change between current and previous prices 220 | const getPriceChange = (currentPrice: number, previousPrice: number): number => { 221 | if (!previousPrice) { 222 | return 0; 223 | } 224 | return parseFloat((((currentPrice / previousPrice) - 1) * 100).toFixed(2)); 225 | }; -------------------------------------------------------------------------------- /src/redux/index.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import { combineReducers } from 'redux'; 4 | // import reducers 5 | import chart from './chart'; 6 | import coins from './coins'; 7 | // import types 8 | import type { State as Chart } from './chart'; 9 | import type { State as Coins } from './coins'; 10 | 11 | export type Store = { 12 | +chart: Chart, 13 | +coins: Coins, 14 | }; 15 | 16 | export default combineReducers({ 17 | chart, 18 | coins, 19 | }); -------------------------------------------------------------------------------- /src/screens/add.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | StyleSheet, 6 | TouchableOpacity, 7 | View, 8 | } from 'react-native'; 9 | import Icon from 'react-native-vector-icons/Ionicons'; 10 | import Add from '../containers/add'; 11 | import type { Navigation } from '../app'; 12 | 13 | export default class extends Component { 14 | 15 | props: { 16 | navigation: Navigation, 17 | }; 18 | 19 | onClose = () => { 20 | const { navigation } = this.props; 21 | navigation.goBack(); 22 | }; 23 | 24 | render() { 25 | return ( 26 | 27 | 28 | 33 | 34 | 35 | 36 | ); 37 | } 38 | 39 | } 40 | 41 | const styles = StyleSheet.create({ 42 | container: { 43 | flex: 1, 44 | paddingTop: 20, // put content below status bar 45 | // backgroundColor: 'white', 46 | backgroundColor: '#673AB7', 47 | }, 48 | button: { 49 | margin: 10, 50 | }, 51 | }); -------------------------------------------------------------------------------- /src/screens/list.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import React, { Component } from 'react'; 4 | import { 5 | StyleSheet, 6 | View 7 | } from 'react-native'; 8 | import Chart from '../containers/chart'; 9 | import Ranges from '../containers/ranges'; 10 | import List from '../containers/list'; 11 | import type { Navigation } from '../app'; 12 | 13 | export default class extends Component { 14 | 15 | props: { 16 | navigation: Navigation, 17 | }; 18 | 19 | onAddCoin = () => { 20 | const { navigation } = this.props; 21 | navigation.navigate('add'); 22 | }; 23 | 24 | render() { 25 | return ( 26 | 27 | 28 | 29 | 30 | 31 | ); 32 | } 33 | 34 | } 35 | 36 | const styles = StyleSheet.create({ 37 | container: { 38 | flex: 1, // take up the whole screen 39 | paddingTop: 20, // put content below status bar 40 | backgroundColor: 'white', 41 | }, 42 | }); --------------------------------------------------------------------------------