├── .buckconfig ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── LICENSE ├── README.md ├── __tests__ └── App-test.js ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── rnboilerplate │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── rnboilerplate │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── app ├── Entrypoint.js ├── api │ ├── ApiConstants.js │ ├── index.js │ └── methods │ │ └── loginUser.js ├── assets │ └── react-native.png ├── components │ └── index.js ├── config │ ├── images.js │ ├── metrics.js │ └── styles.js ├── features │ ├── home │ │ ├── actions.js │ │ ├── components │ │ │ └── index.js │ │ ├── containers │ │ │ ├── index.js │ │ │ └── styles.js │ │ ├── homeSaga.js │ │ ├── reducers.js │ │ ├── selectors.js │ │ └── types.js │ └── login │ │ ├── actions.js │ │ ├── components │ │ └── index.js │ │ ├── containers │ │ ├── index.js │ │ └── styles.js │ │ ├── reducers.js │ │ ├── sagas │ │ ├── index.js │ │ └── loginSaga.js │ │ ├── selectors.js │ │ └── types.js ├── lib │ ├── createReducer.js │ └── isIphoneX.js ├── navigation │ ├── NavigationService.js │ ├── NavigationStack.js │ └── index.js ├── package.json ├── store │ ├── index.js │ ├── reducers.js │ └── sagas.js └── utils │ └── stringUtils.js ├── babel.config.js ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── RNBoilerPlate-tvOS │ └── Info.plist ├── RNBoilerPlate-tvOSTests │ └── Info.plist ├── RNBoilerPlate.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── RNBoilerPlate-tvOS.xcscheme │ │ └── RNBoilerPlate.xcscheme ├── RNBoilerPlate.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── RNBoilerPlate │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── RNBoilerPlateTests │ ├── Info.plist │ └── RNBoilerPlateTests.m ├── metro.config.js ├── package.json └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; These should not be required directly 12 | ; require from fbjs/lib instead: require('fbjs/lib/warning') 13 | node_modules/warning/.* 14 | 15 | ; Flow doesn't support platforms 16 | .*/Libraries/Utilities/LoadingView.js 17 | 18 | [untyped] 19 | .*/node_modules/@react-native-community/cli/.*/.* 20 | 21 | [include] 22 | 23 | [libs] 24 | node_modules/react-native/interface.js 25 | node_modules/react-native/flow/ 26 | 27 | [options] 28 | emoji=true 29 | 30 | esproposal.optional_chaining=enable 31 | esproposal.nullish_coalescing=enable 32 | 33 | module.file_ext=.js 34 | module.file_ext=.json 35 | module.file_ext=.ios.js 36 | 37 | munge_underscores=true 38 | 39 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 40 | module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 41 | 42 | suppress_type=$FlowIssue 43 | suppress_type=$FlowFixMe 44 | suppress_type=$FlowFixMeProps 45 | suppress_type=$FlowFixMeState 46 | 47 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) 48 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ 49 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 50 | 51 | [lints] 52 | sketchy-null-number=warn 53 | sketchy-null-mixed=warn 54 | sketchy-number=warn 55 | untyped-type-import=warn 56 | nonstrict-import=warn 57 | deprecated-type=warn 58 | unsafe-getters-setters=warn 59 | inexact-spread=warn 60 | unnecessary-invariant=warn 61 | signature-verification-failure=warn 62 | deprecated-utility=error 63 | 64 | [strict] 65 | deprecated-type 66 | nonstrict-import 67 | sketchy-null 68 | unclear-type 69 | unsafe-getters-setters 70 | untyped-import 71 | untyped-type-import 72 | 73 | [version] 74 | ^0.113.0 75 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: true, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Victor K Varghese 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 🚀 React Native Feature Boilerplate - April 2020 2 | 3 | [![React Native](https://img.shields.io/badge/React%20Native-v0.62.2-green.svg)](https://facebook.github.io/react-native/) 4 | [![React Navigation V5](https://img.shields.io/badge/React%20Navigation-v5.1-blue.svg)](https://reactnavigation.org/) 5 | 6 | React NativeFeature Boilerplate is a starting point for React Native application. This project is configured with redux, redux saga 7 | and redux persist. Uses latest version of react-navigation (v5) 8 | 9 |

10 | Redux Logo 11 | 12 | Redux Logo 13 | 14 | Redux Logo 15 | 16 |

