├── .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 │ │ ├── java │ │ └── com │ │ │ └── uberproject │ │ │ ├── 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 ├── assets └── img │ ├── car.png │ ├── dot-red.png │ ├── dot.png │ ├── facebook-login.png │ └── marker.png ├── components ├── destination.js ├── login.js └── pickup.js ├── fake_drivers ├── fake_drivers.py └── requirements.txt ├── index.android.js ├── index.ios.js ├── ios ├── UberProject-tvOS │ └── Info.plist ├── UberProject-tvOSTests │ └── Info.plist ├── UberProject.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── UberProject-tvOS.xcscheme │ │ └── UberProject.xcscheme ├── UberProject │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── UberProjectTests │ ├── Info.plist │ └── UberProjectTests.m ├── mixins └── map.js ├── package.json ├── screen.gif ├── styles.js └── util.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native", "react-native-dotenv"] 3 | } 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 | module.system=haste 26 | 27 | experimental.strict_type_args=true 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\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | 41 | unsafe.enable_getters_and_setters=true 42 | 43 | [version] 44 | ^0.37.0 45 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | /fake_drivers/serviceAccountCredentials.json 3 | 4 | # OSX 5 | # 6 | .DS_Store 7 | yarn.lock 8 | 9 | # Xcode 10 | # 11 | build/ 12 | *.pbxuser 13 | !default.pbxuser 14 | *.mode1v3 15 | !default.mode1v3 16 | *.mode2v3 17 | !default.mode2v3 18 | *.perspectivev3 19 | !default.perspectivev3 20 | xcuserdata 21 | *.xccheckout 22 | *.moved-aside 23 | DerivedData 24 | *.hmap 25 | *.ipa 26 | *.xcuserstate 27 | project.xcworkspace 28 | 29 | # Android/IntelliJ 30 | # 31 | build/ 32 | .idea 33 | .gradle 34 | local.properties 35 | *.iml 36 | 37 | # node.js 38 | # 39 | node_modules/ 40 | npm-debug.log 41 | yarn-error.log 42 | 43 | # BUCK 44 | buck-out/ 45 | \.buckd/ 46 | android/app/libs 47 | *.keystore 48 | 49 | # fastlane 50 | # 51 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 52 | # screenshots whenever they are needed. 53 | # For more information about the recommended setup visit: 54 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 55 | 56 | fastlane/report.xml 57 | fastlane/Preview.html 58 | fastlane/screenshots 59 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # uber-react 2 | Uber-like project in React Native 3 | 4 | 5 | 6 | # configuration 7 | 8 | **File:** `.env` 9 | Create a .env file with the following settings: 10 | 11 | ``` 12 | apiKey = "" 13 | authDomain = "" 14 | databaseURL = "" 15 | storageBucket = "" 16 | messagingSenderId = "" 17 | mapBoxAccessToken = "" 18 | ``` 19 | 20 | All these credentials you get from either Firebase or MapBox websites. 21 | 22 | **File:** `fake_drivers/serviceAccountCredentials.json` 23 | 24 | Get it from Firebase Service Accounts: 25 | 26 | https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk 27 | 28 | # running 29 | ``` 30 | react-native run-ios 31 | ``` 32 | 33 | For the fake drivers: 34 | ``` 35 | cd fake_drivers 36 | pip install -r requirements.txt 37 | ``` 38 | 39 | then 40 | 41 | ``` 42 | python fake_drivers.py , 43 | ``` 44 | 45 | ***Do not forget to place the serviceAccountCredentials.json file in the same directory as described in the installation section*** 46 | -------------------------------------------------------------------------------- /__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 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.uberproject', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.uberproject', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.uberproject" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':react-native-fbsdk') 130 | compile project(':react-native-facebook-login') 131 | compile project(':react-native-geocoder') 132 | compile project(':react-native-maps') 133 | compile fileTree(dir: "libs", include: ["*.jar"]) 134 | compile "com.android.support:appcompat-v7:23.0.1" 135 | compile "com.facebook.react:react-native:+" // From node_modules 136 | } 137 | 138 | // Run this once to be able to run the application with BUCK 139 | // puts all compile dependencies into folder libs for BUCK to use 140 | task copyDownloadableDepsToLibs(type: Copy) { 141 | from configurations.compile 142 | into 'libs' 143 | } 144 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/uberproject/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.uberproject; 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 "UberProject"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/uberproject/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.uberproject; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.reactnative.androidsdk.FBSDKPackage; 8 | import com.magus.fblogin.FacebookLoginPackage; 9 | import com.devfd.RNGeocoder.RNGeocoderPackage; 10 | import com.airbnb.android.react.maps.MapsPackage; 11 | import com.facebook.react.ReactInstanceManager; 12 | import com.facebook.react.ReactNativeHost; 13 | import com.facebook.react.ReactPackage; 14 | import com.facebook.react.shell.MainReactPackage; 15 | import com.facebook.soloader.SoLoader; 16 | 17 | import java.util.Arrays; 18 | import java.util.List; 19 | 20 | public class MainApplication extends Application implements ReactApplication { 21 | 22 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 23 | @Override 24 | public boolean getUseDeveloperSupport() { 25 | return BuildConfig.DEBUG; 26 | } 27 | 28 | @Override 29 | protected List getPackages() { 30 | return Arrays.asList( 31 | new MainReactPackage(), 32 | new FBSDKPackage(), 33 | new FacebookLoginPackage(), 34 | new RNGeocoderPackage(), 35 | new MapsPackage() 36 | ); 37 | } 38 | }; 39 | 40 | @Override 41 | public ReactNativeHost getReactNativeHost() { 42 | return mReactNativeHost; 43 | } 44 | 45 | @Override 46 | public void onCreate() { 47 | super.onCreate(); 48 | SoLoader.init(this, /* native exopackage */ false); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | UberProject 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:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'UberProject' 2 | include ':react-native-fbsdk' 3 | project(':react-native-fbsdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbsdk/android') 4 | include ':react-native-facebook-login' 5 | project(':react-native-facebook-login').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-facebook-login/android') 6 | include ':react-native-geocoder' 7 | project(':react-native-geocoder').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-geocoder/android') 8 | include ':react-native-maps' 9 | project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/android') 10 | 11 | include ':app' 12 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UberProject", 3 | "displayName": "UberProject" 4 | } -------------------------------------------------------------------------------- /assets/img/car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/assets/img/car.png -------------------------------------------------------------------------------- /assets/img/dot-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/assets/img/dot-red.png -------------------------------------------------------------------------------- /assets/img/dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/assets/img/dot.png -------------------------------------------------------------------------------- /assets/img/facebook-login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/assets/img/facebook-login.png -------------------------------------------------------------------------------- /assets/img/marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/assets/img/marker.png -------------------------------------------------------------------------------- /components/destination.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import { 4 | StyleSheet, 5 | Text, 6 | View, 7 | TextInput, 8 | TouchableHighlight, 9 | InteractionManager, 10 | } from 'react-native' 11 | 12 | import MapView, { Marker } from 'react-native-maps' 13 | import MapMixin from '../mixins/map' 14 | import { randomPosition } from '../util' 15 | import styles from '../styles' 16 | 17 | // Load configs from .env file 18 | import { 19 | mapBoxAccessToken, 20 | } from 'react-native-dotenv' 21 | 22 | const polyline = require('polyline') 23 | 24 | // Images 25 | const markerIcon = require('../assets/img/marker.png') 26 | const redDotIcon = require('../assets/img/dot-red.png') 27 | 28 | 29 | export default class SetDestination extends MapMixin { 30 | constructor(props) { 31 | super(props) 32 | 33 | this.onSubmit = this._onSubmit.bind(this) 34 | this.onDragEnd = this._onDragEnd.bind(this) 35 | this.onRenderMap = this._onRenderMap.bind(this) 36 | 37 | this.state.pickupPosition = props.pickupPosition 38 | this.state.passengerPosition = props.passengerPosition 39 | this.state.destinationPosition = randomPosition(props.passengerPosition, 500) 40 | 41 | this.state.nearestDriver = null 42 | this.state.nearestDriverRadius = [] 43 | 44 | this.state.route = null 45 | } 46 | 47 | buildLngLat(position) { 48 | return `${position.longitude},${position.latitude}` 49 | } 50 | 51 | buildMapBoxUrl(mode, origin, destination, accessToken) { 52 | return `https://api.mapbox.com/directions/v5/mapbox/${mode}/${origin};${destination}.json?access_token=${accessToken}&steps=true&overview=full&geometries=polyline` 53 | } 54 | 55 | getCoordinates(json) { 56 | let route = [] 57 | 58 | if (json.routes.length > 0) { 59 | json.routes[0].legs.forEach(legs => { 60 | legs.steps.forEach(step => { 61 | polyline.decode(step.geometry).forEach(coord => route.push(coord)) 62 | }) 63 | }) 64 | } 65 | 66 | return route.map(l => ({latitude: l[0], longitude: l[1]})) 67 | } 68 | 69 | calculateRoute() { 70 | const mode = 'driving' 71 | const origin = this.buildLngLat(this.state.pickupPosition) 72 | const destination = this.buildLngLat(this.state.destinationPosition) 73 | const accessToken = mapBoxAccessToken 74 | const url = this.buildMapBoxUrl(mode, origin, destination, accessToken) 75 | 76 | fetch(url).then(response => response.json()).then(json => { 77 | this.setState({route: this.getCoordinates(json)}) 78 | }).catch(e => { 79 | console.warn(e) 80 | }) 81 | } 82 | 83 | queryDrivers() { 84 | let radius = 0.1 // 100m 85 | let currentLocation = [ 86 | this.state.passengerPosition.latitude, 87 | this.state.passengerPosition.longitude, 88 | ] 89 | 90 | let driversFound = {} 91 | 92 | let geoQuery = this.geoFire.query({center: currentLocation, radius}) 93 | 94 | geoQuery.on('key_entered', (key, location, distance) => { 95 | if (/driver:/.test(key)) { 96 | driversFound[key] = {key, location, distance} 97 | } 98 | }) 99 | 100 | let timeout = null 101 | 102 | geoQuery.on('ready', _ => { 103 | // update circle 104 | this.state.nearestDriverRadius.push(geoQuery.radius()) 105 | this.setState({nearestDriverRadius: this.state.nearestDriverRadius}) 106 | 107 | // clear previous timeout 108 | clearTimeout(timeout) 109 | 110 | timeout = setTimeout(_ => { 111 | if (Object.keys(driversFound).length === 0) { 112 | radius += 0.1 113 | geoQuery.updateCriteria({radius}) 114 | } else { 115 | clearTimeout(timeout) 116 | // find nearest 117 | let minDistance = -1, nearestDriver = null 118 | 119 | Object.keys(driversFound).forEach(key => { 120 | const driver = driversFound[key] 121 | 122 | if (driver.distance < minDistance || minDistance === -1) 123 | minDistance = driver.distance, nearestDriver = driver 124 | }) 125 | 126 | const nearestDriverKey = nearestDriver.key.split(':')[1] 127 | 128 | this.state.drivers.forEach(driver => { 129 | if (driver.id === nearestDriverKey) { 130 | this.setState({nearestDriver: driver}) 131 | } 132 | }) 133 | } 134 | }, 2000) 135 | }) 136 | } 137 | 138 | _onSubmit(e) { 139 | this.queryDrivers() 140 | } 141 | 142 | _onDragEnd(e) { 143 | this.setState({destinationPosition: e.nativeEvent.coordinate, coords: null}) 144 | this.updateAddress() 145 | 146 | InteractionManager.runAfterInteractions(_ => { 147 | this.calculateRoute() 148 | }) 149 | } 150 | 151 | _onRenderMap() { 152 | InteractionManager.runAfterInteractions(_ => { 153 | setTimeout(_ => { 154 | this.onChangePosition(this.state.passengerPosition) 155 | }, 1000) 156 | }) 157 | } 158 | 159 | renderNearestDriver() { 160 | if (this.state.nearestDriver === null) 161 | return 162 | 163 | return 165 | } 166 | 167 | renderNearestDriverRadius() { 168 | return this.state.nearestDriverRadius.map((radius, i) => { 169 | return 172 | }) 173 | } 174 | 175 | renderDestinationPosition() { 176 | const coordinate = this.state.destinationPosition 177 | 178 | return 183 | } 184 | 185 | renderRoute() { 186 | if (this.state.route !== null) { 187 | return ( 188 | 194 | ) 195 | } 196 | } 197 | 198 | renderSearchBar() { 199 | const searchBarStyle = StyleSheet.flatten([styles.searchBar, { 200 | top: this.layout.height - 120, 201 | width: this.layout.width - 30, 202 | }]) 203 | 204 | return ( 205 | 206 | this.setState({text})} 209 | value={this.state.address} 210 | /> 211 | 212 | Set destination 213 | 214 | 215 | ) 216 | } 217 | 218 | render() { 219 | if (!this.state.isReady) 220 | return null 221 | 222 | return ( 223 | 224 | 228 | 229 | {this.renderPassengerPosition()} 230 | {/*this.renderPickupPosition()*/} 231 | {this.renderDestinationPosition()} 232 | {this.renderNearestDriver()} 233 | {this.renderNearestDriverRadius()} 234 | {this.renderDrivers()} 235 | {this.renderRoute()} 236 | 237 | 238 | 239 | {this.renderSearchBar()} 240 | 241 | ) 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /components/login.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import * as firebase from 'firebase' 3 | import styles from '../styles' 4 | 5 | import { 6 | StyleSheet, 7 | TouchableHighlight, 8 | Text, 9 | Image, 10 | View, 11 | } from 'react-native' 12 | 13 | const FBSDK = require('react-native-fbsdk') 14 | const { 15 | LoginManager, AccessToken 16 | } = FBSDK 17 | 18 | // Images 19 | const redDotIcon = require('../assets/img/dot-red.png') 20 | const facebookLoginIcon = require('../assets/img/facebook-login.png') 21 | 22 | 23 | export default class Login extends Component { 24 | state = { 25 | isLoading: false, 26 | } 27 | 28 | constructor(props) { 29 | super(props) 30 | 31 | this.onClick = this._onClick.bind(this) 32 | } 33 | 34 | componentDidMount() { 35 | //firebase.auth().signOut() 36 | firebase.auth().onAuthStateChanged(user => { 37 | if (user) { 38 | this.props.navigator.push({ 39 | id: 'SetPickupPosition', 40 | title: 'Set pickup location', 41 | }) 42 | } 43 | }) 44 | } 45 | 46 | _onClick() { 47 | this.setState({isLoading: true}) 48 | 49 | const auth = firebase.auth() 50 | const facebook = firebase.auth.FacebookAuthProvider 51 | 52 | LoginManager.logInWithReadPermissions(['public_profile']).then(res => { 53 | if (!res.isCancelled) { 54 | AccessToken.getCurrentAccessToken().then(tokenRes => { 55 | const credential = facebook.credential(tokenRes.accessToken) 56 | return auth.signInWithCredential(credential) 57 | }).catch(err => { 58 | this.setState({isLoading: false}) 59 | console.log('login error: ' + err) 60 | }) 61 | } else { 62 | this.setState({isLoading: false}) 63 | console.log('login: user cancelled') 64 | } 65 | }) 66 | } 67 | 68 | render() { 69 | const style = StyleSheet.flatten([styles.container, { 70 | padding: 20, 71 | alignItems: 'center', 72 | marginTop: 100, 73 | }]) 74 | 75 | return 76 | 77 | {this.state.isLoading ? 78 | Loading... 79 | : 80 | 81 | } 82 | 83 | 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /components/pickup.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import { 4 | StyleSheet, 5 | Text, 6 | View, 7 | TextInput, 8 | TouchableHighlight, 9 | } from 'react-native' 10 | 11 | import MapView from 'react-native-maps' 12 | import MapMixin from '../mixins/map' 13 | import * as firebase from 'firebase' 14 | import styles from '../styles' 15 | 16 | 17 | export default class SetPickupPosition extends MapMixin { 18 | constructor(props) { 19 | super(props) 20 | 21 | this.onSubmit = this._onSubmit.bind(this) 22 | this.onDragEnd = this._onDragEnd.bind(this) 23 | 24 | this.state.pickupPosition = null 25 | } 26 | 27 | writePickupPosition() { 28 | const pickupPosition = this.state.pickupPosition || this.state.passengerPosition 29 | 30 | firebase.database().ref('users/' + this.userId).update({pickupPosition}) 31 | } 32 | 33 | _onSubmit(e) { 34 | this.writePickupPosition() 35 | 36 | this.props.navigator.push({ 37 | id: 'SetDestination', 38 | title: 'Set destination', 39 | passProps: { 40 | passengerPosition: this.state.passengerPosition, 41 | pickupPosition: this.state.pickupPosition || this.state.passengerPosition, 42 | }, 43 | }) 44 | } 45 | 46 | _onDragEnd(e) { 47 | this.setState({pickupPosition: e.nativeEvent.coordinate}) 48 | this.updateAddress() 49 | } 50 | 51 | renderSearchBar() { 52 | const searchBarStyle = StyleSheet.flatten([styles.searchBar, { 53 | top: this.layout.height - 120, 54 | width: this.layout.width - 30, 55 | }]) 56 | 57 | return ( 58 | 59 | this.setState({text})} 62 | value={this.state.address} 63 | /> 64 | 65 | Set pickup location 66 | 67 | 68 | ) 69 | } 70 | 71 | render() { 72 | if (!this.state.isReady) 73 | return null 74 | 75 | return ( 76 | 77 | 80 | 81 | {this.renderPassengerPosition()} 82 | {this.renderPickupPosition()} 83 | {this.renderDrivers()} 84 | 85 | 86 | 87 | {this.renderSearchBar()} 88 | 89 | ) 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /fake_drivers/fake_drivers.py: -------------------------------------------------------------------------------- 1 | import pyrebase 2 | import sys 3 | import random 4 | import math 5 | import time 6 | import os 7 | 8 | from os.path import join, dirname 9 | from dotenv import load_dotenv 10 | 11 | 12 | # Load configs from .env file 13 | dotenv_path = join(dirname(__file__), '..', '.env') 14 | load_dotenv(dotenv_path) 15 | 16 | 17 | UPDATE_TIMER = .5 # 1 second 18 | 19 | CONFIG = { 20 | 'apiKey': os.environ.get('apiKey'), 21 | 'authDomain': os.environ.get('authDomain'), 22 | 'databaseURL': os.environ.get('databaseURL'), 23 | 'storageBucket': os.environ.get('storageBucket'), 24 | 'serviceAccount': 'serviceAccountCredentials.json', 25 | } 26 | 27 | random.seed(math.pi) 28 | 29 | 30 | def main(latlng): 31 | latitude, longitude = parse_latlng(latlng) 32 | 33 | firebase = pyrebase.initialize_app(CONFIG) 34 | 35 | auth = firebase.auth() 36 | db = firebase.database() 37 | 38 | state = { 39 | 'latitude': latitude, 40 | 'longitude': longitude, 41 | 'db': db, 42 | } 43 | 44 | populate_fake_drivers(state) 45 | 46 | while True: 47 | updated_driver = update_random_driver(state) 48 | print('Updated driver -- {} '.format(updated_driver)) 49 | time.sleep(UPDATE_TIMER) 50 | 51 | def populate_fake_drivers(state): 52 | fake_drivers = get_fake_drivers(state['latitude'], state['longitude']) 53 | 54 | state['db'].child('drivers').remove() 55 | 56 | for driver in fake_drivers: 57 | state['db'].child('drivers').child(driver['id']).update(driver) 58 | 59 | state['fake_drivers'] = fake_drivers 60 | 61 | def update_random_driver(state): 62 | drivers = state['fake_drivers'] 63 | 64 | i = random.randint(0, len(drivers) - 1) 65 | driver = drivers[i] 66 | 67 | driver['position'] = random_position(driver['position']['latitude'], 68 | driver['position']['longitude']) 69 | 70 | state['db'].child('drivers').child(driver['id']).update(drivers[i]) 71 | 72 | return drivers[i] 73 | 74 | def get_fake_drivers(latitude, longitude): 75 | args = (latitude, longitude, 600) 76 | 77 | return [ 78 | {'id': 1, 'name': 'Blick', 'position': random_position(*args)}, 79 | {'id': 2, 'name': 'Flick', 'position': random_position(*args)}, 80 | {'id': 3, 'name': 'Glick', 'position': random_position(*args)}, 81 | {'id': 4, 'name': 'Plick', 'position': random_position(*args)}, 82 | {'id': 5, 'name': 'Quick', 'position': random_position(*args)}, 83 | {'id': 6, 'name': 'Snick', 'position': random_position(*args)}, 84 | {'id': 7, 'name': 'Whick', 'position': random_position(*args)}, 85 | ] 86 | 87 | def parse_latlng(latlng): 88 | return map(float, latlng.split(',', 1)) 89 | 90 | def random_position(latitude, longitude, meters=50): 91 | r = meters / 111300.0 92 | 93 | y0 = latitude 94 | x0 = longitude 95 | 96 | u = random.random() 97 | v = random.random() 98 | 99 | w = r * math.sqrt(u) 100 | t = 2 * math.pi * v 101 | 102 | x = w * math.cos(t) 103 | 104 | y1 = w * math.sin(t) 105 | x1 = x / math.cos(y0) 106 | 107 | return {'latitude': (y0 + y1), 'longitude': (x0 + x1)} 108 | 109 | 110 | main(*sys.argv[1:]) 111 | -------------------------------------------------------------------------------- /fake_drivers/requirements.txt: -------------------------------------------------------------------------------- 1 | Pyrebase==3.0.27 2 | python-dotenv==0.6.3 3 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | export default class UberProject extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | Welcome to React Native! 21 | 22 | 23 | To get started, edit index.android.js 24 | 25 | 26 | Double tap R on your keyboard to reload,{'\n'} 27 | Shake or press menu button for dev menu 28 | 29 | 30 | ); 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | container: { 36 | flex: 1, 37 | justifyContent: 'center', 38 | alignItems: 'center', 39 | backgroundColor: '#F5FCFF', 40 | }, 41 | welcome: { 42 | fontSize: 20, 43 | textAlign: 'center', 44 | margin: 10, 45 | }, 46 | instructions: { 47 | textAlign: 'center', 48 | color: '#333333', 49 | marginBottom: 5, 50 | }, 51 | }); 52 | 53 | AppRegistry.registerComponent('UberProject', () => UberProject); 54 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import * as firebase from 'firebase' 3 | 4 | import { 5 | AppRegistry, 6 | View, 7 | Navigator, 8 | } from 'react-native' 9 | 10 | // Load configs from .env file 11 | import { 12 | apiKey, 13 | authDomain, 14 | databaseURL, 15 | storageBucket, 16 | messagingSenderId, 17 | mapBoxAccessToken, 18 | } from 'react-native-dotenv' 19 | 20 | import Login from './components/login' 21 | import SetPickupPosition from './components/pickup' 22 | import SetDestination from './components/destination' 23 | import styles from './styles' 24 | 25 | 26 | export default class UberProject extends Component { 27 | state = { 28 | layout: null, 29 | } 30 | 31 | constructor(props) { 32 | super(props) 33 | 34 | firebase.initializeApp({apiKey, authDomain, databaseURL, storageBucket, 35 | messagingSenderId}) 36 | 37 | this.onLayout = this._onLayout.bind(this) 38 | this.renderScene = this._renderScene.bind(this) 39 | } 40 | 41 | _onLayout(e) { 42 | this.setState({layout: e.nativeEvent.layout}) 43 | } 44 | 45 | _renderScene(route, navigator) { 46 | let props = { 47 | layout: this.state.layout, 48 | route, 49 | navigator, 50 | } 51 | 52 | Object.assign(props, route.passProps || {}) 53 | 54 | switch (route.id) { 55 | case 'Login': 56 | return 57 | case 'SetPickupPosition': 58 | return 59 | case 'SetDestination': 60 | return 61 | } 62 | } 63 | 64 | render() { 65 | return ( 66 | 67 | {this.state.layout ? 68 | 73 | : null} 74 | 75 | ) 76 | } 77 | } 78 | 79 | 80 | AppRegistry.registerComponent('UberProject', () => UberProject) 81 | -------------------------------------------------------------------------------- /ios/UberProject-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/UberProject-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/UberProject.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 /* UberProjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* UberProjectTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 22BB82AC4C144AB3B339D9C2 /* libAirMaps.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E49057725C54F34A15B9354 /* libAirMaps.a */; }; 26 | 2500BD871E4E02A000316044 /* Bolts.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2500BD831E4E029F00316044 /* Bolts.framework */; }; 27 | 2500BD881E4E02A000316044 /* FBSDKCoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2500BD841E4E02A000316044 /* FBSDKCoreKit.framework */; }; 28 | 2500BD891E4E02A000316044 /* FBSDKLoginKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2500BD851E4E02A000316044 /* FBSDKLoginKit.framework */; }; 29 | 2500BD8A1E4E02A000316044 /* FBSDKShareKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2500BD861E4E02A000316044 /* FBSDKShareKit.framework */; }; 30 | 25FE733F1E4D644800956A66 /* libRNGeocoder.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 25FE733E1E4D642B00956A66 /* libRNGeocoder.a */; }; 31 | 265657020CC84B2493877F3B /* libRCTFBSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CB842C5A426C4F07A48F0B62 /* libRCTFBSDK.a */; }; 32 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 33 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 34 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 35 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 36 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 37 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 38 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 39 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 40 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 41 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 42 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 43 | 2DCD954D1E0B4F2C00145EB5 /* UberProjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* UberProjectTests.m */; }; 44 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 45 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 46 | /* End PBXBuildFile section */ 47 | 48 | /* Begin PBXContainerItemProxy section */ 49 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 50 | isa = PBXContainerItemProxy; 51 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 52 | proxyType = 2; 53 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 54 | remoteInfo = RCTActionSheet; 55 | }; 56 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 57 | isa = PBXContainerItemProxy; 58 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 59 | proxyType = 2; 60 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 61 | remoteInfo = RCTGeolocation; 62 | }; 63 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 66 | proxyType = 2; 67 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 68 | remoteInfo = RCTImage; 69 | }; 70 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 73 | proxyType = 2; 74 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 75 | remoteInfo = RCTNetwork; 76 | }; 77 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 80 | proxyType = 2; 81 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 82 | remoteInfo = RCTVibration; 83 | }; 84 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 87 | proxyType = 1; 88 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 89 | remoteInfo = UberProject; 90 | }; 91 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 96 | remoteInfo = RCTSettings; 97 | }; 98 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 101 | proxyType = 2; 102 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 103 | remoteInfo = RCTWebSocket; 104 | }; 105 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 106 | isa = PBXContainerItemProxy; 107 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 108 | proxyType = 2; 109 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 110 | remoteInfo = React; 111 | }; 112 | 2547EFB81E4DF88200EA26CC /* PBXContainerItemProxy */ = { 113 | isa = PBXContainerItemProxy; 114 | containerPortal = D0C9563638564C2CAA3D89E0 /* RCTFBLogin.xcodeproj */; 115 | proxyType = 2; 116 | remoteGlobalIDString = 4F3A6B5B1ACFBCC500CA65F7; 117 | remoteInfo = RCTFBLogin; 118 | }; 119 | 259781C11E4CE2D400FA4444 /* PBXContainerItemProxy */ = { 120 | isa = PBXContainerItemProxy; 121 | containerPortal = 96421112E7454BE88ACBAD61 /* AirMaps.xcodeproj */; 122 | proxyType = 2; 123 | remoteGlobalIDString = 11FA5C511C4A1296003AC2EE; 124 | remoteInfo = AirMaps; 125 | }; 126 | 25C6039F1E4E105100958E99 /* PBXContainerItemProxy */ = { 127 | isa = PBXContainerItemProxy; 128 | containerPortal = 62A8C4AE55F846B7AF318368 /* RCTFBSDK.xcodeproj */; 129 | proxyType = 2; 130 | remoteGlobalIDString = 9350E0F11CE3B0920041D815; 131 | remoteInfo = RCTFBSDK; 132 | }; 133 | 25FE733D1E4D642B00956A66 /* PBXContainerItemProxy */ = { 134 | isa = PBXContainerItemProxy; 135 | containerPortal = 25FE731F1E4D642B00956A66 /* RNGeocoder.xcodeproj */; 136 | proxyType = 2; 137 | remoteGlobalIDString = BF8FCF941BFFB184000FCD37; 138 | remoteInfo = RNGeocoder; 139 | }; 140 | 25FE736B1E4D646500956A66 /* PBXContainerItemProxy */ = { 141 | isa = PBXContainerItemProxy; 142 | containerPortal = 2378F06A8302448FA99467E1 /* RNGeocoder.xcodeproj */; 143 | proxyType = 2; 144 | remoteGlobalIDString = BF8FCF941BFFB184000FCD37; 145 | remoteInfo = RNGeocoder; 146 | }; 147 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 148 | isa = PBXContainerItemProxy; 149 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 150 | proxyType = 1; 151 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 152 | remoteInfo = "UberProject-tvOS"; 153 | }; 154 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 155 | isa = PBXContainerItemProxy; 156 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 157 | proxyType = 2; 158 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 159 | remoteInfo = "RCTImage-tvOS"; 160 | }; 161 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 162 | isa = PBXContainerItemProxy; 163 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 164 | proxyType = 2; 165 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 166 | remoteInfo = "RCTLinking-tvOS"; 167 | }; 168 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 169 | isa = PBXContainerItemProxy; 170 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 171 | proxyType = 2; 172 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 173 | remoteInfo = "RCTNetwork-tvOS"; 174 | }; 175 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 176 | isa = PBXContainerItemProxy; 177 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 178 | proxyType = 2; 179 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 180 | remoteInfo = "RCTSettings-tvOS"; 181 | }; 182 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 183 | isa = PBXContainerItemProxy; 184 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 185 | proxyType = 2; 186 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 187 | remoteInfo = "RCTText-tvOS"; 188 | }; 189 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 190 | isa = PBXContainerItemProxy; 191 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 192 | proxyType = 2; 193 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 194 | remoteInfo = "RCTWebSocket-tvOS"; 195 | }; 196 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 197 | isa = PBXContainerItemProxy; 198 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 199 | proxyType = 2; 200 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 201 | remoteInfo = "React-tvOS"; 202 | }; 203 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 204 | isa = PBXContainerItemProxy; 205 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 206 | proxyType = 2; 207 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 208 | remoteInfo = yoga; 209 | }; 210 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 211 | isa = PBXContainerItemProxy; 212 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 213 | proxyType = 2; 214 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 215 | remoteInfo = "yoga-tvOS"; 216 | }; 217 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 218 | isa = PBXContainerItemProxy; 219 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 220 | proxyType = 2; 221 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 222 | remoteInfo = cxxreact; 223 | }; 224 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 225 | isa = PBXContainerItemProxy; 226 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 227 | proxyType = 2; 228 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 229 | remoteInfo = "cxxreact-tvOS"; 230 | }; 231 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 232 | isa = PBXContainerItemProxy; 233 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 234 | proxyType = 2; 235 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 236 | remoteInfo = jschelpers; 237 | }; 238 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 239 | isa = PBXContainerItemProxy; 240 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 241 | proxyType = 2; 242 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 243 | remoteInfo = "jschelpers-tvOS"; 244 | }; 245 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 246 | isa = PBXContainerItemProxy; 247 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 248 | proxyType = 2; 249 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 250 | remoteInfo = RCTAnimation; 251 | }; 252 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 253 | isa = PBXContainerItemProxy; 254 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 255 | proxyType = 2; 256 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 257 | remoteInfo = "RCTAnimation-tvOS"; 258 | }; 259 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 260 | isa = PBXContainerItemProxy; 261 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 262 | proxyType = 2; 263 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 264 | remoteInfo = RCTLinking; 265 | }; 266 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 267 | isa = PBXContainerItemProxy; 268 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 269 | proxyType = 2; 270 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 271 | remoteInfo = RCTText; 272 | }; 273 | /* End PBXContainerItemProxy section */ 274 | 275 | /* Begin PBXFileReference section */ 276 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 277 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 278 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 279 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 280 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 281 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 282 | 00E356EE1AD99517003FC87E /* UberProjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UberProjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 283 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 284 | 00E356F21AD99517003FC87E /* UberProjectTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UberProjectTests.m; sourceTree = ""; }; 285 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 286 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 287 | 13B07F961A680F5B00A75B9A /* UberProject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UberProject.app; sourceTree = BUILT_PRODUCTS_DIR; }; 288 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = UberProject/AppDelegate.h; sourceTree = ""; }; 289 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = UberProject/AppDelegate.m; sourceTree = ""; }; 290 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 291 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = UberProject/Images.xcassets; sourceTree = ""; }; 292 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = UberProject/Info.plist; sourceTree = ""; }; 293 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = UberProject/main.m; sourceTree = ""; }; 294 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 295 | 2378F06A8302448FA99467E1 /* RNGeocoder.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNGeocoder.xcodeproj; path = "../node_modules/react-native-geocoder/ios/RNGeocoder.xcodeproj"; sourceTree = ""; }; 296 | 2500BD831E4E029F00316044 /* Bolts.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Bolts.framework; path = ../../../../Documents/FacebookSDK/Bolts.framework; sourceTree = ""; }; 297 | 2500BD841E4E02A000316044 /* FBSDKCoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKCoreKit.framework; path = ../../../../Documents/FacebookSDK/FBSDKCoreKit.framework; sourceTree = ""; }; 298 | 2500BD851E4E02A000316044 /* FBSDKLoginKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKLoginKit.framework; path = ../../../../Documents/FacebookSDK/FBSDKLoginKit.framework; sourceTree = ""; }; 299 | 2500BD861E4E02A000316044 /* FBSDKShareKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKShareKit.framework; path = ../../../../Documents/FacebookSDK/FBSDKShareKit.framework; sourceTree = ""; }; 300 | 2547EF9E1E4DF69000EA26CC /* node_modules */ = {isa = PBXFileReference; lastKnownFileType = folder; name = node_modules; path = ../node_modules; sourceTree = ""; }; 301 | 25FE731F1E4D642B00956A66 /* RNGeocoder.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNGeocoder.xcodeproj; path = "../node_modules/react-native-geocoder/ios/RNGeocoder.xcodeproj"; sourceTree = ""; }; 302 | 2D02E47B1E0B4A5D006451C7 /* UberProject-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "UberProject-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 303 | 2D02E4901E0B4A5D006451C7 /* UberProject-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UberProject-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 304 | 3E49057725C54F34A15B9354 /* libAirMaps.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libAirMaps.a; sourceTree = ""; }; 305 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 306 | 62A8C4AE55F846B7AF318368 /* RCTFBSDK.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTFBSDK.xcodeproj; path = "../node_modules/react-native-fbsdk/ios/RCTFBSDK.xcodeproj"; sourceTree = ""; }; 307 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 308 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 309 | 96421112E7454BE88ACBAD61 /* AirMaps.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = AirMaps.xcodeproj; path = "../node_modules/react-native-maps/ios/AirMaps.xcodeproj"; sourceTree = ""; }; 310 | CB842C5A426C4F07A48F0B62 /* libRCTFBSDK.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTFBSDK.a; sourceTree = ""; }; 311 | D0C9563638564C2CAA3D89E0 /* RCTFBLogin.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTFBLogin.xcodeproj; path = "../node_modules/react-native-facebook-login/RCTFBLogin.xcodeproj"; sourceTree = ""; }; 312 | /* End PBXFileReference section */ 313 | 314 | /* Begin PBXFrameworksBuildPhase section */ 315 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 316 | isa = PBXFrameworksBuildPhase; 317 | buildActionMask = 2147483647; 318 | files = ( 319 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 324 | isa = PBXFrameworksBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | 2500BD881E4E02A000316044 /* FBSDKCoreKit.framework in Frameworks */, 328 | 2500BD8A1E4E02A000316044 /* FBSDKShareKit.framework in Frameworks */, 329 | 2500BD891E4E02A000316044 /* FBSDKLoginKit.framework in Frameworks */, 330 | 2500BD871E4E02A000316044 /* Bolts.framework in Frameworks */, 331 | 25FE733F1E4D644800956A66 /* libRNGeocoder.a in Frameworks */, 332 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 333 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 334 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 335 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 336 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 337 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 338 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 339 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 340 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 341 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 342 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 343 | 22BB82AC4C144AB3B339D9C2 /* libAirMaps.a in Frameworks */, 344 | 265657020CC84B2493877F3B /* libRCTFBSDK.a in Frameworks */, 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 349 | isa = PBXFrameworksBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 353 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 354 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 355 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 356 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 357 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 358 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 359 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 364 | isa = PBXFrameworksBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | /* End PBXFrameworksBuildPhase section */ 371 | 372 | /* Begin PBXGroup section */ 373 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 374 | isa = PBXGroup; 375 | children = ( 376 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 377 | ); 378 | name = Products; 379 | sourceTree = ""; 380 | }; 381 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 382 | isa = PBXGroup; 383 | children = ( 384 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 385 | ); 386 | name = Products; 387 | sourceTree = ""; 388 | }; 389 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 390 | isa = PBXGroup; 391 | children = ( 392 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 393 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 394 | ); 395 | name = Products; 396 | sourceTree = ""; 397 | }; 398 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 399 | isa = PBXGroup; 400 | children = ( 401 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 402 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 403 | ); 404 | name = Products; 405 | sourceTree = ""; 406 | }; 407 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 408 | isa = PBXGroup; 409 | children = ( 410 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 411 | ); 412 | name = Products; 413 | sourceTree = ""; 414 | }; 415 | 00E356EF1AD99517003FC87E /* UberProjectTests */ = { 416 | isa = PBXGroup; 417 | children = ( 418 | 00E356F21AD99517003FC87E /* UberProjectTests.m */, 419 | 00E356F01AD99517003FC87E /* Supporting Files */, 420 | ); 421 | path = UberProjectTests; 422 | sourceTree = ""; 423 | }; 424 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 425 | isa = PBXGroup; 426 | children = ( 427 | 00E356F11AD99517003FC87E /* Info.plist */, 428 | ); 429 | name = "Supporting Files"; 430 | sourceTree = ""; 431 | }; 432 | 139105B71AF99BAD00B5F7CC /* Products */ = { 433 | isa = PBXGroup; 434 | children = ( 435 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 436 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 437 | ); 438 | name = Products; 439 | sourceTree = ""; 440 | }; 441 | 139FDEE71B06529A00C62182 /* Products */ = { 442 | isa = PBXGroup; 443 | children = ( 444 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 445 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 446 | ); 447 | name = Products; 448 | sourceTree = ""; 449 | }; 450 | 13B07FAE1A68108700A75B9A /* UberProject */ = { 451 | isa = PBXGroup; 452 | children = ( 453 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 454 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 455 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 456 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 457 | 13B07FB61A68108700A75B9A /* Info.plist */, 458 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 459 | 13B07FB71A68108700A75B9A /* main.m */, 460 | ); 461 | name = UberProject; 462 | sourceTree = ""; 463 | }; 464 | 146834001AC3E56700842450 /* Products */ = { 465 | isa = PBXGroup; 466 | children = ( 467 | 146834041AC3E56700842450 /* libReact.a */, 468 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 469 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 470 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 471 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 472 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 473 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 474 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 475 | ); 476 | name = Products; 477 | sourceTree = ""; 478 | }; 479 | 2547EFB01E4DF88100EA26CC /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 2547EFB91E4DF88200EA26CC /* libRCTFBLogin.a */, 483 | ); 484 | name = Products; 485 | sourceTree = ""; 486 | }; 487 | 259781BE1E4CE2D400FA4444 /* Products */ = { 488 | isa = PBXGroup; 489 | children = ( 490 | 259781C21E4CE2D400FA4444 /* libAirMaps.a */, 491 | ); 492 | name = Products; 493 | sourceTree = ""; 494 | }; 495 | 25C603981E4E105100958E99 /* Products */ = { 496 | isa = PBXGroup; 497 | children = ( 498 | 25C603A01E4E105100958E99 /* libRCTFBSDK.a */, 499 | ); 500 | name = Products; 501 | sourceTree = ""; 502 | }; 503 | 25FE731E1E4D642B00956A66 /* Frameworks */ = { 504 | isa = PBXGroup; 505 | children = ( 506 | 2500BD831E4E029F00316044 /* Bolts.framework */, 507 | 2500BD841E4E02A000316044 /* FBSDKCoreKit.framework */, 508 | 2500BD851E4E02A000316044 /* FBSDKLoginKit.framework */, 509 | 2500BD861E4E02A000316044 /* FBSDKShareKit.framework */, 510 | 2547EF9E1E4DF69000EA26CC /* node_modules */, 511 | 25FE731F1E4D642B00956A66 /* RNGeocoder.xcodeproj */, 512 | ); 513 | name = Frameworks; 514 | sourceTree = ""; 515 | }; 516 | 25FE73201E4D642B00956A66 /* Products */ = { 517 | isa = PBXGroup; 518 | children = ( 519 | 25FE733E1E4D642B00956A66 /* libRNGeocoder.a */, 520 | ); 521 | name = Products; 522 | sourceTree = ""; 523 | }; 524 | 25FE734D1E4D646500956A66 /* Products */ = { 525 | isa = PBXGroup; 526 | children = ( 527 | 25FE736C1E4D646500956A66 /* libRNGeocoder.a */, 528 | ); 529 | name = Products; 530 | sourceTree = ""; 531 | }; 532 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 533 | isa = PBXGroup; 534 | children = ( 535 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 536 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 537 | ); 538 | name = Products; 539 | sourceTree = ""; 540 | }; 541 | 78C398B11ACF4ADC00677621 /* Products */ = { 542 | isa = PBXGroup; 543 | children = ( 544 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 545 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 546 | ); 547 | name = Products; 548 | sourceTree = ""; 549 | }; 550 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 551 | isa = PBXGroup; 552 | children = ( 553 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 554 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 555 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 556 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 557 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 558 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 559 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 560 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 561 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 562 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 563 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 564 | 96421112E7454BE88ACBAD61 /* AirMaps.xcodeproj */, 565 | 2378F06A8302448FA99467E1 /* RNGeocoder.xcodeproj */, 566 | D0C9563638564C2CAA3D89E0 /* RCTFBLogin.xcodeproj */, 567 | 62A8C4AE55F846B7AF318368 /* RCTFBSDK.xcodeproj */, 568 | ); 569 | name = Libraries; 570 | sourceTree = ""; 571 | }; 572 | 832341B11AAA6A8300B99B32 /* Products */ = { 573 | isa = PBXGroup; 574 | children = ( 575 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 576 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 577 | ); 578 | name = Products; 579 | sourceTree = ""; 580 | }; 581 | 83CBB9F61A601CBA00E9B192 = { 582 | isa = PBXGroup; 583 | children = ( 584 | 13B07FAE1A68108700A75B9A /* UberProject */, 585 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 586 | 00E356EF1AD99517003FC87E /* UberProjectTests */, 587 | 83CBBA001A601CBA00E9B192 /* Products */, 588 | 25FE731E1E4D642B00956A66 /* Frameworks */, 589 | ); 590 | indentWidth = 2; 591 | sourceTree = ""; 592 | tabWidth = 2; 593 | }; 594 | 83CBBA001A601CBA00E9B192 /* Products */ = { 595 | isa = PBXGroup; 596 | children = ( 597 | 13B07F961A680F5B00A75B9A /* UberProject.app */, 598 | 00E356EE1AD99517003FC87E /* UberProjectTests.xctest */, 599 | 2D02E47B1E0B4A5D006451C7 /* UberProject-tvOS.app */, 600 | 2D02E4901E0B4A5D006451C7 /* UberProject-tvOSTests.xctest */, 601 | ); 602 | name = Products; 603 | sourceTree = ""; 604 | }; 605 | /* End PBXGroup section */ 606 | 607 | /* Begin PBXNativeTarget section */ 608 | 00E356ED1AD99517003FC87E /* UberProjectTests */ = { 609 | isa = PBXNativeTarget; 610 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "UberProjectTests" */; 611 | buildPhases = ( 612 | 00E356EA1AD99517003FC87E /* Sources */, 613 | 00E356EB1AD99517003FC87E /* Frameworks */, 614 | 00E356EC1AD99517003FC87E /* Resources */, 615 | ); 616 | buildRules = ( 617 | ); 618 | dependencies = ( 619 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 620 | ); 621 | name = UberProjectTests; 622 | productName = UberProjectTests; 623 | productReference = 00E356EE1AD99517003FC87E /* UberProjectTests.xctest */; 624 | productType = "com.apple.product-type.bundle.unit-test"; 625 | }; 626 | 13B07F861A680F5B00A75B9A /* UberProject */ = { 627 | isa = PBXNativeTarget; 628 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "UberProject" */; 629 | buildPhases = ( 630 | 13B07F871A680F5B00A75B9A /* Sources */, 631 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 632 | 13B07F8E1A680F5B00A75B9A /* Resources */, 633 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 634 | ); 635 | buildRules = ( 636 | ); 637 | dependencies = ( 638 | ); 639 | name = UberProject; 640 | productName = "Hello World"; 641 | productReference = 13B07F961A680F5B00A75B9A /* UberProject.app */; 642 | productType = "com.apple.product-type.application"; 643 | }; 644 | 2D02E47A1E0B4A5D006451C7 /* UberProject-tvOS */ = { 645 | isa = PBXNativeTarget; 646 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberProject-tvOS" */; 647 | buildPhases = ( 648 | 2D02E4771E0B4A5D006451C7 /* Sources */, 649 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 650 | 2D02E4791E0B4A5D006451C7 /* Resources */, 651 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 652 | ); 653 | buildRules = ( 654 | ); 655 | dependencies = ( 656 | ); 657 | name = "UberProject-tvOS"; 658 | productName = "UberProject-tvOS"; 659 | productReference = 2D02E47B1E0B4A5D006451C7 /* UberProject-tvOS.app */; 660 | productType = "com.apple.product-type.application"; 661 | }; 662 | 2D02E48F1E0B4A5D006451C7 /* UberProject-tvOSTests */ = { 663 | isa = PBXNativeTarget; 664 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberProject-tvOSTests" */; 665 | buildPhases = ( 666 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 667 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 668 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 669 | ); 670 | buildRules = ( 671 | ); 672 | dependencies = ( 673 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 674 | ); 675 | name = "UberProject-tvOSTests"; 676 | productName = "UberProject-tvOSTests"; 677 | productReference = 2D02E4901E0B4A5D006451C7 /* UberProject-tvOSTests.xctest */; 678 | productType = "com.apple.product-type.bundle.unit-test"; 679 | }; 680 | /* End PBXNativeTarget section */ 681 | 682 | /* Begin PBXProject section */ 683 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 684 | isa = PBXProject; 685 | attributes = { 686 | LastUpgradeCheck = 610; 687 | ORGANIZATIONNAME = Facebook; 688 | TargetAttributes = { 689 | 00E356ED1AD99517003FC87E = { 690 | CreatedOnToolsVersion = 6.2; 691 | DevelopmentTeam = V49Q2F6TZU; 692 | TestTargetID = 13B07F861A680F5B00A75B9A; 693 | }; 694 | 13B07F861A680F5B00A75B9A = { 695 | DevelopmentTeam = V49Q2F6TZU; 696 | }; 697 | 2D02E47A1E0B4A5D006451C7 = { 698 | CreatedOnToolsVersion = 8.2.1; 699 | ProvisioningStyle = Automatic; 700 | }; 701 | 2D02E48F1E0B4A5D006451C7 = { 702 | CreatedOnToolsVersion = 8.2.1; 703 | ProvisioningStyle = Automatic; 704 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 705 | }; 706 | }; 707 | }; 708 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "UberProject" */; 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 = 259781BE1E4CE2D400FA4444 /* Products */; 722 | ProjectRef = 96421112E7454BE88ACBAD61 /* AirMaps.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 = 2547EFB01E4DF88100EA26CC /* Products */; 734 | ProjectRef = D0C9563638564C2CAA3D89E0 /* RCTFBLogin.xcodeproj */; 735 | }, 736 | { 737 | ProductGroup = 25C603981E4E105100958E99 /* Products */; 738 | ProjectRef = 62A8C4AE55F846B7AF318368 /* RCTFBSDK.xcodeproj */; 739 | }, 740 | { 741 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 742 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 743 | }, 744 | { 745 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 746 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 747 | }, 748 | { 749 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 750 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 751 | }, 752 | { 753 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 754 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 755 | }, 756 | { 757 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 758 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 759 | }, 760 | { 761 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 762 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 763 | }, 764 | { 765 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 766 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 767 | }, 768 | { 769 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 770 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 771 | }, 772 | { 773 | ProductGroup = 146834001AC3E56700842450 /* Products */; 774 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 775 | }, 776 | { 777 | ProductGroup = 25FE73201E4D642B00956A66 /* Products */; 778 | ProjectRef = 25FE731F1E4D642B00956A66 /* RNGeocoder.xcodeproj */; 779 | }, 780 | { 781 | ProductGroup = 25FE734D1E4D646500956A66 /* Products */; 782 | ProjectRef = 2378F06A8302448FA99467E1 /* RNGeocoder.xcodeproj */; 783 | }, 784 | ); 785 | projectRoot = ""; 786 | targets = ( 787 | 13B07F861A680F5B00A75B9A /* UberProject */, 788 | 00E356ED1AD99517003FC87E /* UberProjectTests */, 789 | 2D02E47A1E0B4A5D006451C7 /* UberProject-tvOS */, 790 | 2D02E48F1E0B4A5D006451C7 /* UberProject-tvOSTests */, 791 | ); 792 | }; 793 | /* End PBXProject section */ 794 | 795 | /* Begin PBXReferenceProxy section */ 796 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 797 | isa = PBXReferenceProxy; 798 | fileType = archive.ar; 799 | path = libRCTActionSheet.a; 800 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 801 | sourceTree = BUILT_PRODUCTS_DIR; 802 | }; 803 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 804 | isa = PBXReferenceProxy; 805 | fileType = archive.ar; 806 | path = libRCTGeolocation.a; 807 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 808 | sourceTree = BUILT_PRODUCTS_DIR; 809 | }; 810 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 811 | isa = PBXReferenceProxy; 812 | fileType = archive.ar; 813 | path = libRCTImage.a; 814 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 815 | sourceTree = BUILT_PRODUCTS_DIR; 816 | }; 817 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 818 | isa = PBXReferenceProxy; 819 | fileType = archive.ar; 820 | path = libRCTNetwork.a; 821 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 822 | sourceTree = BUILT_PRODUCTS_DIR; 823 | }; 824 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 825 | isa = PBXReferenceProxy; 826 | fileType = archive.ar; 827 | path = libRCTVibration.a; 828 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 829 | sourceTree = BUILT_PRODUCTS_DIR; 830 | }; 831 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 832 | isa = PBXReferenceProxy; 833 | fileType = archive.ar; 834 | path = libRCTSettings.a; 835 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 836 | sourceTree = BUILT_PRODUCTS_DIR; 837 | }; 838 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 839 | isa = PBXReferenceProxy; 840 | fileType = archive.ar; 841 | path = libRCTWebSocket.a; 842 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 843 | sourceTree = BUILT_PRODUCTS_DIR; 844 | }; 845 | 146834041AC3E56700842450 /* libReact.a */ = { 846 | isa = PBXReferenceProxy; 847 | fileType = archive.ar; 848 | path = libReact.a; 849 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 850 | sourceTree = BUILT_PRODUCTS_DIR; 851 | }; 852 | 2547EFB91E4DF88200EA26CC /* libRCTFBLogin.a */ = { 853 | isa = PBXReferenceProxy; 854 | fileType = archive.ar; 855 | path = libRCTFBLogin.a; 856 | remoteRef = 2547EFB81E4DF88200EA26CC /* PBXContainerItemProxy */; 857 | sourceTree = BUILT_PRODUCTS_DIR; 858 | }; 859 | 259781C21E4CE2D400FA4444 /* libAirMaps.a */ = { 860 | isa = PBXReferenceProxy; 861 | fileType = archive.ar; 862 | path = libAirMaps.a; 863 | remoteRef = 259781C11E4CE2D400FA4444 /* PBXContainerItemProxy */; 864 | sourceTree = BUILT_PRODUCTS_DIR; 865 | }; 866 | 25C603A01E4E105100958E99 /* libRCTFBSDK.a */ = { 867 | isa = PBXReferenceProxy; 868 | fileType = archive.ar; 869 | path = libRCTFBSDK.a; 870 | remoteRef = 25C6039F1E4E105100958E99 /* PBXContainerItemProxy */; 871 | sourceTree = BUILT_PRODUCTS_DIR; 872 | }; 873 | 25FE733E1E4D642B00956A66 /* libRNGeocoder.a */ = { 874 | isa = PBXReferenceProxy; 875 | fileType = archive.ar; 876 | path = libRNGeocoder.a; 877 | remoteRef = 25FE733D1E4D642B00956A66 /* PBXContainerItemProxy */; 878 | sourceTree = BUILT_PRODUCTS_DIR; 879 | }; 880 | 25FE736C1E4D646500956A66 /* libRNGeocoder.a */ = { 881 | isa = PBXReferenceProxy; 882 | fileType = archive.ar; 883 | path = libRNGeocoder.a; 884 | remoteRef = 25FE736B1E4D646500956A66 /* PBXContainerItemProxy */; 885 | sourceTree = BUILT_PRODUCTS_DIR; 886 | }; 887 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 888 | isa = PBXReferenceProxy; 889 | fileType = archive.ar; 890 | path = "libRCTImage-tvOS.a"; 891 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 892 | sourceTree = BUILT_PRODUCTS_DIR; 893 | }; 894 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 895 | isa = PBXReferenceProxy; 896 | fileType = archive.ar; 897 | path = "libRCTLinking-tvOS.a"; 898 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 899 | sourceTree = BUILT_PRODUCTS_DIR; 900 | }; 901 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 902 | isa = PBXReferenceProxy; 903 | fileType = archive.ar; 904 | path = "libRCTNetwork-tvOS.a"; 905 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 906 | sourceTree = BUILT_PRODUCTS_DIR; 907 | }; 908 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 909 | isa = PBXReferenceProxy; 910 | fileType = archive.ar; 911 | path = "libRCTSettings-tvOS.a"; 912 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 913 | sourceTree = BUILT_PRODUCTS_DIR; 914 | }; 915 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 916 | isa = PBXReferenceProxy; 917 | fileType = archive.ar; 918 | path = "libRCTText-tvOS.a"; 919 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 920 | sourceTree = BUILT_PRODUCTS_DIR; 921 | }; 922 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 923 | isa = PBXReferenceProxy; 924 | fileType = archive.ar; 925 | path = "libRCTWebSocket-tvOS.a"; 926 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 927 | sourceTree = BUILT_PRODUCTS_DIR; 928 | }; 929 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 930 | isa = PBXReferenceProxy; 931 | fileType = archive.ar; 932 | path = libReact.a; 933 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 934 | sourceTree = BUILT_PRODUCTS_DIR; 935 | }; 936 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 937 | isa = PBXReferenceProxy; 938 | fileType = archive.ar; 939 | path = libyoga.a; 940 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 941 | sourceTree = BUILT_PRODUCTS_DIR; 942 | }; 943 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 944 | isa = PBXReferenceProxy; 945 | fileType = archive.ar; 946 | path = libyoga.a; 947 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 948 | sourceTree = BUILT_PRODUCTS_DIR; 949 | }; 950 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 951 | isa = PBXReferenceProxy; 952 | fileType = archive.ar; 953 | path = libcxxreact.a; 954 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 955 | sourceTree = BUILT_PRODUCTS_DIR; 956 | }; 957 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 958 | isa = PBXReferenceProxy; 959 | fileType = archive.ar; 960 | path = libcxxreact.a; 961 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 962 | sourceTree = BUILT_PRODUCTS_DIR; 963 | }; 964 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 965 | isa = PBXReferenceProxy; 966 | fileType = archive.ar; 967 | path = libjschelpers.a; 968 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 969 | sourceTree = BUILT_PRODUCTS_DIR; 970 | }; 971 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 972 | isa = PBXReferenceProxy; 973 | fileType = archive.ar; 974 | path = libjschelpers.a; 975 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 976 | sourceTree = BUILT_PRODUCTS_DIR; 977 | }; 978 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 979 | isa = PBXReferenceProxy; 980 | fileType = archive.ar; 981 | path = libRCTAnimation.a; 982 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 983 | sourceTree = BUILT_PRODUCTS_DIR; 984 | }; 985 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 986 | isa = PBXReferenceProxy; 987 | fileType = archive.ar; 988 | path = "libRCTAnimation-tvOS.a"; 989 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 990 | sourceTree = BUILT_PRODUCTS_DIR; 991 | }; 992 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 993 | isa = PBXReferenceProxy; 994 | fileType = archive.ar; 995 | path = libRCTLinking.a; 996 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 997 | sourceTree = BUILT_PRODUCTS_DIR; 998 | }; 999 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1000 | isa = PBXReferenceProxy; 1001 | fileType = archive.ar; 1002 | path = libRCTText.a; 1003 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1004 | sourceTree = BUILT_PRODUCTS_DIR; 1005 | }; 1006 | /* End PBXReferenceProxy section */ 1007 | 1008 | /* Begin PBXResourcesBuildPhase section */ 1009 | 00E356EC1AD99517003FC87E /* Resources */ = { 1010 | isa = PBXResourcesBuildPhase; 1011 | buildActionMask = 2147483647; 1012 | files = ( 1013 | ); 1014 | runOnlyForDeploymentPostprocessing = 0; 1015 | }; 1016 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1017 | isa = PBXResourcesBuildPhase; 1018 | buildActionMask = 2147483647; 1019 | files = ( 1020 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1021 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1022 | ); 1023 | runOnlyForDeploymentPostprocessing = 0; 1024 | }; 1025 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1026 | isa = PBXResourcesBuildPhase; 1027 | buildActionMask = 2147483647; 1028 | files = ( 1029 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1030 | ); 1031 | runOnlyForDeploymentPostprocessing = 0; 1032 | }; 1033 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1034 | isa = PBXResourcesBuildPhase; 1035 | buildActionMask = 2147483647; 1036 | files = ( 1037 | ); 1038 | runOnlyForDeploymentPostprocessing = 0; 1039 | }; 1040 | /* End PBXResourcesBuildPhase section */ 1041 | 1042 | /* Begin PBXShellScriptBuildPhase section */ 1043 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1044 | isa = PBXShellScriptBuildPhase; 1045 | buildActionMask = 2147483647; 1046 | files = ( 1047 | ); 1048 | inputPaths = ( 1049 | ); 1050 | name = "Bundle React Native code and images"; 1051 | outputPaths = ( 1052 | ); 1053 | runOnlyForDeploymentPostprocessing = 0; 1054 | shellPath = /bin/sh; 1055 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 1056 | }; 1057 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1058 | isa = PBXShellScriptBuildPhase; 1059 | buildActionMask = 2147483647; 1060 | files = ( 1061 | ); 1062 | inputPaths = ( 1063 | ); 1064 | name = "Bundle React Native Code And Images"; 1065 | outputPaths = ( 1066 | ); 1067 | runOnlyForDeploymentPostprocessing = 0; 1068 | shellPath = /bin/sh; 1069 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 1070 | }; 1071 | /* End PBXShellScriptBuildPhase section */ 1072 | 1073 | /* Begin PBXSourcesBuildPhase section */ 1074 | 00E356EA1AD99517003FC87E /* Sources */ = { 1075 | isa = PBXSourcesBuildPhase; 1076 | buildActionMask = 2147483647; 1077 | files = ( 1078 | 00E356F31AD99517003FC87E /* UberProjectTests.m in Sources */, 1079 | ); 1080 | runOnlyForDeploymentPostprocessing = 0; 1081 | }; 1082 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1083 | isa = PBXSourcesBuildPhase; 1084 | buildActionMask = 2147483647; 1085 | files = ( 1086 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1087 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1088 | ); 1089 | runOnlyForDeploymentPostprocessing = 0; 1090 | }; 1091 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1092 | isa = PBXSourcesBuildPhase; 1093 | buildActionMask = 2147483647; 1094 | files = ( 1095 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1096 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1097 | ); 1098 | runOnlyForDeploymentPostprocessing = 0; 1099 | }; 1100 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1101 | isa = PBXSourcesBuildPhase; 1102 | buildActionMask = 2147483647; 1103 | files = ( 1104 | 2DCD954D1E0B4F2C00145EB5 /* UberProjectTests.m in Sources */, 1105 | ); 1106 | runOnlyForDeploymentPostprocessing = 0; 1107 | }; 1108 | /* End PBXSourcesBuildPhase section */ 1109 | 1110 | /* Begin PBXTargetDependency section */ 1111 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1112 | isa = PBXTargetDependency; 1113 | target = 13B07F861A680F5B00A75B9A /* UberProject */; 1114 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1115 | }; 1116 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1117 | isa = PBXTargetDependency; 1118 | target = 2D02E47A1E0B4A5D006451C7 /* UberProject-tvOS */; 1119 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1120 | }; 1121 | /* End PBXTargetDependency section */ 1122 | 1123 | /* Begin PBXVariantGroup section */ 1124 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1125 | isa = PBXVariantGroup; 1126 | children = ( 1127 | 13B07FB21A68108700A75B9A /* Base */, 1128 | ); 1129 | name = LaunchScreen.xib; 1130 | path = UberProject; 1131 | sourceTree = ""; 1132 | }; 1133 | /* End PBXVariantGroup section */ 1134 | 1135 | /* Begin XCBuildConfiguration section */ 1136 | 00E356F61AD99517003FC87E /* Debug */ = { 1137 | isa = XCBuildConfiguration; 1138 | buildSettings = { 1139 | BUNDLE_LOADER = "$(TEST_HOST)"; 1140 | DEVELOPMENT_TEAM = V49Q2F6TZU; 1141 | GCC_PREPROCESSOR_DEFINITIONS = ( 1142 | "DEBUG=1", 1143 | "$(inherited)", 1144 | ); 1145 | INFOPLIST_FILE = UberProjectTests/Info.plist; 1146 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1147 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1148 | LIBRARY_SEARCH_PATHS = ( 1149 | "$(inherited)", 1150 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1151 | ); 1152 | OTHER_LDFLAGS = ( 1153 | "-ObjC", 1154 | "-lc++", 1155 | ); 1156 | PRODUCT_NAME = "$(TARGET_NAME)"; 1157 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberProject.app/UberProject"; 1158 | }; 1159 | name = Debug; 1160 | }; 1161 | 00E356F71AD99517003FC87E /* Release */ = { 1162 | isa = XCBuildConfiguration; 1163 | buildSettings = { 1164 | BUNDLE_LOADER = "$(TEST_HOST)"; 1165 | COPY_PHASE_STRIP = NO; 1166 | DEVELOPMENT_TEAM = V49Q2F6TZU; 1167 | INFOPLIST_FILE = UberProjectTests/Info.plist; 1168 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1169 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1170 | LIBRARY_SEARCH_PATHS = ( 1171 | "$(inherited)", 1172 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1173 | ); 1174 | OTHER_LDFLAGS = ( 1175 | "-ObjC", 1176 | "-lc++", 1177 | ); 1178 | PRODUCT_NAME = "$(TARGET_NAME)"; 1179 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberProject.app/UberProject"; 1180 | }; 1181 | name = Release; 1182 | }; 1183 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1184 | isa = XCBuildConfiguration; 1185 | buildSettings = { 1186 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1187 | CURRENT_PROJECT_VERSION = 1; 1188 | DEAD_CODE_STRIPPING = NO; 1189 | DEVELOPMENT_TEAM = V49Q2F6TZU; 1190 | FRAMEWORK_SEARCH_PATHS = "~/Documents/FacebookSDK"; 1191 | INFOPLIST_FILE = UberProject/Info.plist; 1192 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1193 | OTHER_LDFLAGS = ( 1194 | "$(inherited)", 1195 | "-ObjC", 1196 | "-lc++", 1197 | ); 1198 | PRODUCT_NAME = UberProject; 1199 | VERSIONING_SYSTEM = "apple-generic"; 1200 | }; 1201 | name = Debug; 1202 | }; 1203 | 13B07F951A680F5B00A75B9A /* Release */ = { 1204 | isa = XCBuildConfiguration; 1205 | buildSettings = { 1206 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1207 | CURRENT_PROJECT_VERSION = 1; 1208 | DEVELOPMENT_TEAM = V49Q2F6TZU; 1209 | FRAMEWORK_SEARCH_PATHS = "~/Documents/FacebookSDK"; 1210 | INFOPLIST_FILE = UberProject/Info.plist; 1211 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1212 | OTHER_LDFLAGS = ( 1213 | "$(inherited)", 1214 | "-ObjC", 1215 | "-lc++", 1216 | ); 1217 | PRODUCT_NAME = UberProject; 1218 | VERSIONING_SYSTEM = "apple-generic"; 1219 | }; 1220 | name = Release; 1221 | }; 1222 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1223 | isa = XCBuildConfiguration; 1224 | buildSettings = { 1225 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1226 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1227 | CLANG_ANALYZER_NONNULL = YES; 1228 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1229 | CLANG_WARN_INFINITE_RECURSION = YES; 1230 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1231 | DEBUG_INFORMATION_FORMAT = dwarf; 1232 | ENABLE_TESTABILITY = YES; 1233 | GCC_NO_COMMON_BLOCKS = YES; 1234 | INFOPLIST_FILE = "UberProject-tvOS/Info.plist"; 1235 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1236 | LIBRARY_SEARCH_PATHS = ( 1237 | "$(inherited)", 1238 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1239 | ); 1240 | OTHER_LDFLAGS = ( 1241 | "-ObjC", 1242 | "-lc++", 1243 | ); 1244 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberProject-tvOS"; 1245 | PRODUCT_NAME = "$(TARGET_NAME)"; 1246 | SDKROOT = appletvos; 1247 | TARGETED_DEVICE_FAMILY = 3; 1248 | TVOS_DEPLOYMENT_TARGET = 9.2; 1249 | }; 1250 | name = Debug; 1251 | }; 1252 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 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 | COPY_PHASE_STRIP = NO; 1262 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1263 | GCC_NO_COMMON_BLOCKS = YES; 1264 | INFOPLIST_FILE = "UberProject-tvOS/Info.plist"; 1265 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1266 | LIBRARY_SEARCH_PATHS = ( 1267 | "$(inherited)", 1268 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1269 | ); 1270 | OTHER_LDFLAGS = ( 1271 | "-ObjC", 1272 | "-lc++", 1273 | ); 1274 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberProject-tvOS"; 1275 | PRODUCT_NAME = "$(TARGET_NAME)"; 1276 | SDKROOT = appletvos; 1277 | TARGETED_DEVICE_FAMILY = 3; 1278 | TVOS_DEPLOYMENT_TARGET = 9.2; 1279 | }; 1280 | name = Release; 1281 | }; 1282 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1283 | isa = XCBuildConfiguration; 1284 | buildSettings = { 1285 | BUNDLE_LOADER = "$(TEST_HOST)"; 1286 | CLANG_ANALYZER_NONNULL = YES; 1287 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1288 | CLANG_WARN_INFINITE_RECURSION = YES; 1289 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1290 | DEBUG_INFORMATION_FORMAT = dwarf; 1291 | ENABLE_TESTABILITY = YES; 1292 | GCC_NO_COMMON_BLOCKS = YES; 1293 | INFOPLIST_FILE = "UberProject-tvOSTests/Info.plist"; 1294 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1295 | LIBRARY_SEARCH_PATHS = ( 1296 | "$(inherited)", 1297 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1298 | ); 1299 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberProject-tvOSTests"; 1300 | PRODUCT_NAME = "$(TARGET_NAME)"; 1301 | SDKROOT = appletvos; 1302 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberProject-tvOS.app/UberProject-tvOS"; 1303 | TVOS_DEPLOYMENT_TARGET = 10.1; 1304 | }; 1305 | name = Debug; 1306 | }; 1307 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1308 | isa = XCBuildConfiguration; 1309 | buildSettings = { 1310 | BUNDLE_LOADER = "$(TEST_HOST)"; 1311 | CLANG_ANALYZER_NONNULL = YES; 1312 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1313 | CLANG_WARN_INFINITE_RECURSION = YES; 1314 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1315 | COPY_PHASE_STRIP = NO; 1316 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1317 | GCC_NO_COMMON_BLOCKS = YES; 1318 | INFOPLIST_FILE = "UberProject-tvOSTests/Info.plist"; 1319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1320 | LIBRARY_SEARCH_PATHS = ( 1321 | "$(inherited)", 1322 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1323 | ); 1324 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UberProject-tvOSTests"; 1325 | PRODUCT_NAME = "$(TARGET_NAME)"; 1326 | SDKROOT = appletvos; 1327 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UberProject-tvOS.app/UberProject-tvOS"; 1328 | TVOS_DEPLOYMENT_TARGET = 10.1; 1329 | }; 1330 | name = Release; 1331 | }; 1332 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1333 | isa = XCBuildConfiguration; 1334 | buildSettings = { 1335 | ALWAYS_SEARCH_USER_PATHS = NO; 1336 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1337 | CLANG_CXX_LIBRARY = "libc++"; 1338 | CLANG_ENABLE_MODULES = YES; 1339 | CLANG_ENABLE_OBJC_ARC = YES; 1340 | CLANG_WARN_BOOL_CONVERSION = YES; 1341 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1342 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1343 | CLANG_WARN_EMPTY_BODY = YES; 1344 | CLANG_WARN_ENUM_CONVERSION = YES; 1345 | CLANG_WARN_INT_CONVERSION = YES; 1346 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1347 | CLANG_WARN_UNREACHABLE_CODE = YES; 1348 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1349 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1350 | COPY_PHASE_STRIP = NO; 1351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1352 | GCC_C_LANGUAGE_STANDARD = gnu99; 1353 | GCC_DYNAMIC_NO_PIC = NO; 1354 | GCC_OPTIMIZATION_LEVEL = 0; 1355 | GCC_PREPROCESSOR_DEFINITIONS = ( 1356 | "DEBUG=1", 1357 | "$(inherited)", 1358 | ); 1359 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1360 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1361 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1362 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1363 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1364 | GCC_WARN_UNUSED_FUNCTION = YES; 1365 | GCC_WARN_UNUSED_VARIABLE = YES; 1366 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1367 | MTL_ENABLE_DEBUG_INFO = YES; 1368 | ONLY_ACTIVE_ARCH = YES; 1369 | SDKROOT = iphoneos; 1370 | }; 1371 | name = Debug; 1372 | }; 1373 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1374 | isa = XCBuildConfiguration; 1375 | buildSettings = { 1376 | ALWAYS_SEARCH_USER_PATHS = NO; 1377 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1378 | CLANG_CXX_LIBRARY = "libc++"; 1379 | CLANG_ENABLE_MODULES = YES; 1380 | CLANG_ENABLE_OBJC_ARC = YES; 1381 | CLANG_WARN_BOOL_CONVERSION = YES; 1382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1384 | CLANG_WARN_EMPTY_BODY = YES; 1385 | CLANG_WARN_ENUM_CONVERSION = YES; 1386 | CLANG_WARN_INT_CONVERSION = YES; 1387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1388 | CLANG_WARN_UNREACHABLE_CODE = YES; 1389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1390 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1391 | COPY_PHASE_STRIP = YES; 1392 | ENABLE_NS_ASSERTIONS = NO; 1393 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1394 | GCC_C_LANGUAGE_STANDARD = gnu99; 1395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1397 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1399 | GCC_WARN_UNUSED_FUNCTION = YES; 1400 | GCC_WARN_UNUSED_VARIABLE = YES; 1401 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1402 | MTL_ENABLE_DEBUG_INFO = NO; 1403 | SDKROOT = iphoneos; 1404 | VALIDATE_PRODUCT = YES; 1405 | }; 1406 | name = Release; 1407 | }; 1408 | /* End XCBuildConfiguration section */ 1409 | 1410 | /* Begin XCConfigurationList section */ 1411 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "UberProjectTests" */ = { 1412 | isa = XCConfigurationList; 1413 | buildConfigurations = ( 1414 | 00E356F61AD99517003FC87E /* Debug */, 1415 | 00E356F71AD99517003FC87E /* Release */, 1416 | ); 1417 | defaultConfigurationIsVisible = 0; 1418 | defaultConfigurationName = Release; 1419 | }; 1420 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "UberProject" */ = { 1421 | isa = XCConfigurationList; 1422 | buildConfigurations = ( 1423 | 13B07F941A680F5B00A75B9A /* Debug */, 1424 | 13B07F951A680F5B00A75B9A /* Release */, 1425 | ); 1426 | defaultConfigurationIsVisible = 0; 1427 | defaultConfigurationName = Release; 1428 | }; 1429 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberProject-tvOS" */ = { 1430 | isa = XCConfigurationList; 1431 | buildConfigurations = ( 1432 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1433 | 2D02E4981E0B4A5E006451C7 /* Release */, 1434 | ); 1435 | defaultConfigurationIsVisible = 0; 1436 | defaultConfigurationName = Release; 1437 | }; 1438 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "UberProject-tvOSTests" */ = { 1439 | isa = XCConfigurationList; 1440 | buildConfigurations = ( 1441 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1442 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1443 | ); 1444 | defaultConfigurationIsVisible = 0; 1445 | defaultConfigurationName = Release; 1446 | }; 1447 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "UberProject" */ = { 1448 | isa = XCConfigurationList; 1449 | buildConfigurations = ( 1450 | 83CBBA201A601CBA00E9B192 /* Debug */, 1451 | 83CBBA211A601CBA00E9B192 /* Release */, 1452 | ); 1453 | defaultConfigurationIsVisible = 0; 1454 | defaultConfigurationName = Release; 1455 | }; 1456 | /* End XCConfigurationList section */ 1457 | }; 1458 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1459 | } 1460 | -------------------------------------------------------------------------------- /ios/UberProject.xcodeproj/xcshareddata/xcschemes/UberProject-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/UberProject.xcodeproj/xcshareddata/xcschemes/UberProject.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/UberProject/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/UberProject/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 | #import 15 | 16 | @implementation AppDelegate 17 | 18 | 19 | - (BOOL)application:(UIApplication *)application 20 | openURL:(NSURL *)url 21 | options:(NSDictionary *)options { 22 | 23 | BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application 24 | openURL:url 25 | sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] 26 | annotation:options[UIApplicationOpenURLOptionsAnnotationKey] 27 | ]; 28 | // Add any custom logic here. 29 | return handled; 30 | } 31 | 32 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 33 | { 34 | [[FBSDKApplicationDelegate sharedInstance] application:application 35 | didFinishLaunchingWithOptions:launchOptions]; 36 | 37 | NSURL *jsCodeLocation; 38 | 39 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 40 | 41 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 42 | moduleName:@"UberProject" 43 | initialProperties:nil 44 | launchOptions:launchOptions]; 45 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 46 | 47 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 48 | UIViewController *rootViewController = [UIViewController new]; 49 | rootViewController.view = rootView; 50 | self.window.rootViewController = rootViewController; 51 | [self.window makeKeyAndVisible]; 52 | return YES; 53 | } 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /ios/UberProject/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /ios/UberProject/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/UberProject/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | UberProject 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 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 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | NSExceptionDomains 46 | 47 | localhost 48 | 49 | NSExceptionAllowsInsecureHTTPLoads 50 | 51 | 52 | 192.168.1.6 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | CFBundleURLTypes 60 | 61 | 62 | CFBundleURLSchemes 63 | 64 | fb1184006901717508 65 | 66 | 67 | 68 | FacebookAppID 69 | 1184006901717508 70 | FacebookDisplayName 71 | UberReact 72 | LSApplicationQueriesSchemes 73 | 74 | fbapi 75 | fb-messenger-api 76 | fbauth2 77 | fbshareextension 78 | 79 | NSPhotoLibraryUsageDescription 80 | {human-readable reason for photo access} 81 | 82 | 83 | -------------------------------------------------------------------------------- /ios/UberProject/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/UberProjectTests/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/UberProjectTests/UberProjectTests.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 UberProjectTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation UberProjectTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /mixins/map.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import { Marker } from 'react-native-maps' 3 | import Geocoder from 'react-native-geocoder' 4 | import * as firebase from 'firebase' 5 | 6 | import { 7 | InteractionManager, 8 | } from 'react-native' 9 | 10 | const GeoFire = require('geofire') 11 | 12 | // Images 13 | const markerIcon = require('../assets/img/marker.png') 14 | const carIcon = require('../assets/img/car.png') 15 | const dotIcon = require('../assets/img/dot.png') 16 | 17 | 18 | const LATITUDE_DELTA = 0.0122 19 | 20 | 21 | export default class MapMixin extends Component { 22 | state = { 23 | passengerPosition: { 24 | latitude: 0, 25 | longitude: 0, 26 | }, 27 | 28 | pickupPosition: null, 29 | 30 | region: { 31 | latitude: 0, 32 | longitude: 0, 33 | latitudeDelta: 0, 34 | longitudeDelta: 0, 35 | }, 36 | 37 | drivers: [], 38 | 39 | isReady: false, 40 | } 41 | 42 | watchId: ?number = null 43 | 44 | constructor(props) { 45 | super(props) 46 | 47 | this.onRegionChange = this._onRegionChange.bind(this) 48 | 49 | this.layout = props.layout 50 | this.latitudeDelta = LATITUDE_DELTA 51 | this.longitudeDelta = LATITUDE_DELTA * (this.layout.width / this.layout.height) 52 | this.userId = firebase.auth().currentUser.uid 53 | 54 | this.geoFire = new GeoFire(firebase.database().ref('geofire')) 55 | } 56 | 57 | componentDidMount() { 58 | InteractionManager.runAfterInteractions(_ => { 59 | setTimeout(() => { 60 | this.renderMap() 61 | InteractionManager.runAfterInteractions(_ => { 62 | setTimeout(() => { 63 | this.watchPassenger() 64 | this.watchDrivers() 65 | }, 100) 66 | }) 67 | }, 1000) 68 | }) 69 | } 70 | 71 | componentWillUnmount() { 72 | navigator.geolocation.clearWatch(this.watchID) 73 | } 74 | 75 | renderMap() { 76 | this.setState({isReady: true}) 77 | } 78 | 79 | watchDrivers() { 80 | const onChildChange = (data) => { 81 | const position = data.val().position 82 | 83 | let drivers = this.state.drivers, 84 | found = false 85 | 86 | this.state.drivers.forEach((driver, i) => { 87 | if (driver.id === data.key) { 88 | found = true 89 | drivers[i].position = position 90 | this.geoFire.set('driver:' + driver.id, [position.latitude, 91 | position.longitude]) 92 | } 93 | }) 94 | 95 | if (!found) { 96 | drivers.push({ 97 | id: data.key, 98 | position: position, 99 | }) 100 | } 101 | 102 | this.setState({drivers}) 103 | } 104 | 105 | firebase.database().ref('drivers').on('child_added', onChildChange) 106 | firebase.database().ref('drivers').on('child_changed', onChildChange) 107 | } 108 | 109 | watchPassenger() { 110 | const positionOptions = { 111 | enableHighAccuracy: true, 112 | timeout: 20000, 113 | maximumAge: 1000, 114 | } 115 | 116 | this.watchID = navigator.geolocation.watchPosition(pos => ( 117 | this.onChangePosition(pos.coords) 118 | ), positionOptions) 119 | } 120 | 121 | onChangePosition(coords) { 122 | const passengerPosition = { 123 | latitude: coords.latitude, 124 | longitude: coords.longitude, 125 | } 126 | 127 | this.geoFire.set('passenger:' + this.userId, [coords.latitude, 128 | coords.longitude]) 129 | 130 | this.updatePassengerPosition(passengerPosition) 131 | this.updateRegion() 132 | this.updateAddress() 133 | } 134 | 135 | updatePassengerPosition(passengerPosition) { 136 | this.setState({passengerPosition}) 137 | 138 | const user = firebase.database().ref('users/' + this.userId) 139 | user.update({passengerPosition}) 140 | } 141 | 142 | updateRegion() { 143 | let region = { 144 | latitude: this.state.passengerPosition.latitude, 145 | longitude: this.state.passengerPosition.longitude, 146 | latitudeDelta: this.latitudeDelta, 147 | longitudeDelta: this.longitudeDelta, 148 | } 149 | 150 | this.setState({region}) 151 | } 152 | 153 | updateAddress() { 154 | const pos = { 155 | lat: this.state.passengerPosition.latitude, 156 | lng: this.state.passengerPosition.longitude, 157 | } 158 | 159 | Geocoder.geocodePosition(pos).then(res => { 160 | if (res.length > 0) { 161 | this.setState({address: res[0].feature}) 162 | } 163 | }).catch(err => console.log(err)) 164 | } 165 | 166 | _onRegionChange(region) { 167 | if (this.state.passengerPosition.latitude !== 0) { 168 | this.setState({region}) 169 | } 170 | } 171 | 172 | renderPickupPosition() { 173 | const coordinate = this.state.pickupPosition || this.state.passengerPosition 174 | 175 | return 179 | } 180 | 181 | renderPassengerPosition() { 182 | return 185 | } 186 | 187 | renderDrivers() { 188 | return this.state.drivers.map(driver => ( 189 | 191 | )) 192 | } 193 | } 194 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UberProject", 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 | }, 9 | "dependencies": { 10 | "firebase": "^3.6.9", 11 | "geofire": "^4.1.2", 12 | "polyline": "^0.2.0", 13 | "react": "15.4.2", 14 | "react-native": "0.41.2", 15 | "react-native-dotenv": "^0.0.3", 16 | "react-native-fbsdk": "^0.5.0", 17 | "react-native-geocoder": "^0.4.5", 18 | "react-native-git-upgrade": "^0.2.5", 19 | "react-native-maps": "^0.13", 20 | "react-native-navbar": "^1.6.0", 21 | "rnpm": "^1.9.0" 22 | }, 23 | "devDependencies": { 24 | "babel-jest": "18.0.0", 25 | "babel-preset-react-native": "1.9.1", 26 | "jest": "18.1.0", 27 | "react-test-renderer": "15.4.2" 28 | }, 29 | "jest": { 30 | "preset": "react-native" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /screen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caioariede/uber-react/f52ea9e5fe6e34d07591b7a41dc7564a4b7ddfce/screen.gif -------------------------------------------------------------------------------- /styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native' 2 | 3 | 4 | const styles = StyleSheet.create({ 5 | navigator: { 6 | flex: 1, 7 | height: 100, 8 | }, 9 | map: { 10 | flex: 1, 11 | }, 12 | container: { 13 | flex: 1, 14 | flexDirection: 'column', 15 | position: 'relative', 16 | }, 17 | searchBar: { 18 | flex: 1, 19 | flexDirection: 'column', 20 | position: 'absolute', 21 | zIndex: 999, 22 | left: 15, 23 | height: 40, 24 | }, 25 | searchInput: { 26 | flex: 1, 27 | backgroundColor: 'white', 28 | borderWidth: 1, 29 | padding: 20, 30 | opacity: .9, 31 | }, 32 | setPickupButton: { 33 | backgroundColor: 'black', 34 | color: 'white', 35 | padding: 10, 36 | marginTop: 2, 37 | }, 38 | }) 39 | 40 | 41 | export default styles 42 | -------------------------------------------------------------------------------- /util.js: -------------------------------------------------------------------------------- 1 | export function randomPosition(position, meters=50) { 2 | var r = meters/111300 // = 100 meters 3 | , y0 = position.latitude 4 | , x0 = position.longitude 5 | , u = Math.random() 6 | , v = Math.random() 7 | , w = r * Math.sqrt(u) 8 | , t = 2 * Math.PI * v 9 | , x = w * Math.cos(t) 10 | , y1 = w * Math.sin(t) 11 | , x1 = x / Math.cos(y0) 12 | 13 | return { 14 | latitude: y0 + y1, 15 | longitude: x0 + x1, 16 | } 17 | } 18 | --------------------------------------------------------------------------------