├── .babel.config.js ├── .babelrc ├── .buckconfig ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.tsx ├── README.md ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── reactnativetypescriptstylesexample │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativetypescriptstylesexample │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── docs ├── base_example.png ├── colors_1.png ├── colors_2.png └── typography.png ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── RNStylingTemplate.xcworkspace │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── ReactNativeTypescriptStylesExample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── ReactNativeTypescriptStylesExample.xcscheme ├── ReactNativeTypescriptStylesExample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── ReactNativeTypescriptStylesExample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── main.m └── ReactNativeTypescriptStylesExampleTests │ ├── Info.plist │ └── ReactNativeTypescriptStylesExampleTests.m ├── metro.config.js ├── package.json ├── src ├── BaseExample.tsx ├── ColorExample.tsx ├── TypographyExample.tsx ├── assets │ └── thoughtbot-assets-pack │ │ ├── README.md │ │ ├── circle │ │ └── png │ │ │ ├── robot_only_alternative.png │ │ │ └── robot_only_default.png │ │ ├── horizontal │ │ └── png │ │ │ ├── horizontal_alternative.png │ │ │ └── horizontal_default.png │ │ └── vertical │ │ └── png │ │ ├── vertical_alternative.png │ │ └── vertical_default.png ├── index.tsx └── styles │ ├── buttons.ts │ ├── colors.ts │ ├── forms.ts │ ├── index.ts │ ├── outlines.ts │ ├── sizing.ts │ └── typography.ts ├── tsconfig.json └── yarn.lock /.babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | plugins: [ 4 | '@babel/transform-flow-strip-types', 5 | '@babel/transform-runtime', 6 | '@babel/plugin-proposal-class-properties', 7 | ], 8 | } 9 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["module:metro-react-native-babel-preset"] 3 | } 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: [ 4 | "plugin:@typescript-eslint/recommended", 5 | "eslint:recommended", 6 | "plugin:react/recommended", 7 | "plugin:react-hooks/recommended", 8 | "plugin:jest/recommended", 9 | ], 10 | parser: "@typescript-eslint/parser", 11 | plugins: [ 12 | "@typescript-eslint", 13 | "prettier", 14 | "react", 15 | "react-hooks", 16 | "react-native", 17 | ], 18 | settings: { 19 | "import/parsers": { 20 | "@typescript-eslint/parser": [".ts", ".tsx"], 21 | }, 22 | "import/resolver": { 23 | typescript: {}, 24 | }, 25 | react: { 26 | version: "detect", 27 | }, 28 | }, 29 | parserOptions: { 30 | ecmaVersion: 6, 31 | sourceType: "module", 32 | ecmaFeatures: { 33 | jsx: true, 34 | modules: true, 35 | }, 36 | }, 37 | env: { 38 | "react-native/react-native": true, 39 | commonjs: true, 40 | es6: true, 41 | node: true, 42 | jest: true, 43 | "jest/globals": true, 44 | mocha: true, 45 | }, 46 | ignorePatterns: ["android/**", "ios/**", "metro.config.js"], 47 | rules: { 48 | // 0 is for off, 1 is for warning, 2 is for error 49 | "eol-last": 2, // Require file to end with single newline 50 | "no-import-assign": 1, 51 | "no-constant-condition": 2, // Disallow use of constant expressions in conditions 52 | "no-dupe-keys": 2, // Disallow Duplicate Keys 53 | "no-empty": 2, // Disallow Empty Block Statements 54 | "no-extra-boolean-cast": 2, // Disallow Extra Boolean Casts 55 | "no-extra-semi": 0, 56 | "no-prototype-builtins": 2, // Disallow use of Object.prototypes builtins directly 57 | "no-undef": 2, // Disallow Undeclared Variables 58 | "no-underscore-dangle": 2, // Disallow dangling underscores in identifiers 59 | "no-unreachable": 2, // Disallow unreachable code after return, throw, continue, and break statements 60 | "no-unused-vars": [2, { argsIgnorePattern: "^_" }], // Disallow Unused Variables 61 | "no-useless-escape": 2, // Disallow unnecessary escape usage 62 | "no-console": 0, // disallow the use of console 63 | "no-var": 2, // require let or const instead of var 64 | strict: [2, "global"], // require or disallow strict mode directives 65 | "react-native/no-color-literals": 1, // Detect StyleSheet rules and inline styles containing color literals instead of variables 66 | "react-native/no-inline-styles": 0, // For keeping styles away from the logic, we can switch it to 1 in future 67 | "react-native/no-raw-text": ["error", { skip: ["Trans"] }], // This is to make sure everything is translated in the app 68 | "react-native/no-unused-styles": 1, // Detect StyleSheet rules which are not used in your React components 69 | "react/jsx-boolean-value": 2, // Enforce boolean attributes notation in JSX (fixable) 70 | "react/jsx-key": 2, // Report missing key props in iterators/collection literals 71 | "react/jsx-no-duplicate-props": 2, // Enforce no duplicate props 72 | "react/jsx-no-undef": 2, // Disallow undeclared variables in JSX 73 | "react/jsx-sort-props": 0, // Enforce props alphabetical sorting (fixable) 74 | "react/jsx-wrap-multilines": 2, // Prevent missing parentheses around multilines JSX (fixable) 75 | "react/no-deprecated": 1, // Prevent usage of deprecated methods 76 | "react/no-did-mount-set-state": 1, // Prevent usage of setState in componentDidMount 77 | "react/no-did-update-set-state": 1, // Prevent usage of setState in componentDidUpdate 78 | "react/no-multi-comp": 0, // Prevent multiple component definition per file 79 | "react/no-string-refs": 1, // Prevent string definitions for references and prevent referencing this.refs 80 | "react/prop-types": 0, // Prevent missing props validation in a React component definition 81 | "react/react-in-jsx-scope": 2, // Prevent missing React when using JSX 82 | "react/self-closing-comp": 2, // Prevent extra closing tags for components without children, 83 | "react/prefer-stateless-function": 2, // Use functional components vs classes 84 | "@typescript-eslint/no-var-requires": 0, 85 | "@typescript-eslint/no-empty-function": [2, { allow: ["arrowFunctions"] }], 86 | "@typescript-eslint/no-extra-semi": 0, 87 | "@typescript-eslint/no-unused-vars": [2, { argsIgnorePattern: "^_" }], 88 | "@typescript-eslint/explicit-module-boundary-types": 0, 89 | "@typescript-eslint/no-use-before-define": 0, 90 | "@typescript-eslint/member-delimiter-style": 0, 91 | }, 92 | overrides: [ 93 | { 94 | files: ["*.spec.js"], // Or *.test.js 95 | rules: { 96 | "react-native/no-raw-text": 0, 97 | }, 98 | }, 99 | { 100 | // enable the rule specifically for TypeScript files 101 | files: ["*.ts", "*.tsx"], 102 | rules: { 103 | "@typescript-eslint/explicit-module-boundary-types": ["error"], 104 | }, 105 | }, 106 | ], 107 | globals: { 108 | Response: "readonly", 109 | RequestInfo: "readonly", 110 | RequestInit: "readonly", 111 | }, 112 | } 113 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # Visual Studio Code 33 | # 34 | .vscode/ 35 | 36 | # node.js 37 | # 38 | node_modules/ 39 | npm-debug.log 40 | yarn-error.log 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | !debug.keystore 47 | 48 | # fastlane 49 | # 50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 51 | # screenshots whenever they are needed. 52 | # For more information about the recommended setup visit: 53 | # https://docs.fastlane.tools/best-practices/source-control/ 54 | 55 | */fastlane/report.xml 56 | */fastlane/Preview.html 57 | */fastlane/screenshots 58 | 59 | # Bundle artifact 60 | *.jsbundle 61 | 62 | # CocoaPods 63 | /ios/Pods/ 64 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | tabWidth: 2, 3 | useTabs: false, 4 | semi: false, 5 | singleQuote: false, 6 | trailingComma: 'all', 7 | arrowParens: 'avoid', 8 | }; 9 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | import App from "./src" 2 | 3 | export default App 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native TypeScript Styles Example 2 | 3 | React Native TypeScript Styles is an example project demonstrating how to apply 4 | styles in react native using [react-native-typescript-styles][react-native-typescript-styles]. 5 | 6 | [react-native-typescript-styles]: https://github.com/thoughtbot/react-native-typescript-styles 7 | 8 | ## Setup 9 | 10 | Install the JavaScript packages 11 | 12 | ``` 13 | yarn install 14 | ``` 15 | 16 | Install the Pods 17 | 18 | ``` 19 | npx pod-install 20 | ``` 21 | 22 | Build and run the app 23 | 24 | ``` 25 | yarn ios 26 | 27 | // or 28 | 29 | yarn android 30 | ``` 31 | 32 | ## Organization 33 | 34 | The example app is a single screen with a section for each style module. 35 | 36 | ### Base Example 37 | 38 | The first section of the app, showing a header, some text, and a button. 39 | 40 | ### Colors 41 | 42 | A section of the app, showing a list of neutral colors. 43 | 44 | A section of the app, showing a list of primary and secondary colors. 45 | 46 | ### Typography 47 | 48 | A section of the app, showing the typographic options. 49 | 50 | ## About thoughtbot 51 | 52 | ![thoughtbot](https://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg) 53 | 54 | React Native TypeScript Styles Example is maintained and funded by thoughtbot, inc. 55 | The names and logos for thoughtbot are trademarks of thoughtbot, inc. 56 | 57 | We love open source software! 58 | See [our other projects][community] or 59 | [hire us][hire] to design, develop, and grow your product. 60 | 61 | [community]: https://thoughtbot.com/community?utm_source=github 62 | [hire]: https://thoughtbot.com/hire-us?utm_source=github 63 | -------------------------------------------------------------------------------- /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.reactnativetypescriptstylesexample", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativetypescriptstylesexample", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | 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 | android { 124 | ndkVersion rootProject.ext.ndkVersion 125 | 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | compileOptions { 129 | sourceCompatibility JavaVersion.VERSION_1_8 130 | targetCompatibility JavaVersion.VERSION_1_8 131 | } 132 | 133 | defaultConfig { 134 | applicationId "com.reactnativetypescriptstylesexample" 135 | minSdkVersion rootProject.ext.minSdkVersion 136 | targetSdkVersion rootProject.ext.targetSdkVersion 137 | versionCode 1 138 | versionName "1.0" 139 | } 140 | splits { 141 | abi { 142 | reset() 143 | enable enableSeparateBuildPerCPUArchitecture 144 | universalApk false // If true, also generate a universal APK 145 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 146 | } 147 | } 148 | signingConfigs { 149 | debug { 150 | storeFile file('debug.keystore') 151 | storePassword 'android' 152 | keyAlias 'androiddebugkey' 153 | keyPassword 'android' 154 | } 155 | } 156 | buildTypes { 157 | debug { 158 | signingConfig signingConfigs.debug 159 | } 160 | release { 161 | // Caution! In production, you need to generate your own keystore file. 162 | // see https://reactnative.dev/docs/signed-apk-android. 163 | signingConfig signingConfigs.debug 164 | minifyEnabled enableProguardInReleaseBuilds 165 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 166 | } 167 | } 168 | 169 | // applicationVariants are e.g. debug, release 170 | applicationVariants.all { variant -> 171 | variant.outputs.each { output -> 172 | // For each separate APK per architecture, set a unique version code as described here: 173 | // https://developer.android.com/studio/build/configure-apk-splits.html 174 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | 191 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 192 | 193 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 194 | exclude group:'com.facebook.fbjni' 195 | } 196 | 197 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 198 | exclude group:'com.facebook.flipper' 199 | exclude group:'com.squareup.okhttp3', module:'okhttp' 200 | } 201 | 202 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 203 | exclude group:'com.facebook.flipper' 204 | } 205 | 206 | if (enableHermes) { 207 | def hermesPath = "../../node_modules/hermes-engine/android/"; 208 | debugImplementation files(hermesPath + "hermes-debug.aar") 209 | releaseImplementation files(hermesPath + "hermes-release.aar") 210 | } else { 211 | implementation jscFlavor 212 | } 213 | } 214 | 215 | // Run this once to be able to run the application with BUCK 216 | // puts all compile dependencies into folder libs for BUCK to use 217 | task copyDownloadableDepsToLibs(type: Copy) { 218 | from configurations.compile 219 | into 'libs' 220 | } 221 | 222 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 223 | -------------------------------------------------------------------------------- /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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/android/app/debug.keystore -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/reactnativetypescriptstylesexample/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.reactnativetypescriptstylesexample; 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 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativetypescriptstylesexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativetypescriptstylesexample; 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 "ReactNativeTypescriptStylesExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativetypescriptstylesexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativetypescriptstylesexample; 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.reactnativetypescriptstylesexample.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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/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/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeTypescriptStylesExample 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.1.0") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.75.1 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeTypescriptStylesExample' 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": "ReactNativeTypescriptStylesExample", 3 | "displayName": "ReactNativeTypescriptStylesExample" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /docs/base_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/docs/base_example.png -------------------------------------------------------------------------------- /docs/colors_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/docs/colors_1.png -------------------------------------------------------------------------------- /docs/colors_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/docs/colors_2.png -------------------------------------------------------------------------------- /docs/typography.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/docs/typography.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'ReactNativeTypescriptStylesExample' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | target 'ReactNativeTypescriptStylesExampleTests' do 16 | inherit! :complete 17 | # Pods for testing 18 | end 19 | 20 | # Enables Flipper. 21 | # 22 | # Note that if you have use_frameworks! enabled, Flipper will not work and 23 | # you should disable the next line. 24 | use_flipper!() 25 | 26 | post_install do |installer| 27 | react_native_post_install(installer) 28 | end 29 | end -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.64.0) 6 | - FBReactNativeSpec (0.64.0): 7 | - RCT-Folly (= 2020.01.13.00) 8 | - RCTRequired (= 0.64.0) 9 | - RCTTypeSafety (= 0.64.0) 10 | - React-Core (= 0.64.0) 11 | - React-jsi (= 0.64.0) 12 | - ReactCommon/turbomodule/core (= 0.64.0) 13 | - Flipper (0.75.1): 14 | - Flipper-Folly (~> 2.5) 15 | - Flipper-RSocket (~> 1.3) 16 | - Flipper-DoubleConversion (1.1.7) 17 | - Flipper-Folly (2.5.1): 18 | - boost-for-react-native 19 | - Flipper-DoubleConversion 20 | - Flipper-Glog 21 | - libevent (~> 2.1.12) 22 | - OpenSSL-Universal (= 1.1.180) 23 | - Flipper-Glog (0.3.6) 24 | - Flipper-PeerTalk (0.0.4) 25 | - Flipper-RSocket (1.3.0): 26 | - Flipper-Folly (~> 2.5) 27 | - FlipperKit (0.75.1): 28 | - FlipperKit/Core (= 0.75.1) 29 | - FlipperKit/Core (0.75.1): 30 | - Flipper (~> 0.75.1) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - FlipperKit/CppBridge (0.75.1): 36 | - Flipper (~> 0.75.1) 37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1): 38 | - Flipper-Folly (~> 2.5) 39 | - FlipperKit/FBDefines (0.75.1) 40 | - FlipperKit/FKPortForwarding (0.75.1): 41 | - CocoaAsyncSocket (~> 7.6) 42 | - Flipper-PeerTalk (~> 0.0.4) 43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1) 44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1): 45 | - FlipperKit/Core 46 | - FlipperKit/FlipperKitHighlightOverlay 47 | - FlipperKit/FlipperKitLayoutTextSearchable 48 | - YogaKit (~> 1.18) 49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1) 50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1): 51 | - FlipperKit/Core 52 | - FlipperKit/FlipperKitReactPlugin (0.75.1): 53 | - FlipperKit/Core 54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1): 55 | - FlipperKit/Core 56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitNetworkPlugin 59 | - glog (0.3.5) 60 | - libevent (2.1.12) 61 | - OpenSSL-Universal (1.1.180) 62 | - RCT-Folly (2020.01.13.00): 63 | - boost-for-react-native 64 | - DoubleConversion 65 | - glog 66 | - RCT-Folly/Default (= 2020.01.13.00) 67 | - RCT-Folly/Default (2020.01.13.00): 68 | - boost-for-react-native 69 | - DoubleConversion 70 | - glog 71 | - RCTRequired (0.64.0) 72 | - RCTTypeSafety (0.64.0): 73 | - FBLazyVector (= 0.64.0) 74 | - RCT-Folly (= 2020.01.13.00) 75 | - RCTRequired (= 0.64.0) 76 | - React-Core (= 0.64.0) 77 | - React (0.64.0): 78 | - React-Core (= 0.64.0) 79 | - React-Core/DevSupport (= 0.64.0) 80 | - React-Core/RCTWebSocket (= 0.64.0) 81 | - React-RCTActionSheet (= 0.64.0) 82 | - React-RCTAnimation (= 0.64.0) 83 | - React-RCTBlob (= 0.64.0) 84 | - React-RCTImage (= 0.64.0) 85 | - React-RCTLinking (= 0.64.0) 86 | - React-RCTNetwork (= 0.64.0) 87 | - React-RCTSettings (= 0.64.0) 88 | - React-RCTText (= 0.64.0) 89 | - React-RCTVibration (= 0.64.0) 90 | - React-callinvoker (0.64.0) 91 | - React-Core (0.64.0): 92 | - glog 93 | - RCT-Folly (= 2020.01.13.00) 94 | - React-Core/Default (= 0.64.0) 95 | - React-cxxreact (= 0.64.0) 96 | - React-jsi (= 0.64.0) 97 | - React-jsiexecutor (= 0.64.0) 98 | - React-perflogger (= 0.64.0) 99 | - Yoga 100 | - React-Core/CoreModulesHeaders (0.64.0): 101 | - glog 102 | - RCT-Folly (= 2020.01.13.00) 103 | - React-Core/Default 104 | - React-cxxreact (= 0.64.0) 105 | - React-jsi (= 0.64.0) 106 | - React-jsiexecutor (= 0.64.0) 107 | - React-perflogger (= 0.64.0) 108 | - Yoga 109 | - React-Core/Default (0.64.0): 110 | - glog 111 | - RCT-Folly (= 2020.01.13.00) 112 | - React-cxxreact (= 0.64.0) 113 | - React-jsi (= 0.64.0) 114 | - React-jsiexecutor (= 0.64.0) 115 | - React-perflogger (= 0.64.0) 116 | - Yoga 117 | - React-Core/DevSupport (0.64.0): 118 | - glog 119 | - RCT-Folly (= 2020.01.13.00) 120 | - React-Core/Default (= 0.64.0) 121 | - React-Core/RCTWebSocket (= 0.64.0) 122 | - React-cxxreact (= 0.64.0) 123 | - React-jsi (= 0.64.0) 124 | - React-jsiexecutor (= 0.64.0) 125 | - React-jsinspector (= 0.64.0) 126 | - React-perflogger (= 0.64.0) 127 | - Yoga 128 | - React-Core/RCTActionSheetHeaders (0.64.0): 129 | - glog 130 | - RCT-Folly (= 2020.01.13.00) 131 | - React-Core/Default 132 | - React-cxxreact (= 0.64.0) 133 | - React-jsi (= 0.64.0) 134 | - React-jsiexecutor (= 0.64.0) 135 | - React-perflogger (= 0.64.0) 136 | - Yoga 137 | - React-Core/RCTAnimationHeaders (0.64.0): 138 | - glog 139 | - RCT-Folly (= 2020.01.13.00) 140 | - React-Core/Default 141 | - React-cxxreact (= 0.64.0) 142 | - React-jsi (= 0.64.0) 143 | - React-jsiexecutor (= 0.64.0) 144 | - React-perflogger (= 0.64.0) 145 | - Yoga 146 | - React-Core/RCTBlobHeaders (0.64.0): 147 | - glog 148 | - RCT-Folly (= 2020.01.13.00) 149 | - React-Core/Default 150 | - React-cxxreact (= 0.64.0) 151 | - React-jsi (= 0.64.0) 152 | - React-jsiexecutor (= 0.64.0) 153 | - React-perflogger (= 0.64.0) 154 | - Yoga 155 | - React-Core/RCTImageHeaders (0.64.0): 156 | - glog 157 | - RCT-Folly (= 2020.01.13.00) 158 | - React-Core/Default 159 | - React-cxxreact (= 0.64.0) 160 | - React-jsi (= 0.64.0) 161 | - React-jsiexecutor (= 0.64.0) 162 | - React-perflogger (= 0.64.0) 163 | - Yoga 164 | - React-Core/RCTLinkingHeaders (0.64.0): 165 | - glog 166 | - RCT-Folly (= 2020.01.13.00) 167 | - React-Core/Default 168 | - React-cxxreact (= 0.64.0) 169 | - React-jsi (= 0.64.0) 170 | - React-jsiexecutor (= 0.64.0) 171 | - React-perflogger (= 0.64.0) 172 | - Yoga 173 | - React-Core/RCTNetworkHeaders (0.64.0): 174 | - glog 175 | - RCT-Folly (= 2020.01.13.00) 176 | - React-Core/Default 177 | - React-cxxreact (= 0.64.0) 178 | - React-jsi (= 0.64.0) 179 | - React-jsiexecutor (= 0.64.0) 180 | - React-perflogger (= 0.64.0) 181 | - Yoga 182 | - React-Core/RCTSettingsHeaders (0.64.0): 183 | - glog 184 | - RCT-Folly (= 2020.01.13.00) 185 | - React-Core/Default 186 | - React-cxxreact (= 0.64.0) 187 | - React-jsi (= 0.64.0) 188 | - React-jsiexecutor (= 0.64.0) 189 | - React-perflogger (= 0.64.0) 190 | - Yoga 191 | - React-Core/RCTTextHeaders (0.64.0): 192 | - glog 193 | - RCT-Folly (= 2020.01.13.00) 194 | - React-Core/Default 195 | - React-cxxreact (= 0.64.0) 196 | - React-jsi (= 0.64.0) 197 | - React-jsiexecutor (= 0.64.0) 198 | - React-perflogger (= 0.64.0) 199 | - Yoga 200 | - React-Core/RCTVibrationHeaders (0.64.0): 201 | - glog 202 | - RCT-Folly (= 2020.01.13.00) 203 | - React-Core/Default 204 | - React-cxxreact (= 0.64.0) 205 | - React-jsi (= 0.64.0) 206 | - React-jsiexecutor (= 0.64.0) 207 | - React-perflogger (= 0.64.0) 208 | - Yoga 209 | - React-Core/RCTWebSocket (0.64.0): 210 | - glog 211 | - RCT-Folly (= 2020.01.13.00) 212 | - React-Core/Default (= 0.64.0) 213 | - React-cxxreact (= 0.64.0) 214 | - React-jsi (= 0.64.0) 215 | - React-jsiexecutor (= 0.64.0) 216 | - React-perflogger (= 0.64.0) 217 | - Yoga 218 | - React-CoreModules (0.64.0): 219 | - FBReactNativeSpec (= 0.64.0) 220 | - RCT-Folly (= 2020.01.13.00) 221 | - RCTTypeSafety (= 0.64.0) 222 | - React-Core/CoreModulesHeaders (= 0.64.0) 223 | - React-jsi (= 0.64.0) 224 | - React-RCTImage (= 0.64.0) 225 | - ReactCommon/turbomodule/core (= 0.64.0) 226 | - React-cxxreact (0.64.0): 227 | - boost-for-react-native (= 1.63.0) 228 | - DoubleConversion 229 | - glog 230 | - RCT-Folly (= 2020.01.13.00) 231 | - React-callinvoker (= 0.64.0) 232 | - React-jsi (= 0.64.0) 233 | - React-jsinspector (= 0.64.0) 234 | - React-perflogger (= 0.64.0) 235 | - React-runtimeexecutor (= 0.64.0) 236 | - React-jsi (0.64.0): 237 | - boost-for-react-native (= 1.63.0) 238 | - DoubleConversion 239 | - glog 240 | - RCT-Folly (= 2020.01.13.00) 241 | - React-jsi/Default (= 0.64.0) 242 | - React-jsi/Default (0.64.0): 243 | - boost-for-react-native (= 1.63.0) 244 | - DoubleConversion 245 | - glog 246 | - RCT-Folly (= 2020.01.13.00) 247 | - React-jsiexecutor (0.64.0): 248 | - DoubleConversion 249 | - glog 250 | - RCT-Folly (= 2020.01.13.00) 251 | - React-cxxreact (= 0.64.0) 252 | - React-jsi (= 0.64.0) 253 | - React-perflogger (= 0.64.0) 254 | - React-jsinspector (0.64.0) 255 | - React-perflogger (0.64.0) 256 | - React-RCTActionSheet (0.64.0): 257 | - React-Core/RCTActionSheetHeaders (= 0.64.0) 258 | - React-RCTAnimation (0.64.0): 259 | - FBReactNativeSpec (= 0.64.0) 260 | - RCT-Folly (= 2020.01.13.00) 261 | - RCTTypeSafety (= 0.64.0) 262 | - React-Core/RCTAnimationHeaders (= 0.64.0) 263 | - React-jsi (= 0.64.0) 264 | - ReactCommon/turbomodule/core (= 0.64.0) 265 | - React-RCTBlob (0.64.0): 266 | - FBReactNativeSpec (= 0.64.0) 267 | - RCT-Folly (= 2020.01.13.00) 268 | - React-Core/RCTBlobHeaders (= 0.64.0) 269 | - React-Core/RCTWebSocket (= 0.64.0) 270 | - React-jsi (= 0.64.0) 271 | - React-RCTNetwork (= 0.64.0) 272 | - ReactCommon/turbomodule/core (= 0.64.0) 273 | - React-RCTImage (0.64.0): 274 | - FBReactNativeSpec (= 0.64.0) 275 | - RCT-Folly (= 2020.01.13.00) 276 | - RCTTypeSafety (= 0.64.0) 277 | - React-Core/RCTImageHeaders (= 0.64.0) 278 | - React-jsi (= 0.64.0) 279 | - React-RCTNetwork (= 0.64.0) 280 | - ReactCommon/turbomodule/core (= 0.64.0) 281 | - React-RCTLinking (0.64.0): 282 | - FBReactNativeSpec (= 0.64.0) 283 | - React-Core/RCTLinkingHeaders (= 0.64.0) 284 | - React-jsi (= 0.64.0) 285 | - ReactCommon/turbomodule/core (= 0.64.0) 286 | - React-RCTNetwork (0.64.0): 287 | - FBReactNativeSpec (= 0.64.0) 288 | - RCT-Folly (= 2020.01.13.00) 289 | - RCTTypeSafety (= 0.64.0) 290 | - React-Core/RCTNetworkHeaders (= 0.64.0) 291 | - React-jsi (= 0.64.0) 292 | - ReactCommon/turbomodule/core (= 0.64.0) 293 | - React-RCTSettings (0.64.0): 294 | - FBReactNativeSpec (= 0.64.0) 295 | - RCT-Folly (= 2020.01.13.00) 296 | - RCTTypeSafety (= 0.64.0) 297 | - React-Core/RCTSettingsHeaders (= 0.64.0) 298 | - React-jsi (= 0.64.0) 299 | - ReactCommon/turbomodule/core (= 0.64.0) 300 | - React-RCTText (0.64.0): 301 | - React-Core/RCTTextHeaders (= 0.64.0) 302 | - React-RCTVibration (0.64.0): 303 | - FBReactNativeSpec (= 0.64.0) 304 | - RCT-Folly (= 2020.01.13.00) 305 | - React-Core/RCTVibrationHeaders (= 0.64.0) 306 | - React-jsi (= 0.64.0) 307 | - ReactCommon/turbomodule/core (= 0.64.0) 308 | - React-runtimeexecutor (0.64.0): 309 | - React-jsi (= 0.64.0) 310 | - ReactCommon/turbomodule/core (0.64.0): 311 | - DoubleConversion 312 | - glog 313 | - RCT-Folly (= 2020.01.13.00) 314 | - React-callinvoker (= 0.64.0) 315 | - React-Core (= 0.64.0) 316 | - React-cxxreact (= 0.64.0) 317 | - React-jsi (= 0.64.0) 318 | - React-perflogger (= 0.64.0) 319 | - RNStaticSafeAreaInsets (2.1.1): 320 | - React 321 | - Yoga (1.14.0) 322 | - YogaKit (1.18.1): 323 | - Yoga (~> 1.14) 324 | 325 | DEPENDENCIES: 326 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 327 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 328 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 329 | - Flipper (~> 0.75.1) 330 | - Flipper-DoubleConversion (= 1.1.7) 331 | - Flipper-Folly (~> 2.5) 332 | - Flipper-Glog (= 0.3.6) 333 | - Flipper-PeerTalk (~> 0.0.4) 334 | - Flipper-RSocket (~> 1.3) 335 | - FlipperKit (~> 0.75.1) 336 | - FlipperKit/Core (~> 0.75.1) 337 | - FlipperKit/CppBridge (~> 0.75.1) 338 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1) 339 | - FlipperKit/FBDefines (~> 0.75.1) 340 | - FlipperKit/FKPortForwarding (~> 0.75.1) 341 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1) 342 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1) 343 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1) 344 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1) 345 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1) 346 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1) 347 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1) 348 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 349 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 350 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 351 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 352 | - React (from `../node_modules/react-native/`) 353 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 354 | - React-Core (from `../node_modules/react-native/`) 355 | - React-Core/DevSupport (from `../node_modules/react-native/`) 356 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 357 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 358 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 359 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 360 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 361 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 362 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 363 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 364 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 365 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 366 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 367 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 368 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 369 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 370 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 371 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 372 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 373 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 374 | - RNStaticSafeAreaInsets (from `../node_modules/react-native-static-safe-area-insets`) 375 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 376 | 377 | SPEC REPOS: 378 | trunk: 379 | - boost-for-react-native 380 | - CocoaAsyncSocket 381 | - Flipper 382 | - Flipper-DoubleConversion 383 | - Flipper-Folly 384 | - Flipper-Glog 385 | - Flipper-PeerTalk 386 | - Flipper-RSocket 387 | - FlipperKit 388 | - libevent 389 | - OpenSSL-Universal 390 | - YogaKit 391 | 392 | EXTERNAL SOURCES: 393 | DoubleConversion: 394 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 395 | FBLazyVector: 396 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 397 | FBReactNativeSpec: 398 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 399 | glog: 400 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 401 | RCT-Folly: 402 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 403 | RCTRequired: 404 | :path: "../node_modules/react-native/Libraries/RCTRequired" 405 | RCTTypeSafety: 406 | :path: "../node_modules/react-native/Libraries/TypeSafety" 407 | React: 408 | :path: "../node_modules/react-native/" 409 | React-callinvoker: 410 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 411 | React-Core: 412 | :path: "../node_modules/react-native/" 413 | React-CoreModules: 414 | :path: "../node_modules/react-native/React/CoreModules" 415 | React-cxxreact: 416 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 417 | React-jsi: 418 | :path: "../node_modules/react-native/ReactCommon/jsi" 419 | React-jsiexecutor: 420 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 421 | React-jsinspector: 422 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 423 | React-perflogger: 424 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 425 | React-RCTActionSheet: 426 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 427 | React-RCTAnimation: 428 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 429 | React-RCTBlob: 430 | :path: "../node_modules/react-native/Libraries/Blob" 431 | React-RCTImage: 432 | :path: "../node_modules/react-native/Libraries/Image" 433 | React-RCTLinking: 434 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 435 | React-RCTNetwork: 436 | :path: "../node_modules/react-native/Libraries/Network" 437 | React-RCTSettings: 438 | :path: "../node_modules/react-native/Libraries/Settings" 439 | React-RCTText: 440 | :path: "../node_modules/react-native/Libraries/Text" 441 | React-RCTVibration: 442 | :path: "../node_modules/react-native/Libraries/Vibration" 443 | React-runtimeexecutor: 444 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 445 | ReactCommon: 446 | :path: "../node_modules/react-native/ReactCommon" 447 | RNStaticSafeAreaInsets: 448 | :path: "../node_modules/react-native-static-safe-area-insets" 449 | Yoga: 450 | :path: "../node_modules/react-native/ReactCommon/yoga" 451 | 452 | SPEC CHECKSUMS: 453 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 454 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 455 | DoubleConversion: cde416483dac037923206447da6e1454df403714 456 | FBLazyVector: 49cbe4b43e445b06bf29199b6ad2057649e4c8f5 457 | FBReactNativeSpec: 72e8135b6339c8b3f73762c15f4d70b8642ccd69 458 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021 459 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 460 | Flipper-Folly: f7a3caafbd74bda4827954fd7a6e000e36355489 461 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 462 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 463 | Flipper-RSocket: 602921fee03edacf18f5d6f3d3594ba477f456e5 464 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00 465 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 466 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 467 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 468 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c 469 | RCTRequired: 2f8cb5b7533219bf4218a045f92768129cf7050a 470 | RCTTypeSafety: 512728b73549e72ad7330b92f3d42936f2a4de5b 471 | React: 98eac01574128a790f0bbbafe2d1a8607291ac24 472 | React-callinvoker: def3f7fae16192df68d9b69fd4bbb59092ee36bc 473 | React-Core: 70a52aa5dbe9b83befae82038451a7df9fd54c5a 474 | React-CoreModules: 052edef46117862e2570eb3a0f06d81c61d2c4b8 475 | React-cxxreact: c1dc71b30653cfb4770efdafcbdc0ad6d388baab 476 | React-jsi: 74341196d9547cbcbcfa4b3bbbf03af56431d5a1 477 | React-jsiexecutor: 06a9c77b56902ae7ffcdd7a4905f664adc5d237b 478 | React-jsinspector: 0ae35a37b20d5e031eb020a69cc5afdbd6406301 479 | React-perflogger: 9c547d8f06b9bf00cb447f2b75e8d7f19b7e02af 480 | React-RCTActionSheet: 3080b6e12e0e1a5b313c8c0050699b5c794a1b11 481 | React-RCTAnimation: 3f96f21a497ae7dabf4d2f150ee43f906aaf516f 482 | React-RCTBlob: 283b8e5025e7f954176bc48164f846909002f3ed 483 | React-RCTImage: 5088a484faac78f2d877e1b79125d3bb1ea94a16 484 | React-RCTLinking: 5e8fbb3e9a8bc2e4e3eb15b1eb8bda5fcac27b8c 485 | React-RCTNetwork: 38ec277217b1e841d5e6a1fa78da65b9212ccb28 486 | React-RCTSettings: 242d6e692108c3de4f3bb74b7586a8799e9ab070 487 | React-RCTText: 8746736ac8eb5a4a74719aa695b7a236a93a83d2 488 | React-RCTVibration: 0fd6b21751a33cb72fce1a4a33ab9678416d307a 489 | React-runtimeexecutor: cad74a1eaa53ee6e7a3620231939d8fe2c6afcf0 490 | ReactCommon: cfe2b7fd20e0dbd2d1185cd7d8f99633fbc5ff05 491 | RNStaticSafeAreaInsets: 6103cf09647fa427186d30f67b0f5163c1ae8252 492 | Yoga: 8c8436d4171c87504c648ae23b1d81242bdf3bbf 493 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 494 | 495 | PODFILE CHECKSUM: 94fc372a9b29853b2d5fea1b9caafd075f60e491 496 | 497 | COCOAPODS: 1.10.1 498 | -------------------------------------------------------------------------------- /ios/RNStylingTemplate.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 15 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeTypescriptStylesExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.m */; }; 18 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 19 | B5862D03B4476056BCFBC37D /* libPods-ReactNativeTypescriptStylesExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 608B8B080D21216AB1C542A6 /* libPods-ReactNativeTypescriptStylesExample.a */; }; 20 | DA250E85B015BA39C4384A1E /* libPods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46CDE99922DF28C25D8E3F69 /* libPods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.a */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 29 | remoteInfo = ReactNativeTypescriptStylesExample; 30 | }; 31 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 36 | remoteInfo = "ReactNativeTypescriptStylesExample-tvOS"; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 42 | 00E356EE1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeTypescriptStylesExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 00E356F21AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeTypescriptStylesExampleTests.m; sourceTree = ""; }; 45 | 13B07F961A680F5B00A75B9A /* ReactNativeTypescriptStylesExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeTypescriptStylesExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeTypescriptStylesExample/AppDelegate.h; sourceTree = ""; }; 47 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeTypescriptStylesExample/AppDelegate.m; sourceTree = ""; }; 48 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeTypescriptStylesExample/Images.xcassets; sourceTree = ""; }; 49 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeTypescriptStylesExample/Info.plist; sourceTree = ""; }; 50 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeTypescriptStylesExample/main.m; sourceTree = ""; }; 51 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeTypescriptStylesExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 2D02E4901E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeTypescriptStylesExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 46CDE99922DF28C25D8E3F69 /* libPods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 47D1BBC4DAC94B444774434A /* Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.debug.xcconfig"; sourceTree = ""; }; 55 | 4C370C404C3A59527C2A7C41 /* Pods-ReactNativeTypescriptStylesExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeTypescriptStylesExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeTypescriptStylesExample/Pods-ReactNativeTypescriptStylesExample.release.xcconfig"; sourceTree = ""; }; 56 | 5422C97BC98964706A2B9EE1 /* Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.release.xcconfig"; sourceTree = ""; }; 57 | 608B8B080D21216AB1C542A6 /* libPods-ReactNativeTypescriptStylesExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeTypescriptStylesExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeTypescriptStylesExample/LaunchScreen.storyboard; sourceTree = ""; }; 59 | CB164BD3B498338B8D82B081 /* Pods-ReactNativeTypescriptStylesExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeTypescriptStylesExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeTypescriptStylesExample/Pods-ReactNativeTypescriptStylesExample.debug.xcconfig"; sourceTree = ""; }; 60 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 61 | 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; }; 62 | /* End PBXFileReference section */ 63 | 64 | /* Begin PBXFrameworksBuildPhase section */ 65 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | DA250E85B015BA39C4384A1E /* libPods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.a in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | B5862D03B4476056BCFBC37D /* libPods-ReactNativeTypescriptStylesExample.a in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | /* End PBXFrameworksBuildPhase section */ 96 | 97 | /* Begin PBXGroup section */ 98 | 00E356EF1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 00E356F21AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.m */, 102 | 00E356F01AD99517003FC87E /* Supporting Files */, 103 | ); 104 | path = ReactNativeTypescriptStylesExampleTests; 105 | sourceTree = ""; 106 | }; 107 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 00E356F11AD99517003FC87E /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 13B07FAE1A68108700A75B9A /* ReactNativeTypescriptStylesExample */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 119 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 120 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 121 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 122 | 13B07FB61A68108700A75B9A /* Info.plist */, 123 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 124 | 13B07FB71A68108700A75B9A /* main.m */, 125 | ); 126 | name = ReactNativeTypescriptStylesExample; 127 | sourceTree = ""; 128 | }; 129 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 133 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 134 | 608B8B080D21216AB1C542A6 /* libPods-ReactNativeTypescriptStylesExample.a */, 135 | 46CDE99922DF28C25D8E3F69 /* libPods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.a */, 136 | ); 137 | name = Frameworks; 138 | sourceTree = ""; 139 | }; 140 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | ); 144 | name = Libraries; 145 | sourceTree = ""; 146 | }; 147 | 83CBB9F61A601CBA00E9B192 = { 148 | isa = PBXGroup; 149 | children = ( 150 | 13B07FAE1A68108700A75B9A /* ReactNativeTypescriptStylesExample */, 151 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 152 | 00E356EF1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests */, 153 | 83CBBA001A601CBA00E9B192 /* Products */, 154 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 155 | B1F90207DA62581A87597654 /* Pods */, 156 | ); 157 | indentWidth = 2; 158 | sourceTree = ""; 159 | tabWidth = 2; 160 | usesTabs = 0; 161 | }; 162 | 83CBBA001A601CBA00E9B192 /* Products */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | 13B07F961A680F5B00A75B9A /* ReactNativeTypescriptStylesExample.app */, 166 | 00E356EE1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.xctest */, 167 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOS.app */, 168 | 2D02E4901E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOSTests.xctest */, 169 | ); 170 | name = Products; 171 | sourceTree = ""; 172 | }; 173 | B1F90207DA62581A87597654 /* Pods */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | CB164BD3B498338B8D82B081 /* Pods-ReactNativeTypescriptStylesExample.debug.xcconfig */, 177 | 4C370C404C3A59527C2A7C41 /* Pods-ReactNativeTypescriptStylesExample.release.xcconfig */, 178 | 47D1BBC4DAC94B444774434A /* Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.debug.xcconfig */, 179 | 5422C97BC98964706A2B9EE1 /* Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.release.xcconfig */, 180 | ); 181 | name = Pods; 182 | path = Pods; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXGroup section */ 186 | 187 | /* Begin PBXNativeTarget section */ 188 | 00E356ED1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExampleTests" */; 191 | buildPhases = ( 192 | 141E32CB5CBF4526EE523CC4 /* [CP] Check Pods Manifest.lock */, 193 | 00E356EA1AD99517003FC87E /* Sources */, 194 | 00E356EB1AD99517003FC87E /* Frameworks */, 195 | 00E356EC1AD99517003FC87E /* Resources */, 196 | 89283D33439B5950E692D1C1 /* [CP] Copy Pods Resources */, 197 | 5AB7B9A3C0D11FDEF57BAAA0 /* [CP] Embed Pods Frameworks */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 203 | ); 204 | name = ReactNativeTypescriptStylesExampleTests; 205 | productName = ReactNativeTypescriptStylesExampleTests; 206 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.xctest */; 207 | productType = "com.apple.product-type.bundle.unit-test"; 208 | }; 209 | 13B07F861A680F5B00A75B9A /* ReactNativeTypescriptStylesExample */ = { 210 | isa = PBXNativeTarget; 211 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExample" */; 212 | buildPhases = ( 213 | E3F161159A7129491F83A09D /* [CP] Check Pods Manifest.lock */, 214 | FD10A7F022414F080027D42C /* Start Packager */, 215 | 13B07F871A680F5B00A75B9A /* Sources */, 216 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 217 | 13B07F8E1A680F5B00A75B9A /* Resources */, 218 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 219 | BDA347BA477691A57EA98446 /* [CP] Copy Pods Resources */, 220 | 93004A5C0AD9F7FEDC498377 /* [CP] Embed Pods Frameworks */, 221 | ); 222 | buildRules = ( 223 | ); 224 | dependencies = ( 225 | ); 226 | name = ReactNativeTypescriptStylesExample; 227 | productName = ReactNativeTypescriptStylesExample; 228 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeTypescriptStylesExample.app */; 229 | productType = "com.apple.product-type.application"; 230 | }; 231 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOS */ = { 232 | isa = PBXNativeTarget; 233 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExample-tvOS" */; 234 | buildPhases = ( 235 | FD10A7F122414F3F0027D42C /* Start Packager */, 236 | 2D02E4771E0B4A5D006451C7 /* Sources */, 237 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 238 | 2D02E4791E0B4A5D006451C7 /* Resources */, 239 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 240 | ); 241 | buildRules = ( 242 | ); 243 | dependencies = ( 244 | ); 245 | name = "ReactNativeTypescriptStylesExample-tvOS"; 246 | productName = "ReactNativeTypescriptStylesExample-tvOS"; 247 | productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOS.app */; 248 | productType = "com.apple.product-type.application"; 249 | }; 250 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOSTests */ = { 251 | isa = PBXNativeTarget; 252 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExample-tvOSTests" */; 253 | buildPhases = ( 254 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 255 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 256 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 257 | ); 258 | buildRules = ( 259 | ); 260 | dependencies = ( 261 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 262 | ); 263 | name = "ReactNativeTypescriptStylesExample-tvOSTests"; 264 | productName = "ReactNativeTypescriptStylesExample-tvOSTests"; 265 | productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOSTests.xctest */; 266 | productType = "com.apple.product-type.bundle.unit-test"; 267 | }; 268 | /* End PBXNativeTarget section */ 269 | 270 | /* Begin PBXProject section */ 271 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 272 | isa = PBXProject; 273 | attributes = { 274 | LastUpgradeCheck = 1130; 275 | TargetAttributes = { 276 | 00E356ED1AD99517003FC87E = { 277 | CreatedOnToolsVersion = 6.2; 278 | TestTargetID = 13B07F861A680F5B00A75B9A; 279 | }; 280 | 13B07F861A680F5B00A75B9A = { 281 | LastSwiftMigration = 1120; 282 | }; 283 | 2D02E47A1E0B4A5D006451C7 = { 284 | CreatedOnToolsVersion = 8.2.1; 285 | ProvisioningStyle = Automatic; 286 | }; 287 | 2D02E48F1E0B4A5D006451C7 = { 288 | CreatedOnToolsVersion = 8.2.1; 289 | ProvisioningStyle = Automatic; 290 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 291 | }; 292 | }; 293 | }; 294 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeTypescriptStylesExample" */; 295 | compatibilityVersion = "Xcode 3.2"; 296 | developmentRegion = en; 297 | hasScannedForEncodings = 0; 298 | knownRegions = ( 299 | en, 300 | Base, 301 | ); 302 | mainGroup = 83CBB9F61A601CBA00E9B192; 303 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 304 | projectDirPath = ""; 305 | projectRoot = ""; 306 | targets = ( 307 | 13B07F861A680F5B00A75B9A /* ReactNativeTypescriptStylesExample */, 308 | 00E356ED1AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests */, 309 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOS */, 310 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOSTests */, 311 | ); 312 | }; 313 | /* End PBXProject section */ 314 | 315 | /* Begin PBXResourcesBuildPhase section */ 316 | 00E356EC1AD99517003FC87E /* Resources */ = { 317 | isa = PBXResourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 324 | isa = PBXResourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 328 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | }; 332 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 333 | isa = PBXResourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | }; 340 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 341 | isa = PBXResourcesBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | /* End PBXResourcesBuildPhase section */ 348 | 349 | /* Begin PBXShellScriptBuildPhase section */ 350 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 351 | isa = PBXShellScriptBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | ); 355 | inputPaths = ( 356 | ); 357 | name = "Bundle React Native code and images"; 358 | outputPaths = ( 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | shellPath = /bin/sh; 362 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 363 | }; 364 | 141E32CB5CBF4526EE523CC4 /* [CP] Check Pods Manifest.lock */ = { 365 | isa = PBXShellScriptBuildPhase; 366 | buildActionMask = 2147483647; 367 | files = ( 368 | ); 369 | inputFileListPaths = ( 370 | ); 371 | inputPaths = ( 372 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 373 | "${PODS_ROOT}/Manifest.lock", 374 | ); 375 | name = "[CP] Check Pods Manifest.lock"; 376 | outputFileListPaths = ( 377 | ); 378 | outputPaths = ( 379 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests-checkManifestLockResult.txt", 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | shellPath = /bin/sh; 383 | 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"; 384 | showEnvVarsInLog = 0; 385 | }; 386 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 387 | isa = PBXShellScriptBuildPhase; 388 | buildActionMask = 2147483647; 389 | files = ( 390 | ); 391 | inputPaths = ( 392 | ); 393 | name = "Bundle React Native Code And Images"; 394 | outputPaths = ( 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | shellPath = /bin/sh; 398 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 399 | }; 400 | 5AB7B9A3C0D11FDEF57BAAA0 /* [CP] Embed Pods Frameworks */ = { 401 | isa = PBXShellScriptBuildPhase; 402 | buildActionMask = 2147483647; 403 | files = ( 404 | ); 405 | inputPaths = ( 406 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests-frameworks.sh", 407 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL", 408 | ); 409 | name = "[CP] Embed Pods Frameworks"; 410 | outputPaths = ( 411 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | shellPath = /bin/sh; 415 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests-frameworks.sh\"\n"; 416 | showEnvVarsInLog = 0; 417 | }; 418 | 89283D33439B5950E692D1C1 /* [CP] Copy Pods Resources */ = { 419 | isa = PBXShellScriptBuildPhase; 420 | buildActionMask = 2147483647; 421 | files = ( 422 | ); 423 | inputPaths = ( 424 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests-resources.sh", 425 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 426 | ); 427 | name = "[CP] Copy Pods Resources"; 428 | outputPaths = ( 429 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 430 | ); 431 | runOnlyForDeploymentPostprocessing = 0; 432 | shellPath = /bin/sh; 433 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests/Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests-resources.sh\"\n"; 434 | showEnvVarsInLog = 0; 435 | }; 436 | 93004A5C0AD9F7FEDC498377 /* [CP] Embed Pods Frameworks */ = { 437 | isa = PBXShellScriptBuildPhase; 438 | buildActionMask = 2147483647; 439 | files = ( 440 | ); 441 | inputPaths = ( 442 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample/Pods-ReactNativeTypescriptStylesExample-frameworks.sh", 443 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL", 444 | ); 445 | name = "[CP] Embed Pods Frameworks"; 446 | outputPaths = ( 447 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", 448 | ); 449 | runOnlyForDeploymentPostprocessing = 0; 450 | shellPath = /bin/sh; 451 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample/Pods-ReactNativeTypescriptStylesExample-frameworks.sh\"\n"; 452 | showEnvVarsInLog = 0; 453 | }; 454 | BDA347BA477691A57EA98446 /* [CP] Copy Pods Resources */ = { 455 | isa = PBXShellScriptBuildPhase; 456 | buildActionMask = 2147483647; 457 | files = ( 458 | ); 459 | inputPaths = ( 460 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample/Pods-ReactNativeTypescriptStylesExample-resources.sh", 461 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 462 | ); 463 | name = "[CP] Copy Pods Resources"; 464 | outputPaths = ( 465 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 466 | ); 467 | runOnlyForDeploymentPostprocessing = 0; 468 | shellPath = /bin/sh; 469 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeTypescriptStylesExample/Pods-ReactNativeTypescriptStylesExample-resources.sh\"\n"; 470 | showEnvVarsInLog = 0; 471 | }; 472 | E3F161159A7129491F83A09D /* [CP] Check Pods Manifest.lock */ = { 473 | isa = PBXShellScriptBuildPhase; 474 | buildActionMask = 2147483647; 475 | files = ( 476 | ); 477 | inputFileListPaths = ( 478 | ); 479 | inputPaths = ( 480 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 481 | "${PODS_ROOT}/Manifest.lock", 482 | ); 483 | name = "[CP] Check Pods Manifest.lock"; 484 | outputFileListPaths = ( 485 | ); 486 | outputPaths = ( 487 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeTypescriptStylesExample-checkManifestLockResult.txt", 488 | ); 489 | runOnlyForDeploymentPostprocessing = 0; 490 | shellPath = /bin/sh; 491 | 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"; 492 | showEnvVarsInLog = 0; 493 | }; 494 | FD10A7F022414F080027D42C /* Start Packager */ = { 495 | isa = PBXShellScriptBuildPhase; 496 | buildActionMask = 2147483647; 497 | files = ( 498 | ); 499 | inputFileListPaths = ( 500 | ); 501 | inputPaths = ( 502 | ); 503 | name = "Start Packager"; 504 | outputFileListPaths = ( 505 | ); 506 | outputPaths = ( 507 | ); 508 | runOnlyForDeploymentPostprocessing = 0; 509 | shellPath = /bin/sh; 510 | 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"; 511 | showEnvVarsInLog = 0; 512 | }; 513 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 514 | isa = PBXShellScriptBuildPhase; 515 | buildActionMask = 2147483647; 516 | files = ( 517 | ); 518 | inputFileListPaths = ( 519 | ); 520 | inputPaths = ( 521 | ); 522 | name = "Start Packager"; 523 | outputFileListPaths = ( 524 | ); 525 | outputPaths = ( 526 | ); 527 | runOnlyForDeploymentPostprocessing = 0; 528 | shellPath = /bin/sh; 529 | 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"; 530 | showEnvVarsInLog = 0; 531 | }; 532 | /* End PBXShellScriptBuildPhase section */ 533 | 534 | /* Begin PBXSourcesBuildPhase section */ 535 | 00E356EA1AD99517003FC87E /* Sources */ = { 536 | isa = PBXSourcesBuildPhase; 537 | buildActionMask = 2147483647; 538 | files = ( 539 | 00E356F31AD99517003FC87E /* ReactNativeTypescriptStylesExampleTests.m in Sources */, 540 | ); 541 | runOnlyForDeploymentPostprocessing = 0; 542 | }; 543 | 13B07F871A680F5B00A75B9A /* Sources */ = { 544 | isa = PBXSourcesBuildPhase; 545 | buildActionMask = 2147483647; 546 | files = ( 547 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 548 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 549 | ); 550 | runOnlyForDeploymentPostprocessing = 0; 551 | }; 552 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 553 | isa = PBXSourcesBuildPhase; 554 | buildActionMask = 2147483647; 555 | files = ( 556 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 557 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 558 | ); 559 | runOnlyForDeploymentPostprocessing = 0; 560 | }; 561 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 562 | isa = PBXSourcesBuildPhase; 563 | buildActionMask = 2147483647; 564 | files = ( 565 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeTypescriptStylesExampleTests.m in Sources */, 566 | ); 567 | runOnlyForDeploymentPostprocessing = 0; 568 | }; 569 | /* End PBXSourcesBuildPhase section */ 570 | 571 | /* Begin PBXTargetDependency section */ 572 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 573 | isa = PBXTargetDependency; 574 | target = 13B07F861A680F5B00A75B9A /* ReactNativeTypescriptStylesExample */; 575 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 576 | }; 577 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 578 | isa = PBXTargetDependency; 579 | target = 2D02E47A1E0B4A5D006451C7 /* ReactNativeTypescriptStylesExample-tvOS */; 580 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 581 | }; 582 | /* End PBXTargetDependency section */ 583 | 584 | /* Begin XCBuildConfiguration section */ 585 | 00E356F61AD99517003FC87E /* Debug */ = { 586 | isa = XCBuildConfiguration; 587 | baseConfigurationReference = 47D1BBC4DAC94B444774434A /* Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.debug.xcconfig */; 588 | buildSettings = { 589 | BUNDLE_LOADER = "$(TEST_HOST)"; 590 | GCC_PREPROCESSOR_DEFINITIONS = ( 591 | "DEBUG=1", 592 | "$(inherited)", 593 | ); 594 | INFOPLIST_FILE = ReactNativeTypescriptStylesExampleTests/Info.plist; 595 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 596 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 597 | OTHER_LDFLAGS = ( 598 | "-ObjC", 599 | "-lc++", 600 | "$(inherited)", 601 | ); 602 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 603 | PRODUCT_NAME = "$(TARGET_NAME)"; 604 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeTypescriptStylesExample.app/ReactNativeTypescriptStylesExample"; 605 | }; 606 | name = Debug; 607 | }; 608 | 00E356F71AD99517003FC87E /* Release */ = { 609 | isa = XCBuildConfiguration; 610 | baseConfigurationReference = 5422C97BC98964706A2B9EE1 /* Pods-ReactNativeTypescriptStylesExample-ReactNativeTypescriptStylesExampleTests.release.xcconfig */; 611 | buildSettings = { 612 | BUNDLE_LOADER = "$(TEST_HOST)"; 613 | COPY_PHASE_STRIP = NO; 614 | INFOPLIST_FILE = ReactNativeTypescriptStylesExampleTests/Info.plist; 615 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 616 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 617 | OTHER_LDFLAGS = ( 618 | "-ObjC", 619 | "-lc++", 620 | "$(inherited)", 621 | ); 622 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 623 | PRODUCT_NAME = "$(TARGET_NAME)"; 624 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeTypescriptStylesExample.app/ReactNativeTypescriptStylesExample"; 625 | }; 626 | name = Release; 627 | }; 628 | 13B07F941A680F5B00A75B9A /* Debug */ = { 629 | isa = XCBuildConfiguration; 630 | baseConfigurationReference = CB164BD3B498338B8D82B081 /* Pods-ReactNativeTypescriptStylesExample.debug.xcconfig */; 631 | buildSettings = { 632 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 633 | CLANG_ENABLE_MODULES = YES; 634 | CURRENT_PROJECT_VERSION = 1; 635 | ENABLE_BITCODE = NO; 636 | INFOPLIST_FILE = ReactNativeTypescriptStylesExample/Info.plist; 637 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 638 | OTHER_LDFLAGS = ( 639 | "$(inherited)", 640 | "-ObjC", 641 | "-lc++", 642 | ); 643 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 644 | PRODUCT_NAME = ReactNativeTypescriptStylesExample; 645 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 646 | SWIFT_VERSION = 5.0; 647 | VERSIONING_SYSTEM = "apple-generic"; 648 | }; 649 | name = Debug; 650 | }; 651 | 13B07F951A680F5B00A75B9A /* Release */ = { 652 | isa = XCBuildConfiguration; 653 | baseConfigurationReference = 4C370C404C3A59527C2A7C41 /* Pods-ReactNativeTypescriptStylesExample.release.xcconfig */; 654 | buildSettings = { 655 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 656 | CLANG_ENABLE_MODULES = YES; 657 | CURRENT_PROJECT_VERSION = 1; 658 | INFOPLIST_FILE = ReactNativeTypescriptStylesExample/Info.plist; 659 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 660 | OTHER_LDFLAGS = ( 661 | "$(inherited)", 662 | "-ObjC", 663 | "-lc++", 664 | ); 665 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 666 | PRODUCT_NAME = ReactNativeTypescriptStylesExample; 667 | SWIFT_VERSION = 5.0; 668 | VERSIONING_SYSTEM = "apple-generic"; 669 | }; 670 | name = Release; 671 | }; 672 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 673 | isa = XCBuildConfiguration; 674 | buildSettings = { 675 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 676 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 677 | CLANG_ANALYZER_NONNULL = YES; 678 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 679 | CLANG_WARN_INFINITE_RECURSION = YES; 680 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 681 | DEBUG_INFORMATION_FORMAT = dwarf; 682 | ENABLE_TESTABILITY = YES; 683 | GCC_NO_COMMON_BLOCKS = YES; 684 | INFOPLIST_FILE = "ReactNativeTypescriptStylesExample-tvOS/Info.plist"; 685 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 686 | OTHER_LDFLAGS = ( 687 | "$(inherited)", 688 | "-ObjC", 689 | "-lc++", 690 | ); 691 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeTypescriptStylesExample-tvOS"; 692 | PRODUCT_NAME = "$(TARGET_NAME)"; 693 | SDKROOT = appletvos; 694 | TARGETED_DEVICE_FAMILY = 3; 695 | TVOS_DEPLOYMENT_TARGET = 10.0; 696 | }; 697 | name = Debug; 698 | }; 699 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 700 | isa = XCBuildConfiguration; 701 | buildSettings = { 702 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 703 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 704 | CLANG_ANALYZER_NONNULL = YES; 705 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 706 | CLANG_WARN_INFINITE_RECURSION = YES; 707 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 708 | COPY_PHASE_STRIP = NO; 709 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 710 | GCC_NO_COMMON_BLOCKS = YES; 711 | INFOPLIST_FILE = "ReactNativeTypescriptStylesExample-tvOS/Info.plist"; 712 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 713 | OTHER_LDFLAGS = ( 714 | "$(inherited)", 715 | "-ObjC", 716 | "-lc++", 717 | ); 718 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeTypescriptStylesExample-tvOS"; 719 | PRODUCT_NAME = "$(TARGET_NAME)"; 720 | SDKROOT = appletvos; 721 | TARGETED_DEVICE_FAMILY = 3; 722 | TVOS_DEPLOYMENT_TARGET = 10.0; 723 | }; 724 | name = Release; 725 | }; 726 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 727 | isa = XCBuildConfiguration; 728 | buildSettings = { 729 | BUNDLE_LOADER = "$(TEST_HOST)"; 730 | CLANG_ANALYZER_NONNULL = YES; 731 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 732 | CLANG_WARN_INFINITE_RECURSION = YES; 733 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 734 | DEBUG_INFORMATION_FORMAT = dwarf; 735 | ENABLE_TESTABILITY = YES; 736 | GCC_NO_COMMON_BLOCKS = YES; 737 | INFOPLIST_FILE = "ReactNativeTypescriptStylesExample-tvOSTests/Info.plist"; 738 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 739 | OTHER_LDFLAGS = ( 740 | "$(inherited)", 741 | "-ObjC", 742 | "-lc++", 743 | ); 744 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeTypescriptStylesExample-tvOSTests"; 745 | PRODUCT_NAME = "$(TARGET_NAME)"; 746 | SDKROOT = appletvos; 747 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeTypescriptStylesExample-tvOS.app/ReactNativeTypescriptStylesExample-tvOS"; 748 | TVOS_DEPLOYMENT_TARGET = 10.1; 749 | }; 750 | name = Debug; 751 | }; 752 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 753 | isa = XCBuildConfiguration; 754 | buildSettings = { 755 | BUNDLE_LOADER = "$(TEST_HOST)"; 756 | CLANG_ANALYZER_NONNULL = YES; 757 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 758 | CLANG_WARN_INFINITE_RECURSION = YES; 759 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 760 | COPY_PHASE_STRIP = NO; 761 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 762 | GCC_NO_COMMON_BLOCKS = YES; 763 | INFOPLIST_FILE = "ReactNativeTypescriptStylesExample-tvOSTests/Info.plist"; 764 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 765 | OTHER_LDFLAGS = ( 766 | "$(inherited)", 767 | "-ObjC", 768 | "-lc++", 769 | ); 770 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.ReactNativeTypescriptStylesExample-tvOSTests"; 771 | PRODUCT_NAME = "$(TARGET_NAME)"; 772 | SDKROOT = appletvos; 773 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeTypescriptStylesExample-tvOS.app/ReactNativeTypescriptStylesExample-tvOS"; 774 | TVOS_DEPLOYMENT_TARGET = 10.1; 775 | }; 776 | name = Release; 777 | }; 778 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 779 | isa = XCBuildConfiguration; 780 | buildSettings = { 781 | ALWAYS_SEARCH_USER_PATHS = NO; 782 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 783 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 784 | CLANG_CXX_LIBRARY = "libc++"; 785 | CLANG_ENABLE_MODULES = YES; 786 | CLANG_ENABLE_OBJC_ARC = YES; 787 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 788 | CLANG_WARN_BOOL_CONVERSION = YES; 789 | CLANG_WARN_COMMA = YES; 790 | CLANG_WARN_CONSTANT_CONVERSION = YES; 791 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 792 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 793 | CLANG_WARN_EMPTY_BODY = YES; 794 | CLANG_WARN_ENUM_CONVERSION = YES; 795 | CLANG_WARN_INFINITE_RECURSION = YES; 796 | CLANG_WARN_INT_CONVERSION = YES; 797 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 798 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 799 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 800 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 801 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 802 | CLANG_WARN_STRICT_PROTOTYPES = YES; 803 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 804 | CLANG_WARN_UNREACHABLE_CODE = YES; 805 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 806 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 807 | COPY_PHASE_STRIP = NO; 808 | ENABLE_STRICT_OBJC_MSGSEND = YES; 809 | ENABLE_TESTABILITY = YES; 810 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 811 | GCC_C_LANGUAGE_STANDARD = gnu99; 812 | GCC_DYNAMIC_NO_PIC = NO; 813 | GCC_NO_COMMON_BLOCKS = YES; 814 | GCC_OPTIMIZATION_LEVEL = 0; 815 | GCC_PREPROCESSOR_DEFINITIONS = ( 816 | "DEBUG=1", 817 | "$(inherited)", 818 | ); 819 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 820 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 821 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 822 | GCC_WARN_UNDECLARED_SELECTOR = YES; 823 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 824 | GCC_WARN_UNUSED_FUNCTION = YES; 825 | GCC_WARN_UNUSED_VARIABLE = YES; 826 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 827 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 828 | LIBRARY_SEARCH_PATHS = ( 829 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 830 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 831 | "\"$(inherited)\"", 832 | ); 833 | MTL_ENABLE_DEBUG_INFO = YES; 834 | ONLY_ACTIVE_ARCH = YES; 835 | SDKROOT = iphoneos; 836 | }; 837 | name = Debug; 838 | }; 839 | 83CBBA211A601CBA00E9B192 /* Release */ = { 840 | isa = XCBuildConfiguration; 841 | buildSettings = { 842 | ALWAYS_SEARCH_USER_PATHS = NO; 843 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 844 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 845 | CLANG_CXX_LIBRARY = "libc++"; 846 | CLANG_ENABLE_MODULES = YES; 847 | CLANG_ENABLE_OBJC_ARC = YES; 848 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 849 | CLANG_WARN_BOOL_CONVERSION = YES; 850 | CLANG_WARN_COMMA = YES; 851 | CLANG_WARN_CONSTANT_CONVERSION = YES; 852 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 853 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 854 | CLANG_WARN_EMPTY_BODY = YES; 855 | CLANG_WARN_ENUM_CONVERSION = YES; 856 | CLANG_WARN_INFINITE_RECURSION = YES; 857 | CLANG_WARN_INT_CONVERSION = YES; 858 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 859 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 860 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 861 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 862 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 863 | CLANG_WARN_STRICT_PROTOTYPES = YES; 864 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 865 | CLANG_WARN_UNREACHABLE_CODE = YES; 866 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 867 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 868 | COPY_PHASE_STRIP = YES; 869 | ENABLE_NS_ASSERTIONS = NO; 870 | ENABLE_STRICT_OBJC_MSGSEND = YES; 871 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 872 | GCC_C_LANGUAGE_STANDARD = gnu99; 873 | GCC_NO_COMMON_BLOCKS = YES; 874 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 875 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 876 | GCC_WARN_UNDECLARED_SELECTOR = YES; 877 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 878 | GCC_WARN_UNUSED_FUNCTION = YES; 879 | GCC_WARN_UNUSED_VARIABLE = YES; 880 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 881 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 882 | LIBRARY_SEARCH_PATHS = ( 883 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 884 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 885 | "\"$(inherited)\"", 886 | ); 887 | MTL_ENABLE_DEBUG_INFO = NO; 888 | SDKROOT = iphoneos; 889 | VALIDATE_PRODUCT = YES; 890 | }; 891 | name = Release; 892 | }; 893 | /* End XCBuildConfiguration section */ 894 | 895 | /* Begin XCConfigurationList section */ 896 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExampleTests" */ = { 897 | isa = XCConfigurationList; 898 | buildConfigurations = ( 899 | 00E356F61AD99517003FC87E /* Debug */, 900 | 00E356F71AD99517003FC87E /* Release */, 901 | ); 902 | defaultConfigurationIsVisible = 0; 903 | defaultConfigurationName = Release; 904 | }; 905 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExample" */ = { 906 | isa = XCConfigurationList; 907 | buildConfigurations = ( 908 | 13B07F941A680F5B00A75B9A /* Debug */, 909 | 13B07F951A680F5B00A75B9A /* Release */, 910 | ); 911 | defaultConfigurationIsVisible = 0; 912 | defaultConfigurationName = Release; 913 | }; 914 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExample-tvOS" */ = { 915 | isa = XCConfigurationList; 916 | buildConfigurations = ( 917 | 2D02E4971E0B4A5E006451C7 /* Debug */, 918 | 2D02E4981E0B4A5E006451C7 /* Release */, 919 | ); 920 | defaultConfigurationIsVisible = 0; 921 | defaultConfigurationName = Release; 922 | }; 923 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeTypescriptStylesExample-tvOSTests" */ = { 924 | isa = XCConfigurationList; 925 | buildConfigurations = ( 926 | 2D02E4991E0B4A5E006451C7 /* Debug */, 927 | 2D02E49A1E0B4A5E006451C7 /* Release */, 928 | ); 929 | defaultConfigurationIsVisible = 0; 930 | defaultConfigurationName = Release; 931 | }; 932 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeTypescriptStylesExample" */ = { 933 | isa = XCConfigurationList; 934 | buildConfigurations = ( 935 | 83CBBA201A601CBA00E9B192 /* Debug */, 936 | 83CBBA211A601CBA00E9B192 /* Release */, 937 | ); 938 | defaultConfigurationIsVisible = 0; 939 | defaultConfigurationName = Release; 940 | }; 941 | /* End XCConfigurationList section */ 942 | }; 943 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 944 | } 945 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample.xcodeproj/xcshareddata/xcschemes/ReactNativeTypescriptStylesExample.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/ReactNativeTypescriptStylesExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"ReactNativeTypescriptStylesExample" 37 | initialProperties:nil]; 38 | 39 | if (@available(iOS 13.0, *)) { 40 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 41 | } else { 42 | rootView.backgroundColor = [UIColor whiteColor]; 43 | } 44 | 45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 46 | UIViewController *rootViewController = [UIViewController new]; 47 | rootViewController.view = rootView; 48 | self.window.rootViewController = rootViewController; 49 | [self.window makeKeyAndVisible]; 50 | return YES; 51 | } 52 | 53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 54 | { 55 | #if DEBUG 56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 57 | #else 58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 59 | #endif 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativeTypescriptStylesExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/ReactNativeTypescriptStylesExample/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/ReactNativeTypescriptStylesExampleTests/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/ReactNativeTypescriptStylesExampleTests/ReactNativeTypescriptStylesExampleTests.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 ReactNativeTypescriptStylesExampleTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation ReactNativeTypescriptStylesExampleTests 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 | module.exports = { 2 | transformer: { 3 | getTransformOptions: async () => ({ 4 | transform: { 5 | experimentalImportSupport: false, 6 | inlineRequires: true, 7 | }, 8 | }), 9 | }, 10 | } 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeTypescriptStylesExample", 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 | "tsc": "tsc --noEmit", 10 | "prettier": "prettier \"src/**/*.+(js|jsx|ts|tsx|json)\"", 11 | "format": "yarn prettier --write", 12 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx", 13 | "validate": "yarn prettier --list-different && yarn tsc && yarn lint" 14 | }, 15 | "dependencies": { 16 | "react": "17.0.1", 17 | "react-native": "0.64.0", 18 | "react-native-static-safe-area-insets": "^2.1.1", 19 | "react-native-typography": "^1.4.1" 20 | }, 21 | "devDependencies": { 22 | "@babel/core": "^7.8.4", 23 | "@babel/runtime": "^7.8.4", 24 | "@react-native-community/eslint-config": "^1.1.0", 25 | "@types/react-native": "^0.63.2", 26 | "babel-jest": "^25.1.0", 27 | "eslint": "^6.5.1", 28 | "metro-react-native-babel-preset": "^0.59.0", 29 | "typescript": "^3.8.3" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/BaseExample.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from "react" 2 | import { Pressable, StyleSheet, View, Text } from "react-native" 3 | 4 | import { Sizing, Typography, Outlines, Colors, Buttons } from "./styles" 5 | 6 | const BaseExample: FunctionComponent = () => { 7 | return ( 8 | 9 | 10 | 11 | React Native Typescript Styles Example 12 | 13 | 14 | Kick-start your React Native Typescript project with simple, organized 15 | styles. 16 | 17 | 18 | 19 | 20 | React Native has no framework for structuring styles, so we created 21 | this set of style modules for new React Native projects. While these 22 | styles are not visually opinionated, the organization of the style 23 | code is carefully considered. 24 | 25 | 26 | The styles are separated by category into modules, including Colors, 27 | Sizing, and Buttons. Each module contains a set of objects which 28 | provide styles for a specific kind of thing within the module 29 | category. For example, the Colors module provides objects for primary 30 | and neutral colors. Finally, each of these objects itself provides 31 | key/value pairs for specific styles: in this case, particular primary 32 | and neutral colors. 33 | 34 | 35 | 36 | Buttons are Useful 37 | 38 | 39 | 40 | Not all buttons need a background 41 | 42 | 43 | 44 | ) 45 | } 46 | 47 | const style = StyleSheet.create({ 48 | headerContainer: { 49 | marginBottom: Sizing.x20, 50 | paddingBottom: Sizing.x20, 51 | borderBottomWidth: Outlines.borderWidth.hairline, 52 | borderColor: Colors.neutral.s200, 53 | }, 54 | headerText: { 55 | ...Typography.header.x60, 56 | marginBottom: Sizing.x20, 57 | }, 58 | subheaderText: { 59 | ...Typography.subheader.x30, 60 | }, 61 | bodyContainer: { 62 | marginBottom: Sizing.x20, 63 | }, 64 | bodyText: { 65 | ...Typography.body.x20, 66 | marginBottom: Sizing.x20, 67 | }, 68 | button: { 69 | ...Buttons.bar.primary, 70 | marginBottom: Sizing.x10, 71 | }, 72 | buttonText: { 73 | ...Buttons.barText.primary, 74 | }, 75 | secondaryButton: { 76 | ...Buttons.bar.secondary, 77 | marginBottom: Sizing.x10, 78 | }, 79 | secondaryButtonText: { 80 | ...Buttons.barText.secondary, 81 | }, 82 | }) 83 | export default BaseExample 84 | -------------------------------------------------------------------------------- /src/ColorExample.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from "react" 2 | import { StyleSheet, View, Text } from "react-native" 3 | 4 | import { Sizing, Typography, Outlines, Colors } from "./styles" 5 | 6 | const ColorExample: FunctionComponent = () => { 7 | return ( 8 | 9 | 10 | Colors 11 | 12 | 13 | 14 | 15 | Neutral 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | Primary 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Secondary 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Danger 53 | 54 | 55 | 56 | 57 | 58 | 59 | Success 60 | 61 | 62 | 63 | 64 | 65 | 66 | Warning 67 | 68 | 69 | 70 | 71 | 72 | 73 | Transparent 74 | 75 | 76 | 80 | 81 | 82 | 83 | ) 84 | } 85 | 86 | interface ColorListItemProps { 87 | color: string 88 | label: string 89 | } 90 | 91 | const ColorListItem: FunctionComponent = ({ 92 | color, 93 | label, 94 | }) => { 95 | return ( 96 | 97 | 98 | 99 | {label} 100 | 101 | 102 | ) 103 | } 104 | 105 | const style = StyleSheet.create({ 106 | container: { 107 | flex: 1, 108 | }, 109 | headerContainer: { 110 | marginBottom: Sizing.x20, 111 | }, 112 | headerText: { 113 | ...Typography.header.x50, 114 | }, 115 | sectionContainer: { 116 | marginBottom: Sizing.x30, 117 | }, 118 | subHeaderContainer: { 119 | marginBottom: Sizing.x20, 120 | }, 121 | subHeaderText: { 122 | ...Typography.subheader.x40, 123 | }, 124 | colorContainer: { 125 | marginBottom: Sizing.x5, 126 | flexDirection: "row", 127 | alignItems: "center", 128 | }, 129 | colorTextContainer: { 130 | paddingLeft: Sizing.x30, 131 | }, 132 | colorBlock: { 133 | width: Sizing.x60, 134 | height: Sizing.x60, 135 | backgroundColor: Colors.neutral.s100, 136 | borderRadius: Outlines.borderRadius.base, 137 | }, 138 | colorText: { 139 | ...Typography.body.x10, 140 | }, 141 | }) 142 | 143 | export default ColorExample 144 | -------------------------------------------------------------------------------- /src/TypographyExample.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from "react" 2 | import { StyleSheet, View, Text } from "react-native" 3 | 4 | import { Sizing, Typography } from "./styles" 5 | 6 | const TypographyExample: FunctionComponent = () => { 7 | return ( 8 | 9 | 10 | Typography 11 | 12 | 13 | 14 | Header x70 15 | Header x60 16 | Header x50 17 | Header x40 18 | Header x30 19 | Header x20 20 | Header x10 21 | 22 | 23 | 24 | Subheader x50 25 | Subheader x40 26 | Subheader x30 27 | Subheader x20 28 | Subheader x10 29 | 30 | 31 | 32 | Body x50 33 | Body x40 34 | Body x30 35 | Body x20 36 | Body x10 37 | 38 | 39 | ) 40 | } 41 | 42 | const style = StyleSheet.create({ 43 | container: { 44 | flex: 1, 45 | }, 46 | headerContainer: { 47 | marginBottom: Sizing.x20, 48 | }, 49 | headerText: { 50 | ...Typography.header.x50, 51 | }, 52 | sectionContainer: { 53 | marginBottom: Sizing.x60, 54 | }, 55 | x70header: { 56 | ...Typography.header.x70, 57 | marginBottom: Sizing.x10, 58 | }, 59 | x60header: { 60 | ...Typography.header.x60, 61 | marginBottom: Sizing.x10, 62 | }, 63 | x50header: { 64 | ...Typography.header.x50, 65 | marginBottom: Sizing.x10, 66 | }, 67 | x40header: { 68 | ...Typography.header.x40, 69 | marginBottom: Sizing.x10, 70 | }, 71 | x30header: { 72 | ...Typography.header.x30, 73 | marginBottom: Sizing.x10, 74 | }, 75 | x20header: { 76 | ...Typography.header.x20, 77 | marginBottom: Sizing.x10, 78 | }, 79 | x10header: { 80 | ...Typography.header.x10, 81 | marginBottom: Sizing.x10, 82 | }, 83 | x50subheader: { 84 | ...Typography.subheader.x50, 85 | marginBottom: Sizing.x10, 86 | }, 87 | x40subheader: { 88 | ...Typography.subheader.x40, 89 | marginBottom: Sizing.x10, 90 | }, 91 | x30subheader: { 92 | ...Typography.subheader.x30, 93 | marginBottom: Sizing.x10, 94 | }, 95 | x20subheader: { 96 | ...Typography.subheader.x20, 97 | marginBottom: Sizing.x10, 98 | }, 99 | x10subheader: { 100 | ...Typography.subheader.x10, 101 | marginBottom: Sizing.x10, 102 | }, 103 | x50body: { 104 | ...Typography.body.x50, 105 | marginBottom: Sizing.x10, 106 | }, 107 | x40body: { 108 | ...Typography.body.x40, 109 | marginBottom: Sizing.x10, 110 | }, 111 | x30body: { 112 | ...Typography.body.x30, 113 | marginBottom: Sizing.x10, 114 | }, 115 | x20body: { 116 | ...Typography.body.x20, 117 | marginBottom: Sizing.x10, 118 | }, 119 | x10body: { 120 | ...Typography.body.x10, 121 | marginBottom: Sizing.x10, 122 | }, 123 | }) 124 | 125 | export default TypographyExample 126 | -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/README.md: -------------------------------------------------------------------------------- 1 | # Logo 2 | 3 | Three directions for logos: horizontal, vertical, and circular. The circular logo lacks our name. 4 | 5 | ### Horizontal 6 | 7 | ![Default Horizontal thoughtbot logo](horizontal/png/horizontal_default.png) 8 | 9 | ##### Alternate 10 | 11 | * [PNG](horizontal/png/horizontal_alternative.png) 12 | * [SVG](horizontal/svg/horizontal_alternative.svg) 13 | * [EPS](horizontal/eps/horizontal_alternative.eps) 14 | 15 | ### Circular 16 | 17 | ![Default Circular thoughtbot logo](circle/png/robot_only_default.png) 18 | 19 | ##### Alternate 20 | 21 | * [PNG](circle/png/robot_only_alternative.png) 22 | * [SVG](circle/svg/robot_only_alternative.svg) 23 | * [EPS](circle/eps/robot_only_alternative.eps) 24 | 25 | ### Vertical 26 | 27 | ![Default Vertical thoughtbot logo](vertical/png/vertical_default.png) 28 | 29 | ##### Alternate 30 | 31 | * [PNG](vertical/png/vertical_alternative.png) 32 | * [SVG](vertical/svg/vertical_alternative.svg) 33 | * [EPS](vertical/eps/vertical_alternative.eps) 34 | 35 | ## Guidelines 36 | 37 | * Don't use the robot outside of the circle 38 | * Prefer the default horizontal logo for all marketing uses 39 | * If at all possible, use the default color versions of the logo. Only use the 40 | alternate (white) versions when the default versions have contrast problems with 41 | the background on which they are being used. 42 | * Use the circular logo, without the company name, on internal branding, or only 43 | in close proximity with our name or other identifiable branding 44 | * Avoid bisecting the circle of the logo, but if you need to, it's OK. It is 45 | best to do 3/4 of the logo visible, rather than to bisect the circle in half. 46 | -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/circle/png/robot_only_alternative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/src/assets/thoughtbot-assets-pack/circle/png/robot_only_alternative.png -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/circle/png/robot_only_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/src/assets/thoughtbot-assets-pack/circle/png/robot_only_default.png -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/horizontal/png/horizontal_alternative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/src/assets/thoughtbot-assets-pack/horizontal/png/horizontal_alternative.png -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/horizontal/png/horizontal_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/src/assets/thoughtbot-assets-pack/horizontal/png/horizontal_default.png -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/vertical/png/vertical_alternative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/src/assets/thoughtbot-assets-pack/vertical/png/vertical_alternative.png -------------------------------------------------------------------------------- /src/assets/thoughtbot-assets-pack/vertical/png/vertical_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thoughtbot/react-native-typescript-styles-example/70483cdea912ef18e80f9c26880d5e10bec3bd66/src/assets/thoughtbot-assets-pack/vertical/png/vertical_default.png -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from "react" 2 | import { ScrollView, StyleSheet, View } from "react-native" 3 | import StaticSafeAreaInsets from "react-native-static-safe-area-insets" 4 | 5 | import BaseExample from "./BaseExample" 6 | import ColorExample from "./ColorExample" 7 | import TypographyExample from "./TypographyExample" 8 | 9 | import { Sizing, Outlines, Colors } from "./styles" 10 | 11 | const App: FunctionComponent = () => { 12 | return ( 13 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | ) 30 | } 31 | 32 | const topInset = StaticSafeAreaInsets.safeAreaInsetsTop 33 | 34 | const style = StyleSheet.create({ 35 | container: { 36 | marginTop: topInset, 37 | backgroundColor: Colors.neutral.white, 38 | }, 39 | contentContainer: { 40 | padding: Sizing.x20, 41 | }, 42 | sectionContainer: { 43 | marginBottom: Sizing.x20, 44 | borderBottomWidth: Outlines.borderWidth.thin, 45 | borderColor: Colors.neutral.s100, 46 | }, 47 | }) 48 | 49 | export default App 50 | -------------------------------------------------------------------------------- /src/styles/buttons.ts: -------------------------------------------------------------------------------- 1 | import { 2 | TextStyle, 3 | ViewStyle, 4 | PressableStateCallbackType, 5 | Platform, 6 | } from "react-native" 7 | 8 | import * as Colors from "./colors" 9 | import * as Outlines from "./outlines" 10 | import * as Sizing from "./sizing" 11 | import * as Typography from "./typography" 12 | 13 | type Bar = "primary" | "secondary" 14 | export const bar: Record = { 15 | primary: { 16 | alignItems: "center", 17 | justifyContent: "center", 18 | padding: Sizing.layout.x30, 19 | borderRadius: Outlines.borderRadius.base, 20 | backgroundColor: Colors.primary.brand, 21 | }, 22 | secondary: { 23 | alignItems: "center", 24 | alignSelf: "center", 25 | justifyContent: "center", 26 | padding: Sizing.layout.x10, 27 | borderRadius: Outlines.borderRadius.base, 28 | }, 29 | } 30 | 31 | type BarText = "primary" | "secondary" 32 | export const barText: Record = { 33 | primary: { 34 | ...Typography.fontSize.x30, 35 | ...Typography.fontWeight.semibold, 36 | color: Colors.neutral.white, 37 | }, 38 | secondary: { 39 | ...Typography.fontSize.x10, 40 | ...Typography.fontWeight.regular, 41 | color: Colors.neutral.s500, 42 | }, 43 | } 44 | 45 | type Circular = "primary" 46 | export const circular: Record = { 47 | primary: { 48 | height: Sizing.layout.x30, 49 | width: Sizing.layout.x30, 50 | alignItems: "center", 51 | justifyContent: "center", 52 | backgroundColor: Colors.primary.brand, 53 | borderRadius: Outlines.borderRadius.max, 54 | }, 55 | } 56 | 57 | const opacity = (state: PressableStateCallbackType): ViewStyle => { 58 | const opacity = state.pressed ? 0.65 : 1 59 | return { opacity } 60 | } 61 | 62 | export const applyOpacity = (style: ViewStyle) => { 63 | return (state: PressableStateCallbackType): ViewStyle => { 64 | return { 65 | ...style, 66 | ...opacity(state), 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/styles/colors.ts: -------------------------------------------------------------------------------- 1 | type Neutral = 2 | | "white" 3 | | "s100" 4 | | "s150" 5 | | "s200" 6 | | "s250" 7 | | "s300" 8 | | "s400" 9 | | "s500" 10 | | "s600" 11 | | "s700" 12 | | "s800" 13 | | "s900" 14 | | "black" 15 | export const neutral: Record = { 16 | white: "#ffffff", 17 | s100: "#efeff6", 18 | s150: "#dfdfe6", 19 | s200: "#c7c7ce", 20 | s250: "#bbbbc2", 21 | s300: "#9f9ea4", 22 | s400: "#7c7c82", 23 | s500: "#515154", 24 | s600: "#38383a", 25 | s700: "#2d2c2e", 26 | s800: "#212123", 27 | s900: "#161617", 28 | black: "#000000", 29 | } 30 | 31 | type Primary = "brand" | "s200" | "s600" 32 | export const primary: Record = { 33 | s200: "#459de6", 34 | brand: "#0d548f", 35 | s600: "#0c3659", 36 | } 37 | 38 | type Secondary = "brand" | "s200" | "s600" 39 | export const secondary: Record = { 40 | s200: "#b968e8", 41 | brand: "#591282", 42 | s600: "#3f0d5c", 43 | } 44 | 45 | type Danger = "s400" 46 | export const danger: Record = { 47 | s400: "#cf1717", 48 | } 49 | 50 | type Success = "s400" 51 | export const success: Record = { 52 | s400: "#008a09", 53 | } 54 | 55 | type Warning = "s400" 56 | export const warning: Record = { 57 | s400: "#cf9700", 58 | } 59 | 60 | const applyOpacity = (hexColor: string, opacity: number): string => { 61 | const red = parseInt(hexColor.slice(1, 3), 16) 62 | const green = parseInt(hexColor.slice(3, 5), 16) 63 | const blue = parseInt(hexColor.slice(5, 7), 16) 64 | 65 | return `rgba(${red}, ${green}, ${blue}, ${opacity})` 66 | } 67 | 68 | type Transparent = "clear" | "lightGray" | "darkGray" 69 | export const transparent: Record = { 70 | clear: "rgba(255, 255, 255, 0)", 71 | lightGray: applyOpacity(neutral.s300, 0.4), 72 | darkGray: applyOpacity(neutral.s800, 0.8), 73 | } 74 | 75 | export const shadeColor = (hexColor: string, percent: number): string => { 76 | const redGamut: number = parseInt(hexColor.slice(1, 3), 16) 77 | const greenGamut: number = parseInt(hexColor.slice(3, 5), 16) 78 | const blueGamut: number = parseInt(hexColor.slice(5, 7), 16) 79 | 80 | const rgb: Array = [redGamut, greenGamut, blueGamut] 81 | 82 | const toShadedGamut = (gamut: number): number => { 83 | return Math.floor(Math.min(gamut * (1 + percent / 100), 255)) 84 | } 85 | 86 | const toHex = (gamut: number): string => { 87 | return gamut.toString(16).length === 1 88 | ? `0${gamut.toString(16)}` 89 | : gamut.toString(16) 90 | } 91 | 92 | const shadedRGB: Array = rgb.map(toShadedGamut) 93 | const shadedHex: Array = shadedRGB.map(toHex) 94 | 95 | const hexString: string = shadedHex.join("") 96 | 97 | return `#${hexString}` 98 | } 99 | -------------------------------------------------------------------------------- /src/styles/forms.ts: -------------------------------------------------------------------------------- 1 | import { TextStyle } from "react-native" 2 | 3 | import * as Colors from "./colors" 4 | import * as Outlines from "./outlines" 5 | import * as Sizing from "./sizing" 6 | import * as Typography from "./typography" 7 | 8 | type Input = "primary" 9 | export const input: Record = { 10 | primary: { 11 | ...Typography.body.x30, 12 | lineHeight: 0, 13 | padding: Sizing.x20, 14 | borderColor: Colors.neutral.s300, 15 | borderWidth: Outlines.borderWidth.hairline, 16 | borderRadius: Outlines.borderRadius.small, 17 | }, 18 | } 19 | 20 | type InputLabel = "primary" 21 | export const inputLabel: Record = { 22 | primary: { 23 | ...Typography.subheader.x20, 24 | marginBottom: Sizing.x10, 25 | }, 26 | } 27 | -------------------------------------------------------------------------------- /src/styles/index.ts: -------------------------------------------------------------------------------- 1 | import * as Buttons from "./buttons" 2 | import * as Colors from "./colors" 3 | import * as Forms from "./forms" 4 | import * as Outlines from "./outlines" 5 | import * as Sizing from "./sizing" 6 | import * as Typography from "./typography" 7 | 8 | export { Buttons, Colors, Forms, Outlines, Sizing, Typography } 9 | -------------------------------------------------------------------------------- /src/styles/outlines.ts: -------------------------------------------------------------------------------- 1 | import { ViewStyle, StyleSheet } from "react-native" 2 | 3 | import * as Colors from "./colors" 4 | 5 | type BorderRadius = "small" | "base" | "large" | "max" 6 | export const borderRadius: Record = { 7 | small: 5, 8 | base: 10, 9 | large: 20, 10 | max: 9999, 11 | } 12 | 13 | type BorderWidth = "hairline" | "thin" | "base" | "thick" 14 | export const borderWidth: Record = { 15 | hairline: StyleSheet.hairlineWidth, 16 | thin: 1, 17 | base: 2, 18 | thick: 3, 19 | } 20 | 21 | type Shadow = "base" 22 | export const shadow: Record = { 23 | base: { 24 | shadowColor: Colors.neutral.s400, 25 | shadowOffset: { 26 | width: 0, 27 | height: 3, 28 | }, 29 | shadowOpacity: 0.27, 30 | shadowRadius: 4.65, 31 | elevation: 6, 32 | }, 33 | } 34 | -------------------------------------------------------------------------------- /src/styles/sizing.ts: -------------------------------------------------------------------------------- 1 | import { Dimensions } from "react-native" 2 | 3 | const { height: screenHeight, width: screenWidth } = Dimensions.get("screen") 4 | type Screen = "width" | "height" 5 | export const screen: Record = { 6 | width: screenWidth, 7 | height: screenHeight, 8 | } 9 | 10 | type Layout = 11 | | "x1" 12 | | "x2" 13 | | "x3" 14 | | "x5" 15 | | "x7" 16 | | "x10" 17 | | "x15" 18 | | "x20" 19 | | "x30" 20 | | "x40" 21 | | "x50" 22 | | "x60" 23 | | "x70" 24 | | "x80" 25 | | "x90" 26 | | "x100" 27 | | "x110" 28 | | "x120" 29 | | "x130" 30 | | "x140" 31 | export const layout: Record = { 32 | x1: 1, 33 | x2: 2, 34 | x3: 3, 35 | x5: 5, 36 | x7: 7, 37 | x10: 10, 38 | x15: 14, 39 | x20: 18, 40 | x30: 26, 41 | x40: 34, 42 | x50: 42, 43 | x60: 50, 44 | x70: 64, 45 | x80: 86, 46 | x90: 120, 47 | x100: 130, 48 | x110: 150, 49 | x120: 170, 50 | x130: 200, 51 | x140: 230, 52 | } 53 | 54 | export const x1 = layout.x1 55 | export const x2 = layout.x2 56 | export const x3 = layout.x3 57 | export const x5 = layout.x5 58 | export const x7 = layout.x7 59 | export const x10 = layout.x10 60 | export const x15 = layout.x15 61 | export const x20 = layout.x20 62 | export const x30 = layout.x30 63 | export const x40 = layout.x40 64 | export const x50 = layout.x50 65 | export const x60 = layout.x60 66 | export const x70 = layout.x70 67 | export const x80 = layout.x80 68 | export const x90 = layout.x90 69 | export const x100 = layout.x100 70 | export const x110 = layout.x110 71 | export const x120 = layout.x120 72 | export const x130 = layout.x130 73 | export const x140 = layout.x140 74 | 75 | type Icons = "x10" | "x15" | "x20" | "x25" | "x30" | "x40" 76 | export const icons: Record = { 77 | x10: 14, 78 | x15: 17, 79 | x20: 20, 80 | x25: 25, 81 | x30: 30, 82 | x40: 40, 83 | } 84 | 85 | type IconStroke = "x1" | "x2" 86 | export const iconStroke: Record = { 87 | x1: 1, 88 | x2: 2, 89 | } 90 | -------------------------------------------------------------------------------- /src/styles/typography.ts: -------------------------------------------------------------------------------- 1 | import { TextStyle, Platform } from "react-native" 2 | import { systemWeights } from "react-native-typography" 3 | 4 | import * as Colors from "./colors" 5 | 6 | type FontSize = "x10" | "x20" | "x30" | "x40" | "x50" | "x60" | "x70" 7 | export const fontSize: Record = { 8 | x10: { 9 | fontSize: 13, 10 | }, 11 | x20: { 12 | fontSize: 14, 13 | }, 14 | x30: { 15 | fontSize: 16, 16 | }, 17 | x40: { 18 | fontSize: 19, 19 | }, 20 | x50: { 21 | fontSize: 24, 22 | }, 23 | x60: { 24 | fontSize: 32, 25 | }, 26 | x70: { 27 | fontSize: 38, 28 | }, 29 | } 30 | 31 | type FontWeight = "regular" | "semibold" | "bold" 32 | export const fontWeight: Record = { 33 | regular: { 34 | ...systemWeights.regular, 35 | }, 36 | semibold: { 37 | ...systemWeights.semibold, 38 | }, 39 | bold: { 40 | ...systemWeights.bold, 41 | }, 42 | } 43 | 44 | type LetterSpacing = "x30" | "x40" 45 | export const letterSpacing: Record = { 46 | x30: 2, 47 | x40: 3, 48 | } 49 | 50 | type LineHeight = "x10" | "x20" | "x30" | "x40" | "x50" | "x60" | "x70" 51 | export const lineHeight: Record = { 52 | x10: { 53 | lineHeight: 20, 54 | }, 55 | x20: { 56 | lineHeight: 22, 57 | }, 58 | x30: { 59 | lineHeight: 24, 60 | }, 61 | x40: { 62 | lineHeight: 26, 63 | }, 64 | x50: { 65 | lineHeight: 32, 66 | }, 67 | x60: { 68 | lineHeight: 38, 69 | }, 70 | x70: { 71 | lineHeight: 44, 72 | }, 73 | } 74 | 75 | type Header = "x10" | "x20" | "x30" | "x40" | "x50" | "x60" | "x70" 76 | export const header: Record = { 77 | x10: { 78 | ...fontSize.x10, 79 | ...lineHeight.x10, 80 | ...fontWeight.bold, 81 | }, 82 | x20: { 83 | ...fontSize.x20, 84 | ...lineHeight.x20, 85 | ...fontWeight.bold, 86 | }, 87 | x30: { 88 | ...fontSize.x30, 89 | ...lineHeight.x30, 90 | ...fontWeight.bold, 91 | }, 92 | x40: { 93 | ...fontSize.x40, 94 | ...lineHeight.x40, 95 | ...fontWeight.bold, 96 | }, 97 | x50: { 98 | ...fontSize.x50, 99 | ...lineHeight.x50, 100 | ...fontWeight.bold, 101 | }, 102 | x60: { 103 | ...fontSize.x60, 104 | ...lineHeight.x60, 105 | ...fontWeight.bold, 106 | }, 107 | x70: { 108 | ...fontSize.x70, 109 | ...lineHeight.x70, 110 | ...fontWeight.bold, 111 | }, 112 | } 113 | 114 | type Subheader = "x10" | "x20" | "x30" | "x40" | "x50" 115 | export const subheader: Record = { 116 | x10: { 117 | ...fontSize.x10, 118 | ...lineHeight.x10, 119 | ...fontWeight.semibold, 120 | }, 121 | x20: { 122 | ...fontSize.x20, 123 | ...lineHeight.x20, 124 | ...fontWeight.semibold, 125 | }, 126 | x30: { 127 | ...fontSize.x30, 128 | ...lineHeight.x30, 129 | ...fontWeight.semibold, 130 | }, 131 | x40: { 132 | ...fontSize.x40, 133 | ...lineHeight.x40, 134 | ...fontWeight.semibold, 135 | }, 136 | x50: { 137 | ...fontSize.x50, 138 | ...lineHeight.x50, 139 | ...fontWeight.semibold, 140 | }, 141 | } 142 | 143 | type Body = "x10" | "x20" | "x30" | "x40" | "x50" 144 | export const body: Record = { 145 | x10: { 146 | ...fontSize.x10, 147 | ...lineHeight.x10, 148 | ...fontWeight.regular, 149 | color: Colors.neutral.s800, 150 | }, 151 | x20: { 152 | ...fontSize.x20, 153 | ...lineHeight.x20, 154 | ...fontWeight.regular, 155 | color: Colors.neutral.s800, 156 | }, 157 | x30: { 158 | ...fontSize.x30, 159 | ...lineHeight.x30, 160 | ...fontWeight.regular, 161 | color: Colors.neutral.s800, 162 | }, 163 | x40: { 164 | ...fontSize.x40, 165 | ...lineHeight.x40, 166 | ...fontWeight.regular, 167 | color: Colors.neutral.s800, 168 | }, 169 | x50: { 170 | ...fontSize.x50, 171 | ...lineHeight.x50, 172 | ...fontWeight.regular, 173 | color: Colors.neutral.s800, 174 | }, 175 | } 176 | 177 | const monospaceFontFamily = Platform.select({ 178 | ios: "Menlo", 179 | android: "monospace", 180 | }) 181 | 182 | type Monospace = "base" 183 | export const monospace: Record = { 184 | base: { 185 | fontFamily: monospaceFontFamily, 186 | letterSpacing: letterSpacing.x30, 187 | }, 188 | } 189 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | /* Basic Options */ 5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | "lib": ["es6"], /* Specify library files to be included in the compilation. */ 8 | "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 13 | // "outFile": "./", /* Concatenate and emit output to single file. */ 14 | // "outDir": "./", /* Redirect output structure to the directory. */ 15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 16 | // "removeComments": true, /* Do not emit comments to output. */ 17 | "noEmit": true, /* Do not emit outputs. */ 18 | // "incremental": true, /* Enable incremental compilation */ 19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 22 | 23 | /* Strict Type-Checking Options */ 24 | "strict": true, /* Enable all strict type-checking options. */ 25 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 26 | // "strictNullChecks": true, /* Enable strict null checks. */ 27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 31 | 32 | /* Additional Checks */ 33 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 37 | 38 | /* Module Resolution Options */ 39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | 49 | /* Source Map Options */ 50 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 51 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 52 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 53 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 54 | 55 | /* Experimental Options */ 56 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 57 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 58 | }, 59 | "exclude": [ 60 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 61 | ] 62 | } 63 | --------------------------------------------------------------------------------