17 | 18 | ## Scalability Factor 19 | 20 | This Architecture is optimised for large scale projects. If you are beginner who just started using react native, I would 21 | suggest starting with a type based architecture and slowly switching to this architecture. 22 | 23 | [React-Native-BoilerPlate](https://github.com/victorkvarghese/react-native-boilerplate) for beginners. 24 | 25 | ## Features 26 | 27 | - [React Hooks](https://reactjs.org/docs/hooks-intro.html) 28 | - [React Navigation](https://reactnavigation.org/) with [Authentication flow](https://reactnavigation.org/docs/auth-flow) baked in. 29 | - [React Native Gesture Handler](https://github.com/kmagiera/react-native-gesture-handler) 30 | - [React Native Paper](https://callstack.github.io/react-native-paper/) 31 | - [React Native Vector Icons](https://github.com/oblador/react-native-vector-icons) 32 | - [Redux](http://redux.js.org/) with [hooks](https://react-redux.js.org/api/hooks) support 33 | - [Redux Saga](https://redux-saga.js.org/) 34 | - [Redux Persist](https://github.com/rt2zz/redux-persist/) 35 | - [Reselect](https://github.com/reduxjs/reselect) 36 | - [Jest](https://facebook.github.io/jest/) 37 | - [Eslint](http://eslint.org/) ([Airbnb config](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb)) 38 | 39 | ## Prerequisites 40 | 41 | - [Node](https://nodejs.org) v10 (it is recommended to install it via [NVM](https://github.com/creationix/nvm)) 42 | - [Yarn](https://yarnpkg.com/) 43 | - A development machine set up for React Native by following [these instructions](https://facebook.github.io/react-native/docs/getting-started.html) 44 | 45 | ## Project Structure 46 | 47 | - `/app` - Contains our React Native App codebase 48 | - `/api` - Api module class. Each file will be feature based like ProductAPI, LoginAPI etc 49 | - `/components` - universal shared components used by others. 50 | - `/config` - Universal styles,images,metrics etc.. 51 | - `/features` - Config files 52 | - `login`- Each folder will be a feature like this. 53 | - `reducers` - Reducer associated with this feature [Mostly one, can be multiple] 54 | - `sagas` - Sagas related with this particular feature [can have single or muliple sagas associated] 55 | - `selectors` - selectors associated with feature 56 | - `components` - Components associated with this feature. 57 | - `containers` - Containers associated with this feature [**Container - Component Structure**] 58 | - `/lib` - lib helper files 59 | - `/navigation` - All naviagtion related stuff including helpers functions and navigation stack 60 | - `NavigationService.js` - Service class for navigation - can be used without using props 61 | - `NavigationStack.js` - Stack to define naviagtion. you can split things further if needed 62 | - `/store` - Includes everything you need to set up store. 63 | - `reducers` - Combines all feature based reducers 64 | - `sagas` - Combines all feature based sagas 65 | - `index.js` - Set ups store and export things 66 | 67 | ## Getting Started 68 | 69 | 1. Clone this repo, `git clone https://github.com/victorkvarghese/react-native-boilerplate.git ` 70 | 2. Go to project's root directory, `cd ` 71 | 3. Remove `.git` folder, `rm -rf .git` 72 | 4. Use [React Native Rename](https://github.com/junedomingo/react-native-rename) to update project name `$ npx react-native-rename ` 73 | 5. Run `yarn` or `npm install` to install dependencies 74 | 75 | 6) Start the packager with `npm start` 76 | 7) Connect a mobile device to your development machine 77 | 8) Run the test application: 78 | 79 | - On Android: 80 | - Run `react-native run-android` 81 | - On iOS: 82 | - Open `ios/YourReactProject.xcworkspace` in Xcode 83 | - Hit `Run` after selecting the desired device 84 | 85 | 9. Enjoy!!! 86 | 87 | ## Contributing 88 | 89 | PRs are welcome 90 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.rnboilerplate", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.rnboilerplate", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | project.ext.vectoricons = [ 124 | iconFontNames: [ 'MaterialIcons.ttf', 'MaterialCommunityIcons.ttf' ] // Name of the font files you want to copy 125 | ] 126 | 127 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" 128 | 129 | 130 | android { 131 | compileSdkVersion rootProject.ext.compileSdkVersion 132 | 133 | compileOptions { 134 | sourceCompatibility JavaVersion.VERSION_1_8 135 | targetCompatibility JavaVersion.VERSION_1_8 136 | } 137 | 138 | defaultConfig { 139 | applicationId "com.rnboilerplate" 140 | minSdkVersion rootProject.ext.minSdkVersion 141 | targetSdkVersion rootProject.ext.targetSdkVersion 142 | versionCode 1 143 | versionName "1.0" 144 | } 145 | splits { 146 | abi { 147 | reset() 148 | enable enableSeparateBuildPerCPUArchitecture 149 | universalApk false // If true, also generate a universal APK 150 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 151 | } 152 | } 153 | signingConfigs { 154 | debug { 155 | storeFile file('debug.keystore') 156 | storePassword 'android' 157 | keyAlias 'androiddebugkey' 158 | keyPassword 'android' 159 | } 160 | } 161 | buildTypes { 162 | debug { 163 | signingConfig signingConfigs.debug 164 | } 165 | release { 166 | // Caution! In production, you need to generate your own keystore file. 167 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 168 | signingConfig signingConfigs.debug 169 | minifyEnabled enableProguardInReleaseBuilds 170 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 171 | } 172 | } 173 | 174 | packagingOptions { 175 | pickFirst "lib/armeabi-v7a/libc++_shared.so" 176 | pickFirst "lib/arm64-v8a/libc++_shared.so" 177 | pickFirst "lib/x86/libc++_shared.so" 178 | pickFirst "lib/x86_64/libc++_shared.so" 179 | } 180 | 181 | // applicationVariants are e.g. debug, release 182 | applicationVariants.all { variant -> 183 | variant.outputs.each { output -> 184 | // For each separate APK per architecture, set a unique version code as described here: 185 | // https://developer.android.com/studio/build/configure-apk-splits.html 186 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 187 | def abi = output.getFilter(OutputFile.ABI) 188 | if (abi != null) { // null for the universal-debug, universal-release variants 189 | output.versionCodeOverride = 190 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 191 | } 192 | 193 | } 194 | } 195 | } 196 | 197 | dependencies { 198 | implementation fileTree(dir: "libs", include: ["*.jar"]) 199 | //noinspection GradleDynamicVersion 200 | implementation "com.facebook.react:react-native:+" // From node_modules 201 | 202 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 203 | 204 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 205 | exclude group:'com.facebook.fbjni' 206 | } 207 | 208 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 209 | exclude group:'com.facebook.flipper' 210 | } 211 | 212 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 213 | exclude group:'com.facebook.flipper' 214 | } 215 | 216 | if (enableHermes) { 217 | def hermesPath = "../../node_modules/hermes-engine/android/"; 218 | debugImplementation files(hermesPath + "hermes-debug.aar") 219 | releaseImplementation files(hermesPath + "hermes-release.aar") 220 | } else { 221 | implementation jscFlavor 222 | } 223 | } 224 | 225 | // Run this once to be able to run the application with BUCK 226 | // puts all compile dependencies into folder libs for BUCK to use 227 | task copyDownloadableDepsToLibs(type: Copy) { 228 | from configurations.compile 229 | into 'libs' 230 | } 231 | 232 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 233 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/debug.keystore -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/rnboilerplate/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.rnboilerplate; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnboilerplate/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rnboilerplate; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "RNBoilerPlate"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnboilerplate/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rnboilerplate; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 48 | } 49 | 50 | /** 51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 53 | * 54 | * @param context 55 | * @param reactInstanceManager 56 | */ 57 | private static void initializeFlipper( 58 | Context context, ReactInstanceManager reactInstanceManager) { 59 | if (BuildConfig.DEBUG) { 60 | try { 61 | /* 62 | We use reflection here to pick up the class that initializes Flipper, 63 | since Flipper library is not available in release mode 64 | */ 65 | Class aClass = Class.forName("com.rnboilerplate.ReactNativeFlipper"); 66 | aClass 67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 68 | .invoke(null, context, reactInstanceManager); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RNBoilerPlate 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.5.2") 16 | 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.33.1 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=$((i+1)) 158 | done 159 | case $i in 160 | (0) set -- ;; 161 | (1) set -- "$args0" ;; 162 | (2) set -- "$args0" "$args1" ;; 163 | (3) set -- "$args0" "$args1" "$args2" ;; 164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=$(save "$@") 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RNBoilerPlate' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RNBoilerPlate", 3 | "displayName": "RNBoilerPlate" 4 | } -------------------------------------------------------------------------------- /app/Entrypoint.js: -------------------------------------------------------------------------------- 1 | /** 2 | * React Native App 3 | * Everthing starts from the entrypoint 4 | */ 5 | import React from 'react'; 6 | import { ActivityIndicator } from 'react-native'; 7 | import { Provider } from 'react-redux'; 8 | import { PersistGate } from 'redux-persist/es/integration/react'; 9 | import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper'; 10 | 11 | import Navigator from 'app/navigation'; 12 | import configureStore from 'app/store'; 13 | const { persistor, store } = configureStore(); 14 | 15 | const theme = { 16 | ...DefaultTheme, 17 | roundness: 2, 18 | colors: { 19 | ...DefaultTheme.colors, 20 | // primary: '#3498db', 21 | // accent: '#f1c40f', 22 | }, 23 | }; 24 | 25 | export default function Entrypoint() { 26 | return ( 27 | 28 | } persistor={persistor}> 29 | 30 | 31 | 32 | 33 | 34 | ); 35 | } 36 | -------------------------------------------------------------------------------- /app/api/ApiConstants.js: -------------------------------------------------------------------------------- 1 | /* App config for apis 2 | */ 3 | const ApiConstants = { 4 | BASE_URL: 'http://wolverine-dev.com/', 5 | LOGIN: 'api/Users/login', 6 | }; 7 | 8 | export default ApiConstants; 9 | -------------------------------------------------------------------------------- /app/api/index.js: -------------------------------------------------------------------------------- 1 | // General api to access data 2 | import ApiConstants from './ApiConstants'; 3 | export default function api(path, params, method, token) { 4 | let options; 5 | options = { 6 | headers: { 7 | Accept: 'application/json', 8 | 'Content-Type': 'application/json', 9 | ...(token && { token: token }), 10 | }, 11 | method: method, 12 | ...(params && { body: JSON.stringify(params) }), 13 | }; 14 | 15 | return fetch(ApiConstants.BASE_URL + path, options) 16 | .then(resp => resp.json()) 17 | .then(json => json) 18 | .catch(error => error); 19 | } 20 | -------------------------------------------------------------------------------- /app/api/methods/loginUser.js: -------------------------------------------------------------------------------- 1 | import Api from 'app/api'; 2 | import ApiConstants from '../ApiConstants'; 3 | 4 | export default function loginUser(username, password) { 5 | return Api( 6 | ApiConstants.LOGIN + '?username=' + username + '&password=' + password, 7 | null, 8 | 'post', 9 | null, 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /app/assets/react-native.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/assets/react-native.png -------------------------------------------------------------------------------- /app/components/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/components/index.js -------------------------------------------------------------------------------- /app/config/images.js: -------------------------------------------------------------------------------- 1 | /* App config for images 2 | */ 3 | const images = { 4 | icons: { 5 | //logo: require('../assets/images/icons/logo.png'), 6 | }, 7 | }; 8 | 9 | export default images; 10 | -------------------------------------------------------------------------------- /app/config/metrics.js: -------------------------------------------------------------------------------- 1 | /* 2 | * platform/application wide metrics for proper styling 3 | */ 4 | import { Dimensions, Platform } from 'react-native'; 5 | const { width, height } = Dimensions.get('window'); 6 | 7 | const metrics = { 8 | screenWidth: width < height ? width : height, 9 | screenHeight: width < height ? height : width, 10 | navBarHeight: Platform.OS === 'ios' ? 54 : 66, 11 | }; 12 | 13 | export default metrics; 14 | -------------------------------------------------------------------------------- /app/config/styles.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Provides universal color configs used in the app. 3 | * Provides universal fonts used in the app. 4 | */ 5 | const AppStyles = { 6 | color: { 7 | COLOR_PRIMARY: '#2ec7ab', 8 | COLOR_SECONDARY: '#111', 9 | COLOR_WHITE: '#FFFFFF', 10 | COLOR_BLACK: '#000000', 11 | COLOR_GREY: 'grey', 12 | COLOR_GREEN: 'green', 13 | COLOR_PLACEHOLDER: '#111111', 14 | COLOR_GREY_WHITE: '#fafafa', 15 | COLOR_DARK_SEPERATOR: '#d4d4d4', 16 | COLOR_BLACK_TRANSP: 'rgba(0, 0, 0, 0.7)', 17 | COLOR_GREY_TRANSP: 'rgba(67, 85, 85, 0.7)', 18 | }, 19 | fonts: { 20 | // FONT_REGULAR: 'Roboto-Regular', 21 | // FONT_MEDIUM: 'Roboto-Medium' 22 | }, 23 | }; 24 | export default AppStyles; 25 | -------------------------------------------------------------------------------- /app/features/home/actions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/features/home/actions.js -------------------------------------------------------------------------------- /app/features/home/components/index.js: -------------------------------------------------------------------------------- 1 | // index 2 | -------------------------------------------------------------------------------- /app/features/home/containers/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | import { Button } from 'react-native-paper'; 4 | 5 | import { useDispatch } from 'react-redux'; 6 | import * as loginActions from 'app/features/login/actions'; 7 | import styles from './styles'; 8 | 9 | export default function Home() { 10 | const dispatch = useDispatch(); 11 | const onLogout = () => dispatch(loginActions.logOut()); 12 | 13 | return ( 14 | 15 | 18 | 19 | ); 20 | } 21 | -------------------------------------------------------------------------------- /app/features/home/containers/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | const styles = StyleSheet.create({ 4 | container: { 5 | flex: 1, 6 | justifyContent: 'center', 7 | alignItems: 'center', 8 | }, 9 | }); 10 | 11 | export default styles; 12 | -------------------------------------------------------------------------------- /app/features/home/homeSaga.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/features/home/homeSaga.js -------------------------------------------------------------------------------- /app/features/home/reducers.js: -------------------------------------------------------------------------------- 1 | /* Home Reducer 2 | * handles state in the home feature 3 | */ 4 | import createReducer from 'app/lib/createReducer'; 5 | 6 | const initialState = {}; 7 | 8 | export const homeReducer = createReducer(initialState, {}); 9 | -------------------------------------------------------------------------------- /app/features/home/selectors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/features/home/selectors.js -------------------------------------------------------------------------------- /app/features/home/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/features/home/types.js -------------------------------------------------------------------------------- /app/features/login/actions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Reducer actions related with login 3 | */ 4 | import * as types from './types'; 5 | 6 | export function requestLogin(username, password) { 7 | return { 8 | type: types.LOGIN_REQUEST, 9 | username, 10 | password, 11 | }; 12 | } 13 | 14 | export function loginFailed() { 15 | return { 16 | type: types.LOGIN_FAILED, 17 | }; 18 | } 19 | 20 | export function onLoginResponse(response) { 21 | return { 22 | type: types.LOGIN_RESPONSE, 23 | response, 24 | }; 25 | } 26 | 27 | export function enableLoader() { 28 | return { 29 | type: types.LOGIN_ENABLE_LOADER, 30 | }; 31 | } 32 | 33 | export function disableLoader() { 34 | return { 35 | type: types.LOGIN_DISABLE_LOADER, 36 | }; 37 | } 38 | 39 | export function logOut() { 40 | return { 41 | type: types.LOG_OUT, 42 | }; 43 | } 44 | -------------------------------------------------------------------------------- /app/features/login/components/index.js: -------------------------------------------------------------------------------- 1 | //index.js 2 | -------------------------------------------------------------------------------- /app/features/login/containers/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | import { Text, Button } from 'react-native-paper'; 4 | 5 | import { useDispatch, useSelector } from 'react-redux'; 6 | import * as loginActions from '../actions'; 7 | import styles from './styles'; 8 | 9 | export default function Login() { 10 | const id = useSelector(state => state.loginReducer.id); 11 | const dispatch = useDispatch(); 12 | const onLogin = () => dispatch(loginActions.requestLogin('test', '1234')); 13 | 14 | return ( 15 | 16 | Login Status : {id} 17 | 20 | 21 | ); 22 | } 23 | -------------------------------------------------------------------------------- /app/features/login/containers/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | const styles = StyleSheet.create({ 4 | container: { 5 | flex: 1, 6 | justifyContent: 'center', 7 | alignItems: 'center', 8 | }, 9 | login: { 10 | padding: 8, 11 | }, 12 | }); 13 | 14 | export default styles; 15 | -------------------------------------------------------------------------------- /app/features/login/reducers.js: -------------------------------------------------------------------------------- 1 | /* Login Reducer 2 | * handles login states in the app 3 | */ 4 | import createReducer from 'app/lib/createReducer'; 5 | import * as types from './types'; 6 | 7 | const initialState = { 8 | isLoggedIn: false, 9 | id: 0, 10 | username: '', 11 | password: '', 12 | }; 13 | 14 | export const loginReducer = createReducer(initialState, { 15 | [types.LOGIN_REQUEST](state, action) { 16 | return { 17 | ...state, 18 | username: action.username, 19 | password: action.password, 20 | }; 21 | }, 22 | [types.LOGIN_LOADING_ENDED](state) { 23 | return { ...state }; 24 | }, 25 | [types.LOGIN_RESPONSE](state, action) { 26 | return { 27 | ...state, 28 | id: action.response.id, 29 | isLoggedIn: true, 30 | }; 31 | }, 32 | [types.LOGIN_FAILED](state) { 33 | return { 34 | ...state, 35 | isLoggedIn: false, 36 | }; 37 | }, 38 | [types.LOG_OUT](state) { 39 | return { 40 | ...state, 41 | isLoggedIn: false, 42 | }; 43 | }, 44 | }); 45 | -------------------------------------------------------------------------------- /app/features/login/sagas/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Redux saga class init 3 | * There can be multiple sagas 4 | * Export them as an array 5 | * Top level sagas in store will take care of combining sagas 6 | */ 7 | import { takeEvery } from 'redux-saga/effects'; 8 | import * as types from '../types'; 9 | import loginSaga from './loginSaga'; 10 | 11 | export const loginSagas = [takeEvery(types.LOGIN_REQUEST, loginSaga)]; 12 | -------------------------------------------------------------------------------- /app/features/login/sagas/loginSaga.js: -------------------------------------------------------------------------------- 1 | /* Redux saga class 2 | * logins the user into the app 3 | * requires username and password. 4 | * un - username 5 | * pwd - password 6 | */ 7 | import { put, call, select } from 'redux-saga/effects'; 8 | import { delay } from 'redux-saga'; 9 | 10 | import { Alert } from 'react-native'; 11 | // import loginUser from 'app/api/methods/loginUser'; 12 | import * as loginActions from '../actions'; 13 | 14 | // Our worker Saga that logins the user 15 | export default function* loginAsync() { 16 | yield put(loginActions.enableLoader()); 17 | 18 | //how to call api 19 | //const response = yield call(loginUser, action.username, action.password); 20 | //mock response 21 | const response = { success: true, data: { id: 1 } }; 22 | 23 | if (response.success) { 24 | yield put(loginActions.onLoginResponse(response.data)); 25 | yield put(loginActions.disableLoader({})); 26 | 27 | // no need to call navigate as this is handled by redux store with SwitchNavigator 28 | //yield call(navigationActions.navigateToHome); 29 | } else { 30 | yield put(loginActions.loginFailed()); 31 | yield put(loginActions.disableLoader({})); 32 | setTimeout(() => { 33 | Alert.alert('BoilerPlate', response.Message); 34 | }, 200); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/features/login/selectors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorkvarghese/react-native-feature-boilerplate/a74bee8da19ea302daab9ae7a2a2447723209a4b/app/features/login/selectors.js -------------------------------------------------------------------------------- /app/features/login/types.js: -------------------------------------------------------------------------------- 1 | //loaders 2 | export const LOGIN_ENABLE_LOADER = 'LOGIN_ENABLE_LOADER'; 3 | export const LOGIN_DISABLE_LOADER = 'LOGIN_DISABLE_LOADER'; 4 | 5 | // login 6 | export const LOGIN_REQUEST = 'LOGIN_REQUEST'; 7 | export const LOGIN_RESPONSE = 'LOGIN_RESPONSE'; 8 | export const LOGIN_FAILED = 'LOGIN_FAILED'; 9 | export const LOG_OUT = 'LOG_OUT'; 10 | -------------------------------------------------------------------------------- /app/lib/createReducer.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Will dynamically create reducers 3 | * enforcing a unique way to describe reducers 4 | */ 5 | export default function createReducer(initialState, handlers) { 6 | return function reducer(state = initialState, action) { 7 | if (handlers.hasOwnProperty(action.type)) { 8 | return handlers[action.type](state, action); 9 | } else { 10 | return state; 11 | } 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /app/lib/isIphoneX.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Helper class to fixing iPhoneX UI 3 | */ 4 | import { Dimensions, Platform } from 'react-native'; 5 | 6 | export function isIphoneX() { 7 | let dimen = Dimensions.get('window'); 8 | return ( 9 | Platform.OS === 'ios' && 10 | !Platform.isPad && 11 | !Platform.isTVOS && 12 | (dimen.height === 812 || dimen.width === 812) 13 | ); 14 | } 15 | 16 | export function ifIphoneX(iphoneXStyle, regularStyle) { 17 | if (isIphoneX()) { 18 | return iphoneXStyle; 19 | } else { 20 | return regularStyle; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/navigation/NavigationService.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | // NavigationConatiner is refered here - Check NavigationStack 4 | export const navigationRef = React.createRef(); 5 | 6 | function navigate(name, params) { 7 | navigationRef.current?.navigate(name, params); 8 | } 9 | 10 | function goBack() { 11 | navigationRef.current?.goBack(); 12 | } 13 | 14 | export default { 15 | navigate, 16 | goBack, 17 | }; 18 | -------------------------------------------------------------------------------- /app/navigation/NavigationStack.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import { NavigationContainer } from '@react-navigation/native'; 3 | import { createStackNavigator } from '@react-navigation/stack'; 4 | import { useSelector } from 'react-redux'; 5 | 6 | import { navigationRef } from './NavigationService'; 7 | 8 | import Login from 'app/features/login/containers'; 9 | import Home from 'app/features/home/containers'; 10 | 11 | const Stack = createStackNavigator(); 12 | 13 | const homeOptions = { 14 | title: 'My home', 15 | headerStyle: { 16 | backgroundColor: '#f4511e', 17 | }, 18 | headerTintColor: '#fff', 19 | headerTitleStyle: { 20 | fontWeight: 'bold', 21 | }, 22 | }; 23 | 24 | function App() { 25 | const isLoggedIn = useSelector(state => state.loginReducer.isLoggedIn); 26 | 27 | return ( 28 | 29 | 30 | {isLoggedIn ? ( 31 | 32 | ) : ( 33 | 42 | )} 43 | 44 | 45 | ); 46 | } 47 | 48 | export default App; 49 | -------------------------------------------------------------------------------- /app/navigation/index.js: -------------------------------------------------------------------------------- 1 | import NavigationStack from './NavigationStack'; 2 | export default NavigationStack; 3 | -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app" 3 | } 4 | -------------------------------------------------------------------------------- /app/store/index.js: -------------------------------------------------------------------------------- 1 | import { createStore, compose, applyMiddleware } from 'redux'; 2 | import { persistStore, persistCombineReducers } from 'redux-persist'; 3 | import AsyncStorage from '@react-native-community/async-storage'; 4 | import { createLogger } from 'redux-logger'; 5 | import createSagaMiddleware from 'redux-saga'; 6 | 7 | import rootReducers from './reducers'; // where reducers is a object of reducers 8 | import sagas from './sagas'; 9 | 10 | const config = { 11 | key: 'root', 12 | storage: AsyncStorage, 13 | blacklist: ['loadingReducer'], 14 | debug: true, //to get useful logging 15 | }; 16 | 17 | const middleware = []; 18 | const sagaMiddleware = createSagaMiddleware(); 19 | 20 | middleware.push(sagaMiddleware); 21 | 22 | if (__DEV__) { 23 | middleware.push(createLogger()); 24 | } 25 | 26 | const reducers = persistCombineReducers(config, rootReducers); 27 | const enhancers = [applyMiddleware(...middleware)]; 28 | // const initialState = {}; 29 | const persistConfig = { enhancers }; 30 | const store = createStore(reducers, undefined, compose(...enhancers)); 31 | const persistor = persistStore(store, persistConfig, () => { 32 | // console.log('Test', store.getState()); 33 | }); 34 | const configureStore = () => { 35 | return { persistor, store }; 36 | }; 37 | 38 | sagaMiddleware.run(sagas); 39 | 40 | export default configureStore; 41 | -------------------------------------------------------------------------------- /app/store/reducers.js: -------------------------------------------------------------------------------- 1 | /* 2 | * combines all th existing reducers 3 | */ 4 | import * as loginReducer from 'app/features/login/reducers'; 5 | export default Object.assign({}, loginReducer); 6 | -------------------------------------------------------------------------------- /app/store/sagas.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Redux saga class init 3 | * Import every feature saga here 4 | * 5 | */ 6 | import { all } from 'redux-saga/effects'; 7 | import { loginSagas } from 'app/features/login/sagas'; 8 | 9 | // export default [loginSaga]; 10 | 11 | export default function* rootSaga() { 12 | yield all([...loginSagas]); 13 | } 14 | -------------------------------------------------------------------------------- /app/utils/stringUtils.js: -------------------------------------------------------------------------------- 1 | export const getInitials = name => { 2 | let initials = Array.prototype.map 3 | .call(name.split(' '), function(x) { 4 | return x.substring(0, 1).toUpperCase(); 5 | }) 6 | .join(''); 7 | return initials.substring(0, 2); 8 | }; 9 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | env: { 4 | production: { 5 | plugins: ['react-native-paper/babel'], 6 | }, 7 | }, 8 | }; 9 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native-gesture-handler'; 6 | import { AppRegistry } from 'react-native'; 7 | import App from './app/Entrypoint'; 8 | import { name as appName } from './app.json'; 9 | import { enableScreens } from 'react-native-screens'; 10 | enableScreens(); 11 | 12 | AppRegistry.registerComponent(appName, () => App); 13 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | def add_flipper_pods!(versions = {}) 5 | versions['Flipper'] ||= '~> 0.33.1' 6 | versions['DoubleConversion'] ||= '1.1.7' 7 | versions['Flipper-Folly'] ||= '~> 2.1' 8 | versions['Flipper-Glog'] ||= '0.3.6' 9 | versions['Flipper-PeerTalk'] ||= '~> 0.0.4' 10 | versions['Flipper-RSocket'] ||= '~> 1.0' 11 | pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug' 12 | pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug' 13 | pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug' 14 | pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug' 15 | pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug' 16 | # List all transitive dependencies for FlipperKit pods 17 | # to avoid them being linked in Release builds 18 | pod 'Flipper', versions['Flipper'], :configuration => 'Debug' 19 | pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug' 20 | pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug' 21 | pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug' 22 | pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug' 23 | pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug' 24 | pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug' 25 | pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug' 26 | pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug' 27 | pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug' 28 | pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug' 29 | pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug' 30 | pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug' 31 | pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug' 32 | end 33 | 34 | # Post Install processing for Flipper 35 | def flipper_post_install(installer) 36 | installer.pods_project.targets.each do |target| 37 | if target.name == 'YogaKit' 38 | target.build_configurations.each do |config| 39 | config.build_settings['SWIFT_VERSION'] = '4.1' 40 | end 41 | end 42 | end 43 | end 44 | 45 | target 'RNBoilerPlate' do 46 | # Pods for RNBoilerPlate 47 | pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" 48 | pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" 49 | pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" 50 | pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" 51 | pod 'React', :path => '../node_modules/react-native/' 52 | pod 'React-Core', :path => '../node_modules/react-native/' 53 | pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' 54 | pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' 55 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' 56 | pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' 57 | pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' 58 | pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' 59 | pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' 60 | pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' 61 | pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' 62 | pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' 63 | pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' 64 | pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' 65 | 66 | pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' 67 | pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' 68 | pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' 69 | pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' 70 | pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon" 71 | pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" 72 | pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true 73 | 74 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' 75 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' 76 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' 77 | 78 | target 'RNBoilerPlateTests' do 79 | inherit! :complete 80 | # Pods for testing 81 | end 82 | 83 | use_native_modules! 84 | 85 | # Enables Flipper. 86 | # 87 | # Note that if you have use_frameworks! enabled, Flipper will not work and 88 | # you should disable these next few lines. 89 | add_flipper_pods! 90 | post_install do |installer| 91 | flipper_post_install(installer) 92 | end 93 | end 94 | 95 | target 'RNBoilerPlate-tvOS' do 96 | # Pods for RNBoilerPlate-tvOS 97 | 98 | target 'RNBoilerPlate-tvOSTests' do 99 | inherit! :search_paths 100 | # Pods for testing 101 | end 102 | end 103 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.4) 4 | - CocoaLibEvent (1.0.0) 5 | - DoubleConversion (1.1.6) 6 | - FBLazyVector (0.62.2) 7 | - FBReactNativeSpec (0.62.2): 8 | - Folly (= 2018.10.22.00) 9 | - RCTRequired (= 0.62.2) 10 | - RCTTypeSafety (= 0.62.2) 11 | - React-Core (= 0.62.2) 12 | - React-jsi (= 0.62.2) 13 | - ReactCommon/turbomodule/core (= 0.62.2) 14 | - Flipper (0.33.1): 15 | - Flipper-Folly (~> 2.1) 16 | - Flipper-RSocket (~> 1.0) 17 | - Flipper-DoubleConversion (1.1.7) 18 | - Flipper-Folly (2.1.1): 19 | - boost-for-react-native 20 | - CocoaLibEvent (~> 1.0) 21 | - Flipper-DoubleConversion 22 | - Flipper-Glog 23 | - OpenSSL-Universal (= 1.0.2.19) 24 | - Flipper-Glog (0.3.6) 25 | - Flipper-PeerTalk (0.0.4) 26 | - Flipper-RSocket (1.0.0): 27 | - Flipper-Folly (~> 2.0) 28 | - FlipperKit (0.33.1): 29 | - FlipperKit/Core (= 0.33.1) 30 | - FlipperKit/Core (0.33.1): 31 | - Flipper (~> 0.33.1) 32 | - FlipperKit/CppBridge 33 | - FlipperKit/FBCxxFollyDynamicConvert 34 | - FlipperKit/FBDefines 35 | - FlipperKit/FKPortForwarding 36 | - FlipperKit/CppBridge (0.33.1): 37 | - Flipper (~> 0.33.1) 38 | - FlipperKit/FBCxxFollyDynamicConvert (0.33.1): 39 | - Flipper-Folly (~> 2.1) 40 | - FlipperKit/FBDefines (0.33.1) 41 | - FlipperKit/FKPortForwarding (0.33.1): 42 | - CocoaAsyncSocket (~> 7.6) 43 | - Flipper-PeerTalk (~> 0.0.4) 44 | - FlipperKit/FlipperKitHighlightOverlay (0.33.1) 45 | - FlipperKit/FlipperKitLayoutPlugin (0.33.1): 46 | - FlipperKit/Core 47 | - FlipperKit/FlipperKitHighlightOverlay 48 | - FlipperKit/FlipperKitLayoutTextSearchable 49 | - YogaKit (~> 1.18) 50 | - FlipperKit/FlipperKitLayoutTextSearchable (0.33.1) 51 | - FlipperKit/FlipperKitNetworkPlugin (0.33.1): 52 | - FlipperKit/Core 53 | - FlipperKit/FlipperKitReactPlugin (0.33.1): 54 | - FlipperKit/Core 55 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.33.1): 56 | - FlipperKit/Core 57 | - FlipperKit/SKIOSNetworkPlugin (0.33.1): 58 | - FlipperKit/Core 59 | - FlipperKit/FlipperKitNetworkPlugin 60 | - Folly (2018.10.22.00): 61 | - boost-for-react-native 62 | - DoubleConversion 63 | - Folly/Default (= 2018.10.22.00) 64 | - glog 65 | - Folly/Default (2018.10.22.00): 66 | - boost-for-react-native 67 | - DoubleConversion 68 | - glog 69 | - glog (0.3.5) 70 | - OpenSSL-Universal (1.0.2.19): 71 | - OpenSSL-Universal/Static (= 1.0.2.19) 72 | - OpenSSL-Universal/Static (1.0.2.19) 73 | - RCTRequired (0.62.2) 74 | - RCTTypeSafety (0.62.2): 75 | - FBLazyVector (= 0.62.2) 76 | - Folly (= 2018.10.22.00) 77 | - RCTRequired (= 0.62.2) 78 | - React-Core (= 0.62.2) 79 | - React (0.62.2): 80 | - React-Core (= 0.62.2) 81 | - React-Core/DevSupport (= 0.62.2) 82 | - React-Core/RCTWebSocket (= 0.62.2) 83 | - React-RCTActionSheet (= 0.62.2) 84 | - React-RCTAnimation (= 0.62.2) 85 | - React-RCTBlob (= 0.62.2) 86 | - React-RCTImage (= 0.62.2) 87 | - React-RCTLinking (= 0.62.2) 88 | - React-RCTNetwork (= 0.62.2) 89 | - React-RCTSettings (= 0.62.2) 90 | - React-RCTText (= 0.62.2) 91 | - React-RCTVibration (= 0.62.2) 92 | - React-Core (0.62.2): 93 | - Folly (= 2018.10.22.00) 94 | - glog 95 | - React-Core/Default (= 0.62.2) 96 | - React-cxxreact (= 0.62.2) 97 | - React-jsi (= 0.62.2) 98 | - React-jsiexecutor (= 0.62.2) 99 | - Yoga 100 | - React-Core/CoreModulesHeaders (0.62.2): 101 | - Folly (= 2018.10.22.00) 102 | - glog 103 | - React-Core/Default 104 | - React-cxxreact (= 0.62.2) 105 | - React-jsi (= 0.62.2) 106 | - React-jsiexecutor (= 0.62.2) 107 | - Yoga 108 | - React-Core/Default (0.62.2): 109 | - Folly (= 2018.10.22.00) 110 | - glog 111 | - React-cxxreact (= 0.62.2) 112 | - React-jsi (= 0.62.2) 113 | - React-jsiexecutor (= 0.62.2) 114 | - Yoga 115 | - React-Core/DevSupport (0.62.2): 116 | - Folly (= 2018.10.22.00) 117 | - glog 118 | - React-Core/Default (= 0.62.2) 119 | - React-Core/RCTWebSocket (= 0.62.2) 120 | - React-cxxreact (= 0.62.2) 121 | - React-jsi (= 0.62.2) 122 | - React-jsiexecutor (= 0.62.2) 123 | - React-jsinspector (= 0.62.2) 124 | - Yoga 125 | - React-Core/RCTActionSheetHeaders (0.62.2): 126 | - Folly (= 2018.10.22.00) 127 | - glog 128 | - React-Core/Default 129 | - React-cxxreact (= 0.62.2) 130 | - React-jsi (= 0.62.2) 131 | - React-jsiexecutor (= 0.62.2) 132 | - Yoga 133 | - React-Core/RCTAnimationHeaders (0.62.2): 134 | - Folly (= 2018.10.22.00) 135 | - glog 136 | - React-Core/Default 137 | - React-cxxreact (= 0.62.2) 138 | - React-jsi (= 0.62.2) 139 | - React-jsiexecutor (= 0.62.2) 140 | - Yoga 141 | - React-Core/RCTBlobHeaders (0.62.2): 142 | - Folly (= 2018.10.22.00) 143 | - glog 144 | - React-Core/Default 145 | - React-cxxreact (= 0.62.2) 146 | - React-jsi (= 0.62.2) 147 | - React-jsiexecutor (= 0.62.2) 148 | - Yoga 149 | - React-Core/RCTImageHeaders (0.62.2): 150 | - Folly (= 2018.10.22.00) 151 | - glog 152 | - React-Core/Default 153 | - React-cxxreact (= 0.62.2) 154 | - React-jsi (= 0.62.2) 155 | - React-jsiexecutor (= 0.62.2) 156 | - Yoga 157 | - React-Core/RCTLinkingHeaders (0.62.2): 158 | - Folly (= 2018.10.22.00) 159 | - glog 160 | - React-Core/Default 161 | - React-cxxreact (= 0.62.2) 162 | - React-jsi (= 0.62.2) 163 | - React-jsiexecutor (= 0.62.2) 164 | - Yoga 165 | - React-Core/RCTNetworkHeaders (0.62.2): 166 | - Folly (= 2018.10.22.00) 167 | - glog 168 | - React-Core/Default 169 | - React-cxxreact (= 0.62.2) 170 | - React-jsi (= 0.62.2) 171 | - React-jsiexecutor (= 0.62.2) 172 | - Yoga 173 | - React-Core/RCTSettingsHeaders (0.62.2): 174 | - Folly (= 2018.10.22.00) 175 | - glog 176 | - React-Core/Default 177 | - React-cxxreact (= 0.62.2) 178 | - React-jsi (= 0.62.2) 179 | - React-jsiexecutor (= 0.62.2) 180 | - Yoga 181 | - React-Core/RCTTextHeaders (0.62.2): 182 | - Folly (= 2018.10.22.00) 183 | - glog 184 | - React-Core/Default 185 | - React-cxxreact (= 0.62.2) 186 | - React-jsi (= 0.62.2) 187 | - React-jsiexecutor (= 0.62.2) 188 | - Yoga 189 | - React-Core/RCTVibrationHeaders (0.62.2): 190 | - Folly (= 2018.10.22.00) 191 | - glog 192 | - React-Core/Default 193 | - React-cxxreact (= 0.62.2) 194 | - React-jsi (= 0.62.2) 195 | - React-jsiexecutor (= 0.62.2) 196 | - Yoga 197 | - React-Core/RCTWebSocket (0.62.2): 198 | - Folly (= 2018.10.22.00) 199 | - glog 200 | - React-Core/Default (= 0.62.2) 201 | - React-cxxreact (= 0.62.2) 202 | - React-jsi (= 0.62.2) 203 | - React-jsiexecutor (= 0.62.2) 204 | - Yoga 205 | - React-CoreModules (0.62.2): 206 | - FBReactNativeSpec (= 0.62.2) 207 | - Folly (= 2018.10.22.00) 208 | - RCTTypeSafety (= 0.62.2) 209 | - React-Core/CoreModulesHeaders (= 0.62.2) 210 | - React-RCTImage (= 0.62.2) 211 | - ReactCommon/turbomodule/core (= 0.62.2) 212 | - React-cxxreact (0.62.2): 213 | - boost-for-react-native (= 1.63.0) 214 | - DoubleConversion 215 | - Folly (= 2018.10.22.00) 216 | - glog 217 | - React-jsinspector (= 0.62.2) 218 | - React-jsi (0.62.2): 219 | - boost-for-react-native (= 1.63.0) 220 | - DoubleConversion 221 | - Folly (= 2018.10.22.00) 222 | - glog 223 | - React-jsi/Default (= 0.62.2) 224 | - React-jsi/Default (0.62.2): 225 | - boost-for-react-native (= 1.63.0) 226 | - DoubleConversion 227 | - Folly (= 2018.10.22.00) 228 | - glog 229 | - React-jsiexecutor (0.62.2): 230 | - DoubleConversion 231 | - Folly (= 2018.10.22.00) 232 | - glog 233 | - React-cxxreact (= 0.62.2) 234 | - React-jsi (= 0.62.2) 235 | - React-jsinspector (0.62.2) 236 | - react-native-safe-area-context (0.7.3): 237 | - React 238 | - React-RCTActionSheet (0.62.2): 239 | - React-Core/RCTActionSheetHeaders (= 0.62.2) 240 | - React-RCTAnimation (0.62.2): 241 | - FBReactNativeSpec (= 0.62.2) 242 | - Folly (= 2018.10.22.00) 243 | - RCTTypeSafety (= 0.62.2) 244 | - React-Core/RCTAnimationHeaders (= 0.62.2) 245 | - ReactCommon/turbomodule/core (= 0.62.2) 246 | - React-RCTBlob (0.62.2): 247 | - FBReactNativeSpec (= 0.62.2) 248 | - Folly (= 2018.10.22.00) 249 | - React-Core/RCTBlobHeaders (= 0.62.2) 250 | - React-Core/RCTWebSocket (= 0.62.2) 251 | - React-jsi (= 0.62.2) 252 | - React-RCTNetwork (= 0.62.2) 253 | - ReactCommon/turbomodule/core (= 0.62.2) 254 | - React-RCTImage (0.62.2): 255 | - FBReactNativeSpec (= 0.62.2) 256 | - Folly (= 2018.10.22.00) 257 | - RCTTypeSafety (= 0.62.2) 258 | - React-Core/RCTImageHeaders (= 0.62.2) 259 | - React-RCTNetwork (= 0.62.2) 260 | - ReactCommon/turbomodule/core (= 0.62.2) 261 | - React-RCTLinking (0.62.2): 262 | - FBReactNativeSpec (= 0.62.2) 263 | - React-Core/RCTLinkingHeaders (= 0.62.2) 264 | - ReactCommon/turbomodule/core (= 0.62.2) 265 | - React-RCTNetwork (0.62.2): 266 | - FBReactNativeSpec (= 0.62.2) 267 | - Folly (= 2018.10.22.00) 268 | - RCTTypeSafety (= 0.62.2) 269 | - React-Core/RCTNetworkHeaders (= 0.62.2) 270 | - ReactCommon/turbomodule/core (= 0.62.2) 271 | - React-RCTSettings (0.62.2): 272 | - FBReactNativeSpec (= 0.62.2) 273 | - Folly (= 2018.10.22.00) 274 | - RCTTypeSafety (= 0.62.2) 275 | - React-Core/RCTSettingsHeaders (= 0.62.2) 276 | - ReactCommon/turbomodule/core (= 0.62.2) 277 | - React-RCTText (0.62.2): 278 | - React-Core/RCTTextHeaders (= 0.62.2) 279 | - React-RCTVibration (0.62.2): 280 | - FBReactNativeSpec (= 0.62.2) 281 | - Folly (= 2018.10.22.00) 282 | - React-Core/RCTVibrationHeaders (= 0.62.2) 283 | - ReactCommon/turbomodule/core (= 0.62.2) 284 | - ReactCommon/callinvoker (0.62.2): 285 | - DoubleConversion 286 | - Folly (= 2018.10.22.00) 287 | - glog 288 | - React-cxxreact (= 0.62.2) 289 | - ReactCommon/turbomodule/core (0.62.2): 290 | - DoubleConversion 291 | - Folly (= 2018.10.22.00) 292 | - glog 293 | - React-Core (= 0.62.2) 294 | - React-cxxreact (= 0.62.2) 295 | - React-jsi (= 0.62.2) 296 | - ReactCommon/callinvoker (= 0.62.2) 297 | - RNCAsyncStorage (1.10.0): 298 | - React 299 | - RNCMaskedView (0.1.10): 300 | - React 301 | - RNGestureHandler (1.6.1): 302 | - React 303 | - RNReanimated (1.8.0): 304 | - React 305 | - RNScreens (2.7.0): 306 | - React 307 | - RNVectorIcons (6.6.0): 308 | - React 309 | - Yoga (1.14.0) 310 | - YogaKit (1.18.1): 311 | - Yoga (~> 1.14) 312 | 313 | DEPENDENCIES: 314 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 315 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 316 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 317 | - Flipper (~> 0.33.1) 318 | - Flipper-DoubleConversion (= 1.1.7) 319 | - Flipper-Folly (~> 2.1) 320 | - Flipper-Glog (= 0.3.6) 321 | - Flipper-PeerTalk (~> 0.0.4) 322 | - Flipper-RSocket (~> 1.0) 323 | - FlipperKit (~> 0.33.1) 324 | - FlipperKit/Core (~> 0.33.1) 325 | - FlipperKit/CppBridge (~> 0.33.1) 326 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.33.1) 327 | - FlipperKit/FBDefines (~> 0.33.1) 328 | - FlipperKit/FKPortForwarding (~> 0.33.1) 329 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.33.1) 330 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.33.1) 331 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.33.1) 332 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.33.1) 333 | - FlipperKit/FlipperKitReactPlugin (~> 0.33.1) 334 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.33.1) 335 | - FlipperKit/SKIOSNetworkPlugin (~> 0.33.1) 336 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 337 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 338 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 339 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 340 | - React (from `../node_modules/react-native/`) 341 | - React-Core (from `../node_modules/react-native/`) 342 | - React-Core/DevSupport (from `../node_modules/react-native/`) 343 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 344 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 345 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 346 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 347 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 348 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 349 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) 350 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 351 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 352 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 353 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 354 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 355 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 356 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 357 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 358 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 359 | - ReactCommon/callinvoker (from `../node_modules/react-native/ReactCommon`) 360 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 361 | - "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)" 362 | - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" 363 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 364 | - RNReanimated (from `../node_modules/react-native-reanimated`) 365 | - RNScreens (from `../node_modules/react-native-screens`) 366 | - RNVectorIcons (from `../node_modules/react-native-vector-icons`) 367 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 368 | 369 | SPEC REPOS: 370 | trunk: 371 | - boost-for-react-native 372 | - CocoaAsyncSocket 373 | - CocoaLibEvent 374 | - Flipper 375 | - Flipper-DoubleConversion 376 | - Flipper-Folly 377 | - Flipper-Glog 378 | - Flipper-PeerTalk 379 | - Flipper-RSocket 380 | - FlipperKit 381 | - OpenSSL-Universal 382 | - YogaKit 383 | 384 | EXTERNAL SOURCES: 385 | DoubleConversion: 386 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 387 | FBLazyVector: 388 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 389 | FBReactNativeSpec: 390 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 391 | Folly: 392 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 393 | glog: 394 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 395 | RCTRequired: 396 | :path: "../node_modules/react-native/Libraries/RCTRequired" 397 | RCTTypeSafety: 398 | :path: "../node_modules/react-native/Libraries/TypeSafety" 399 | React: 400 | :path: "../node_modules/react-native/" 401 | React-Core: 402 | :path: "../node_modules/react-native/" 403 | React-CoreModules: 404 | :path: "../node_modules/react-native/React/CoreModules" 405 | React-cxxreact: 406 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 407 | React-jsi: 408 | :path: "../node_modules/react-native/ReactCommon/jsi" 409 | React-jsiexecutor: 410 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 411 | React-jsinspector: 412 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 413 | react-native-safe-area-context: 414 | :path: "../node_modules/react-native-safe-area-context" 415 | React-RCTActionSheet: 416 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 417 | React-RCTAnimation: 418 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 419 | React-RCTBlob: 420 | :path: "../node_modules/react-native/Libraries/Blob" 421 | React-RCTImage: 422 | :path: "../node_modules/react-native/Libraries/Image" 423 | React-RCTLinking: 424 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 425 | React-RCTNetwork: 426 | :path: "../node_modules/react-native/Libraries/Network" 427 | React-RCTSettings: 428 | :path: "../node_modules/react-native/Libraries/Settings" 429 | React-RCTText: 430 | :path: "../node_modules/react-native/Libraries/Text" 431 | React-RCTVibration: 432 | :path: "../node_modules/react-native/Libraries/Vibration" 433 | ReactCommon: 434 | :path: "../node_modules/react-native/ReactCommon" 435 | RNCAsyncStorage: 436 | :path: "../node_modules/@react-native-community/async-storage" 437 | RNCMaskedView: 438 | :path: "../node_modules/@react-native-community/masked-view" 439 | RNGestureHandler: 440 | :path: "../node_modules/react-native-gesture-handler" 441 | RNReanimated: 442 | :path: "../node_modules/react-native-reanimated" 443 | RNScreens: 444 | :path: "../node_modules/react-native-screens" 445 | RNVectorIcons: 446 | :path: "../node_modules/react-native-vector-icons" 447 | Yoga: 448 | :path: "../node_modules/react-native/ReactCommon/yoga" 449 | 450 | SPEC CHECKSUMS: 451 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 452 | CocoaAsyncSocket: 694058e7c0ed05a9e217d1b3c7ded962f4180845 453 | CocoaLibEvent: 2fab71b8bd46dd33ddb959f7928ec5909f838e3f 454 | DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2 455 | FBLazyVector: 4aab18c93cd9546e4bfed752b4084585eca8b245 456 | FBReactNativeSpec: 5465d51ccfeecb7faa12f9ae0024f2044ce4044e 457 | Flipper: 6c1f484f9a88d30ab3e272800d53688439e50f69 458 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 459 | Flipper-Folly: 2de3d03e0acc7064d5e4ed9f730e2f217486f162 460 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 461 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 462 | Flipper-RSocket: 1260a31c05c238eabfa9bb8a64e3983049048371 463 | FlipperKit: 6dc9b8f4ef60d9e5ded7f0264db299c91f18832e 464 | Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 465 | glog: 1f3da668190260b06b429bb211bfbee5cd790c28 466 | OpenSSL-Universal: 8b48cc0d10c1b2923617dfe5c178aa9ed2689355 467 | RCTRequired: cec6a34b3ac8a9915c37e7e4ad3aa74726ce4035 468 | RCTTypeSafety: 93006131180074cffa227a1075802c89a49dd4ce 469 | React: 29a8b1a02bd764fb7644ef04019270849b9a7ac3 470 | React-Core: b12bffb3f567fdf99510acb716ef1abd426e0e05 471 | React-CoreModules: 4a9b87bbe669d6c3173c0132c3328e3b000783d0 472 | React-cxxreact: e65f9c2ba0ac5be946f53548c1aaaee5873a8103 473 | React-jsi: b6dc94a6a12ff98e8877287a0b7620d365201161 474 | React-jsiexecutor: 1540d1c01bb493ae3124ed83351b1b6a155db7da 475 | React-jsinspector: 512e560d0e985d0e8c479a54a4e5c147a9c83493 476 | react-native-safe-area-context: e200d4433aba6b7e60b52da5f37af11f7a0b0392 477 | React-RCTActionSheet: f41ea8a811aac770e0cc6e0ad6b270c644ea8b7c 478 | React-RCTAnimation: 49ab98b1c1ff4445148b72a3d61554138565bad0 479 | React-RCTBlob: a332773f0ebc413a0ce85942a55b064471587a71 480 | React-RCTImage: e70be9b9c74fe4e42d0005f42cace7981c994ac3 481 | React-RCTLinking: c1b9739a88d56ecbec23b7f63650e44672ab2ad2 482 | React-RCTNetwork: 73138b6f45e5a2768ad93f3d57873c2a18d14b44 483 | React-RCTSettings: 6e3738a87e21b39a8cb08d627e68c44acf1e325a 484 | React-RCTText: fae545b10cfdb3d247c36c56f61a94cfd6dba41d 485 | React-RCTVibration: 4356114dbcba4ce66991096e51a66e61eda51256 486 | ReactCommon: ed4e11d27609d571e7eee8b65548efc191116eb3 487 | RNCAsyncStorage: 6d99641f8e6f15d169d695d8ef184bf187903f11 488 | RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f 489 | RNGestureHandler: 8f09cd560f8d533eb36da5a6c5a843af9f056b38 490 | RNReanimated: 955cf4068714003d2f1a6e2bae3fb1118f359aff 491 | RNScreens: cf198f915f8a2bf163de94ca9f5bfc8d326c3706 492 | RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4 493 | Yoga: 3ebccbdd559724312790e7742142d062476b698e 494 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 495 | 496 | PODFILE CHECKSUM: 6d85fee1c7da7d4dd0d68662ef51f96d047760f7 497 | 498 | COCOAPODS: 1.9.1 499 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate-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/RNBoilerPlate.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* RNBoilerPlateTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RNBoilerPlateTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 15 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 16 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 17 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 18 | 2DCD954D1E0B4F2C00145EB5 /* RNBoilerPlateTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RNBoilerPlateTests.m */; }; 19 | 47B4C851912E66EB331C5F7C /* libPods-RNBoilerPlate-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 09BFA838A706EDDB59327EB9 /* libPods-RNBoilerPlate-tvOS.a */; }; 20 | 94ACC7FAA4CEA10DC64688F6 /* libPods-RNBoilerPlate-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAB58FEE5E8E76E6FEB899D8 /* libPods-RNBoilerPlate-tvOSTests.a */; }; 21 | 9E74F30763175AD16F224CFD /* libPods-RNBoilerPlate-RNBoilerPlateTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9C5F06AF7A79A8F26FE3D064 /* libPods-RNBoilerPlate-RNBoilerPlateTests.a */; }; 22 | FBFD5835DB98727CA2409D9D /* libPods-RNBoilerPlate.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50EF31FBB0FE7C8F9702E316 /* libPods-RNBoilerPlate.a */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 31 | remoteInfo = RNBoilerPlate; 32 | }; 33 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 38 | remoteInfo = "RNBoilerPlate-tvOS"; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 44 | 00E356EE1AD99517003FC87E /* RNBoilerPlateTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNBoilerPlateTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 00E356F21AD99517003FC87E /* RNBoilerPlateTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNBoilerPlateTests.m; sourceTree = ""; }; 47 | 09BFA838A706EDDB59327EB9 /* libPods-RNBoilerPlate-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNBoilerPlate-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 0A105B94D4163984097927EF /* Pods-RNBoilerPlate-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate-tvOSTests/Pods-RNBoilerPlate-tvOSTests.release.xcconfig"; sourceTree = ""; }; 49 | 0E83440654447D5C0AA89C12 /* Pods-RNBoilerPlate-RNBoilerPlateTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate-RNBoilerPlateTests.debug.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate-RNBoilerPlateTests/Pods-RNBoilerPlate-RNBoilerPlateTests.debug.xcconfig"; sourceTree = ""; }; 50 | 13B07F961A680F5B00A75B9A /* RNBoilerPlate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNBoilerPlate.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNBoilerPlate/AppDelegate.h; sourceTree = ""; }; 52 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNBoilerPlate/AppDelegate.m; sourceTree = ""; }; 53 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 54 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNBoilerPlate/Images.xcassets; sourceTree = ""; }; 55 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNBoilerPlate/Info.plist; sourceTree = ""; }; 56 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNBoilerPlate/main.m; sourceTree = ""; }; 57 | 25E0F2E768279CAFFE3DBF49 /* Pods-RNBoilerPlate-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate-tvOS.release.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate-tvOS/Pods-RNBoilerPlate-tvOS.release.xcconfig"; sourceTree = ""; }; 58 | 2D02E47B1E0B4A5D006451C7 /* RNBoilerPlate-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RNBoilerPlate-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 2D02E4901E0B4A5D006451C7 /* RNBoilerPlate-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "RNBoilerPlate-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 3197F1497A53C7DB7632F4A5 /* Pods-RNBoilerPlate.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate.debug.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate/Pods-RNBoilerPlate.debug.xcconfig"; sourceTree = ""; }; 61 | 45F76A21DFE68E7620F098B7 /* Pods-RNBoilerPlate.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate.release.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate/Pods-RNBoilerPlate.release.xcconfig"; sourceTree = ""; }; 62 | 50EF31FBB0FE7C8F9702E316 /* libPods-RNBoilerPlate.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNBoilerPlate.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | 9397C839DB57AEB7CBB34722 /* Pods-RNBoilerPlate-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate-tvOSTests/Pods-RNBoilerPlate-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 64 | 985C6B8191A8F2511B03DA4B /* Pods-RNBoilerPlate-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate-tvOS/Pods-RNBoilerPlate-tvOS.debug.xcconfig"; sourceTree = ""; }; 65 | 9C5F06AF7A79A8F26FE3D064 /* libPods-RNBoilerPlate-RNBoilerPlateTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNBoilerPlate-RNBoilerPlateTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 67 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 68 | FAAB37E9A2595365D928AAEF /* Pods-RNBoilerPlate-RNBoilerPlateTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNBoilerPlate-RNBoilerPlateTests.release.xcconfig"; path = "Target Support Files/Pods-RNBoilerPlate-RNBoilerPlateTests/Pods-RNBoilerPlate-RNBoilerPlateTests.release.xcconfig"; sourceTree = ""; }; 69 | FAB58FEE5E8E76E6FEB899D8 /* libPods-RNBoilerPlate-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNBoilerPlate-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | 9E74F30763175AD16F224CFD /* libPods-RNBoilerPlate-RNBoilerPlateTests.a in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | FBFD5835DB98727CA2409D9D /* libPods-RNBoilerPlate.a in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 47B4C851912E66EB331C5F7C /* libPods-RNBoilerPlate-tvOS.a in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 94ACC7FAA4CEA10DC64688F6 /* libPods-RNBoilerPlate-tvOSTests.a in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 00E356EF1AD99517003FC87E /* RNBoilerPlateTests */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 00E356F21AD99517003FC87E /* RNBoilerPlateTests.m */, 112 | 00E356F01AD99517003FC87E /* Supporting Files */, 113 | ); 114 | path = RNBoilerPlateTests; 115 | sourceTree = ""; 116 | }; 117 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 00E356F11AD99517003FC87E /* Info.plist */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | 13B07FAE1A68108700A75B9A /* RNBoilerPlate */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 129 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 130 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 131 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 132 | 13B07FB61A68108700A75B9A /* Info.plist */, 133 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 134 | 13B07FB71A68108700A75B9A /* main.m */, 135 | ); 136 | name = RNBoilerPlate; 137 | sourceTree = ""; 138 | }; 139 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 143 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 144 | 50EF31FBB0FE7C8F9702E316 /* libPods-RNBoilerPlate.a */, 145 | 9C5F06AF7A79A8F26FE3D064 /* libPods-RNBoilerPlate-RNBoilerPlateTests.a */, 146 | 09BFA838A706EDDB59327EB9 /* libPods-RNBoilerPlate-tvOS.a */, 147 | FAB58FEE5E8E76E6FEB899D8 /* libPods-RNBoilerPlate-tvOSTests.a */, 148 | ); 149 | name = Frameworks; 150 | sourceTree = ""; 151 | }; 152 | 63DDA987CAAE35C17BDD3235 /* Pods */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 3197F1497A53C7DB7632F4A5 /* Pods-RNBoilerPlate.debug.xcconfig */, 156 | 45F76A21DFE68E7620F098B7 /* Pods-RNBoilerPlate.release.xcconfig */, 157 | 0E83440654447D5C0AA89C12 /* Pods-RNBoilerPlate-RNBoilerPlateTests.debug.xcconfig */, 158 | FAAB37E9A2595365D928AAEF /* Pods-RNBoilerPlate-RNBoilerPlateTests.release.xcconfig */, 159 | 985C6B8191A8F2511B03DA4B /* Pods-RNBoilerPlate-tvOS.debug.xcconfig */, 160 | 25E0F2E768279CAFFE3DBF49 /* Pods-RNBoilerPlate-tvOS.release.xcconfig */, 161 | 9397C839DB57AEB7CBB34722 /* Pods-RNBoilerPlate-tvOSTests.debug.xcconfig */, 162 | 0A105B94D4163984097927EF /* Pods-RNBoilerPlate-tvOSTests.release.xcconfig */, 163 | ); 164 | path = Pods; 165 | sourceTree = ""; 166 | }; 167 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | ); 171 | name = Libraries; 172 | sourceTree = ""; 173 | }; 174 | 83CBB9F61A601CBA00E9B192 = { 175 | isa = PBXGroup; 176 | children = ( 177 | 13B07FAE1A68108700A75B9A /* RNBoilerPlate */, 178 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 179 | 00E356EF1AD99517003FC87E /* RNBoilerPlateTests */, 180 | 83CBBA001A601CBA00E9B192 /* Products */, 181 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 182 | 63DDA987CAAE35C17BDD3235 /* Pods */, 183 | ); 184 | indentWidth = 2; 185 | sourceTree = ""; 186 | tabWidth = 2; 187 | usesTabs = 0; 188 | }; 189 | 83CBBA001A601CBA00E9B192 /* Products */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 13B07F961A680F5B00A75B9A /* RNBoilerPlate.app */, 193 | 00E356EE1AD99517003FC87E /* RNBoilerPlateTests.xctest */, 194 | 2D02E47B1E0B4A5D006451C7 /* RNBoilerPlate-tvOS.app */, 195 | 2D02E4901E0B4A5D006451C7 /* RNBoilerPlate-tvOSTests.xctest */, 196 | ); 197 | name = Products; 198 | sourceTree = ""; 199 | }; 200 | /* End PBXGroup section */ 201 | 202 | /* Begin PBXNativeTarget section */ 203 | 00E356ED1AD99517003FC87E /* RNBoilerPlateTests */ = { 204 | isa = PBXNativeTarget; 205 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNBoilerPlateTests" */; 206 | buildPhases = ( 207 | B17B155EAAA2DFBF00F78F37 /* [CP] Check Pods Manifest.lock */, 208 | 00E356EA1AD99517003FC87E /* Sources */, 209 | 00E356EB1AD99517003FC87E /* Frameworks */, 210 | 00E356EC1AD99517003FC87E /* Resources */, 211 | F71F51FA362D68277302E26F /* [CP] Copy Pods Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 217 | ); 218 | name = RNBoilerPlateTests; 219 | productName = RNBoilerPlateTests; 220 | productReference = 00E356EE1AD99517003FC87E /* RNBoilerPlateTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | 13B07F861A680F5B00A75B9A /* RNBoilerPlate */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNBoilerPlate" */; 226 | buildPhases = ( 227 | 5415A4DF4065AD1EC9446A18 /* [CP] Check Pods Manifest.lock */, 228 | FD10A7F022414F080027D42C /* Start Packager */, 229 | 13B07F871A680F5B00A75B9A /* Sources */, 230 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 231 | 13B07F8E1A680F5B00A75B9A /* Resources */, 232 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 233 | 817F8AF459F4058D1A9F6E91 /* [CP] Copy Pods Resources */, 234 | ); 235 | buildRules = ( 236 | ); 237 | dependencies = ( 238 | ); 239 | name = RNBoilerPlate; 240 | productName = RNBoilerPlate; 241 | productReference = 13B07F961A680F5B00A75B9A /* RNBoilerPlate.app */; 242 | productType = "com.apple.product-type.application"; 243 | }; 244 | 2D02E47A1E0B4A5D006451C7 /* RNBoilerPlate-tvOS */ = { 245 | isa = PBXNativeTarget; 246 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNBoilerPlate-tvOS" */; 247 | buildPhases = ( 248 | 28B54EC276BD8293DBB46EC0 /* [CP] Check Pods Manifest.lock */, 249 | FD10A7F122414F3F0027D42C /* Start Packager */, 250 | 2D02E4771E0B4A5D006451C7 /* Sources */, 251 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 252 | 2D02E4791E0B4A5D006451C7 /* Resources */, 253 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 254 | ); 255 | buildRules = ( 256 | ); 257 | dependencies = ( 258 | ); 259 | name = "RNBoilerPlate-tvOS"; 260 | productName = "RNBoilerPlate-tvOS"; 261 | productReference = 2D02E47B1E0B4A5D006451C7 /* RNBoilerPlate-tvOS.app */; 262 | productType = "com.apple.product-type.application"; 263 | }; 264 | 2D02E48F1E0B4A5D006451C7 /* RNBoilerPlate-tvOSTests */ = { 265 | isa = PBXNativeTarget; 266 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNBoilerPlate-tvOSTests" */; 267 | buildPhases = ( 268 | A831E67EDE58E7D1140F390F /* [CP] Check Pods Manifest.lock */, 269 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 270 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 271 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 272 | ); 273 | buildRules = ( 274 | ); 275 | dependencies = ( 276 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 277 | ); 278 | name = "RNBoilerPlate-tvOSTests"; 279 | productName = "RNBoilerPlate-tvOSTests"; 280 | productReference = 2D02E4901E0B4A5D006451C7 /* RNBoilerPlate-tvOSTests.xctest */; 281 | productType = "com.apple.product-type.bundle.unit-test"; 282 | }; 283 | /* End PBXNativeTarget section */ 284 | 285 | /* Begin PBXProject section */ 286 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 287 | isa = PBXProject; 288 | attributes = { 289 | LastUpgradeCheck = 1130; 290 | TargetAttributes = { 291 | 00E356ED1AD99517003FC87E = { 292 | CreatedOnToolsVersion = 6.2; 293 | TestTargetID = 13B07F861A680F5B00A75B9A; 294 | }; 295 | 13B07F861A680F5B00A75B9A = { 296 | LastSwiftMigration = 1120; 297 | }; 298 | 2D02E47A1E0B4A5D006451C7 = { 299 | CreatedOnToolsVersion = 8.2.1; 300 | ProvisioningStyle = Automatic; 301 | }; 302 | 2D02E48F1E0B4A5D006451C7 = { 303 | CreatedOnToolsVersion = 8.2.1; 304 | ProvisioningStyle = Automatic; 305 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 306 | }; 307 | }; 308 | }; 309 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNBoilerPlate" */; 310 | compatibilityVersion = "Xcode 3.2"; 311 | developmentRegion = en; 312 | hasScannedForEncodings = 0; 313 | knownRegions = ( 314 | en, 315 | Base, 316 | ); 317 | mainGroup = 83CBB9F61A601CBA00E9B192; 318 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 319 | projectDirPath = ""; 320 | projectRoot = ""; 321 | targets = ( 322 | 13B07F861A680F5B00A75B9A /* RNBoilerPlate */, 323 | 00E356ED1AD99517003FC87E /* RNBoilerPlateTests */, 324 | 2D02E47A1E0B4A5D006451C7 /* RNBoilerPlate-tvOS */, 325 | 2D02E48F1E0B4A5D006451C7 /* RNBoilerPlate-tvOSTests */, 326 | ); 327 | }; 328 | /* End PBXProject section */ 329 | 330 | /* Begin PBXResourcesBuildPhase section */ 331 | 00E356EC1AD99517003FC87E /* Resources */ = { 332 | isa = PBXResourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | }; 338 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 339 | isa = PBXResourcesBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 343 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 348 | isa = PBXResourcesBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | /* End PBXResourcesBuildPhase section */ 363 | 364 | /* Begin PBXShellScriptBuildPhase section */ 365 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 366 | isa = PBXShellScriptBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | ); 370 | inputPaths = ( 371 | ); 372 | name = "Bundle React Native code and images"; 373 | outputPaths = ( 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | shellPath = /bin/sh; 377 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 378 | }; 379 | 28B54EC276BD8293DBB46EC0 /* [CP] Check Pods Manifest.lock */ = { 380 | isa = PBXShellScriptBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | inputFileListPaths = ( 385 | ); 386 | inputPaths = ( 387 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 388 | "${PODS_ROOT}/Manifest.lock", 389 | ); 390 | name = "[CP] Check Pods Manifest.lock"; 391 | outputFileListPaths = ( 392 | ); 393 | outputPaths = ( 394 | "$(DERIVED_FILE_DIR)/Pods-RNBoilerPlate-tvOS-checkManifestLockResult.txt", 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | shellPath = /bin/sh; 398 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 399 | showEnvVarsInLog = 0; 400 | }; 401 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 402 | isa = PBXShellScriptBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | ); 406 | inputPaths = ( 407 | ); 408 | name = "Bundle React Native Code And Images"; 409 | outputPaths = ( 410 | ); 411 | runOnlyForDeploymentPostprocessing = 0; 412 | shellPath = /bin/sh; 413 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 414 | }; 415 | 5415A4DF4065AD1EC9446A18 /* [CP] Check Pods Manifest.lock */ = { 416 | isa = PBXShellScriptBuildPhase; 417 | buildActionMask = 2147483647; 418 | files = ( 419 | ); 420 | inputFileListPaths = ( 421 | ); 422 | inputPaths = ( 423 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 424 | "${PODS_ROOT}/Manifest.lock", 425 | ); 426 | name = "[CP] Check Pods Manifest.lock"; 427 | outputFileListPaths = ( 428 | ); 429 | outputPaths = ( 430 | "$(DERIVED_FILE_DIR)/Pods-RNBoilerPlate-checkManifestLockResult.txt", 431 | ); 432 | runOnlyForDeploymentPostprocessing = 0; 433 | shellPath = /bin/sh; 434 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 435 | showEnvVarsInLog = 0; 436 | }; 437 | 817F8AF459F4058D1A9F6E91 /* [CP] Copy Pods Resources */ = { 438 | isa = PBXShellScriptBuildPhase; 439 | buildActionMask = 2147483647; 440 | files = ( 441 | ); 442 | inputPaths = ( 443 | "${PODS_ROOT}/Target Support Files/Pods-RNBoilerPlate/Pods-RNBoilerPlate-resources.sh", 444 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf", 445 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf", 446 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf", 447 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf", 448 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf", 449 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf", 450 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf", 451 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf", 452 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf", 453 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf", 454 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf", 455 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf", 456 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf", 457 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf", 458 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf", 459 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf", 460 | ); 461 | name = "[CP] Copy Pods Resources"; 462 | outputPaths = ( 463 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf", 464 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf", 465 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf", 466 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Feather.ttf", 467 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome.ttf", 468 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Brands.ttf", 469 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Regular.ttf", 470 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Solid.ttf", 471 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Fontisto.ttf", 472 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Foundation.ttf", 473 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Ionicons.ttf", 474 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialCommunityIcons.ttf", 475 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialIcons.ttf", 476 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Octicons.ttf", 477 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf", 478 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf", 479 | ); 480 | runOnlyForDeploymentPostprocessing = 0; 481 | shellPath = /bin/sh; 482 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNBoilerPlate/Pods-RNBoilerPlate-resources.sh\"\n"; 483 | showEnvVarsInLog = 0; 484 | }; 485 | A831E67EDE58E7D1140F390F /* [CP] Check Pods Manifest.lock */ = { 486 | isa = PBXShellScriptBuildPhase; 487 | buildActionMask = 2147483647; 488 | files = ( 489 | ); 490 | inputFileListPaths = ( 491 | ); 492 | inputPaths = ( 493 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 494 | "${PODS_ROOT}/Manifest.lock", 495 | ); 496 | name = "[CP] Check Pods Manifest.lock"; 497 | outputFileListPaths = ( 498 | ); 499 | outputPaths = ( 500 | "$(DERIVED_FILE_DIR)/Pods-RNBoilerPlate-tvOSTests-checkManifestLockResult.txt", 501 | ); 502 | runOnlyForDeploymentPostprocessing = 0; 503 | shellPath = /bin/sh; 504 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 505 | showEnvVarsInLog = 0; 506 | }; 507 | B17B155EAAA2DFBF00F78F37 /* [CP] Check Pods Manifest.lock */ = { 508 | isa = PBXShellScriptBuildPhase; 509 | buildActionMask = 2147483647; 510 | files = ( 511 | ); 512 | inputFileListPaths = ( 513 | ); 514 | inputPaths = ( 515 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 516 | "${PODS_ROOT}/Manifest.lock", 517 | ); 518 | name = "[CP] Check Pods Manifest.lock"; 519 | outputFileListPaths = ( 520 | ); 521 | outputPaths = ( 522 | "$(DERIVED_FILE_DIR)/Pods-RNBoilerPlate-RNBoilerPlateTests-checkManifestLockResult.txt", 523 | ); 524 | runOnlyForDeploymentPostprocessing = 0; 525 | shellPath = /bin/sh; 526 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 527 | showEnvVarsInLog = 0; 528 | }; 529 | F71F51FA362D68277302E26F /* [CP] Copy Pods Resources */ = { 530 | isa = PBXShellScriptBuildPhase; 531 | buildActionMask = 2147483647; 532 | files = ( 533 | ); 534 | inputPaths = ( 535 | "${PODS_ROOT}/Target Support Files/Pods-RNBoilerPlate-RNBoilerPlateTests/Pods-RNBoilerPlate-RNBoilerPlateTests-resources.sh", 536 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf", 537 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf", 538 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf", 539 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf", 540 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf", 541 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf", 542 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf", 543 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf", 544 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf", 545 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf", 546 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf", 547 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf", 548 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf", 549 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf", 550 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf", 551 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf", 552 | ); 553 | name = "[CP] Copy Pods Resources"; 554 | outputPaths = ( 555 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf", 556 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf", 557 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf", 558 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Feather.ttf", 559 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome.ttf", 560 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Brands.ttf", 561 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Regular.ttf", 562 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Solid.ttf", 563 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Fontisto.ttf", 564 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Foundation.ttf", 565 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Ionicons.ttf", 566 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialCommunityIcons.ttf", 567 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialIcons.ttf", 568 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Octicons.ttf", 569 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf", 570 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf", 571 | ); 572 | runOnlyForDeploymentPostprocessing = 0; 573 | shellPath = /bin/sh; 574 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNBoilerPlate-RNBoilerPlateTests/Pods-RNBoilerPlate-RNBoilerPlateTests-resources.sh\"\n"; 575 | showEnvVarsInLog = 0; 576 | }; 577 | FD10A7F022414F080027D42C /* Start Packager */ = { 578 | isa = PBXShellScriptBuildPhase; 579 | buildActionMask = 2147483647; 580 | files = ( 581 | ); 582 | inputFileListPaths = ( 583 | ); 584 | inputPaths = ( 585 | ); 586 | name = "Start Packager"; 587 | outputFileListPaths = ( 588 | ); 589 | outputPaths = ( 590 | ); 591 | runOnlyForDeploymentPostprocessing = 0; 592 | shellPath = /bin/sh; 593 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 594 | showEnvVarsInLog = 0; 595 | }; 596 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 597 | isa = PBXShellScriptBuildPhase; 598 | buildActionMask = 2147483647; 599 | files = ( 600 | ); 601 | inputFileListPaths = ( 602 | ); 603 | inputPaths = ( 604 | ); 605 | name = "Start Packager"; 606 | outputFileListPaths = ( 607 | ); 608 | outputPaths = ( 609 | ); 610 | runOnlyForDeploymentPostprocessing = 0; 611 | shellPath = /bin/sh; 612 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 613 | showEnvVarsInLog = 0; 614 | }; 615 | /* End PBXShellScriptBuildPhase section */ 616 | 617 | /* Begin PBXSourcesBuildPhase section */ 618 | 00E356EA1AD99517003FC87E /* Sources */ = { 619 | isa = PBXSourcesBuildPhase; 620 | buildActionMask = 2147483647; 621 | files = ( 622 | 00E356F31AD99517003FC87E /* RNBoilerPlateTests.m in Sources */, 623 | ); 624 | runOnlyForDeploymentPostprocessing = 0; 625 | }; 626 | 13B07F871A680F5B00A75B9A /* Sources */ = { 627 | isa = PBXSourcesBuildPhase; 628 | buildActionMask = 2147483647; 629 | files = ( 630 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 631 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 632 | ); 633 | runOnlyForDeploymentPostprocessing = 0; 634 | }; 635 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 636 | isa = PBXSourcesBuildPhase; 637 | buildActionMask = 2147483647; 638 | files = ( 639 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 640 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 641 | ); 642 | runOnlyForDeploymentPostprocessing = 0; 643 | }; 644 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 645 | isa = PBXSourcesBuildPhase; 646 | buildActionMask = 2147483647; 647 | files = ( 648 | 2DCD954D1E0B4F2C00145EB5 /* RNBoilerPlateTests.m in Sources */, 649 | ); 650 | runOnlyForDeploymentPostprocessing = 0; 651 | }; 652 | /* End PBXSourcesBuildPhase section */ 653 | 654 | /* Begin PBXTargetDependency section */ 655 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 656 | isa = PBXTargetDependency; 657 | target = 13B07F861A680F5B00A75B9A /* RNBoilerPlate */; 658 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 659 | }; 660 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 661 | isa = PBXTargetDependency; 662 | target = 2D02E47A1E0B4A5D006451C7 /* RNBoilerPlate-tvOS */; 663 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 664 | }; 665 | /* End PBXTargetDependency section */ 666 | 667 | /* Begin PBXVariantGroup section */ 668 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 669 | isa = PBXVariantGroup; 670 | children = ( 671 | 13B07FB21A68108700A75B9A /* Base */, 672 | ); 673 | name = LaunchScreen.xib; 674 | path = RNBoilerPlate; 675 | sourceTree = ""; 676 | }; 677 | /* End PBXVariantGroup section */ 678 | 679 | /* Begin XCBuildConfiguration section */ 680 | 00E356F61AD99517003FC87E /* Debug */ = { 681 | isa = XCBuildConfiguration; 682 | baseConfigurationReference = 0E83440654447D5C0AA89C12 /* Pods-RNBoilerPlate-RNBoilerPlateTests.debug.xcconfig */; 683 | buildSettings = { 684 | BUNDLE_LOADER = "$(TEST_HOST)"; 685 | GCC_PREPROCESSOR_DEFINITIONS = ( 686 | "DEBUG=1", 687 | "$(inherited)", 688 | ); 689 | INFOPLIST_FILE = RNBoilerPlateTests/Info.plist; 690 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 691 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 692 | OTHER_LDFLAGS = ( 693 | "-ObjC", 694 | "-lc++", 695 | "$(inherited)", 696 | ); 697 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 698 | PRODUCT_NAME = "$(TARGET_NAME)"; 699 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNBoilerPlate.app/RNBoilerPlate"; 700 | }; 701 | name = Debug; 702 | }; 703 | 00E356F71AD99517003FC87E /* Release */ = { 704 | isa = XCBuildConfiguration; 705 | baseConfigurationReference = FAAB37E9A2595365D928AAEF /* Pods-RNBoilerPlate-RNBoilerPlateTests.release.xcconfig */; 706 | buildSettings = { 707 | BUNDLE_LOADER = "$(TEST_HOST)"; 708 | COPY_PHASE_STRIP = NO; 709 | INFOPLIST_FILE = RNBoilerPlateTests/Info.plist; 710 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 711 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 712 | OTHER_LDFLAGS = ( 713 | "-ObjC", 714 | "-lc++", 715 | "$(inherited)", 716 | ); 717 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 718 | PRODUCT_NAME = "$(TARGET_NAME)"; 719 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNBoilerPlate.app/RNBoilerPlate"; 720 | }; 721 | name = Release; 722 | }; 723 | 13B07F941A680F5B00A75B9A /* Debug */ = { 724 | isa = XCBuildConfiguration; 725 | baseConfigurationReference = 3197F1497A53C7DB7632F4A5 /* Pods-RNBoilerPlate.debug.xcconfig */; 726 | buildSettings = { 727 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 728 | CLANG_ENABLE_MODULES = YES; 729 | CURRENT_PROJECT_VERSION = 1; 730 | ENABLE_BITCODE = NO; 731 | GCC_PREPROCESSOR_DEFINITIONS = ( 732 | "$(inherited)", 733 | "FB_SONARKIT_ENABLED=1", 734 | ); 735 | INFOPLIST_FILE = RNBoilerPlate/Info.plist; 736 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 737 | OTHER_LDFLAGS = ( 738 | "$(inherited)", 739 | "-ObjC", 740 | "-lc++", 741 | ); 742 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 743 | PRODUCT_NAME = RNBoilerPlate; 744 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 745 | SWIFT_VERSION = 5.0; 746 | VERSIONING_SYSTEM = "apple-generic"; 747 | }; 748 | name = Debug; 749 | }; 750 | 13B07F951A680F5B00A75B9A /* Release */ = { 751 | isa = XCBuildConfiguration; 752 | baseConfigurationReference = 45F76A21DFE68E7620F098B7 /* Pods-RNBoilerPlate.release.xcconfig */; 753 | buildSettings = { 754 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 755 | CLANG_ENABLE_MODULES = YES; 756 | CURRENT_PROJECT_VERSION = 1; 757 | INFOPLIST_FILE = RNBoilerPlate/Info.plist; 758 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 759 | OTHER_LDFLAGS = ( 760 | "$(inherited)", 761 | "-ObjC", 762 | "-lc++", 763 | ); 764 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 765 | PRODUCT_NAME = RNBoilerPlate; 766 | SWIFT_VERSION = 5.0; 767 | VERSIONING_SYSTEM = "apple-generic"; 768 | }; 769 | name = Release; 770 | }; 771 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 772 | isa = XCBuildConfiguration; 773 | baseConfigurationReference = 985C6B8191A8F2511B03DA4B /* Pods-RNBoilerPlate-tvOS.debug.xcconfig */; 774 | buildSettings = { 775 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 776 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 777 | CLANG_ANALYZER_NONNULL = YES; 778 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 779 | CLANG_WARN_INFINITE_RECURSION = YES; 780 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 781 | DEBUG_INFORMATION_FORMAT = dwarf; 782 | ENABLE_TESTABILITY = YES; 783 | GCC_NO_COMMON_BLOCKS = YES; 784 | INFOPLIST_FILE = "RNBoilerPlate-tvOS/Info.plist"; 785 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 786 | OTHER_LDFLAGS = ( 787 | "$(inherited)", 788 | "-ObjC", 789 | "-lc++", 790 | ); 791 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.RNBoilerPlate-tvOS"; 792 | PRODUCT_NAME = "$(TARGET_NAME)"; 793 | SDKROOT = appletvos; 794 | TARGETED_DEVICE_FAMILY = 3; 795 | TVOS_DEPLOYMENT_TARGET = 9.2; 796 | }; 797 | name = Debug; 798 | }; 799 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 800 | isa = XCBuildConfiguration; 801 | baseConfigurationReference = 25E0F2E768279CAFFE3DBF49 /* Pods-RNBoilerPlate-tvOS.release.xcconfig */; 802 | buildSettings = { 803 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 804 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 805 | CLANG_ANALYZER_NONNULL = YES; 806 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 807 | CLANG_WARN_INFINITE_RECURSION = YES; 808 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 809 | COPY_PHASE_STRIP = NO; 810 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 811 | GCC_NO_COMMON_BLOCKS = YES; 812 | INFOPLIST_FILE = "RNBoilerPlate-tvOS/Info.plist"; 813 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 814 | OTHER_LDFLAGS = ( 815 | "$(inherited)", 816 | "-ObjC", 817 | "-lc++", 818 | ); 819 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.RNBoilerPlate-tvOS"; 820 | PRODUCT_NAME = "$(TARGET_NAME)"; 821 | SDKROOT = appletvos; 822 | TARGETED_DEVICE_FAMILY = 3; 823 | TVOS_DEPLOYMENT_TARGET = 9.2; 824 | }; 825 | name = Release; 826 | }; 827 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 828 | isa = XCBuildConfiguration; 829 | baseConfigurationReference = 9397C839DB57AEB7CBB34722 /* Pods-RNBoilerPlate-tvOSTests.debug.xcconfig */; 830 | buildSettings = { 831 | BUNDLE_LOADER = "$(TEST_HOST)"; 832 | CLANG_ANALYZER_NONNULL = YES; 833 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 834 | CLANG_WARN_INFINITE_RECURSION = YES; 835 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 836 | DEBUG_INFORMATION_FORMAT = dwarf; 837 | ENABLE_TESTABILITY = YES; 838 | GCC_NO_COMMON_BLOCKS = YES; 839 | INFOPLIST_FILE = "RNBoilerPlate-tvOSTests/Info.plist"; 840 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 841 | OTHER_LDFLAGS = ( 842 | "$(inherited)", 843 | "-ObjC", 844 | "-lc++", 845 | ); 846 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.RNBoilerPlate-tvOSTests"; 847 | PRODUCT_NAME = "$(TARGET_NAME)"; 848 | SDKROOT = appletvos; 849 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNBoilerPlate-tvOS.app/RNBoilerPlate-tvOS"; 850 | TVOS_DEPLOYMENT_TARGET = 10.1; 851 | }; 852 | name = Debug; 853 | }; 854 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 855 | isa = XCBuildConfiguration; 856 | baseConfigurationReference = 0A105B94D4163984097927EF /* Pods-RNBoilerPlate-tvOSTests.release.xcconfig */; 857 | buildSettings = { 858 | BUNDLE_LOADER = "$(TEST_HOST)"; 859 | CLANG_ANALYZER_NONNULL = YES; 860 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 861 | CLANG_WARN_INFINITE_RECURSION = YES; 862 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 863 | COPY_PHASE_STRIP = NO; 864 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 865 | GCC_NO_COMMON_BLOCKS = YES; 866 | INFOPLIST_FILE = "RNBoilerPlate-tvOSTests/Info.plist"; 867 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 868 | OTHER_LDFLAGS = ( 869 | "$(inherited)", 870 | "-ObjC", 871 | "-lc++", 872 | ); 873 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.RNBoilerPlate-tvOSTests"; 874 | PRODUCT_NAME = "$(TARGET_NAME)"; 875 | SDKROOT = appletvos; 876 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNBoilerPlate-tvOS.app/RNBoilerPlate-tvOS"; 877 | TVOS_DEPLOYMENT_TARGET = 10.1; 878 | }; 879 | name = Release; 880 | }; 881 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 882 | isa = XCBuildConfiguration; 883 | buildSettings = { 884 | ALWAYS_SEARCH_USER_PATHS = NO; 885 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 886 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 887 | CLANG_CXX_LIBRARY = "libc++"; 888 | CLANG_ENABLE_MODULES = YES; 889 | CLANG_ENABLE_OBJC_ARC = YES; 890 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 891 | CLANG_WARN_BOOL_CONVERSION = YES; 892 | CLANG_WARN_COMMA = YES; 893 | CLANG_WARN_CONSTANT_CONVERSION = YES; 894 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 895 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 896 | CLANG_WARN_EMPTY_BODY = YES; 897 | CLANG_WARN_ENUM_CONVERSION = YES; 898 | CLANG_WARN_INFINITE_RECURSION = YES; 899 | CLANG_WARN_INT_CONVERSION = YES; 900 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 901 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 902 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 903 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 904 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 905 | CLANG_WARN_STRICT_PROTOTYPES = YES; 906 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 907 | CLANG_WARN_UNREACHABLE_CODE = YES; 908 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 909 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 910 | COPY_PHASE_STRIP = NO; 911 | ENABLE_STRICT_OBJC_MSGSEND = YES; 912 | ENABLE_TESTABILITY = YES; 913 | GCC_C_LANGUAGE_STANDARD = gnu99; 914 | GCC_DYNAMIC_NO_PIC = NO; 915 | GCC_NO_COMMON_BLOCKS = YES; 916 | GCC_OPTIMIZATION_LEVEL = 0; 917 | GCC_PREPROCESSOR_DEFINITIONS = ( 918 | "DEBUG=1", 919 | "$(inherited)", 920 | ); 921 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 922 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 923 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 924 | GCC_WARN_UNDECLARED_SELECTOR = YES; 925 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 926 | GCC_WARN_UNUSED_FUNCTION = YES; 927 | GCC_WARN_UNUSED_VARIABLE = YES; 928 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 929 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 930 | LIBRARY_SEARCH_PATHS = ( 931 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 932 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 933 | "\"$(inherited)\"", 934 | ); 935 | MTL_ENABLE_DEBUG_INFO = YES; 936 | ONLY_ACTIVE_ARCH = YES; 937 | SDKROOT = iphoneos; 938 | }; 939 | name = Debug; 940 | }; 941 | 83CBBA211A601CBA00E9B192 /* Release */ = { 942 | isa = XCBuildConfiguration; 943 | buildSettings = { 944 | ALWAYS_SEARCH_USER_PATHS = NO; 945 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 946 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 947 | CLANG_CXX_LIBRARY = "libc++"; 948 | CLANG_ENABLE_MODULES = YES; 949 | CLANG_ENABLE_OBJC_ARC = YES; 950 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 951 | CLANG_WARN_BOOL_CONVERSION = YES; 952 | CLANG_WARN_COMMA = YES; 953 | CLANG_WARN_CONSTANT_CONVERSION = YES; 954 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 955 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 956 | CLANG_WARN_EMPTY_BODY = YES; 957 | CLANG_WARN_ENUM_CONVERSION = YES; 958 | CLANG_WARN_INFINITE_RECURSION = YES; 959 | CLANG_WARN_INT_CONVERSION = YES; 960 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 961 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 962 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 963 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 964 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 965 | CLANG_WARN_STRICT_PROTOTYPES = YES; 966 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 967 | CLANG_WARN_UNREACHABLE_CODE = YES; 968 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 969 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 970 | COPY_PHASE_STRIP = YES; 971 | ENABLE_NS_ASSERTIONS = NO; 972 | ENABLE_STRICT_OBJC_MSGSEND = YES; 973 | GCC_C_LANGUAGE_STANDARD = gnu99; 974 | GCC_NO_COMMON_BLOCKS = YES; 975 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 976 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 977 | GCC_WARN_UNDECLARED_SELECTOR = YES; 978 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 979 | GCC_WARN_UNUSED_FUNCTION = YES; 980 | GCC_WARN_UNUSED_VARIABLE = YES; 981 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 982 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 983 | LIBRARY_SEARCH_PATHS = ( 984 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 985 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 986 | "\"$(inherited)\"", 987 | ); 988 | MTL_ENABLE_DEBUG_INFO = NO; 989 | SDKROOT = iphoneos; 990 | VALIDATE_PRODUCT = YES; 991 | }; 992 | name = Release; 993 | }; 994 | /* End XCBuildConfiguration section */ 995 | 996 | /* Begin XCConfigurationList section */ 997 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNBoilerPlateTests" */ = { 998 | isa = XCConfigurationList; 999 | buildConfigurations = ( 1000 | 00E356F61AD99517003FC87E /* Debug */, 1001 | 00E356F71AD99517003FC87E /* Release */, 1002 | ); 1003 | defaultConfigurationIsVisible = 0; 1004 | defaultConfigurationName = Release; 1005 | }; 1006 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNBoilerPlate" */ = { 1007 | isa = XCConfigurationList; 1008 | buildConfigurations = ( 1009 | 13B07F941A680F5B00A75B9A /* Debug */, 1010 | 13B07F951A680F5B00A75B9A /* Release */, 1011 | ); 1012 | defaultConfigurationIsVisible = 0; 1013 | defaultConfigurationName = Release; 1014 | }; 1015 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNBoilerPlate-tvOS" */ = { 1016 | isa = XCConfigurationList; 1017 | buildConfigurations = ( 1018 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1019 | 2D02E4981E0B4A5E006451C7 /* Release */, 1020 | ); 1021 | defaultConfigurationIsVisible = 0; 1022 | defaultConfigurationName = Release; 1023 | }; 1024 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "RNBoilerPlate-tvOSTests" */ = { 1025 | isa = XCConfigurationList; 1026 | buildConfigurations = ( 1027 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1028 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1029 | ); 1030 | defaultConfigurationIsVisible = 0; 1031 | defaultConfigurationName = Release; 1032 | }; 1033 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNBoilerPlate" */ = { 1034 | isa = XCConfigurationList; 1035 | buildConfigurations = ( 1036 | 83CBBA201A601CBA00E9B192 /* Debug */, 1037 | 83CBBA211A601CBA00E9B192 /* Release */, 1038 | ); 1039 | defaultConfigurationIsVisible = 0; 1040 | defaultConfigurationName = Release; 1041 | }; 1042 | /* End XCConfigurationList section */ 1043 | }; 1044 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1045 | } 1046 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate.xcodeproj/xcshareddata/xcschemes/RNBoilerPlate-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate.xcodeproj/xcshareddata/xcschemes/RNBoilerPlate.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #if DEBUG 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #if DEBUG 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"RNBoilerPlate" 37 | initialProperties:nil]; 38 | 39 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 40 | 41 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 42 | UIViewController *rootViewController = [UIViewController new]; 43 | rootViewController.view = rootView; 44 | self.window.rootViewController = rootViewController; 45 | [self.window makeKeyAndVisible]; 46 | return YES; 47 | } 48 | 49 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 50 | { 51 | #if DEBUG 52 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 53 | #else 54 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 55 | #endif 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate/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/RNBoilerPlate/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "scale" : "1x", 46 | "size" : "1024x1024" 47 | } 48 | ], 49 | "info" : { 50 | "author" : "xcode", 51 | "version" : 1 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIAppFonts 6 | 7 | MaterialIcons.ttf 8 | MaterialCommunityIcons.ttf 9 | 10 | CFBundleDevelopmentRegion 11 | en 12 | CFBundleDisplayName 13 | RNBoilerPlate 14 | CFBundleExecutable 15 | $(EXECUTABLE_NAME) 16 | CFBundleIdentifier 17 | $(PRODUCT_BUNDLE_IDENTIFIER) 18 | CFBundleInfoDictionaryVersion 19 | 6.0 20 | CFBundleName 21 | $(PRODUCT_NAME) 22 | CFBundlePackageType 23 | APPL 24 | CFBundleShortVersionString 25 | 1.0 26 | CFBundleSignature 27 | ???? 28 | CFBundleVersion 29 | 1 30 | LSRequiresIPhoneOS 31 | 32 | NSAppTransportSecurity 33 | 34 | NSAllowsArbitraryLoads 35 | 36 | NSExceptionDomains 37 | 38 | localhost 39 | 40 | NSExceptionAllowsInsecureHTTPLoads 41 | 42 | 43 | 44 | 45 | NSLocationWhenInUseUsageDescription 46 | 47 | UILaunchStoryboardName 48 | LaunchScreen 49 | UIRequiredDeviceCapabilities 50 | 51 | armv7 52 | 53 | UISupportedInterfaceOrientations 54 | 55 | UIInterfaceOrientationPortrait 56 | UIInterfaceOrientationLandscapeLeft 57 | UIInterfaceOrientationLandscapeRight 58 | 59 | UIViewControllerBasedStatusBarAppearance 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /ios/RNBoilerPlate/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/RNBoilerPlateTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/RNBoilerPlateTests/RNBoilerPlateTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface RNBoilerPlateTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation RNBoilerPlateTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RNBoilerPlate", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint .", 11 | "update:pods": "cd ios && pod install --repo-update && cd ..", 12 | "postinstall": "yarn run update:pods" 13 | }, 14 | "dependencies": { 15 | "@react-native-community/async-storage": "^1.10.0", 16 | "@react-native-community/masked-view": "^0.1.10", 17 | "@react-navigation/native": "^5.2.6", 18 | "@react-navigation/stack": "^5.3.1", 19 | "react": "16.11.0", 20 | "react-native": "0.62.2", 21 | "react-native-gesture-handler": "^1.6.1", 22 | "react-native-paper": "^3.10.1", 23 | "react-native-reanimated": "^1.8.0", 24 | "react-native-safe-area-context": "^0.7.3", 25 | "react-native-screens": "^2.7.0", 26 | "react-native-vector-icons": "^6.6.0", 27 | "react-redux": "^7.2.0", 28 | "redux": "^4.0.5", 29 | "redux-logger": "^3.0.6", 30 | "redux-persist": "^6.0.0", 31 | "redux-saga": "^1.1.3", 32 | "reselect": "^4.0.0" 33 | }, 34 | "devDependencies": { 35 | "@babel/core": "^7.6.2", 36 | "@babel/runtime": "^7.6.2", 37 | "@react-native-community/eslint-config": "^0.0.5", 38 | "babel-jest": "^24.9.0", 39 | "eslint": "^6.5.1", 40 | "jest": "^24.9.0", 41 | "metro-react-native-babel-preset": "^0.58.0", 42 | "react-test-renderer": "16.11.0" 43 | }, 44 | "jest": { 45 | "preset": "react-native" 46 | } 47 | } 48 | --------------------------------------------------------------------------------