├── .buckconfig ├── .editorconfig ├── .envsample ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.js ├── README.md ├── __tests__ └── App-test.js ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── uberclonern │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── AntDesign.ttf │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── Feather.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── FontAwesome5_Brands.ttf │ │ │ ├── FontAwesome5_Regular.ttf │ │ │ ├── FontAwesome5_Solid.ttf │ │ │ ├── Fontisto.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── SimpleLineIcons.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── uberclonern │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── components ├── Map.js ├── NavFavourites.js ├── NavOptions.js ├── NavigateCard.js └── RideOptionsCard.js ├── index.js ├── ios ├── Podfile ├── uberCloneRn.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── uberCloneRn.xcscheme ├── uberCloneRn │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── main.m └── uberCloneRnTests │ ├── Info.plist │ └── uberCloneRnTests.m ├── metro.config.js ├── package-lock.json ├── package.json ├── screens ├── HomeScreen.js └── MapScreen.js ├── slices └── navSlice.js └── store.js /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /.envsample: -------------------------------------------------------------------------------- 1 | GOOGLE_MAPS_KEY=ADD_YOU_GOOGLE_API_KEY_HERE -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; Flow doesn't support platforms 12 | .*/Libraries/Utilities/LoadingView.js 13 | 14 | [untyped] 15 | .*/node_modules/@react-native-community/cli/.*/.* 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/interface.js 21 | node_modules/react-native/flow/ 22 | 23 | [options] 24 | emoji=true 25 | 26 | esproposal.optional_chaining=enable 27 | esproposal.nullish_coalescing=enable 28 | 29 | exact_by_default=true 30 | 31 | module.file_ext=.js 32 | module.file_ext=.json 33 | module.file_ext=.ios.js 34 | 35 | munge_underscores=true 36 | 37 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 38 | 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\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 39 | 40 | suppress_type=$FlowIssue 41 | suppress_type=$FlowFixMe 42 | suppress_type=$FlowFixMeProps 43 | suppress_type=$FlowFixMeState 44 | 45 | [lints] 46 | sketchy-null-number=warn 47 | sketchy-null-mixed=warn 48 | sketchy-number=warn 49 | untyped-type-import=warn 50 | nonstrict-import=warn 51 | deprecated-type=warn 52 | unsafe-getters-setters=warn 53 | unnecessary-invariant=warn 54 | signature-verification-failure=warn 55 | 56 | [strict] 57 | deprecated-type 58 | nonstrict-import 59 | sketchy-null 60 | unclear-type 61 | unsafe-getters-setters 62 | untyped-import 63 | untyped-type-import 64 | 65 | [version] 66 | ^0.137.0 67 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | .env 62 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import {NavigationContainer} from '@react-navigation/native'; 2 | import {createStackNavigator} from '@react-navigation/stack'; 3 | import React from 'react'; 4 | import { 5 | Text, 6 | StyleSheet, 7 | View, 8 | KeyboardAvoidingView, 9 | Platform, 10 | } from 'react-native'; 11 | import {SafeAreaProvider} from 'react-native-safe-area-context'; 12 | import {Provider} from 'react-redux'; 13 | import HomeScreen from './screens/HomeScreen'; 14 | import MapScreen from './screens/MapScreen'; 15 | import {store} from './store'; 16 | 17 | const Stack = createStackNavigator(); 18 | 19 | const App = () => { 20 | return ( 21 | 22 | 23 | 24 | 27 | 28 | 35 | 42 | 43 | 44 | 45 | 46 | 47 | ); 48 | }; 49 | 50 | export default App; 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DEMO: 2 | 3 | [![APP DEMO](https://img.youtube.com/vi/RfjaRZzbQEQ/0.jpg)](https://youtu.be/RfjaRZzbQEQ) 4 | 5 | 6 | look for `.envsample` in root directory and add your google api key in `.env` file 7 | 8 | Go to `android/app.src/main/appAndroidManifest.xml`, look for `ADD_YOU_GOOGLE_API_KEY_HERE` and paste your api key there 9 | 10 | You need to activate `billing and api services` from your GCP dashboard in order to use the apis that i have used in this project 11 | 12 | ### API used: 13 | 14 | - Places API 15 | - Maps SDK for Android 16 | - Directions api 17 | - Distance Matrix API 18 | 19 | run `npm install` to install the dependencies 20 | run `npx react-native start` to start the metro builder 21 | 22 | ### To run on android: 23 | 24 | `npx react-native run-android` 25 | 26 | ### To run on iOS: 27 | 28 | `npx react-native run-ios` 29 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.uberclonern", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.uberclonern", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /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. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | project.ext.vectoricons = [ 85 | iconFontNames: [ 'MaterialIcons.ttf', 'EvilIcons.ttf' ] // Name of the font files you want to copy 86 | ] 87 | 88 | apply from: "../../node_modules/react-native/react.gradle" 89 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" 90 | 91 | /** 92 | * Set this to true to create two separate APKs instead of one: 93 | * - An APK that only works on ARM devices 94 | * - An APK that only works on x86 devices 95 | * The advantage is the size of the APK is reduced by about 4MB. 96 | * Upload all the APKs to the Play Store and people will download 97 | * the correct one based on the CPU architecture of their device. 98 | */ 99 | def enableSeparateBuildPerCPUArchitecture = false 100 | 101 | /** 102 | * Run Proguard to shrink the Java bytecode in release builds. 103 | */ 104 | def enableProguardInReleaseBuilds = false 105 | 106 | /** 107 | * The preferred build flavor of JavaScriptCore. 108 | * 109 | * For example, to use the international variant, you can use: 110 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 111 | * 112 | * The international variant includes ICU i18n library and necessary data 113 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 114 | * give correct results when using with locales other than en-US. Note that 115 | * this variant is about 6MiB larger per architecture than default. 116 | */ 117 | def jscFlavor = 'org.webkit:android-jsc:+' 118 | 119 | /** 120 | * Whether to enable the Hermes VM. 121 | * 122 | * This should be set on project.ext.react and mirrored here. If it is not set 123 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 124 | * and the benefits of using Hermes will therefore be sharply reduced. 125 | */ 126 | def enableHermes = project.ext.react.get("enableHermes", false); 127 | 128 | android { 129 | ndkVersion rootProject.ext.ndkVersion 130 | 131 | compileSdkVersion rootProject.ext.compileSdkVersion 132 | 133 | compileOptions { 134 | sourceCompatibility JavaVersion.VERSION_1_8 135 | targetCompatibility JavaVersion.VERSION_1_8 136 | } 137 | 138 | defaultConfig { 139 | applicationId "com.uberclonern" 140 | minSdkVersion rootProject.ext.minSdkVersion 141 | targetSdkVersion rootProject.ext.targetSdkVersion 142 | versionCode 1 143 | versionName "1.0" 144 | } 145 | splits { 146 | abi { 147 | reset() 148 | enable enableSeparateBuildPerCPUArchitecture 149 | universalApk false // If true, also generate a universal APK 150 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 151 | } 152 | } 153 | signingConfigs { 154 | debug { 155 | storeFile file('debug.keystore') 156 | storePassword 'android' 157 | keyAlias 'androiddebugkey' 158 | keyPassword 'android' 159 | } 160 | } 161 | buildTypes { 162 | debug { 163 | signingConfig signingConfigs.debug 164 | } 165 | release { 166 | // Caution! In production, you need to generate your own keystore file. 167 | // see https://reactnative.dev/docs/signed-apk-android. 168 | signingConfig signingConfigs.debug 169 | minifyEnabled enableProguardInReleaseBuilds 170 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 171 | } 172 | } 173 | 174 | // applicationVariants are e.g. debug, release 175 | applicationVariants.all { variant -> 176 | variant.outputs.each { output -> 177 | // For each separate APK per architecture, set a unique version code as described here: 178 | // https://developer.android.com/studio/build/configure-apk-splits.html 179 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 180 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 181 | def abi = output.getFilter(OutputFile.ABI) 182 | if (abi != null) { // null for the universal-debug, universal-release variants 183 | output.versionCodeOverride = 184 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 185 | } 186 | 187 | } 188 | } 189 | } 190 | 191 | dependencies { 192 | implementation fileTree(dir: "libs", include: ["*.jar"]) 193 | //noinspection GradleDynamicVersion 194 | implementation "com.facebook.react:react-native:+" // From node_modules 195 | 196 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 197 | compile project(':react-native-vector-icons') 198 | implementation project(':react-native-maps') 199 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 200 | exclude group:'com.facebook.fbjni' 201 | } 202 | 203 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 204 | exclude group:'com.facebook.flipper' 205 | exclude group:'com.squareup.okhttp3', module:'okhttp' 206 | } 207 | 208 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 209 | exclude group:'com.facebook.flipper' 210 | } 211 | 212 | if (enableHermes) { 213 | def hermesPath = "../../node_modules/hermes-engine/android/"; 214 | debugImplementation files(hermesPath + "hermes-debug.aar") 215 | releaseImplementation files(hermesPath + "hermes-release.aar") 216 | } else { 217 | implementation jscFlavor 218 | } 219 | } 220 | 221 | // Run this once to be able to run the application with BUCK 222 | // puts all compile dependencies into folder libs for BUCK to use 223 | task copyDownloadableDepsToLibs(type: Copy) { 224 | from configurations.compile 225 | into 'libs' 226 | } 227 | 228 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 229 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/uberclonern/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.uberclonern; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 14 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/AntDesign.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/AntDesign.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Feather.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Feather.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Fontisto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Fontisto.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/uberclonern/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.uberclonern; 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. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "uberCloneRn"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/uberclonern/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.uberclonern; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | // import com.airbnb.android.react.maps.MapsPackage; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = 18 | new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | @SuppressWarnings("UnnecessaryLocalVariable") 27 | List packages = new PackageList(this).getPackages(); 28 | // Packages that cannot be autolinked yet can be added manually here, for example: 29 | // packages.add(new MyReactNativePackage()); 30 | // packages.add(new MapsPackage()); 31 | return packages; 32 | } 33 | 34 | @Override 35 | protected String getJSMainModuleName() { 36 | return "index"; 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 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 50 | } 51 | 52 | /** 53 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 54 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 55 | * 56 | * @param context 57 | * @param reactInstanceManager 58 | */ 59 | private static void initializeFlipper( 60 | Context context, ReactInstanceManager reactInstanceManager) { 61 | if (BuildConfig.DEBUG) { 62 | try { 63 | /* 64 | We use reflection here to pick up the class that initializes Flipper, 65 | since Flipper library is not available in release mode 66 | */ 67 | Class aClass = Class.forName("com.uberclonern.ReactNativeFlipper"); 68 | aClass 69 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 70 | .invoke(null, context, reactInstanceManager); 71 | } catch (ClassNotFoundException e) { 72 | e.printStackTrace(); 73 | } catch (NoSuchMethodException e) { 74 | e.printStackTrace(); 75 | } catch (IllegalAccessException e) { 76 | e.printStackTrace(); 77 | } catch (InvocationTargetException e) { 78 | e.printStackTrace(); 79 | } 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | uberCloneRn 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.1.0") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.75.1 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wajeshubham/react-native-uber/c92fb19d119cc9a668a08025d4ac0c5a7efab639/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'uberCloneRn' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | 5 | include ':react-native-vector-icons' 6 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 7 | 8 | include ':react-native-maps' 9 | project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android') -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uberCloneRn", 3 | "displayName": "uberCloneRn" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | plugins: [ 4 | [ 5 | 'module:react-native-dotenv', 6 | { 7 | moduleName: '@env', 8 | path: '.env', 9 | }, 10 | ], 11 | ], 12 | }; 13 | -------------------------------------------------------------------------------- /components/Map.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useRef} from 'react'; 2 | import {StyleSheet, Text, View} from 'react-native'; 3 | import MapView, {Marker} from 'react-native-maps'; 4 | import MapViewDirections from 'react-native-maps-directions'; 5 | import {useDispatch, useSelector} from 'react-redux'; 6 | import tw from 'tailwind-react-native-classnames'; 7 | import {GOOGLE_MAPS_KEY} from '@env'; 8 | 9 | import { 10 | selectDestination, 11 | selectOrigin, 12 | setTravelTimeInformation, 13 | } from '../slices/navSlice'; 14 | 15 | const Map = () => { 16 | const origin = useSelector(selectOrigin); 17 | const destination = useSelector(selectDestination); 18 | const mapRef = useRef(null); 19 | const dispatch = useDispatch(); 20 | 21 | const getTravelTime = async () => { 22 | const URL = `https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=${origin?.location.lat},${origin?.location.lng}&destinations=${destination?.location.lat},${destination?.location.lng}&key=${GOOGLE_MAPS_KEY}`; 23 | const response = await fetch(URL); 24 | const data = await response.json(); 25 | dispatch(setTravelTimeInformation(data.rows[0].elements[0])); 26 | }; 27 | 28 | useEffect(() => { 29 | if (!origin || !destination) return; 30 | 31 | setTimeout(() => { 32 | mapRef.current?.fitToSuppliedMarkers(['origin', 'destination'], { 33 | edgePadding: { 34 | top: 45, 35 | right: 45, 36 | bottom: 45, 37 | left: 45, 38 | }, 39 | }); 40 | }, 200); 41 | }, [origin, destination]); 42 | 43 | useEffect(() => { 44 | if (!origin || !destination) return; 45 | getTravelTime(); 46 | }, [origin, destination]); 47 | 48 | return ( 49 | 63 | {origin && destination && ( 64 | 71 | )} 72 | 73 | {origin?.location && ( 74 | 83 | )} 84 | 85 | {destination?.location && ( 86 | 95 | )} 96 | 97 | ); 98 | }; 99 | 100 | export default Map; 101 | 102 | const styles = StyleSheet.create({}); 103 | -------------------------------------------------------------------------------- /components/NavFavourites.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | FlatList, 4 | Image, 5 | Text, 6 | TouchableOpacity, 7 | View, 8 | StyleSheet, 9 | } from 'react-native'; 10 | import {Icon} from 'react-native-elements'; 11 | import {Divider} from 'react-native-elements/dist/divider/Divider'; 12 | import tw from 'tailwind-react-native-classnames'; 13 | 14 | const NavFavourites = () => { 15 | const data = [ 16 | { 17 | id: '123', 18 | location: 'Home', 19 | icon: 'home', 20 | destination: 'Mumbai, Maharashtra, India', 21 | }, 22 | { 23 | id: '543', 24 | location: 'Work', 25 | icon: 'briefcase', 26 | destination: 'London Eye, London, UK', 27 | }, 28 | ]; 29 | return data.map((item, i) => ( 30 | 33 | 40 | 41 | {item.location} 42 | {item.destination} 43 | 51 | 52 | 53 | )); 54 | }; 55 | 56 | export default NavFavourites; 57 | 58 | const styles = StyleSheet.create({}); 59 | -------------------------------------------------------------------------------- /components/NavOptions.js: -------------------------------------------------------------------------------- 1 | import {useNavigation} from '@react-navigation/native'; 2 | import React from 'react'; 3 | import { 4 | FlatList, 5 | Image, 6 | Text, 7 | ToastAndroid, 8 | TouchableOpacity, 9 | View, 10 | } from 'react-native'; 11 | import {Icon} from 'react-native-elements'; 12 | import {Divider} from 'react-native-elements/dist/divider/Divider'; 13 | import {useSelector} from 'react-redux'; 14 | import tw from 'tailwind-react-native-classnames'; 15 | import {selectOrigin} from '../slices/navSlice'; 16 | import NavFavourites from './NavFavourites'; 17 | 18 | const data = [ 19 | { 20 | id: '123', 21 | title: 'Get a ride', 22 | image: 'car', 23 | screen: 'MapScreen', 24 | marginLeft: 'auto', 25 | description: 'Book a ride to your destination.', 26 | }, 27 | { 28 | id: '456', 29 | title: 'Order food', 30 | image: 'fast-food', 31 | screen: 'EatsScreen', 32 | marginLeft: 8, 33 | description: 'Feelin hungry? Order some food!', 34 | }, 35 | ]; 36 | 37 | const NavOptions = ({onNavigate = f => f}) => { 38 | const navigation = useNavigation(); 39 | const origin = useSelector(selectOrigin); 40 | return ( 41 | <> 42 | {data.map(item => ( 43 | { 47 | if (origin && item.id === '123') { 48 | onNavigate(); 49 | navigation.navigate(item.screen); 50 | } 51 | }}> 52 | 59 | 60 | 65 | {item.title} 66 | 67 | 72 | {item.description} 73 | 74 | 81 | 82 | 83 | 88 | 89 | 90 | ))} 91 | 92 | ); 93 | }; 94 | 95 | export default NavOptions; 96 | -------------------------------------------------------------------------------- /components/NavigateCard.js: -------------------------------------------------------------------------------- 1 | import {useNavigation} from '@react-navigation/native'; 2 | import React, {useEffect, useRef} from 'react'; 3 | import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'; 4 | import {Icon} from 'react-native-elements'; 5 | import {GooglePlacesAutocomplete} from 'react-native-google-places-autocomplete'; 6 | import {SafeAreaView} from 'react-native-safe-area-context'; 7 | import {useDispatch, useSelector} from 'react-redux'; 8 | import tw from 'tailwind-react-native-classnames'; 9 | import { 10 | selectDestination, 11 | selectOrigin, 12 | setDestination, 13 | setOrigin, 14 | } from '../slices/navSlice'; 15 | import NavFavourites from './NavFavourites'; 16 | import {GOOGLE_MAPS_KEY} from '@env'; 17 | 18 | const NavigateCard = () => { 19 | const dispatch = useDispatch(); 20 | const origin = useSelector(selectOrigin); 21 | const destination = useSelector(selectDestination); 22 | const navigation = useNavigation(); 23 | const gInput = useRef(null); 24 | 25 | useEffect(() => { 26 | return () => { 27 | dispatch(setOrigin(null)); 28 | dispatch(setDestination(null)); 29 | }; 30 | }, []); 31 | 32 | return ( 33 | 34 | {/* {origin?.description} */} 35 | 36 | 37 | 60 | 61 | { 87 | dispatch( 88 | setDestination({ 89 | location: details.geometry.location, 90 | description: data.description, 91 | }), 92 | ); 93 | }} 94 | fetchDetails={true} 95 | query={{ 96 | key: GOOGLE_MAPS_KEY, 97 | language: 'en', 98 | }} 99 | onFail={e => { 100 | console.log(e, 'eeeeeee'); 101 | dispatch(setDestination(null)); 102 | }}> 103 | { 105 | dispatch(setDestination(null)); 106 | gInput.current?.setAddressText(''); 107 | }} 108 | style={{position: 'absolute', top: 14, right: 10}}> 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | { 119 | navigation.navigate('RideOptionsCard'); 120 | }} 121 | disabled={!destination} 122 | style={[ 123 | tw`py-3 flex-row`, 124 | { 125 | backgroundColor: !destination ? 'gray' : 'black', 126 | alignItems: 'center', 127 | justifyContent: 'center', 128 | }, 129 | ]}> 130 | 137 | 138 | Book a ride 139 | 140 | 141 | 150 | 157 | 158 | Eats 159 | 160 | 161 | 162 | 163 | 164 | ); 165 | }; 166 | 167 | export default NavigateCard; 168 | 169 | const styles = StyleSheet.create({}); 170 | -------------------------------------------------------------------------------- /components/RideOptionsCard.js: -------------------------------------------------------------------------------- 1 | import {useNavigation} from '@react-navigation/core'; 2 | import React, {useState} from 'react'; 3 | import {Image, StyleSheet, Text, View} from 'react-native'; 4 | import Icon from 'react-native-vector-icons/FontAwesome'; 5 | import {Icon as ElIcon} from 'react-native-elements'; 6 | import {FlatList, TouchableOpacity} from 'react-native-gesture-handler'; 7 | import {SafeAreaView} from 'react-native-safe-area-context'; 8 | import {useSelector} from 'react-redux'; 9 | import tw from 'tailwind-react-native-classnames'; 10 | import {selectTravelTimeInformation} from '../slices/navSlice'; 11 | 12 | const data = [ 13 | { 14 | id: 'Uber-go', 15 | title: 'UberGo', 16 | multiplier: 9, 17 | image: 'https://links.papareact.com/3pn', 18 | capacity: 4, 19 | }, 20 | 21 | { 22 | id: 'Uber-prime', 23 | title: 'Premier', 24 | multiplier: 12, 25 | image: 'https://links.papareact.com/5w8', 26 | capacity: 4, 27 | }, 28 | { 29 | id: 'Uber-xl', 30 | title: 'UberXL', 31 | multiplier: 15, 32 | image: 'https://links.papareact.com/7pf', 33 | capacity: 3, 34 | }, 35 | { 36 | id: 'Uber-sedan', 37 | title: 'Sedan', 38 | multiplier: 18, 39 | image: 'https://links.papareact.com/3pn', 40 | capacity: 4, 41 | }, 42 | ]; 43 | 44 | const RideOptionsCard = () => { 45 | const navigation = useNavigation(); 46 | const travelTimeInfo = useSelector(selectTravelTimeInformation); 47 | const [selectedCar, setSelectedCar] = useState(null); 48 | 49 | return ( 50 | 51 | 52 | { 54 | navigation.navigate('NavigateCard'); 55 | }}> 56 | 62 | 63 | 64 | Select a ride - {(travelTimeInfo?.distance.value / 1000).toFixed(2)}{' '} 65 | km 66 | 67 | 68 | item.id} 71 | renderItem={({item: {id, title, multiplier, image}, item}) => { 72 | return ( 73 | setSelectedCar(item)}> 78 | 87 | 88 | 89 | {title} 90 | {' '} 91 | {selectedCar?.id === id ? ( 92 | <> 93 | {' '} 94 | {item.capacity} 95 | 96 | ) : null} 97 | 98 | 99 | 100 | {travelTimeInfo?.duration.text}{' '} 101 | {selectedCar?.id === id ? 'dropoff' : ''} 102 | 103 | 104 | 105 | 106 | ₹ 107 | {( 108 | (travelTimeInfo?.distance.value * multiplier) / 109 | 1000 110 | ).toFixed(2)} 111 | 112 | 114 | ₹ 115 | {( 116 | (travelTimeInfo?.distance.value * multiplier * 2) / 117 | 1000 118 | ).toFixed(2)} 119 | 120 | 121 | 122 | ); 123 | }} 124 | /> 125 | 126 | 127 | 136 | 137 | Book {selectedCar?.title} 138 | 139 | 140 | 141 | 142 | ); 143 | }; 144 | 145 | export default RideOptionsCard; 146 | 147 | const styles = StyleSheet.create({}); 148 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'uberCloneRn' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' 16 | 17 | target 'uberCloneRnTests' do 18 | inherit! :complete 19 | # Pods for testing 20 | end 21 | 22 | # Enables Flipper. 23 | # 24 | # Note that if you have use_frameworks! enabled, Flipper will not work and 25 | # you should disable the next line. 26 | use_flipper!() 27 | 28 | post_install do |installer| 29 | react_native_post_install(installer) 30 | end 31 | end -------------------------------------------------------------------------------- /ios/uberCloneRn.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* uberCloneRnTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* uberCloneRnTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 15 | DC37C33807EC42B0BE06F363 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 37826453248B4F17B7AB7706 /* AntDesign.ttf */; }; 16 | 5EA0205B5F974BBDAC90AF7B /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9F40A5C70C284BE58CE8B611 /* Entypo.ttf */; }; 17 | 0EDA622FCDA84E8CA1DAC1E9 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 06048AC3ACFA4A62A095BD1B /* EvilIcons.ttf */; }; 18 | 02B8EE9A327D4F8E9A3B7314 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8879DE82542347058E136AD1 /* Feather.ttf */; }; 19 | 6357124BF768443797BCB201 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A2F871467B67432A91366B3A /* FontAwesome.ttf */; }; 20 | 97E865043D3247ECABAE74C8 /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F442DBB529B647F280F09BFE /* FontAwesome5_Brands.ttf */; }; 21 | 449A23758E1A46F2869D937D /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9709EC62E10E4E9BA3B6B43F /* FontAwesome5_Regular.ttf */; }; 22 | A3D20EA5C6AA4D35BAE5EA5C /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 62ADB455E8C24A3294B0B684 /* FontAwesome5_Solid.ttf */; }; 23 | F66E8C4C6E6A4EBC82B3E5D0 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7ECFBE80BA474C229113084A /* Fontisto.ttf */; }; 24 | 1F0CC68E4EFA4F059954548C /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = DA8ABEE04CB242D799D6F891 /* Foundation.ttf */; }; 25 | DD37D1B649D74235BB9E5AA9 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = AC3D3DC3344F410DAEDC3380 /* Ionicons.ttf */; }; 26 | 4495F3F3421C4753A66700DB /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 891FB9739DA445ECAAF9257A /* MaterialCommunityIcons.ttf */; }; 27 | E6196A4D731B48A58C635BBA /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5DAA77EE73924976BC0361B3 /* MaterialIcons.ttf */; }; 28 | A9D6507D28344681945012AB /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EA8CF249DB5F4A51876B1FF2 /* Octicons.ttf */; }; 29 | 2DA54BF520B24F049181A7EC /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 05B4AE52C43D488F9D7D35EE /* SimpleLineIcons.ttf */; }; 30 | 36ED7FEB201043EF81616A25 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3FE7D335A6D542F4B6C44295 /* Zocial.ttf */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 39 | remoteInfo = uberCloneRn; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 00E356EE1AD99517003FC87E /* uberCloneRnTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = uberCloneRnTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 00E356F21AD99517003FC87E /* uberCloneRnTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = uberCloneRnTests.m; sourceTree = ""; }; 47 | 13B07F961A680F5B00A75B9A /* uberCloneRn.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = uberCloneRn.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = uberCloneRn/AppDelegate.h; sourceTree = ""; }; 49 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = uberCloneRn/AppDelegate.m; sourceTree = ""; }; 50 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = uberCloneRn/Images.xcassets; sourceTree = ""; }; 51 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = uberCloneRn/Info.plist; sourceTree = ""; }; 52 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = uberCloneRn/main.m; sourceTree = ""; }; 53 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = uberCloneRn/LaunchScreen.storyboard; sourceTree = ""; }; 54 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 55 | 37826453248B4F17B7AB7706 /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 56 | 9F40A5C70C284BE58CE8B611 /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 57 | 06048AC3ACFA4A62A095BD1B /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 58 | 8879DE82542347058E136AD1 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 59 | A2F871467B67432A91366B3A /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 60 | F442DBB529B647F280F09BFE /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 61 | 9709EC62E10E4E9BA3B6B43F /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 62 | 62ADB455E8C24A3294B0B684 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 63 | 7ECFBE80BA474C229113084A /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 64 | DA8ABEE04CB242D799D6F891 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 65 | AC3D3DC3344F410DAEDC3380 /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 66 | 891FB9739DA445ECAAF9257A /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 67 | 5DAA77EE73924976BC0361B3 /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 68 | EA8CF249DB5F4A51876B1FF2 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 69 | 05B4AE52C43D488F9D7D35EE /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 70 | 3FE7D335A6D542F4B6C44295 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 71 | /* End PBXFileReference section */ 72 | 73 | /* Begin PBXFrameworksBuildPhase section */ 74 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | /* End PBXFrameworksBuildPhase section */ 89 | 90 | /* Begin PBXGroup section */ 91 | 00E356EF1AD99517003FC87E /* uberCloneRnTests */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 00E356F21AD99517003FC87E /* uberCloneRnTests.m */, 95 | 00E356F01AD99517003FC87E /* Supporting Files */, 96 | ); 97 | path = uberCloneRnTests; 98 | sourceTree = ""; 99 | }; 100 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 00E356F11AD99517003FC87E /* Info.plist */, 104 | ); 105 | name = "Supporting Files"; 106 | sourceTree = ""; 107 | }; 108 | 13B07FAE1A68108700A75B9A /* uberCloneRn */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 112 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 113 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 114 | 13B07FB61A68108700A75B9A /* Info.plist */, 115 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 116 | 13B07FB71A68108700A75B9A /* main.m */, 117 | ); 118 | name = uberCloneRn; 119 | sourceTree = ""; 120 | }; 121 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 125 | ); 126 | name = Frameworks; 127 | sourceTree = ""; 128 | }; 129 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | ); 133 | name = Libraries; 134 | sourceTree = ""; 135 | }; 136 | 83CBB9F61A601CBA00E9B192 = { 137 | isa = PBXGroup; 138 | children = ( 139 | 13B07FAE1A68108700A75B9A /* uberCloneRn */, 140 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 141 | 00E356EF1AD99517003FC87E /* uberCloneRnTests */, 142 | 83CBBA001A601CBA00E9B192 /* Products */, 143 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 144 | F0FC252AFEE74F369A1103C4 /* Resources */, 145 | ); 146 | indentWidth = 2; 147 | sourceTree = ""; 148 | tabWidth = 2; 149 | usesTabs = 0; 150 | }; 151 | 83CBBA001A601CBA00E9B192 /* Products */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 13B07F961A680F5B00A75B9A /* uberCloneRn.app */, 155 | 00E356EE1AD99517003FC87E /* uberCloneRnTests.xctest */, 156 | ); 157 | name = Products; 158 | sourceTree = ""; 159 | }; 160 | F0FC252AFEE74F369A1103C4 /* Resources */ = { 161 | isa = "PBXGroup"; 162 | children = ( 163 | 37826453248B4F17B7AB7706 /* AntDesign.ttf */, 164 | 9F40A5C70C284BE58CE8B611 /* Entypo.ttf */, 165 | 06048AC3ACFA4A62A095BD1B /* EvilIcons.ttf */, 166 | 8879DE82542347058E136AD1 /* Feather.ttf */, 167 | A2F871467B67432A91366B3A /* FontAwesome.ttf */, 168 | F442DBB529B647F280F09BFE /* FontAwesome5_Brands.ttf */, 169 | 9709EC62E10E4E9BA3B6B43F /* FontAwesome5_Regular.ttf */, 170 | 62ADB455E8C24A3294B0B684 /* FontAwesome5_Solid.ttf */, 171 | 7ECFBE80BA474C229113084A /* Fontisto.ttf */, 172 | DA8ABEE04CB242D799D6F891 /* Foundation.ttf */, 173 | AC3D3DC3344F410DAEDC3380 /* Ionicons.ttf */, 174 | 891FB9739DA445ECAAF9257A /* MaterialCommunityIcons.ttf */, 175 | 5DAA77EE73924976BC0361B3 /* MaterialIcons.ttf */, 176 | EA8CF249DB5F4A51876B1FF2 /* Octicons.ttf */, 177 | 05B4AE52C43D488F9D7D35EE /* SimpleLineIcons.ttf */, 178 | 3FE7D335A6D542F4B6C44295 /* Zocial.ttf */, 179 | ); 180 | name = Resources; 181 | sourceTree = ""; 182 | path = ""; 183 | }; 184 | /* End PBXGroup section */ 185 | 186 | /* Begin PBXNativeTarget section */ 187 | 00E356ED1AD99517003FC87E /* uberCloneRnTests */ = { 188 | isa = PBXNativeTarget; 189 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "uberCloneRnTests" */; 190 | buildPhases = ( 191 | 00E356EA1AD99517003FC87E /* Sources */, 192 | 00E356EB1AD99517003FC87E /* Frameworks */, 193 | 00E356EC1AD99517003FC87E /* Resources */, 194 | ); 195 | buildRules = ( 196 | ); 197 | dependencies = ( 198 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 199 | ); 200 | name = uberCloneRnTests; 201 | productName = uberCloneRnTests; 202 | productReference = 00E356EE1AD99517003FC87E /* uberCloneRnTests.xctest */; 203 | productType = "com.apple.product-type.bundle.unit-test"; 204 | }; 205 | 13B07F861A680F5B00A75B9A /* uberCloneRn */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "uberCloneRn" */; 208 | buildPhases = ( 209 | FD10A7F022414F080027D42C /* Start Packager */, 210 | 13B07F871A680F5B00A75B9A /* Sources */, 211 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 212 | 13B07F8E1A680F5B00A75B9A /* Resources */, 213 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 214 | ); 215 | buildRules = ( 216 | ); 217 | dependencies = ( 218 | ); 219 | name = uberCloneRn; 220 | productName = uberCloneRn; 221 | productReference = 13B07F961A680F5B00A75B9A /* uberCloneRn.app */; 222 | productType = "com.apple.product-type.application"; 223 | }; 224 | /* End PBXNativeTarget section */ 225 | 226 | /* Begin PBXProject section */ 227 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 228 | isa = PBXProject; 229 | attributes = { 230 | LastUpgradeCheck = 1210; 231 | TargetAttributes = { 232 | 00E356ED1AD99517003FC87E = { 233 | CreatedOnToolsVersion = 6.2; 234 | TestTargetID = 13B07F861A680F5B00A75B9A; 235 | }; 236 | 13B07F861A680F5B00A75B9A = { 237 | LastSwiftMigration = 1120; 238 | }; 239 | }; 240 | }; 241 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "uberCloneRn" */; 242 | compatibilityVersion = "Xcode 12.0"; 243 | developmentRegion = en; 244 | hasScannedForEncodings = 0; 245 | knownRegions = ( 246 | en, 247 | Base, 248 | ); 249 | mainGroup = 83CBB9F61A601CBA00E9B192; 250 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 251 | projectDirPath = ""; 252 | projectRoot = ""; 253 | targets = ( 254 | 13B07F861A680F5B00A75B9A /* uberCloneRn */, 255 | 00E356ED1AD99517003FC87E /* uberCloneRnTests */, 256 | ); 257 | }; 258 | /* End PBXProject section */ 259 | 260 | /* Begin PBXResourcesBuildPhase section */ 261 | 00E356EC1AD99517003FC87E /* Resources */ = { 262 | isa = PBXResourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 269 | isa = PBXResourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 273 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 274 | DC37C33807EC42B0BE06F363 /* AntDesign.ttf in Resources */, 275 | 5EA0205B5F974BBDAC90AF7B /* Entypo.ttf in Resources */, 276 | 0EDA622FCDA84E8CA1DAC1E9 /* EvilIcons.ttf in Resources */, 277 | 02B8EE9A327D4F8E9A3B7314 /* Feather.ttf in Resources */, 278 | 6357124BF768443797BCB201 /* FontAwesome.ttf in Resources */, 279 | 97E865043D3247ECABAE74C8 /* FontAwesome5_Brands.ttf in Resources */, 280 | 449A23758E1A46F2869D937D /* FontAwesome5_Regular.ttf in Resources */, 281 | A3D20EA5C6AA4D35BAE5EA5C /* FontAwesome5_Solid.ttf in Resources */, 282 | F66E8C4C6E6A4EBC82B3E5D0 /* Fontisto.ttf in Resources */, 283 | 1F0CC68E4EFA4F059954548C /* Foundation.ttf in Resources */, 284 | DD37D1B649D74235BB9E5AA9 /* Ionicons.ttf in Resources */, 285 | 4495F3F3421C4753A66700DB /* MaterialCommunityIcons.ttf in Resources */, 286 | E6196A4D731B48A58C635BBA /* MaterialIcons.ttf in Resources */, 287 | A9D6507D28344681945012AB /* Octicons.ttf in Resources */, 288 | 2DA54BF520B24F049181A7EC /* SimpleLineIcons.ttf in Resources */, 289 | 36ED7FEB201043EF81616A25 /* Zocial.ttf in Resources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | /* End PBXResourcesBuildPhase section */ 294 | 295 | /* Begin PBXShellScriptBuildPhase section */ 296 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 297 | isa = PBXShellScriptBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | ); 301 | inputPaths = ( 302 | ); 303 | name = "Bundle React Native code and images"; 304 | outputPaths = ( 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | shellPath = /bin/sh; 308 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 309 | }; 310 | FD10A7F022414F080027D42C /* Start Packager */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | ); 315 | inputFileListPaths = ( 316 | ); 317 | inputPaths = ( 318 | ); 319 | name = "Start Packager"; 320 | outputFileListPaths = ( 321 | ); 322 | outputPaths = ( 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 327 | showEnvVarsInLog = 0; 328 | }; 329 | /* End PBXShellScriptBuildPhase section */ 330 | 331 | /* Begin PBXSourcesBuildPhase section */ 332 | 00E356EA1AD99517003FC87E /* Sources */ = { 333 | isa = PBXSourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | 00E356F31AD99517003FC87E /* uberCloneRnTests.m in Sources */, 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | }; 340 | 13B07F871A680F5B00A75B9A /* Sources */ = { 341 | isa = PBXSourcesBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 345 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | /* End PBXSourcesBuildPhase section */ 350 | 351 | /* Begin PBXTargetDependency section */ 352 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 353 | isa = PBXTargetDependency; 354 | target = 13B07F861A680F5B00A75B9A /* uberCloneRn */; 355 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 356 | }; 357 | /* End PBXTargetDependency section */ 358 | 359 | /* Begin XCBuildConfiguration section */ 360 | 00E356F61AD99517003FC87E /* Debug */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | BUNDLE_LOADER = "$(TEST_HOST)"; 364 | GCC_PREPROCESSOR_DEFINITIONS = ( 365 | "DEBUG=1", 366 | "$(inherited)", 367 | ); 368 | INFOPLIST_FILE = uberCloneRnTests/Info.plist; 369 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 370 | LD_RUNPATH_SEARCH_PATHS = ( 371 | "$(inherited)", 372 | "@executable_path/Frameworks", 373 | "@loader_path/Frameworks", 374 | ); 375 | OTHER_LDFLAGS = ( 376 | "-ObjC", 377 | "-lc++", 378 | "$(inherited)", 379 | ); 380 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 381 | PRODUCT_NAME = "$(TARGET_NAME)"; 382 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/uberCloneRn.app/uberCloneRn"; 383 | }; 384 | name = Debug; 385 | }; 386 | 00E356F71AD99517003FC87E /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | BUNDLE_LOADER = "$(TEST_HOST)"; 390 | COPY_PHASE_STRIP = NO; 391 | INFOPLIST_FILE = uberCloneRnTests/Info.plist; 392 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 393 | LD_RUNPATH_SEARCH_PATHS = ( 394 | "$(inherited)", 395 | "@executable_path/Frameworks", 396 | "@loader_path/Frameworks", 397 | ); 398 | OTHER_LDFLAGS = ( 399 | "-ObjC", 400 | "-lc++", 401 | "$(inherited)", 402 | ); 403 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 404 | PRODUCT_NAME = "$(TARGET_NAME)"; 405 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/uberCloneRn.app/uberCloneRn"; 406 | }; 407 | name = Release; 408 | }; 409 | 13B07F941A680F5B00A75B9A /* Debug */ = { 410 | isa = XCBuildConfiguration; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = 1; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = uberCloneRn/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = ( 418 | "$(inherited)", 419 | "@executable_path/Frameworks", 420 | ); 421 | OTHER_LDFLAGS = ( 422 | "$(inherited)", 423 | "-ObjC", 424 | "-lc++", 425 | ); 426 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 427 | PRODUCT_NAME = uberCloneRn; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | SWIFT_VERSION = 5.0; 430 | VERSIONING_SYSTEM = "apple-generic"; 431 | }; 432 | name = Debug; 433 | }; 434 | 13B07F951A680F5B00A75B9A /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 438 | CLANG_ENABLE_MODULES = YES; 439 | CURRENT_PROJECT_VERSION = 1; 440 | INFOPLIST_FILE = uberCloneRn/Info.plist; 441 | LD_RUNPATH_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "@executable_path/Frameworks", 444 | ); 445 | OTHER_LDFLAGS = ( 446 | "$(inherited)", 447 | "-ObjC", 448 | "-lc++", 449 | ); 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 451 | PRODUCT_NAME = uberCloneRn; 452 | SWIFT_VERSION = 5.0; 453 | VERSIONING_SYSTEM = "apple-generic"; 454 | }; 455 | name = Release; 456 | }; 457 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 462 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 463 | CLANG_CXX_LIBRARY = "libc++"; 464 | CLANG_ENABLE_MODULES = YES; 465 | CLANG_ENABLE_OBJC_ARC = YES; 466 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 467 | CLANG_WARN_BOOL_CONVERSION = YES; 468 | CLANG_WARN_COMMA = YES; 469 | CLANG_WARN_CONSTANT_CONVERSION = YES; 470 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 472 | CLANG_WARN_EMPTY_BODY = YES; 473 | CLANG_WARN_ENUM_CONVERSION = YES; 474 | CLANG_WARN_INFINITE_RECURSION = YES; 475 | CLANG_WARN_INT_CONVERSION = YES; 476 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 477 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 478 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 479 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 480 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 481 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 482 | CLANG_WARN_STRICT_PROTOTYPES = YES; 483 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 484 | CLANG_WARN_UNREACHABLE_CODE = YES; 485 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 486 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 487 | COPY_PHASE_STRIP = NO; 488 | ENABLE_STRICT_OBJC_MSGSEND = YES; 489 | ENABLE_TESTABILITY = YES; 490 | GCC_C_LANGUAGE_STANDARD = gnu99; 491 | GCC_DYNAMIC_NO_PIC = NO; 492 | GCC_NO_COMMON_BLOCKS = YES; 493 | GCC_OPTIMIZATION_LEVEL = 0; 494 | GCC_PREPROCESSOR_DEFINITIONS = ( 495 | "DEBUG=1", 496 | "$(inherited)", 497 | ); 498 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 499 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 500 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 501 | GCC_WARN_UNDECLARED_SELECTOR = YES; 502 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 503 | GCC_WARN_UNUSED_FUNCTION = YES; 504 | GCC_WARN_UNUSED_VARIABLE = YES; 505 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 506 | LD_RUNPATH_SEARCH_PATHS = ( 507 | /usr/lib/swift, 508 | "$(inherited)", 509 | ); 510 | LIBRARY_SEARCH_PATHS = ( 511 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 512 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 513 | "\"$(inherited)\"", 514 | ); 515 | MTL_ENABLE_DEBUG_INFO = YES; 516 | ONLY_ACTIVE_ARCH = YES; 517 | SDKROOT = iphoneos; 518 | }; 519 | name = Debug; 520 | }; 521 | 83CBBA211A601CBA00E9B192 /* Release */ = { 522 | isa = XCBuildConfiguration; 523 | buildSettings = { 524 | ALWAYS_SEARCH_USER_PATHS = NO; 525 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 526 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 527 | CLANG_CXX_LIBRARY = "libc++"; 528 | CLANG_ENABLE_MODULES = YES; 529 | CLANG_ENABLE_OBJC_ARC = YES; 530 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 531 | CLANG_WARN_BOOL_CONVERSION = YES; 532 | CLANG_WARN_COMMA = YES; 533 | CLANG_WARN_CONSTANT_CONVERSION = YES; 534 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 535 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 536 | CLANG_WARN_EMPTY_BODY = YES; 537 | CLANG_WARN_ENUM_CONVERSION = YES; 538 | CLANG_WARN_INFINITE_RECURSION = YES; 539 | CLANG_WARN_INT_CONVERSION = YES; 540 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 541 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 542 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 543 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 544 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 545 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 546 | CLANG_WARN_STRICT_PROTOTYPES = YES; 547 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 548 | CLANG_WARN_UNREACHABLE_CODE = YES; 549 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 550 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 551 | COPY_PHASE_STRIP = YES; 552 | ENABLE_NS_ASSERTIONS = NO; 553 | ENABLE_STRICT_OBJC_MSGSEND = YES; 554 | GCC_C_LANGUAGE_STANDARD = gnu99; 555 | GCC_NO_COMMON_BLOCKS = YES; 556 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 557 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 558 | GCC_WARN_UNDECLARED_SELECTOR = YES; 559 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 560 | GCC_WARN_UNUSED_FUNCTION = YES; 561 | GCC_WARN_UNUSED_VARIABLE = YES; 562 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 563 | LD_RUNPATH_SEARCH_PATHS = ( 564 | /usr/lib/swift, 565 | "$(inherited)", 566 | ); 567 | LIBRARY_SEARCH_PATHS = ( 568 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 569 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 570 | "\"$(inherited)\"", 571 | ); 572 | MTL_ENABLE_DEBUG_INFO = NO; 573 | SDKROOT = iphoneos; 574 | VALIDATE_PRODUCT = YES; 575 | }; 576 | name = Release; 577 | }; 578 | /* End XCBuildConfiguration section */ 579 | 580 | /* Begin XCConfigurationList section */ 581 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "uberCloneRnTests" */ = { 582 | isa = XCConfigurationList; 583 | buildConfigurations = ( 584 | 00E356F61AD99517003FC87E /* Debug */, 585 | 00E356F71AD99517003FC87E /* Release */, 586 | ); 587 | defaultConfigurationIsVisible = 0; 588 | defaultConfigurationName = Release; 589 | }; 590 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "uberCloneRn" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | 13B07F941A680F5B00A75B9A /* Debug */, 594 | 13B07F951A680F5B00A75B9A /* Release */, 595 | ); 596 | defaultConfigurationIsVisible = 0; 597 | defaultConfigurationName = Release; 598 | }; 599 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "uberCloneRn" */ = { 600 | isa = XCConfigurationList; 601 | buildConfigurations = ( 602 | 83CBBA201A601CBA00E9B192 /* Debug */, 603 | 83CBBA211A601CBA00E9B192 /* Release */, 604 | ); 605 | defaultConfigurationIsVisible = 0; 606 | defaultConfigurationName = Release; 607 | }; 608 | /* End XCConfigurationList section */ 609 | }; 610 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 611 | } 612 | -------------------------------------------------------------------------------- /ios/uberCloneRn.xcodeproj/xcshareddata/xcschemes/uberCloneRn.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/uberCloneRn/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/uberCloneRn/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"uberCloneRn" 37 | initialProperties:nil]; 38 | 39 | if (@available(iOS 13.0, *)) { 40 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 41 | } else { 42 | rootView.backgroundColor = [UIColor whiteColor]; 43 | } 44 | 45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 46 | UIViewController *rootViewController = [UIViewController new]; 47 | rootViewController.view = rootView; 48 | self.window.rootViewController = rootViewController; 49 | [self.window makeKeyAndVisible]; 50 | return YES; 51 | } 52 | 53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 54 | { 55 | #if DEBUG 56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 57 | #else 58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 59 | #endif 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /ios/uberCloneRn/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/uberCloneRn/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/uberCloneRn/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | uberCloneRn 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | UIAppFonts 55 | 56 | AntDesign.ttf 57 | Entypo.ttf 58 | EvilIcons.ttf 59 | Feather.ttf 60 | FontAwesome.ttf 61 | FontAwesome5_Brands.ttf 62 | FontAwesome5_Regular.ttf 63 | FontAwesome5_Solid.ttf 64 | Fontisto.ttf 65 | Foundation.ttf 66 | Ionicons.ttf 67 | MaterialCommunityIcons.ttf 68 | MaterialIcons.ttf 69 | Octicons.ttf 70 | SimpleLineIcons.ttf 71 | Zocial.ttf 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /ios/uberCloneRn/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/uberCloneRn/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/uberCloneRnTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/uberCloneRnTests/uberCloneRnTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface uberCloneRnTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation uberCloneRnTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uberclonern", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-community/masked-view": "^0.1.11", 14 | "@react-navigation/native": "^5.9.4", 15 | "@react-navigation/stack": "^5.14.5", 16 | "@reduxjs/toolkit": "^1.6.1", 17 | "react": "17.0.1", 18 | "react-native": "0.64.2", 19 | "react-native-dotenv": "^3.1.1", 20 | "react-native-elements": "^3.4.2", 21 | "react-native-geolocation-service": "^5.3.0-beta.1", 22 | "react-native-gesture-handler": "^1.10.3", 23 | "react-native-google-places-autocomplete": "^2.2.0", 24 | "react-native-maps": "0.28.0", 25 | "react-native-maps-directions": "^1.8.0", 26 | "react-native-reanimated": "^2.2.0", 27 | "react-native-safe-area-context": "^3.2.0", 28 | "react-native-screens": "^3.4.0", 29 | "react-native-vector-icons": "^8.1.0", 30 | "react-redux": "^7.2.4", 31 | "source-map": "^0.7.3", 32 | "tailwind-react-native-classnames": "^1.4.1" 33 | }, 34 | "devDependencies": { 35 | "@babel/core": "^7.12.9", 36 | "@babel/runtime": "^7.12.5", 37 | "@react-native-community/eslint-config": "^2.0.0", 38 | "babel-jest": "^26.6.3", 39 | "eslint": "7.14.0", 40 | "jest": "^26.6.3", 41 | "metro-react-native-babel-preset": "^0.64.0", 42 | "react-test-renderer": "17.0.1" 43 | }, 44 | "jest": { 45 | "preset": "react-native" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /screens/HomeScreen.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useRef} from 'react'; 2 | import { 3 | Image, 4 | PermissionsAndroid, 5 | SafeAreaView, 6 | StyleSheet, 7 | Text, 8 | TouchableOpacity, 9 | View, 10 | } from 'react-native'; 11 | import tw from 'tailwind-react-native-classnames'; 12 | import NavOptions from '../components/NavOptions'; 13 | import {GooglePlacesAutocomplete} from 'react-native-google-places-autocomplete'; 14 | import {useDispatch} from 'react-redux'; 15 | import {setOrigin, setDestination} from '../slices/navSlice'; 16 | import NavFavourites from '../components/NavFavourites'; 17 | import Map from '../components/Map'; 18 | import {ScrollView} from 'react-native-gesture-handler'; 19 | import {GOOGLE_MAPS_KEY} from '@env'; 20 | import {Icon} from 'react-native-elements/dist/icons/Icon'; 21 | import {Divider} from 'react-native-elements/dist/divider/Divider'; 22 | import Geolocation from 'react-native-geolocation-service'; 23 | 24 | navigator.geolocation = require('react-native-geolocation-service'); 25 | 26 | const HomeScreen = ({navigation}) => { 27 | const dispatch = useDispatch(); 28 | const gInput = useRef(null); 29 | 30 | const requestLocationPermission = async () => { 31 | try { 32 | const granted = await PermissionsAndroid.request( 33 | PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, 34 | { 35 | title: 'Uber', 36 | message: 'Allow us you use your location.', 37 | }, 38 | ); 39 | if (granted === PermissionsAndroid.RESULTS.GRANTED) { 40 | console.log('You can use the location'); 41 | } else { 42 | console.log('location permission denied'); 43 | } 44 | } catch (err) { 45 | console.warn(err); 46 | } 47 | }; 48 | 49 | useEffect(() => { 50 | try { 51 | Geolocation.getCurrentPosition( 52 | position => {}, 53 | error => { 54 | // See error code charts below. 55 | console.log(error.code, error.message); 56 | }, 57 | {enableHighAccuracy: false, timeout: 15000, maximumAge: 10000}, 58 | ); 59 | } catch (e) { 60 | requestLocationPermission(); 61 | } 62 | }, []); 63 | 64 | return ( 65 | 66 | 67 | 80 | {[...Array(100)].map((a, i) => ( 81 | 89 | ))} 90 | 91 | 96 | { 123 | if (data?.geometry) { 124 | // Code will execute if user has selected current location 125 | dispatch( 126 | setOrigin({ 127 | location: data?.geometry.location, 128 | description: data.name, 129 | }), 130 | ); 131 | dispatch(setDestination(null)); 132 | return; 133 | } 134 | dispatch( 135 | setOrigin({ 136 | location: details.geometry.location, 137 | description: data.description, 138 | }), 139 | ); 140 | dispatch(setDestination(null)); 141 | }} 142 | fetchDetails={true} 143 | query={{ 144 | key: GOOGLE_MAPS_KEY, 145 | language: 'en', 146 | }} 147 | onFail={e => { 148 | console.log(e, 'eeeeeee'); 149 | }} 150 | currentLocation={false} // keeping current location option off 151 | currentLocationLabel={`Current location`}> 152 | { 154 | dispatch(setOrigin(null)); 155 | gInput.current?.setAddressText(''); 156 | }} 157 | style={{position: 'absolute', top: 14, right: 10}}> 158 | 159 | 160 | 161 | 162 | 163 | { 165 | gInput.current?.setAddressText(''); 166 | }} 167 | /> 168 | 169 | 170 | 171 | ); 172 | }; 173 | 174 | export default HomeScreen; 175 | 176 | const styles = StyleSheet.create({ 177 | container: { 178 | flex: 1, 179 | justifyContent: 'center', 180 | alignItems: 'center', 181 | backgroundColor: '#F5FCFF', 182 | }, 183 | }); 184 | -------------------------------------------------------------------------------- /screens/MapScreen.js: -------------------------------------------------------------------------------- 1 | import {useNavigation} from '@react-navigation/native'; 2 | import {createStackNavigator} from '@react-navigation/stack'; 3 | import React from 'react'; 4 | import {StyleSheet, TouchableOpacity, View} from 'react-native'; 5 | import {Icon} from 'react-native-elements/dist/icons/Icon'; 6 | import {useDispatch} from 'react-redux'; 7 | import tw from 'tailwind-react-native-classnames'; 8 | import Map from '../components/Map'; 9 | import NavigateCard from '../components/NavigateCard'; 10 | import RideOptionsCard from '../components/RideOptionsCard'; 11 | import {setDestination, setOrigin} from '../slices/navSlice'; 12 | 13 | const MapScreen = () => { 14 | const navigation = useNavigation(); 15 | const Stack = createStackNavigator(); 16 | const dispatch = useDispatch(); 17 | return ( 18 | 19 | { 21 | dispatch(setOrigin(null)); 22 | dispatch(setDestination(null)); 23 | navigation.navigate('HomeScreen'); 24 | }} 25 | style={tw`absolute top-5 left-5 bg-gray-100 z-50 p-3 rounded-full shadow-lg`}> 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 40 | 47 | 48 | 49 | 50 | ); 51 | }; 52 | 53 | export default MapScreen; 54 | 55 | const styles = StyleSheet.create({}); 56 | -------------------------------------------------------------------------------- /slices/navSlice.js: -------------------------------------------------------------------------------- 1 | import {createSlice} from '@reduxjs/toolkit'; 2 | 3 | const initialState = { 4 | origin: null, 5 | destination: null, 6 | travelTimeInformation: null, 7 | }; 8 | 9 | export const navSlice = createSlice({ 10 | name: 'nav', 11 | initialState, 12 | reducers: { 13 | setOrigin: (state, action) => { 14 | state.origin = action.payload; 15 | }, 16 | setDestination: (state, action) => { 17 | state.destination = action.payload; 18 | }, 19 | setTravelTimeInformation: (state, action) => { 20 | state.travelTimeInformation = action.payload; 21 | }, 22 | }, 23 | }); 24 | 25 | export const {setOrigin, setDestination, setTravelTimeInformation} = 26 | navSlice.actions; 27 | 28 | // Selectors 29 | export const selectOrigin = state => state.nav.origin; 30 | export const selectDestination = state => state.nav.destination; 31 | export const selectTravelTimeInformation = state => 32 | state.nav.travelTimeInformation; 33 | 34 | export default navSlice.reducer; 35 | -------------------------------------------------------------------------------- /store.js: -------------------------------------------------------------------------------- 1 | import {configureStore} from '@reduxjs/toolkit'; 2 | import navReducer from './slices/navSlice'; 3 | 4 | export const store = configureStore({ 5 | reducer: { 6 | nav: navReducer, 7 | }, 8 | }); 9 | --------------------------------------------------------------------------------