├── .babelrc ├── .buckconfig ├── .eslintrc ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .travis.yml ├── .watchmanconfig ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── Andale Mono.ttf │ │ │ ├── Arial Black.ttf │ │ │ ├── Arial.ttf │ │ │ ├── Comic Sans MS.ttf │ │ │ ├── Courier New.ttf │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Georgia.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Microsoft Sans Serif.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── Roboto.ttf │ │ │ ├── Roboto_medium.ttf │ │ │ ├── Rubik-Black.ttf │ │ │ ├── Rubik-BlackItalic.ttf │ │ │ ├── Rubik-Bold.ttf │ │ │ ├── Rubik-BoldItalic.ttf │ │ │ ├── Rubik-Italic.ttf │ │ │ ├── Rubik-Light.ttf │ │ │ ├── Rubik-LightItalic.ttf │ │ │ ├── Rubik-Medium.ttf │ │ │ ├── Rubik-MediumItalic.ttf │ │ │ ├── Rubik-Regular.ttf │ │ │ ├── SF-UI-Text-Regular.otf │ │ │ ├── SanFrancisco.ttf │ │ │ ├── SanFranciscoBold.ttf │ │ │ ├── SanFranciscoThin.ttf │ │ │ ├── Skia.ttf │ │ │ ├── Times New Roman.ttf │ │ │ ├── Zocial.ttf │ │ │ └── rubicon-icon-font.ttf │ │ ├── java │ │ └── com │ │ │ └── rnauth │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── index.android.js ├── index.ios.js ├── ios ├── rnauth-tvOS │ └── Info.plist ├── rnauth-tvOSTests │ └── Info.plist ├── rnauth.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── rnauth-tvOS.xcscheme │ │ └── rnauth.xcscheme ├── rnauth │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── rnauthTests │ ├── Info.plist │ └── rnauthTests.m ├── package.json ├── previewgif.gif ├── readme.md └── src ├── App.js ├── Router.js ├── components ├── auth │ ├── Signin.js │ ├── Signup.js │ └── authStyle.js ├── common │ ├── Button.js │ ├── Confirm.js │ ├── Container.js │ ├── Header.js │ ├── Input.js │ ├── Item.js │ ├── Spinner.js │ └── index.js └── post │ ├── PostCreate.js │ ├── PostEdit.js │ ├── PostList.js │ └── postStyle.js ├── configureStore.js ├── containers ├── auth │ ├── Signin.js │ ├── Signup.js │ ├── requireAuth.js │ └── requireNotAuth.js └── post │ ├── PostCreate.js │ ├── PostEdit.js │ └── PostList.js ├── firebase.example.json └── modules ├── auth.js └── post.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb", 3 | "env": { 4 | "node": true 5 | }, 6 | "rules": { 7 | "func-names": 0, 8 | "no-underscore-dangle": 0, 9 | "max-len": 0, 10 | "no-class-assign": 0, 11 | "react/no-unescaped-entities": 0, 12 | "jsx-a11y/no-static-element-interactions" : 0, 13 | "react/jsx-filename-extension" : 0, 14 | "no-use-before-define" : 0 15 | } 16 | } -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | 4 | ; Ignore "BUCK" generated dirs 5 | /\.buckd/ 6 | 7 | ; Ignore unexpected extra "@providesModule" 8 | .*/node_modules/.*/node_modules/fbjs/.* 9 | 10 | ; Ignore duplicate module providers 11 | ; For RN Apps installed via npm, "Libraries" folder is inside 12 | ; "node_modules/react-native" but in the source repo it is in the root 13 | .*/Libraries/react-native/React.js 14 | .*/Libraries/react-native/ReactNative.js 15 | 16 | [include] 17 | 18 | [libs] 19 | node_modules/react-native/Libraries/react-native/react-native-interface.js 20 | node_modules/react-native/flow 21 | flow/ 22 | 23 | [options] 24 | module.system=haste 25 | 26 | experimental.strict_type_args=true 27 | 28 | munge_underscores=true 29 | 30 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 31 | 32 | suppress_type=$FlowIssue 33 | suppress_type=$FlowFixMe 34 | suppress_type=$FixMe 35 | 36 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 39 | 40 | unsafe.enable_getters_and_setters=true 41 | 42 | [version] 43 | ^0.37.0 44 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | src/firebase.json 2 | 3 | # OSX 4 | # 5 | .DS_Store 6 | 7 | # Xcode 8 | # 9 | build/ 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | *.xccheckout 20 | *.moved-aside 21 | DerivedData 22 | *.hmap 23 | *.ipa 24 | *.xcuserstate 25 | project.xcworkspace 26 | 27 | # Android/IntelliJ 28 | # 29 | build/ 30 | .idea 31 | .gradle 32 | local.properties 33 | *.iml 34 | 35 | # node.js 36 | # 37 | node_modules/ 38 | npm-debug.log 39 | yarn-error.log 40 | 41 | # BUCK 42 | buck-out/ 43 | \.buckd/ 44 | android/app/libs 45 | *.keystore 46 | 47 | # fastlane 48 | # 49 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 50 | # screenshots whenever they are needed. 51 | # For more information about the recommended setup visit: 52 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 53 | 54 | fastlane/report.xml 55 | fastlane/Preview.html 56 | fastlane/screenshots 57 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "node" 5 | script: 6 | - npm run lint -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.rnauth', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.rnauth', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.rnauth" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile fileTree(dir: "libs", include: ["*.jar"]) 130 | compile "com.android.support:appcompat-v7:23.0.1" 131 | compile "com.facebook.react:react-native:+" // From node_modules 132 | } 133 | 134 | // Run this once to be able to run the application with BUCK 135 | // puts all compile dependencies into folder libs for BUCK to use 136 | task copyDownloadableDepsToLibs(type: Copy) { 137 | from configurations.compile 138 | into 'libs' 139 | } 140 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Andale Mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Andale Mono.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Arial Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Arial Black.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Arial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Arial.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Comic Sans MS.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Comic Sans MS.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Courier New.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Courier New.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Georgia.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Georgia.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Microsoft Sans Serif.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Microsoft Sans Serif.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Roboto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Roboto.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Roboto_medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Roboto_medium.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-Black.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-BlackItalic.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-Bold.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-BoldItalic.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-Italic.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-Light.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-LightItalic.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-Medium.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-MediumItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-MediumItalic.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Rubik-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Rubik-Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SF-UI-Text-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/SF-UI-Text-Regular.otf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SanFrancisco.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/SanFrancisco.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SanFranciscoBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/SanFranciscoBold.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SanFranciscoThin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/SanFranciscoThin.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Skia.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Skia.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Times New Roman.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Times New Roman.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/rubicon-icon-font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/assets/fonts/rubicon-icon-font.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnauth/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rnauth; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "rnauth"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnauth/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rnauth; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | rnauth 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'rnauth' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/App'; 3 | 4 | AppRegistry.registerComponent('rnauth', () => App); 5 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/App'; 3 | 4 | AppRegistry.registerComponent('rnauth', () => App); 5 | -------------------------------------------------------------------------------- /ios/rnauth-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/rnauth-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/rnauth.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* rnauthTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* rnauthTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 34 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 35 | 2DCD954D1E0B4F2C00145EB5 /* rnauthTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* rnauthTests.m */; }; 36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 37 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 38 | /* End PBXBuildFile section */ 39 | 40 | /* Begin PBXContainerItemProxy section */ 41 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 44 | proxyType = 2; 45 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 46 | remoteInfo = RCTActionSheet; 47 | }; 48 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 51 | proxyType = 2; 52 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 53 | remoteInfo = RCTGeolocation; 54 | }; 55 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 56 | isa = PBXContainerItemProxy; 57 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 58 | proxyType = 2; 59 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 60 | remoteInfo = RCTImage; 61 | }; 62 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 63 | isa = PBXContainerItemProxy; 64 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 65 | proxyType = 2; 66 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 67 | remoteInfo = RCTNetwork; 68 | }; 69 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 70 | isa = PBXContainerItemProxy; 71 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 72 | proxyType = 2; 73 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 74 | remoteInfo = RCTVibration; 75 | }; 76 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 77 | isa = PBXContainerItemProxy; 78 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 79 | proxyType = 1; 80 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 81 | remoteInfo = rnauth; 82 | }; 83 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 84 | isa = PBXContainerItemProxy; 85 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 86 | proxyType = 2; 87 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 88 | remoteInfo = RCTSettings; 89 | }; 90 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 91 | isa = PBXContainerItemProxy; 92 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 93 | proxyType = 2; 94 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 95 | remoteInfo = RCTWebSocket; 96 | }; 97 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 98 | isa = PBXContainerItemProxy; 99 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 100 | proxyType = 2; 101 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 102 | remoteInfo = React; 103 | }; 104 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 105 | isa = PBXContainerItemProxy; 106 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 107 | proxyType = 1; 108 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 109 | remoteInfo = "rnauth-tvOS"; 110 | }; 111 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 112 | isa = PBXContainerItemProxy; 113 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 114 | proxyType = 2; 115 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 116 | remoteInfo = "RCTImage-tvOS"; 117 | }; 118 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 119 | isa = PBXContainerItemProxy; 120 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 121 | proxyType = 2; 122 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 123 | remoteInfo = "RCTLinking-tvOS"; 124 | }; 125 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 126 | isa = PBXContainerItemProxy; 127 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 128 | proxyType = 2; 129 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 130 | remoteInfo = "RCTNetwork-tvOS"; 131 | }; 132 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 133 | isa = PBXContainerItemProxy; 134 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 135 | proxyType = 2; 136 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 137 | remoteInfo = "RCTSettings-tvOS"; 138 | }; 139 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 140 | isa = PBXContainerItemProxy; 141 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 142 | proxyType = 2; 143 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 144 | remoteInfo = "RCTText-tvOS"; 145 | }; 146 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 147 | isa = PBXContainerItemProxy; 148 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 149 | proxyType = 2; 150 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 151 | remoteInfo = "RCTWebSocket-tvOS"; 152 | }; 153 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 154 | isa = PBXContainerItemProxy; 155 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 156 | proxyType = 2; 157 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 158 | remoteInfo = "React-tvOS"; 159 | }; 160 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 161 | isa = PBXContainerItemProxy; 162 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 163 | proxyType = 2; 164 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 165 | remoteInfo = yoga; 166 | }; 167 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 168 | isa = PBXContainerItemProxy; 169 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 170 | proxyType = 2; 171 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 172 | remoteInfo = "yoga-tvOS"; 173 | }; 174 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 175 | isa = PBXContainerItemProxy; 176 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 177 | proxyType = 2; 178 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 179 | remoteInfo = cxxreact; 180 | }; 181 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 182 | isa = PBXContainerItemProxy; 183 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 184 | proxyType = 2; 185 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 186 | remoteInfo = "cxxreact-tvOS"; 187 | }; 188 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 189 | isa = PBXContainerItemProxy; 190 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 191 | proxyType = 2; 192 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 193 | remoteInfo = jschelpers; 194 | }; 195 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 196 | isa = PBXContainerItemProxy; 197 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 198 | proxyType = 2; 199 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 200 | remoteInfo = "jschelpers-tvOS"; 201 | }; 202 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 203 | isa = PBXContainerItemProxy; 204 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 205 | proxyType = 2; 206 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 207 | remoteInfo = RCTAnimation; 208 | }; 209 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 210 | isa = PBXContainerItemProxy; 211 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 212 | proxyType = 2; 213 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 214 | remoteInfo = "RCTAnimation-tvOS"; 215 | }; 216 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 217 | isa = PBXContainerItemProxy; 218 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 219 | proxyType = 2; 220 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 221 | remoteInfo = RCTLinking; 222 | }; 223 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 224 | isa = PBXContainerItemProxy; 225 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 226 | proxyType = 2; 227 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 228 | remoteInfo = RCTText; 229 | }; 230 | /* End PBXContainerItemProxy section */ 231 | 232 | /* Begin PBXFileReference section */ 233 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 234 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 235 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 236 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 237 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 238 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 239 | 00E356EE1AD99517003FC87E /* rnauthTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = rnauthTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 240 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 241 | 00E356F21AD99517003FC87E /* rnauthTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = rnauthTests.m; sourceTree = ""; }; 242 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 243 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 244 | 13B07F961A680F5B00A75B9A /* rnauth.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = rnauth.app; sourceTree = BUILT_PRODUCTS_DIR; }; 245 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = rnauth/AppDelegate.h; sourceTree = ""; }; 246 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = rnauth/AppDelegate.m; sourceTree = ""; }; 247 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 248 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = rnauth/Images.xcassets; sourceTree = ""; }; 249 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = rnauth/Info.plist; sourceTree = ""; }; 250 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = rnauth/main.m; sourceTree = ""; }; 251 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 252 | 2D02E47B1E0B4A5D006451C7 /* rnauth-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "rnauth-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 253 | 2D02E4901E0B4A5D006451C7 /* rnauth-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "rnauth-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 254 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 255 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 256 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 257 | /* End PBXFileReference section */ 258 | 259 | /* Begin PBXFrameworksBuildPhase section */ 260 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 261 | isa = PBXFrameworksBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 269 | isa = PBXFrameworksBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 273 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 274 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 275 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 276 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 277 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 278 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 279 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 280 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 281 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 282 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 283 | ); 284 | runOnlyForDeploymentPostprocessing = 0; 285 | }; 286 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 287 | isa = PBXFrameworksBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 291 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 292 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 293 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 294 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 295 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 296 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 297 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 302 | isa = PBXFrameworksBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | }; 308 | /* End PBXFrameworksBuildPhase section */ 309 | 310 | /* Begin PBXGroup section */ 311 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 312 | isa = PBXGroup; 313 | children = ( 314 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 315 | ); 316 | name = Products; 317 | sourceTree = ""; 318 | }; 319 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 320 | isa = PBXGroup; 321 | children = ( 322 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 323 | ); 324 | name = Products; 325 | sourceTree = ""; 326 | }; 327 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 328 | isa = PBXGroup; 329 | children = ( 330 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 331 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 332 | ); 333 | name = Products; 334 | sourceTree = ""; 335 | }; 336 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 337 | isa = PBXGroup; 338 | children = ( 339 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 340 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 341 | ); 342 | name = Products; 343 | sourceTree = ""; 344 | }; 345 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 346 | isa = PBXGroup; 347 | children = ( 348 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 349 | ); 350 | name = Products; 351 | sourceTree = ""; 352 | }; 353 | 00E356EF1AD99517003FC87E /* rnauthTests */ = { 354 | isa = PBXGroup; 355 | children = ( 356 | 00E356F21AD99517003FC87E /* rnauthTests.m */, 357 | 00E356F01AD99517003FC87E /* Supporting Files */, 358 | ); 359 | path = rnauthTests; 360 | sourceTree = ""; 361 | }; 362 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 363 | isa = PBXGroup; 364 | children = ( 365 | 00E356F11AD99517003FC87E /* Info.plist */, 366 | ); 367 | name = "Supporting Files"; 368 | sourceTree = ""; 369 | }; 370 | 139105B71AF99BAD00B5F7CC /* Products */ = { 371 | isa = PBXGroup; 372 | children = ( 373 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 374 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 375 | ); 376 | name = Products; 377 | sourceTree = ""; 378 | }; 379 | 139FDEE71B06529A00C62182 /* Products */ = { 380 | isa = PBXGroup; 381 | children = ( 382 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 383 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 384 | ); 385 | name = Products; 386 | sourceTree = ""; 387 | }; 388 | 13B07FAE1A68108700A75B9A /* rnauth */ = { 389 | isa = PBXGroup; 390 | children = ( 391 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 392 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 393 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 394 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 395 | 13B07FB61A68108700A75B9A /* Info.plist */, 396 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 397 | 13B07FB71A68108700A75B9A /* main.m */, 398 | ); 399 | name = rnauth; 400 | sourceTree = ""; 401 | }; 402 | 146834001AC3E56700842450 /* Products */ = { 403 | isa = PBXGroup; 404 | children = ( 405 | 146834041AC3E56700842450 /* libReact.a */, 406 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 407 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 408 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 409 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 410 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 411 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 412 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 413 | ); 414 | name = Products; 415 | sourceTree = ""; 416 | }; 417 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 418 | isa = PBXGroup; 419 | children = ( 420 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 421 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 422 | ); 423 | name = Products; 424 | sourceTree = ""; 425 | }; 426 | 78C398B11ACF4ADC00677621 /* Products */ = { 427 | isa = PBXGroup; 428 | children = ( 429 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 430 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 431 | ); 432 | name = Products; 433 | sourceTree = ""; 434 | }; 435 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 436 | isa = PBXGroup; 437 | children = ( 438 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 439 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 440 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 441 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 442 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 443 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 444 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 445 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 446 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 447 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 448 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 449 | ); 450 | name = Libraries; 451 | sourceTree = ""; 452 | }; 453 | 832341B11AAA6A8300B99B32 /* Products */ = { 454 | isa = PBXGroup; 455 | children = ( 456 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 457 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 458 | ); 459 | name = Products; 460 | sourceTree = ""; 461 | }; 462 | 83CBB9F61A601CBA00E9B192 = { 463 | isa = PBXGroup; 464 | children = ( 465 | 13B07FAE1A68108700A75B9A /* rnauth */, 466 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 467 | 00E356EF1AD99517003FC87E /* rnauthTests */, 468 | 83CBBA001A601CBA00E9B192 /* Products */, 469 | 112AB83EC4D0472FABDB7849 /* Resources */, 470 | ); 471 | indentWidth = 2; 472 | sourceTree = ""; 473 | tabWidth = 2; 474 | }; 475 | 83CBBA001A601CBA00E9B192 /* Products */ = { 476 | isa = PBXGroup; 477 | children = ( 478 | 13B07F961A680F5B00A75B9A /* rnauth.app */, 479 | 00E356EE1AD99517003FC87E /* rnauthTests.xctest */, 480 | 2D02E47B1E0B4A5D006451C7 /* rnauth-tvOS.app */, 481 | 2D02E4901E0B4A5D006451C7 /* rnauth-tvOSTests.xctest */, 482 | ); 483 | name = Products; 484 | sourceTree = ""; 485 | }; 486 | 112AB83EC4D0472FABDB7849 /* Resources */ = { 487 | isa = PBXGroup; 488 | children = ( 489 | ); 490 | name = Resources; 491 | path = ""; 492 | sourceTree = ""; 493 | }; 494 | /* End PBXGroup section */ 495 | 496 | /* Begin PBXNativeTarget section */ 497 | 00E356ED1AD99517003FC87E /* rnauthTests */ = { 498 | isa = PBXNativeTarget; 499 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rnauthTests" */; 500 | buildPhases = ( 501 | 00E356EA1AD99517003FC87E /* Sources */, 502 | 00E356EB1AD99517003FC87E /* Frameworks */, 503 | 00E356EC1AD99517003FC87E /* Resources */, 504 | ); 505 | buildRules = ( 506 | ); 507 | dependencies = ( 508 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 509 | ); 510 | name = rnauthTests; 511 | productName = rnauthTests; 512 | productReference = 00E356EE1AD99517003FC87E /* rnauthTests.xctest */; 513 | productType = "com.apple.product-type.bundle.unit-test"; 514 | }; 515 | 13B07F861A680F5B00A75B9A /* rnauth */ = { 516 | isa = PBXNativeTarget; 517 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rnauth" */; 518 | buildPhases = ( 519 | 13B07F871A680F5B00A75B9A /* Sources */, 520 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 521 | 13B07F8E1A680F5B00A75B9A /* Resources */, 522 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 523 | ); 524 | buildRules = ( 525 | ); 526 | dependencies = ( 527 | ); 528 | name = rnauth; 529 | productName = "Hello World"; 530 | productReference = 13B07F961A680F5B00A75B9A /* rnauth.app */; 531 | productType = "com.apple.product-type.application"; 532 | }; 533 | 2D02E47A1E0B4A5D006451C7 /* rnauth-tvOS */ = { 534 | isa = PBXNativeTarget; 535 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnauth-tvOS" */; 536 | buildPhases = ( 537 | 2D02E4771E0B4A5D006451C7 /* Sources */, 538 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 539 | 2D02E4791E0B4A5D006451C7 /* Resources */, 540 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 541 | ); 542 | buildRules = ( 543 | ); 544 | dependencies = ( 545 | ); 546 | name = "rnauth-tvOS"; 547 | productName = "rnauth-tvOS"; 548 | productReference = 2D02E47B1E0B4A5D006451C7 /* rnauth-tvOS.app */; 549 | productType = "com.apple.product-type.application"; 550 | }; 551 | 2D02E48F1E0B4A5D006451C7 /* rnauth-tvOSTests */ = { 552 | isa = PBXNativeTarget; 553 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnauth-tvOSTests" */; 554 | buildPhases = ( 555 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 556 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 557 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 558 | ); 559 | buildRules = ( 560 | ); 561 | dependencies = ( 562 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 563 | ); 564 | name = "rnauth-tvOSTests"; 565 | productName = "rnauth-tvOSTests"; 566 | productReference = 2D02E4901E0B4A5D006451C7 /* rnauth-tvOSTests.xctest */; 567 | productType = "com.apple.product-type.bundle.unit-test"; 568 | }; 569 | /* End PBXNativeTarget section */ 570 | 571 | /* Begin PBXProject section */ 572 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 573 | isa = PBXProject; 574 | attributes = { 575 | LastUpgradeCheck = 610; 576 | ORGANIZATIONNAME = Facebook; 577 | TargetAttributes = { 578 | 00E356ED1AD99517003FC87E = { 579 | CreatedOnToolsVersion = 6.2; 580 | TestTargetID = 13B07F861A680F5B00A75B9A; 581 | }; 582 | 2D02E47A1E0B4A5D006451C7 = { 583 | CreatedOnToolsVersion = 8.2.1; 584 | ProvisioningStyle = Automatic; 585 | }; 586 | 2D02E48F1E0B4A5D006451C7 = { 587 | CreatedOnToolsVersion = 8.2.1; 588 | ProvisioningStyle = Automatic; 589 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 590 | }; 591 | }; 592 | }; 593 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "rnauth" */; 594 | compatibilityVersion = "Xcode 3.2"; 595 | developmentRegion = English; 596 | hasScannedForEncodings = 0; 597 | knownRegions = ( 598 | en, 599 | Base, 600 | ); 601 | mainGroup = 83CBB9F61A601CBA00E9B192; 602 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 603 | projectDirPath = ""; 604 | projectReferences = ( 605 | { 606 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 607 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 608 | }, 609 | { 610 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 611 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 612 | }, 613 | { 614 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 615 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 616 | }, 617 | { 618 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 619 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 620 | }, 621 | { 622 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 623 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 624 | }, 625 | { 626 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 627 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 628 | }, 629 | { 630 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 631 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 632 | }, 633 | { 634 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 635 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 636 | }, 637 | { 638 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 639 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 640 | }, 641 | { 642 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 643 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 644 | }, 645 | { 646 | ProductGroup = 146834001AC3E56700842450 /* Products */; 647 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 648 | }, 649 | ); 650 | projectRoot = ""; 651 | targets = ( 652 | 13B07F861A680F5B00A75B9A /* rnauth */, 653 | 00E356ED1AD99517003FC87E /* rnauthTests */, 654 | 2D02E47A1E0B4A5D006451C7 /* rnauth-tvOS */, 655 | 2D02E48F1E0B4A5D006451C7 /* rnauth-tvOSTests */, 656 | ); 657 | }; 658 | /* End PBXProject section */ 659 | 660 | /* Begin PBXReferenceProxy section */ 661 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 662 | isa = PBXReferenceProxy; 663 | fileType = archive.ar; 664 | path = libRCTActionSheet.a; 665 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 666 | sourceTree = BUILT_PRODUCTS_DIR; 667 | }; 668 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 669 | isa = PBXReferenceProxy; 670 | fileType = archive.ar; 671 | path = libRCTGeolocation.a; 672 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 673 | sourceTree = BUILT_PRODUCTS_DIR; 674 | }; 675 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 676 | isa = PBXReferenceProxy; 677 | fileType = archive.ar; 678 | path = libRCTImage.a; 679 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 680 | sourceTree = BUILT_PRODUCTS_DIR; 681 | }; 682 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 683 | isa = PBXReferenceProxy; 684 | fileType = archive.ar; 685 | path = libRCTNetwork.a; 686 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 687 | sourceTree = BUILT_PRODUCTS_DIR; 688 | }; 689 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 690 | isa = PBXReferenceProxy; 691 | fileType = archive.ar; 692 | path = libRCTVibration.a; 693 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 694 | sourceTree = BUILT_PRODUCTS_DIR; 695 | }; 696 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 697 | isa = PBXReferenceProxy; 698 | fileType = archive.ar; 699 | path = libRCTSettings.a; 700 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 701 | sourceTree = BUILT_PRODUCTS_DIR; 702 | }; 703 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 704 | isa = PBXReferenceProxy; 705 | fileType = archive.ar; 706 | path = libRCTWebSocket.a; 707 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 708 | sourceTree = BUILT_PRODUCTS_DIR; 709 | }; 710 | 146834041AC3E56700842450 /* libReact.a */ = { 711 | isa = PBXReferenceProxy; 712 | fileType = archive.ar; 713 | path = libReact.a; 714 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 715 | sourceTree = BUILT_PRODUCTS_DIR; 716 | }; 717 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 718 | isa = PBXReferenceProxy; 719 | fileType = archive.ar; 720 | path = "libRCTImage-tvOS.a"; 721 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 722 | sourceTree = BUILT_PRODUCTS_DIR; 723 | }; 724 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 725 | isa = PBXReferenceProxy; 726 | fileType = archive.ar; 727 | path = "libRCTLinking-tvOS.a"; 728 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 729 | sourceTree = BUILT_PRODUCTS_DIR; 730 | }; 731 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 732 | isa = PBXReferenceProxy; 733 | fileType = archive.ar; 734 | path = "libRCTNetwork-tvOS.a"; 735 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 736 | sourceTree = BUILT_PRODUCTS_DIR; 737 | }; 738 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 739 | isa = PBXReferenceProxy; 740 | fileType = archive.ar; 741 | path = "libRCTSettings-tvOS.a"; 742 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 743 | sourceTree = BUILT_PRODUCTS_DIR; 744 | }; 745 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 746 | isa = PBXReferenceProxy; 747 | fileType = archive.ar; 748 | path = "libRCTText-tvOS.a"; 749 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 750 | sourceTree = BUILT_PRODUCTS_DIR; 751 | }; 752 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 753 | isa = PBXReferenceProxy; 754 | fileType = archive.ar; 755 | path = "libRCTWebSocket-tvOS.a"; 756 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 757 | sourceTree = BUILT_PRODUCTS_DIR; 758 | }; 759 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 760 | isa = PBXReferenceProxy; 761 | fileType = archive.ar; 762 | path = libReact.a; 763 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 764 | sourceTree = BUILT_PRODUCTS_DIR; 765 | }; 766 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 767 | isa = PBXReferenceProxy; 768 | fileType = archive.ar; 769 | path = libyoga.a; 770 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 771 | sourceTree = BUILT_PRODUCTS_DIR; 772 | }; 773 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 774 | isa = PBXReferenceProxy; 775 | fileType = archive.ar; 776 | path = libyoga.a; 777 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 778 | sourceTree = BUILT_PRODUCTS_DIR; 779 | }; 780 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 781 | isa = PBXReferenceProxy; 782 | fileType = archive.ar; 783 | path = libcxxreact.a; 784 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 785 | sourceTree = BUILT_PRODUCTS_DIR; 786 | }; 787 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 788 | isa = PBXReferenceProxy; 789 | fileType = archive.ar; 790 | path = libcxxreact.a; 791 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 792 | sourceTree = BUILT_PRODUCTS_DIR; 793 | }; 794 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 795 | isa = PBXReferenceProxy; 796 | fileType = archive.ar; 797 | path = libjschelpers.a; 798 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 799 | sourceTree = BUILT_PRODUCTS_DIR; 800 | }; 801 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 802 | isa = PBXReferenceProxy; 803 | fileType = archive.ar; 804 | path = libjschelpers.a; 805 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 806 | sourceTree = BUILT_PRODUCTS_DIR; 807 | }; 808 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 809 | isa = PBXReferenceProxy; 810 | fileType = archive.ar; 811 | path = libRCTAnimation.a; 812 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 813 | sourceTree = BUILT_PRODUCTS_DIR; 814 | }; 815 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 816 | isa = PBXReferenceProxy; 817 | fileType = archive.ar; 818 | path = "libRCTAnimation-tvOS.a"; 819 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 820 | sourceTree = BUILT_PRODUCTS_DIR; 821 | }; 822 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 823 | isa = PBXReferenceProxy; 824 | fileType = archive.ar; 825 | path = libRCTLinking.a; 826 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 827 | sourceTree = BUILT_PRODUCTS_DIR; 828 | }; 829 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 830 | isa = PBXReferenceProxy; 831 | fileType = archive.ar; 832 | path = libRCTText.a; 833 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 834 | sourceTree = BUILT_PRODUCTS_DIR; 835 | }; 836 | /* End PBXReferenceProxy section */ 837 | 838 | /* Begin PBXResourcesBuildPhase section */ 839 | 00E356EC1AD99517003FC87E /* Resources */ = { 840 | isa = PBXResourcesBuildPhase; 841 | buildActionMask = 2147483647; 842 | files = ( 843 | ); 844 | runOnlyForDeploymentPostprocessing = 0; 845 | }; 846 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 847 | isa = PBXResourcesBuildPhase; 848 | buildActionMask = 2147483647; 849 | files = ( 850 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 851 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 852 | ); 853 | runOnlyForDeploymentPostprocessing = 0; 854 | }; 855 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 856 | isa = PBXResourcesBuildPhase; 857 | buildActionMask = 2147483647; 858 | files = ( 859 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 860 | ); 861 | runOnlyForDeploymentPostprocessing = 0; 862 | }; 863 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 864 | isa = PBXResourcesBuildPhase; 865 | buildActionMask = 2147483647; 866 | files = ( 867 | ); 868 | runOnlyForDeploymentPostprocessing = 0; 869 | }; 870 | /* End PBXResourcesBuildPhase section */ 871 | 872 | /* Begin PBXShellScriptBuildPhase section */ 873 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 874 | isa = PBXShellScriptBuildPhase; 875 | buildActionMask = 2147483647; 876 | files = ( 877 | ); 878 | inputPaths = ( 879 | ); 880 | name = "Bundle React Native code and images"; 881 | outputPaths = ( 882 | ); 883 | runOnlyForDeploymentPostprocessing = 0; 884 | shellPath = /bin/sh; 885 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 886 | }; 887 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 888 | isa = PBXShellScriptBuildPhase; 889 | buildActionMask = 2147483647; 890 | files = ( 891 | ); 892 | inputPaths = ( 893 | ); 894 | name = "Bundle React Native Code And Images"; 895 | outputPaths = ( 896 | ); 897 | runOnlyForDeploymentPostprocessing = 0; 898 | shellPath = /bin/sh; 899 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 900 | }; 901 | /* End PBXShellScriptBuildPhase section */ 902 | 903 | /* Begin PBXSourcesBuildPhase section */ 904 | 00E356EA1AD99517003FC87E /* Sources */ = { 905 | isa = PBXSourcesBuildPhase; 906 | buildActionMask = 2147483647; 907 | files = ( 908 | 00E356F31AD99517003FC87E /* rnauthTests.m in Sources */, 909 | ); 910 | runOnlyForDeploymentPostprocessing = 0; 911 | }; 912 | 13B07F871A680F5B00A75B9A /* Sources */ = { 913 | isa = PBXSourcesBuildPhase; 914 | buildActionMask = 2147483647; 915 | files = ( 916 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 917 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 918 | ); 919 | runOnlyForDeploymentPostprocessing = 0; 920 | }; 921 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 922 | isa = PBXSourcesBuildPhase; 923 | buildActionMask = 2147483647; 924 | files = ( 925 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 926 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 927 | ); 928 | runOnlyForDeploymentPostprocessing = 0; 929 | }; 930 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 931 | isa = PBXSourcesBuildPhase; 932 | buildActionMask = 2147483647; 933 | files = ( 934 | 2DCD954D1E0B4F2C00145EB5 /* rnauthTests.m in Sources */, 935 | ); 936 | runOnlyForDeploymentPostprocessing = 0; 937 | }; 938 | /* End PBXSourcesBuildPhase section */ 939 | 940 | /* Begin PBXTargetDependency section */ 941 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 942 | isa = PBXTargetDependency; 943 | target = 13B07F861A680F5B00A75B9A /* rnauth */; 944 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 945 | }; 946 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 947 | isa = PBXTargetDependency; 948 | target = 2D02E47A1E0B4A5D006451C7 /* rnauth-tvOS */; 949 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 950 | }; 951 | /* End PBXTargetDependency section */ 952 | 953 | /* Begin PBXVariantGroup section */ 954 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 955 | isa = PBXVariantGroup; 956 | children = ( 957 | 13B07FB21A68108700A75B9A /* Base */, 958 | ); 959 | name = LaunchScreen.xib; 960 | path = rnauth; 961 | sourceTree = ""; 962 | }; 963 | /* End PBXVariantGroup section */ 964 | 965 | /* Begin XCBuildConfiguration section */ 966 | 00E356F61AD99517003FC87E /* Debug */ = { 967 | isa = XCBuildConfiguration; 968 | buildSettings = { 969 | BUNDLE_LOADER = "$(TEST_HOST)"; 970 | GCC_PREPROCESSOR_DEFINITIONS = ( 971 | "DEBUG=1", 972 | "$(inherited)", 973 | ); 974 | INFOPLIST_FILE = rnauthTests/Info.plist; 975 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 976 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 977 | OTHER_LDFLAGS = ( 978 | "-ObjC", 979 | "-lc++", 980 | ); 981 | PRODUCT_NAME = "$(TARGET_NAME)"; 982 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnauth.app/rnauth"; 983 | }; 984 | name = Debug; 985 | }; 986 | 00E356F71AD99517003FC87E /* Release */ = { 987 | isa = XCBuildConfiguration; 988 | buildSettings = { 989 | BUNDLE_LOADER = "$(TEST_HOST)"; 990 | COPY_PHASE_STRIP = NO; 991 | INFOPLIST_FILE = rnauthTests/Info.plist; 992 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 993 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 994 | OTHER_LDFLAGS = ( 995 | "-ObjC", 996 | "-lc++", 997 | ); 998 | PRODUCT_NAME = "$(TARGET_NAME)"; 999 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnauth.app/rnauth"; 1000 | }; 1001 | name = Release; 1002 | }; 1003 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1004 | isa = XCBuildConfiguration; 1005 | buildSettings = { 1006 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1007 | CURRENT_PROJECT_VERSION = 1; 1008 | DEAD_CODE_STRIPPING = NO; 1009 | INFOPLIST_FILE = rnauth/Info.plist; 1010 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1011 | OTHER_LDFLAGS = ( 1012 | "$(inherited)", 1013 | "-ObjC", 1014 | "-lc++", 1015 | ); 1016 | PRODUCT_NAME = rnauth; 1017 | VERSIONING_SYSTEM = "apple-generic"; 1018 | }; 1019 | name = Debug; 1020 | }; 1021 | 13B07F951A680F5B00A75B9A /* Release */ = { 1022 | isa = XCBuildConfiguration; 1023 | buildSettings = { 1024 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1025 | CURRENT_PROJECT_VERSION = 1; 1026 | INFOPLIST_FILE = rnauth/Info.plist; 1027 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1028 | OTHER_LDFLAGS = ( 1029 | "$(inherited)", 1030 | "-ObjC", 1031 | "-lc++", 1032 | ); 1033 | PRODUCT_NAME = rnauth; 1034 | VERSIONING_SYSTEM = "apple-generic"; 1035 | }; 1036 | name = Release; 1037 | }; 1038 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1039 | isa = XCBuildConfiguration; 1040 | buildSettings = { 1041 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1042 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1043 | CLANG_ANALYZER_NONNULL = YES; 1044 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1045 | CLANG_WARN_INFINITE_RECURSION = YES; 1046 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1047 | DEBUG_INFORMATION_FORMAT = dwarf; 1048 | ENABLE_TESTABILITY = YES; 1049 | GCC_NO_COMMON_BLOCKS = YES; 1050 | INFOPLIST_FILE = "rnauth-tvOS/Info.plist"; 1051 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1052 | OTHER_LDFLAGS = ( 1053 | "-ObjC", 1054 | "-lc++", 1055 | ); 1056 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnauth-tvOS"; 1057 | PRODUCT_NAME = "$(TARGET_NAME)"; 1058 | SDKROOT = appletvos; 1059 | TARGETED_DEVICE_FAMILY = 3; 1060 | TVOS_DEPLOYMENT_TARGET = 9.2; 1061 | }; 1062 | name = Debug; 1063 | }; 1064 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1065 | isa = XCBuildConfiguration; 1066 | buildSettings = { 1067 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1068 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1069 | CLANG_ANALYZER_NONNULL = YES; 1070 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1071 | CLANG_WARN_INFINITE_RECURSION = YES; 1072 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1073 | COPY_PHASE_STRIP = NO; 1074 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1075 | GCC_NO_COMMON_BLOCKS = YES; 1076 | INFOPLIST_FILE = "rnauth-tvOS/Info.plist"; 1077 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1078 | OTHER_LDFLAGS = ( 1079 | "-ObjC", 1080 | "-lc++", 1081 | ); 1082 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnauth-tvOS"; 1083 | PRODUCT_NAME = "$(TARGET_NAME)"; 1084 | SDKROOT = appletvos; 1085 | TARGETED_DEVICE_FAMILY = 3; 1086 | TVOS_DEPLOYMENT_TARGET = 9.2; 1087 | }; 1088 | name = Release; 1089 | }; 1090 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1091 | isa = XCBuildConfiguration; 1092 | buildSettings = { 1093 | BUNDLE_LOADER = "$(TEST_HOST)"; 1094 | CLANG_ANALYZER_NONNULL = YES; 1095 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1096 | CLANG_WARN_INFINITE_RECURSION = YES; 1097 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1098 | DEBUG_INFORMATION_FORMAT = dwarf; 1099 | ENABLE_TESTABILITY = YES; 1100 | GCC_NO_COMMON_BLOCKS = YES; 1101 | INFOPLIST_FILE = "rnauth-tvOSTests/Info.plist"; 1102 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1103 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnauth-tvOSTests"; 1104 | PRODUCT_NAME = "$(TARGET_NAME)"; 1105 | SDKROOT = appletvos; 1106 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnauth-tvOS.app/rnauth-tvOS"; 1107 | TVOS_DEPLOYMENT_TARGET = 10.1; 1108 | }; 1109 | name = Debug; 1110 | }; 1111 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1112 | isa = XCBuildConfiguration; 1113 | buildSettings = { 1114 | BUNDLE_LOADER = "$(TEST_HOST)"; 1115 | CLANG_ANALYZER_NONNULL = YES; 1116 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1117 | CLANG_WARN_INFINITE_RECURSION = YES; 1118 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1119 | COPY_PHASE_STRIP = NO; 1120 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1121 | GCC_NO_COMMON_BLOCKS = YES; 1122 | INFOPLIST_FILE = "rnauth-tvOSTests/Info.plist"; 1123 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1124 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnauth-tvOSTests"; 1125 | PRODUCT_NAME = "$(TARGET_NAME)"; 1126 | SDKROOT = appletvos; 1127 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnauth-tvOS.app/rnauth-tvOS"; 1128 | TVOS_DEPLOYMENT_TARGET = 10.1; 1129 | }; 1130 | name = Release; 1131 | }; 1132 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1133 | isa = XCBuildConfiguration; 1134 | buildSettings = { 1135 | ALWAYS_SEARCH_USER_PATHS = NO; 1136 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1137 | CLANG_CXX_LIBRARY = "libc++"; 1138 | CLANG_ENABLE_MODULES = YES; 1139 | CLANG_ENABLE_OBJC_ARC = YES; 1140 | CLANG_WARN_BOOL_CONVERSION = YES; 1141 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1142 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1143 | CLANG_WARN_EMPTY_BODY = YES; 1144 | CLANG_WARN_ENUM_CONVERSION = YES; 1145 | CLANG_WARN_INT_CONVERSION = YES; 1146 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1147 | CLANG_WARN_UNREACHABLE_CODE = YES; 1148 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1149 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1150 | COPY_PHASE_STRIP = NO; 1151 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1152 | GCC_C_LANGUAGE_STANDARD = gnu99; 1153 | GCC_DYNAMIC_NO_PIC = NO; 1154 | GCC_OPTIMIZATION_LEVEL = 0; 1155 | GCC_PREPROCESSOR_DEFINITIONS = ( 1156 | "DEBUG=1", 1157 | "$(inherited)", 1158 | ); 1159 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1160 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1161 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1162 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1163 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1164 | GCC_WARN_UNUSED_FUNCTION = YES; 1165 | GCC_WARN_UNUSED_VARIABLE = YES; 1166 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1167 | MTL_ENABLE_DEBUG_INFO = YES; 1168 | ONLY_ACTIVE_ARCH = YES; 1169 | SDKROOT = iphoneos; 1170 | }; 1171 | name = Debug; 1172 | }; 1173 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1174 | isa = XCBuildConfiguration; 1175 | buildSettings = { 1176 | ALWAYS_SEARCH_USER_PATHS = NO; 1177 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1178 | CLANG_CXX_LIBRARY = "libc++"; 1179 | CLANG_ENABLE_MODULES = YES; 1180 | CLANG_ENABLE_OBJC_ARC = YES; 1181 | CLANG_WARN_BOOL_CONVERSION = YES; 1182 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1183 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1184 | CLANG_WARN_EMPTY_BODY = YES; 1185 | CLANG_WARN_ENUM_CONVERSION = YES; 1186 | CLANG_WARN_INT_CONVERSION = YES; 1187 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1188 | CLANG_WARN_UNREACHABLE_CODE = YES; 1189 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1190 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1191 | COPY_PHASE_STRIP = YES; 1192 | ENABLE_NS_ASSERTIONS = NO; 1193 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1194 | GCC_C_LANGUAGE_STANDARD = gnu99; 1195 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1196 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1197 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1198 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1199 | GCC_WARN_UNUSED_FUNCTION = YES; 1200 | GCC_WARN_UNUSED_VARIABLE = YES; 1201 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1202 | MTL_ENABLE_DEBUG_INFO = NO; 1203 | SDKROOT = iphoneos; 1204 | VALIDATE_PRODUCT = YES; 1205 | }; 1206 | name = Release; 1207 | }; 1208 | /* End XCBuildConfiguration section */ 1209 | 1210 | /* Begin XCConfigurationList section */ 1211 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rnauthTests" */ = { 1212 | isa = XCConfigurationList; 1213 | buildConfigurations = ( 1214 | 00E356F61AD99517003FC87E /* Debug */, 1215 | 00E356F71AD99517003FC87E /* Release */, 1216 | ); 1217 | defaultConfigurationIsVisible = 0; 1218 | defaultConfigurationName = Release; 1219 | }; 1220 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rnauth" */ = { 1221 | isa = XCConfigurationList; 1222 | buildConfigurations = ( 1223 | 13B07F941A680F5B00A75B9A /* Debug */, 1224 | 13B07F951A680F5B00A75B9A /* Release */, 1225 | ); 1226 | defaultConfigurationIsVisible = 0; 1227 | defaultConfigurationName = Release; 1228 | }; 1229 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnauth-tvOS" */ = { 1230 | isa = XCConfigurationList; 1231 | buildConfigurations = ( 1232 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1233 | 2D02E4981E0B4A5E006451C7 /* Release */, 1234 | ); 1235 | defaultConfigurationIsVisible = 0; 1236 | defaultConfigurationName = Release; 1237 | }; 1238 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnauth-tvOSTests" */ = { 1239 | isa = XCConfigurationList; 1240 | buildConfigurations = ( 1241 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1242 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1243 | ); 1244 | defaultConfigurationIsVisible = 0; 1245 | defaultConfigurationName = Release; 1246 | }; 1247 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "rnauth" */ = { 1248 | isa = XCConfigurationList; 1249 | buildConfigurations = ( 1250 | 83CBBA201A601CBA00E9B192 /* Debug */, 1251 | 83CBBA211A601CBA00E9B192 /* Release */, 1252 | ); 1253 | defaultConfigurationIsVisible = 0; 1254 | defaultConfigurationName = Release; 1255 | }; 1256 | /* End XCConfigurationList section */ 1257 | }; 1258 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1259 | } 1260 | -------------------------------------------------------------------------------- /ios/rnauth.xcodeproj/xcshareddata/xcschemes/rnauth-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/rnauth.xcodeproj/xcshareddata/xcschemes/rnauth.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/rnauth/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/rnauth/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"rnauth" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/rnauth/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/rnauth/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/rnauth/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | NSExceptionDomains 44 | 45 | localhost 46 | 47 | NSExceptionAllowsInsecureHTTPLoads 48 | 49 | 50 | 51 | 52 | UIAppFonts 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/rnauth/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/rnauthTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/rnauthTests/rnauthTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface rnauthTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation rnauthTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rnauth", 3 | "version": "0.0.1", 4 | "description": "Starter for Firebase, React Native, Redux applications with 100% of code in common between IOS and Android", 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest", 8 | "lint": "eslint src" 9 | }, 10 | "keywords": [ 11 | "React Native", 12 | "Redux", 13 | "Firebase", 14 | "Authentication", 15 | "CRUD", 16 | "Airbnb Eslint" 17 | ], 18 | "repository": { 19 | "type": "git", 20 | "url": "git+https://github.com/DimitriMikadze/firebase-react-native-redux-starter" 21 | }, 22 | "dependencies": { 23 | "firebase": "^3.6.8", 24 | "lodash": "^4.17.4", 25 | "react": "15.4.2", 26 | "react-native": "0.41.1", 27 | "react-native-router-flux": "^3.37.0", 28 | "react-redux": "^5.0.2", 29 | "redux": "^3.6.0", 30 | "redux-form": "^6.5.0", 31 | "redux-thunk": "^2.2.0" 32 | }, 33 | "devDependencies": { 34 | "babel-jest": "18.0.0", 35 | "babel-preset-react-native": "1.9.1", 36 | "eslint": "^3.15.0", 37 | "eslint-config-airbnb": "^14.1.0", 38 | "eslint-plugin-import": "^2.2.0", 39 | "eslint-plugin-jsx-a11y": "^4.0.0", 40 | "eslint-plugin-react": "^6.9.0", 41 | "jest": "18.1.0", 42 | "react-test-renderer": "15.4.2" 43 | }, 44 | "jest": { 45 | "preset": "react-native" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /previewgif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DimiMikadze/firebase-react-native-redux-starter/908db9483a5424dc96263d1aa6d0b11602912c24/previewgif.gif -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | > DEPRECATED. This project is not maintained anymore. 2 | 3 | [![Build Status](https://travis-ci.org/DimiMikadze/firebase-react-native-redux-starter.svg?branch=master)](https://travis-ci.org/DimiMikadze/firebase-react-native-redux-starter) 4 | [![license](https://img.shields.io/github/license/mashape/apistatus.svg)]() 5 | 6 | # Starter For Firebase, React Native, Redux Applications With 100% Of Code In Common Between IOS And Android, with built In Authentication, Crud Example And Form Validation. 7 | 8 | ## Features 9 | 10 | - Authentication 11 | - CRUD ( Create, Read, Update, Delete ) 12 | - Form validation 13 | - Redux form library configuration 14 | - Redux configuration 15 | - React Native Router Flux configuration 16 | - Linting with Airbnb eslint configuration 17 | 18 | ## Preview 19 | 20 | 21 | 22 | ## Getting started 23 | 24 | ### Clone Repo 25 | 26 | ```` 27 | git clone https://github.com/DimiMikadze/firebase-react-native-redux-starter 28 | ```` 29 | 30 | ### npm install dependencies 31 | 32 | ```` 33 | npm install 34 | ```` 35 | 36 | ## Firebase 37 | 38 | ### Create firebase app 39 | 40 | - You'll need a JavaScript (web or Node.js) app to create at Firebase. 41 | - Find firebase.example.json file in src directory, rename it to firebase.json and edit it with your firebase app configuration. 42 | 43 | ### Add rules to firebase database 44 | 45 | In firebase console navigate to, Database -> Rules and add following code snippet. 46 | 47 | ```` 48 | { 49 | "rules": { 50 | "users": { 51 | "$uid": { 52 | ".read": "$uid === auth.uid", 53 | ".write": "$uid === auth.uid" 54 | } 55 | } 56 | } 57 | } 58 | ```` 59 | 60 | ## Application 61 | 62 | ## IOS 63 | 64 | ```` 65 | react-native run-ios 66 | ```` 67 | 68 | ## Android 69 | 70 | ```` 71 | react-native run-android 72 | ```` 73 | 74 | ## Testing 75 | 76 | ```` 77 | npm run test 78 | ```` 79 | 80 | ## Linting 81 | 82 | ```` 83 | npm run lint 84 | ```` 85 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/no-unresolved */ 2 | import React, { Component } from 'react'; 3 | import { Provider } from 'react-redux'; 4 | import firebase from 'firebase'; 5 | import Router from './Router'; 6 | import store from './configureStore'; 7 | import { SIGN_IN_SUCCESS } from './modules/auth'; 8 | import { Spinner } from './components/common'; 9 | import firebaseConfig from './firebase.json'; 10 | 11 | class App extends Component { 12 | constructor(props) { 13 | super(props); 14 | 15 | this.state = { loaded: false }; 16 | } 17 | 18 | componentWillMount() { 19 | firebase.initializeApp(firebaseConfig); 20 | 21 | firebase.auth().onAuthStateChanged((user) => { 22 | this.setState({ loaded: true }); 23 | 24 | if (user) { 25 | store.dispatch({ type: SIGN_IN_SUCCESS, payload: user }); 26 | } 27 | }); 28 | } 29 | 30 | render() { 31 | return ( 32 | 33 | {this.state.loaded ? : } 34 | 35 | ); 36 | } 37 | } 38 | 39 | export default App; 40 | -------------------------------------------------------------------------------- /src/Router.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import firebase from 'firebase'; 3 | import { Scene, Router, Actions } from 'react-native-router-flux'; 4 | import Signin from './containers/auth/Signin'; 5 | import Signup from './containers/auth/Signup'; 6 | import PostCreate from './containers/post/PostCreate'; 7 | import PostEdit from './containers/post/PostEdit'; 8 | import PostList from './containers/post/PostList'; 9 | import requireAuth from './containers/auth/requireAuth'; 10 | import requireNotAuth from './containers/auth/requireNotAuth'; 11 | 12 | const RouterComponent = () => ( 13 | 18 | 19 | 20 | 21 | 22 | 23 | { firebase.auth().signOut(); Actions.auth(); }} 29 | onRight={() => Actions.postCreate()} 30 | rightTitle="Add" 31 | /> 32 | 33 | 34 | 35 | 36 | ); 37 | 38 | const styles = { 39 | navigationBarStyle: { 40 | backgroundColor: '#fff', 41 | borderBottomWidth: 0, 42 | shadowColor: '#000', 43 | shadowOffset: { width: 0, height: 2 }, 44 | shadowOpacity: 0.2, 45 | }, 46 | }; 47 | 48 | export default RouterComponent; 49 | -------------------------------------------------------------------------------- /src/components/auth/Signin.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { Text, View, TouchableOpacity } from 'react-native'; 3 | import { Actions } from 'react-native-router-flux'; 4 | import { Field, reduxForm } from 'redux-form'; 5 | import { Container, Input, Button, Item, Spinner } from '../common'; 6 | import styles from './authStyle'; 7 | 8 | const propTypes = { 9 | handleSubmit: PropTypes.func.isRequired, 10 | clearState: PropTypes.func.isRequired, 11 | signInUser: PropTypes.func.isRequired, 12 | authError: PropTypes.string.isRequired, 13 | loading: PropTypes.bool.isRequired, 14 | }; 15 | 16 | class Signin extends Component { 17 | constructor(props) { 18 | super(props); 19 | 20 | this.handleFormSubmit = this.handleFormSubmit.bind(this); 21 | } 22 | 23 | componentWillMount() { 24 | this.props.clearState(); 25 | } 26 | 27 | handleFormSubmit(props) { 28 | const { email, password } = props; 29 | 30 | this.props.signInUser({ email, password }); 31 | } 32 | 33 | render() { 34 | const { handleSubmit } = this.props; 35 | 36 | return ( 37 | 38 | 39 | 40 | 45 | 46 | 47 | 48 | 54 | 55 | 56 | {this.props.authError 57 | ? 58 | 59 | {this.props.authError} 60 | 61 | : 62 | } 63 | 64 | {this.props.loading 65 | ? 66 | 67 | 68 | 69 | : 70 | 71 | 72 | } 73 | 74 | 75 | Actions.signup()} 77 | style={styles.questionContainer} 78 | > 79 | 80 | Don't have an account? Click here to sign up 81 | 82 | 83 | 84 | 85 | ); 86 | } 87 | } 88 | 89 | const validate = (props) => { 90 | const errors = {}; 91 | const fields = ['email', 'password']; 92 | 93 | fields.forEach((f) => { 94 | if (!(f in props)) { 95 | errors[f] = `${f} is required`; 96 | } 97 | }); 98 | 99 | return errors; 100 | }; 101 | 102 | Signin.propTypes = propTypes; 103 | Signin = reduxForm({ form: 'signin', validate })(Signin); 104 | 105 | export default Signin; 106 | -------------------------------------------------------------------------------- /src/components/auth/Signup.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { Text, View, TouchableOpacity } from 'react-native'; 3 | import { Actions } from 'react-native-router-flux'; 4 | import { Field, reduxForm } from 'redux-form'; 5 | import { Container, Input, Button, Item, Spinner } from '../common'; 6 | import styles from './authStyle'; 7 | 8 | const propTypes = { 9 | handleSubmit: PropTypes.func.isRequired, 10 | clearState: PropTypes.func.isRequired, 11 | signUpUser: PropTypes.func.isRequired, 12 | authError: PropTypes.string.isRequired, 13 | loading: PropTypes.bool.isRequired, 14 | }; 15 | 16 | class Signup extends Component { 17 | constructor(props) { 18 | super(props); 19 | 20 | this.handleFormSubmit = this.handleFormSubmit.bind(this); 21 | } 22 | 23 | componentWillMount() { 24 | this.props.clearState(); 25 | } 26 | 27 | handleFormSubmit(props) { 28 | const { email, password, firstname, lastname } = props; 29 | 30 | this.props.signUpUser({ email, password, firstname, lastname }); 31 | } 32 | 33 | render() { 34 | const { handleSubmit } = this.props; 35 | 36 | return ( 37 | 38 | 39 | 40 | 45 | 46 | 47 | 48 | 53 | 54 | 55 | 56 | 62 | 63 | 64 | 65 | 71 | 72 | 73 | 74 | 80 | 81 | 82 | {this.props.authError 83 | ? 84 | 85 | {this.props.authError} 86 | 87 | : 88 | } 89 | 90 | {this.props.loading 91 | ? 92 | 93 | 94 | 95 | : 96 | 97 | 98 | } 99 | 100 | 101 | Actions.signin()} 103 | style={styles.questionContainer} 104 | > 105 | 106 | Already signed up? Click here to sign in 107 | 108 | 109 | 110 | 111 | ); 112 | } 113 | } 114 | 115 | const validate = (props) => { 116 | const errors = {}; 117 | const fields = ['firstname', 'lastname', 'email', 'password']; 118 | 119 | fields.forEach((f) => { 120 | if (!(f in props)) { 121 | errors[f] = `${f} is required`; 122 | } 123 | }); 124 | 125 | if (props.firstname && props.firstname.length < 3) { 126 | errors.firstname = 'Minimum of 3 characters'; 127 | } else if (props.firstname && props.firstname.length > 20) { 128 | errors.firstname = 'Maximum of 20 characters'; 129 | } 130 | 131 | if (props.lastname && props.lastname.length < 3) { 132 | errors.lastname = 'Minimum of 3 characters'; 133 | } else if (props.lastname && props.lastname.length > 20) { 134 | errors.lastname = 'Maximum of 20 characters'; 135 | } 136 | 137 | if (props.email && !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(props.email)) { 138 | errors.email = 'please provide valid email'; 139 | } 140 | 141 | if (props.password && props.password.length < 6) { 142 | errors.password = 'minimum 6 characters'; 143 | } 144 | 145 | if (props.password !== props.repassword) { 146 | errors.repassword = "passwords doesn't match"; 147 | } 148 | 149 | return errors; 150 | }; 151 | 152 | Signup.propTypes = propTypes; 153 | Signup = reduxForm({ form: 'signup', validate })(Signup); 154 | 155 | export default Signup; 156 | -------------------------------------------------------------------------------- /src/components/auth/authStyle.js: -------------------------------------------------------------------------------- 1 | const styles = { 2 | error: { 3 | fontSize: 20, 4 | alignSelf: 'center', 5 | color: '#e62117', 6 | paddingTop: 20, 7 | paddingBottom: 10, 8 | }, 9 | loadingContainer: { 10 | paddingTop: 20, 11 | paddingBottom: 10, 12 | }, 13 | questionContainer: { 14 | flex: 1, 15 | marginTop: 10, 16 | marginBottom: 10, 17 | }, 18 | questionText: { 19 | textAlign: 'center', 20 | color: '#4d4d4d', 21 | }, 22 | }; 23 | 24 | export default styles; 25 | -------------------------------------------------------------------------------- /src/components/common/Button.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export */ 2 | import React, { PropTypes } from 'react'; 3 | import { Text, TouchableOpacity } from 'react-native'; 4 | 5 | const propTypes = { 6 | children: PropTypes.node.isRequired, 7 | onPress: PropTypes.func.isRequired, 8 | buttonStyle: PropTypes.object, 9 | textStyle: PropTypes.object, 10 | }; 11 | 12 | const defaultProps = { 13 | buttonStyle: {}, 14 | textStyle: {}, 15 | }; 16 | 17 | function Button({ onPress, children, buttonStyle, textStyle }) { 18 | const { button, text } = styles; 19 | 20 | return ( 21 | 25 | 26 | {children} 27 | 28 | 29 | ); 30 | } 31 | 32 | const styles = { 33 | button: { 34 | flex: 1, 35 | alignSelf: 'stretch', 36 | backgroundColor: '#039be5', 37 | borderRadius: 3, 38 | marginTop: 10, 39 | }, 40 | text: { 41 | alignSelf: 'center', 42 | color: '#fff', 43 | fontSize: 16, 44 | fontWeight: '600', 45 | paddingTop: 10, 46 | paddingBottom: 10, 47 | }, 48 | }; 49 | 50 | Button.defaultProps = defaultProps; 51 | Button.propTypes = propTypes; 52 | 53 | export { Button }; 54 | -------------------------------------------------------------------------------- /src/components/common/Confirm.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export */ 2 | import React, { PropTypes } from 'react'; 3 | import { View, Text, Modal } from 'react-native'; 4 | import { Item } from './Item'; 5 | import { Button } from './Button'; 6 | 7 | const propTypes = { 8 | children: PropTypes.node.isRequired, 9 | visible: PropTypes.bool.isRequired, 10 | onAccept: PropTypes.func.isRequired, 11 | onDecline: PropTypes.func.isRequired, 12 | }; 13 | 14 | const Confirm = ({ children, visible, onAccept, onDecline }) => { 15 | const { textContainer, textStyle, containerStyle } = styles; 16 | 17 | return ( 18 | {}} 23 | > 24 | 25 | 26 | 27 | {children} 28 | 29 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | ); 44 | }; 45 | 46 | Confirm.propTypes = propTypes; 47 | 48 | const styles = { 49 | containerStyle: { 50 | backgroundColor: 'rgba(0, 0, 0, 0.75)', 51 | position: 'relative', 52 | flex: 1, 53 | justifyContent: 'center', 54 | }, 55 | textContainer: { 56 | justifyContent: 'center', 57 | }, 58 | textStyle: { 59 | flex: 1, 60 | fontSize: 18, 61 | textAlign: 'center', 62 | lineHeight: 40, 63 | }, 64 | }; 65 | 66 | export { Confirm }; 67 | -------------------------------------------------------------------------------- /src/components/common/Container.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export */ 2 | import React, { PropTypes } from 'react'; 3 | import { View } from 'react-native'; 4 | 5 | const propTypes = { 6 | children: PropTypes.node.isRequired, 7 | }; 8 | 9 | const Container = props => ( 10 | 11 | {props.children} 12 | 13 | ); 14 | 15 | const styles = { 16 | container: { 17 | elevation: 1, 18 | marginLeft: 10, 19 | marginRight: 10, 20 | marginTop: 10, 21 | backgroundColor: '#fff', 22 | shadowColor: '#000', 23 | shadowOffset: { width: 0, height: 2 }, 24 | shadowOpacity: 0.2, 25 | paddingTop: 10, 26 | paddingBottom: 10, 27 | }, 28 | }; 29 | 30 | Container.propTypes = propTypes; 31 | 32 | export { Container }; 33 | -------------------------------------------------------------------------------- /src/components/common/Header.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export */ 2 | import React, { PropTypes } from 'react'; 3 | import { Text, View } from 'react-native'; 4 | 5 | const propTypes = { 6 | headerText: PropTypes.string.isRequired, 7 | }; 8 | 9 | const Header = (props) => { 10 | const { viewStyle, textStyle } = styles; 11 | 12 | return ( 13 | 14 | {props.headerText} 15 | 16 | ); 17 | }; 18 | 19 | Header.propTypes = propTypes; 20 | 21 | const styles = { 22 | viewStyle: { 23 | backgroundColor: '#F8F8F8', 24 | justifyContent: 'center', 25 | height: 60, 26 | paddingTop: 15, 27 | alignItems: 'center', 28 | shadowColor: '#000', 29 | shadowOffset: { width: 0, height: 2 }, 30 | shadowOpacity: 0.2, 31 | elevation: 2, 32 | position: 'relative', 33 | }, 34 | textStyle: { 35 | fontSize: 20, 36 | }, 37 | }; 38 | 39 | export { Header }; 40 | -------------------------------------------------------------------------------- /src/components/common/Input.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export, no-shadow */ 2 | import React, { PropTypes } from 'react'; 3 | import { TextInput, View, Text } from 'react-native'; 4 | 5 | const propTypes = { 6 | input: PropTypes.object.isRequired, 7 | meta: PropTypes.object.isRequired, 8 | placeholder: PropTypes.string.isRequired, 9 | secureTextEntry: PropTypes.bool, 10 | multiline: PropTypes.bool, 11 | containerStyle: PropTypes.object, 12 | }; 13 | 14 | const defaultProps = { 15 | secureTextEntry: false, 16 | multiline: false, 17 | containerStyle: {}, 18 | }; 19 | 20 | const Input = (props) => { 21 | const { inputContainer, InputText, errorText } = styles; 22 | const { 23 | input: { value, onChange }, 24 | meta: { touched, error }, 25 | placeholder, 26 | secureTextEntry, 27 | multiline, 28 | containerStyle, 29 | ...otherProps 30 | } = props; 31 | 32 | return ( 33 | 34 | onChange(value)} 41 | value={value} 42 | {...otherProps} 43 | /> 44 | {touched && error && 45 | 46 | {error} 47 | } 48 | 49 | ); 50 | }; 51 | 52 | const styles = { 53 | inputContainer: { 54 | height: 40, 55 | flex: 1, 56 | flexDirection: 'row', 57 | alignItems: 'center', 58 | borderBottomWidth: 1, 59 | borderColor: '#ddd', 60 | }, 61 | InputText: { 62 | color: '#000', 63 | paddingRight: 5, 64 | paddingLeft: 5, 65 | fontSize: 18, 66 | lineHeight: 23, 67 | flex: 2, 68 | }, 69 | errorText: { 70 | color: '#ff5964', 71 | }, 72 | }; 73 | 74 | Input.defaultProps = defaultProps; 75 | Input.propTypes = propTypes; 76 | 77 | export { Input }; 78 | -------------------------------------------------------------------------------- /src/components/common/Item.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export */ 2 | import React, { PropTypes } from 'react'; 3 | import { View } from 'react-native'; 4 | 5 | const propTypes = { 6 | children: PropTypes.node.isRequired, 7 | style: PropTypes.object, 8 | }; 9 | 10 | const defaultProps = { 11 | style: {}, 12 | }; 13 | 14 | const Item = props => ( 15 | 16 | {props.children} 17 | 18 | ); 19 | 20 | const styles = { 21 | container: { 22 | padding: 5, 23 | backgroundColor: '#fff', 24 | justifyContent: 'flex-start', 25 | flexDirection: 'row', 26 | position: 'relative', 27 | }, 28 | }; 29 | 30 | Item.defaultProps = defaultProps; 31 | Item.propTypes = propTypes; 32 | 33 | export { Item }; 34 | -------------------------------------------------------------------------------- /src/components/common/Spinner.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/prefer-default-export */ 2 | import React, { PropTypes } from 'react'; 3 | import { View, ActivityIndicator } from 'react-native'; 4 | 5 | const propTypes = { 6 | size: PropTypes.string, 7 | }; 8 | 9 | const defaultProps = { 10 | size: 'large', 11 | }; 12 | 13 | const Spinner = ({ size }) => ( 14 | 15 | 16 | 17 | ); 18 | 19 | const styles = { 20 | spinnerStyle: { 21 | flex: 1, 22 | justifyContent: 'center', 23 | alignItems: 'center', 24 | }, 25 | }; 26 | 27 | Spinner.propTypes = propTypes; 28 | Spinner.defaultProps = defaultProps; 29 | 30 | export { Spinner }; 31 | -------------------------------------------------------------------------------- /src/components/common/index.js: -------------------------------------------------------------------------------- 1 | export * from './Button'; 2 | export * from './Header'; 3 | export * from './Item'; 4 | export * from './Container'; 5 | export * from './Input'; 6 | export * from './Spinner'; 7 | export * from './Confirm'; 8 | -------------------------------------------------------------------------------- /src/components/post/PostCreate.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { Text, View } from 'react-native'; 3 | import { Field, reduxForm } from 'redux-form'; 4 | import { Container, Item, Button, Input, Spinner } from '../common'; 5 | import styles from './postStyle'; 6 | 7 | const propTypes = { 8 | handleSubmit: PropTypes.func.isRequired, 9 | postError: PropTypes.string.isRequired, 10 | loading: PropTypes.bool.isRequired, 11 | createPost: PropTypes.func.isRequired, 12 | }; 13 | 14 | class PostCreate extends Component { 15 | constructor(props) { 16 | super(props); 17 | 18 | this.handleFormSubmit = this.handleFormSubmit.bind(this); 19 | } 20 | 21 | handleFormSubmit(props) { 22 | const { title, description } = props; 23 | 24 | this.props.createPost({ title, description }); 25 | } 26 | 27 | render() { 28 | const { handleSubmit } = this.props; 29 | 30 | return ( 31 | 32 | 33 | 38 | 39 | 40 | 41 | 48 | 49 | 50 | {this.props.postError 51 | ? 52 | 53 | {this.props.postError} 54 | 55 | : 56 | } 57 | 58 | {this.props.loading 59 | ? 60 | 61 | 62 | 63 | : 64 | 65 | 66 | } 67 | 68 | ); 69 | } 70 | } 71 | 72 | const validate = (props) => { 73 | const errors = {}; 74 | const fields = ['title', 'description']; 75 | 76 | fields.forEach((f) => { 77 | if (!(f in props)) { 78 | errors[f] = `${f} is required`; 79 | } 80 | }); 81 | 82 | if (props.title && props.title.length < 4) { 83 | errors.title = 'Minimum of 4 characters'; 84 | } else if (props.title && props.title.length > 20) { 85 | errors.title = 'Maximum of 20 characters'; 86 | } 87 | 88 | if (props.description && props.description.length < 12) { 89 | errors.description = 'Minimum of 12 characters'; 90 | } else if (props.description && props.description.length > 100) { 91 | errors.description = 'Maximum of 100 characters'; 92 | } 93 | 94 | return errors; 95 | }; 96 | 97 | PostCreate.propTypes = propTypes; 98 | PostCreate = reduxForm({ form: 'postcreate', validate })(PostCreate); 99 | 100 | export default PostCreate; 101 | -------------------------------------------------------------------------------- /src/components/post/PostEdit.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { Text, View } from 'react-native'; 3 | import { Field, reduxForm } from 'redux-form'; 4 | import { Container, Item, Button, Input, Spinner, Confirm } from '../common'; 5 | import styles from './postStyle'; 6 | 7 | const propTypes = { 8 | handleSubmit: PropTypes.func.isRequired, 9 | postError: PropTypes.string.isRequired, 10 | loading: PropTypes.bool.isRequired, 11 | updatePost: PropTypes.func.isRequired, 12 | deletePost: PropTypes.func.isRequired, 13 | post: PropTypes.object.isRequired, 14 | }; 15 | 16 | class PostEdit extends Component { 17 | constructor(props) { 18 | super(props); 19 | 20 | this.state = { modal: false }; 21 | 22 | this.handleFormSubmit = this.handleFormSubmit.bind(this); 23 | this.onAccept = this.onAccept.bind(this); 24 | this.onDecline = this.onDecline.bind(this); 25 | } 26 | 27 | onAccept() { 28 | this.props.deletePost({ uid: this.props.post.uid }); 29 | } 30 | 31 | onDecline() { 32 | this.setState({ modal: false }); 33 | } 34 | 35 | handleFormSubmit(props) { 36 | const { title, description, uid } = props; 37 | 38 | this.props.updatePost({ title, description, uid }); 39 | } 40 | 41 | render() { 42 | const { handleSubmit } = this.props; 43 | 44 | return ( 45 | 46 | 47 | 52 | 53 | 54 | 55 | 62 | 63 | 64 | {this.props.postError 65 | ? 66 | 67 | {this.props.postError} 68 | 69 | : 70 | } 71 | 72 | {this.props.loading 73 | ? 74 | 75 | 76 | 77 | : 78 | 79 | 80 | } 81 | 82 | 83 | 89 | 90 | 91 | 96 | Are you sure you want to delete this? 97 | 98 | 99 | ); 100 | } 101 | } 102 | 103 | const validate = (props) => { 104 | const errors = {}; 105 | const fields = ['title', 'description']; 106 | 107 | fields.forEach((f) => { 108 | if (!(f in props)) { 109 | errors[f] = `${f} is required`; 110 | } 111 | }); 112 | 113 | if (props.title && props.title.length < 4) { 114 | errors.title = 'Minimum of 4 characters'; 115 | } else if (props.title && props.title.length > 20) { 116 | errors.title = 'Maximum of 20 characters'; 117 | } 118 | 119 | if (props.description && props.description.length < 12) { 120 | errors.description = 'Minimum of 12 characters'; 121 | } else if (props.description && props.description.length > 100) { 122 | errors.description = 'Maximum of 100 characters'; 123 | } 124 | 125 | return errors; 126 | }; 127 | 128 | PostEdit.propTypes = propTypes; 129 | PostEdit = reduxForm({ form: 'postedit', validate })(PostEdit); 130 | 131 | export default PostEdit; 132 | -------------------------------------------------------------------------------- /src/components/post/PostList.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable class-methods-use-this */ 2 | import React, { Component, PropTypes } from 'react'; 3 | import { ListView, View, TouchableWithoutFeedback, Text } from 'react-native'; 4 | import { Actions } from 'react-native-router-flux'; 5 | import { Spinner, Item } from '../common'; 6 | import styles from './postStyle'; 7 | 8 | const propTypes = { 9 | getPostList: PropTypes.func.isRequired, 10 | loading: PropTypes.bool.isRequired, 11 | }; 12 | 13 | class PostList extends Component { 14 | componentWillMount() { 15 | this.props.getPostList(); 16 | 17 | this.createDataSource(this.props); 18 | } 19 | 20 | componentWillReceiveProps(nextProps) { 21 | this.createDataSource(nextProps); 22 | } 23 | 24 | createDataSource({ list }) { 25 | const ds = new ListView.DataSource({ 26 | rowHasChanged: (r1, r2) => r1 !== r2, 27 | }); 28 | 29 | this.dataSource = ds.cloneWithRows(list); 30 | } 31 | 32 | renderRow(post) { 33 | const { title } = post; 34 | 35 | return ( 36 | { Actions.postEdit({ post }); }} 38 | > 39 | 40 | 41 | {title} 42 | 43 | 44 | 45 | ); 46 | } 47 | 48 | render() { 49 | return ( 50 | 51 | {this.props.loading 52 | ? 53 | 54 | : 55 | } 60 | 61 | ); 62 | } 63 | } 64 | 65 | PostList.propTypes = propTypes; 66 | 67 | export default PostList; 68 | -------------------------------------------------------------------------------- /src/components/post/postStyle.js: -------------------------------------------------------------------------------- 1 | const styles = { 2 | loadingContainer: { 3 | paddingTop: 20, 4 | paddingBottom: 10, 5 | }, 6 | error: { 7 | fontSize: 20, 8 | alignSelf: 'center', 9 | color: '#e62117', 10 | paddingTop: 20, 11 | paddingBottom: 10, 12 | }, 13 | listTitleStyle: { 14 | fontSize: 18, 15 | paddingLeft: 15, 16 | color: '#4d4d4d', 17 | }, 18 | listContainerStyle: { 19 | borderColor: '#e5e3e3', 20 | paddingTop: 10, 21 | paddingBottom: 10, 22 | borderBottomWidth: 1, 23 | }, 24 | }; 25 | 26 | export default styles; 27 | -------------------------------------------------------------------------------- /src/configureStore.js: -------------------------------------------------------------------------------- 1 | import { combineReducers, createStore, applyMiddleware } from 'redux'; 2 | import ReduxThunk from 'redux-thunk'; 3 | import { reducer as formReducer } from 'redux-form'; 4 | import auth from './modules/auth'; 5 | import post from './modules/post'; 6 | 7 | const reducers = combineReducers({ 8 | auth, 9 | post, 10 | form: formReducer, 11 | }); 12 | 13 | const store = createStore(reducers, {}, applyMiddleware(ReduxThunk)); 14 | 15 | export default store; 16 | -------------------------------------------------------------------------------- /src/containers/auth/Signin.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | import Signin from '../../components/auth/Signin'; 3 | import { signInUser, clearState } from '../../modules/auth'; 4 | 5 | const mapStateToProps = ({ auth }) => { 6 | const { error, loading, user } = auth; 7 | 8 | return { authError: error, loading, user }; 9 | }; 10 | 11 | export default connect(mapStateToProps, { signInUser, clearState })(Signin); 12 | -------------------------------------------------------------------------------- /src/containers/auth/Signup.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | import Signup from '../../components/auth/Signup'; 3 | import { signUpUser, clearState } from '../../modules/auth'; 4 | 5 | const mapStateToProps = ({ auth }) => { 6 | const { error, loading, user } = auth; 7 | 8 | return { authError: error, loading, user }; 9 | }; 10 | 11 | export default connect(mapStateToProps, { signUpUser, clearState })(Signup); 12 | -------------------------------------------------------------------------------- /src/containers/auth/requireAuth.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { Actions } from 'react-native-router-flux'; 4 | 5 | const propTypes = { 6 | user: PropTypes.object, 7 | }; 8 | 9 | const defaultProps = { 10 | user: null, 11 | }; 12 | 13 | export default function (ComposedComponent) { 14 | class Authentication extends Component { 15 | componentWillMount() { 16 | if (!this.props.user) { 17 | Actions.auth(); 18 | } 19 | } 20 | 21 | componentWillUpdate(nextProps) { 22 | if (!nextProps.user) { 23 | Actions.auth(); 24 | } 25 | } 26 | 27 | render() { 28 | return ; 29 | } 30 | } 31 | 32 | Authentication.defaultProps = defaultProps; 33 | Authentication.propTypes = propTypes; 34 | 35 | const mapStateToProps = ({ auth }) => ({ user: auth.user }); 36 | 37 | return connect(mapStateToProps)(Authentication); 38 | } 39 | -------------------------------------------------------------------------------- /src/containers/auth/requireNotAuth.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { Actions } from 'react-native-router-flux'; 4 | 5 | const propTypes = { 6 | user: PropTypes.object, 7 | }; 8 | 9 | const defaultProps = { 10 | user: null, 11 | }; 12 | 13 | export default function (ComposedComponent) { 14 | class Authentication extends Component { 15 | componentWillMount() { 16 | if (this.props.user) { 17 | Actions.post(); 18 | } 19 | } 20 | 21 | componentWillUpdate(nextProps) { 22 | if (nextProps.user) { 23 | Actions.post(); 24 | } 25 | } 26 | 27 | render() { 28 | return ; 29 | } 30 | } 31 | 32 | Authentication.defaultProps = defaultProps; 33 | Authentication.propTypes = propTypes; 34 | 35 | const mapStateToProps = ({ auth }) => ({ user: auth.user }); 36 | 37 | return connect(mapStateToProps)(Authentication); 38 | } 39 | -------------------------------------------------------------------------------- /src/containers/post/PostCreate.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | import PostCreate from '../../components/post/PostCreate'; 3 | import { createPost } from '../../modules/post'; 4 | 5 | const mapStateToProps = ({ post }) => { 6 | const { loading, error } = post; 7 | 8 | return { loading, postError: error }; 9 | }; 10 | 11 | export default connect(mapStateToProps, { createPost })(PostCreate); 12 | -------------------------------------------------------------------------------- /src/containers/post/PostEdit.js: -------------------------------------------------------------------------------- 1 | import { connect } from 'react-redux'; 2 | import PostEdit from '../../components/post/PostEdit'; 3 | import { updatePost, deletePost } from '../../modules/post'; 4 | 5 | const mapStateToProps = (state, props) => { 6 | const { loading, error } = state.post; 7 | const { title, description, uid } = props.post; 8 | 9 | return { loading, postError: error, initialValues: { title, description, uid } }; 10 | }; 11 | 12 | export default connect(mapStateToProps, { updatePost, deletePost })(PostEdit); 13 | -------------------------------------------------------------------------------- /src/containers/post/PostList.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | import { connect } from 'react-redux'; 3 | import PostList from '../../components/post/PostList'; 4 | import { getPostList } from '../../modules/post'; 5 | 6 | const mapStateToProps = ({ post }) => { 7 | const { loading, error } = post; 8 | const list = _.map(post.list, (val, uid) => ({ ...val, uid })); 9 | 10 | return { loading, postError: error, list }; 11 | }; 12 | 13 | export default connect(mapStateToProps, { getPostList })(PostList); 14 | -------------------------------------------------------------------------------- /src/firebase.example.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiKey": "AIzaSSdasntBvxyIjpuxijBY7Re82W-c6CHbZVJs", 3 | "authDomain": "auth-36x90.firebaseapp.com", 4 | "databaseURL": "https://auth-36x90.firebaseio.com", 5 | "storageBucket": "auth-36x90.appspot.com", 6 | "messagingSenderId": "440884913212" 7 | } 8 | -------------------------------------------------------------------------------- /src/modules/auth.js: -------------------------------------------------------------------------------- 1 | import firebase from 'firebase'; 2 | import { Actions } from 'react-native-router-flux'; 3 | import { reset } from 'redux-form'; 4 | 5 | /** 6 | |-------------------------------------------------- 7 | | Types 8 | |-------------------------------------------------- 9 | */ 10 | export const SIGN_UP_REQUEST = 'SIGN_UP_REQUEST'; 11 | export const SIGN_UP_SUCCESS = 'SIGN_UP_SUCCESS'; 12 | export const SIGN_UP_FAILURE = 'SIGN_UP_FAILURE'; 13 | export const SIGN_IN_REQUEST = 'SIGN_IN_REQUEST'; 14 | export const SIGN_IN_SUCCESS = 'SIGN_IN_SUCCESS'; 15 | export const SIGN_IN_FAILURE = 'SIGN_IN_FAILURE'; 16 | export const SET_INITIAL_STATE = 'SET_INITIAL_STATE'; 17 | 18 | /** 19 | |-------------------------------------------------- 20 | | Actions 21 | |-------------------------------------------------- 22 | */ 23 | export const signInUser = ({ email, password }) => (dispatch) => { 24 | dispatch({ type: SIGN_IN_REQUEST }); 25 | 26 | firebase.auth().signInWithEmailAndPassword(email, password) 27 | .then((user) => { 28 | dispatch({ type: SIGN_IN_SUCCESS, payload: user }); 29 | 30 | dispatch(reset('signin')); 31 | 32 | Actions.post(); 33 | }) 34 | .catch((error) => { dispatch({ type: SIGN_IN_FAILURE, payload: authFailMessage(error.code) }); }); 35 | }; 36 | 37 | export const signUpUser = ({ email, password, firstname, lastname }) => (dispatch) => { 38 | dispatch({ type: SIGN_UP_REQUEST }); 39 | 40 | firebase.auth().createUserWithEmailAndPassword(email, password) 41 | .then((user) => { 42 | firebase.database().ref('users').child(user.uid) 43 | .set({ firstname, lastname }) 44 | .then(() => { 45 | dispatch({ type: SIGN_UP_SUCCESS, payload: user }); 46 | 47 | dispatch(reset('signup')); 48 | 49 | Actions.post(); 50 | }); 51 | }) 52 | .catch((error) => { dispatch({ type: SIGN_UP_FAILURE, payload: authFailMessage(error.code) }); }); 53 | }; 54 | 55 | export const clearState = () => ( 56 | { type: SET_INITIAL_STATE } 57 | ); 58 | 59 | export const signOutUser = () => (dispatch) => { 60 | dispatch({ type: SET_INITIAL_STATE }); 61 | 62 | firebase.auth().signOut(); 63 | }; 64 | 65 | const authFailMessage = (errorCode) => { 66 | switch (errorCode) { 67 | case 'auth/invalid-email': 68 | return 'Email is invalid.'; 69 | case 'auth/user-disabled': 70 | return 'User is disabled.'; 71 | case 'auth/user-not-found': 72 | return 'User not found.'; 73 | case 'auth/wrong-password': 74 | return 'Password is invalid.'; 75 | case 'auth/email-already-in-use': 76 | return 'Email address is already in use.'; 77 | case 'auth/weak-password': 78 | return 'Password is not strong enough.'; 79 | default: 80 | return 'Authentication failed.'; 81 | } 82 | }; 83 | 84 | /** 85 | |-------------------------------------------------- 86 | | Reducer 87 | |-------------------------------------------------- 88 | */ 89 | const INITIAL_STATE = { 90 | error: '', 91 | loading: false, 92 | user: null, 93 | }; 94 | 95 | const reducer = (state = INITIAL_STATE, action) => { 96 | switch (action.type) { 97 | case SIGN_UP_REQUEST: 98 | return { ...state, ...INITIAL_STATE, loading: true }; 99 | case SIGN_UP_SUCCESS: 100 | return { ...state, ...INITIAL_STATE, user: action.payload }; 101 | case SIGN_UP_FAILURE: 102 | return { ...state, ...INITIAL_STATE, error: action.payload }; 103 | case SIGN_IN_REQUEST: 104 | return { ...state, ...INITIAL_STATE, loading: true }; 105 | case SIGN_IN_SUCCESS: 106 | return { ...state, ...INITIAL_STATE, user: action.payload }; 107 | case SIGN_IN_FAILURE: 108 | return { ...state, ...INITIAL_STATE, error: action.payload }; 109 | case SET_INITIAL_STATE: 110 | return { ...state, ...INITIAL_STATE }; 111 | default: 112 | return state; 113 | } 114 | }; 115 | 116 | export default reducer; 117 | -------------------------------------------------------------------------------- /src/modules/post.js: -------------------------------------------------------------------------------- 1 | import { Actions } from 'react-native-router-flux'; 2 | import firebase from 'firebase'; 3 | 4 | /** 5 | |-------------------------------------------------- 6 | | Types 7 | |-------------------------------------------------- 8 | */ 9 | export const POST_CREATE_REQUEST = 'EMPLOYEE_CREATE_REQUEST'; 10 | export const POST_CREATE_SUCCESS = 'EMPLOYEE_CREATE_SUCCESS'; 11 | export const POST_CREATE_FAILURE = 'EMPLOYEE_CREATE_FAILURE'; 12 | export const POST_UPDATE_REQUEST = 'POST_UPDATE_REQUEST'; 13 | export const POST_UPDATE_SUCCESS = 'POST_UPDATE_SUCCESS'; 14 | export const POST_UPDATE_FAILURE = 'POST_UPDATE_FAILURE'; 15 | export const POST_DELETE_REQUEST = 'POST_DELETE_REQUEST'; 16 | export const POST_DELETE_SUCCESS = 'POST_DELETE_SUCCESS'; 17 | export const POST_DELETE_FAILURE = 'POST_DELETE_FAILURE'; 18 | export const POST_LIST_GET_REQUEST = 'POST_LIST_GET_REQUEST'; 19 | export const POST_LIST_GET_SUCCESS = 'POST_LIST_GET_SUCCESS'; 20 | export const POST_LIST_GET_FAILURE = 'POST_LIST_GET_FAILURE'; 21 | 22 | /** 23 | |-------------------------------------------------- 24 | | Actions 25 | |-------------------------------------------------- 26 | */ 27 | export const createPost = ({ title, description }) => { 28 | const { currentUser } = firebase.auth(); 29 | 30 | return (dispatch) => { 31 | dispatch({ type: POST_CREATE_REQUEST }); 32 | 33 | firebase.database().ref(`/users/${currentUser.uid}/post`) 34 | .push({ title, description }) 35 | .then(() => { 36 | dispatch({ type: POST_CREATE_SUCCESS }); 37 | 38 | Actions.postList({ type: 'reset' }); 39 | }) 40 | .catch(() => { 41 | dispatch({ type: POST_CREATE_FAILURE, payload: 'Post creation failed' }); 42 | }); 43 | }; 44 | }; 45 | 46 | export const updatePost = ({ title, description, uid }) => { 47 | const { currentUser } = firebase.auth(); 48 | 49 | return (dispatch) => { 50 | dispatch({ type: POST_UPDATE_REQUEST }); 51 | 52 | firebase.database().ref(`/users/${currentUser.uid}/post/${uid}`) 53 | .set({ title, description }) 54 | .then(() => { 55 | dispatch({ type: POST_UPDATE_SUCCESS }); 56 | 57 | Actions.postList({ type: 'reset' }); 58 | }) 59 | .catch(() => { 60 | dispatch({ type: POST_UPDATE_FAILURE, payload: 'Post edition failed' }); 61 | }); 62 | }; 63 | }; 64 | 65 | export const deletePost = ({ uid }) => { 66 | const { currentUser } = firebase.auth(); 67 | 68 | return (dispatch) => { 69 | dispatch({ type: POST_DELETE_REQUEST }); 70 | 71 | firebase.database().ref(`/users/${currentUser.uid}/post/${uid}`) 72 | .remove() 73 | .then(() => { 74 | dispatch({ type: POST_DELETE_SUCCESS }); 75 | 76 | Actions.postList({ type: 'reset' }); 77 | }) 78 | .catch(() => { 79 | dispatch({ type: POST_DELETE_FAILURE, payload: 'Post deletion failed' }); 80 | }); 81 | }; 82 | }; 83 | 84 | export const getPostList = () => { 85 | const { currentUser } = firebase.auth(); 86 | 87 | return (dispatch) => { 88 | dispatch({ type: POST_LIST_GET_REQUEST }); 89 | 90 | firebase.database().ref(`/users/${currentUser.uid}/post`) 91 | .on('value', (snapshot) => { 92 | dispatch({ type: POST_LIST_GET_SUCCESS, payload: snapshot.val() }); 93 | }); 94 | }; 95 | }; 96 | 97 | /** 98 | |-------------------------------------------------- 99 | | Reducer 100 | |-------------------------------------------------- 101 | */ 102 | const INITIAL_STATE = { 103 | list: [], 104 | error: '', 105 | loading: false, 106 | }; 107 | 108 | const reducer = (state = INITIAL_STATE, action) => { 109 | switch (action.type) { 110 | case POST_CREATE_REQUEST: 111 | return { ...state, loading: true }; 112 | case POST_CREATE_SUCCESS: 113 | return { ...state, error: '', loading: false }; 114 | case POST_CREATE_FAILURE: 115 | return { ...state, loading: false, error: action.payload }; 116 | case POST_UPDATE_REQUEST: 117 | return { ...state, loading: true }; 118 | case POST_UPDATE_SUCCESS: 119 | return { ...state, error: '', loading: false }; 120 | case POST_UPDATE_FAILURE: 121 | return { ...state, loading: false, error: action.payload }; 122 | case POST_DELETE_REQUEST: 123 | return { ...state, loading: true }; 124 | case POST_DELETE_SUCCESS: 125 | return { ...state, error: '', loading: false }; 126 | case POST_DELETE_FAILURE: 127 | return { ...state, loading: false, error: action.payload }; 128 | case POST_LIST_GET_REQUEST: 129 | return { ...state, loading: true }; 130 | case POST_LIST_GET_SUCCESS: 131 | return { ...state, ...INITIAL_STATE, list: action.payload }; 132 | case POST_LIST_GET_FAILURE: 133 | return { ...state, loading: false, error: action.payload }; 134 | default: 135 | return state; 136 | } 137 | }; 138 | 139 | export default reducer; 140 | --------------------------------------------------------------------------------