├── .commitlintrc.json ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .npmignore ├── .prettierrc ├── README.md ├── assets ├── Screenshots │ ├── react-native-flex-divider-2.png │ └── react-native-flex-divider.png └── logo.png ├── example ├── .buckconfig ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierrc ├── .watchmanconfig ├── App.tsx ├── __tests__ │ └── App-test.tsx ├── android │ ├── app │ │ ├── _BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── assets │ │ │ └── fonts │ │ │ │ └── SuezOne.ttf │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ ├── 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 │ ├── link-assets-manifest.json │ └── settings.gradle ├── app.json ├── assets │ └── fonts │ │ └── SuezOne.ttf ├── babel.config.js ├── index.js ├── ios │ ├── Podfile │ ├── Podfile.lock │ ├── example.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── example.xcscheme │ ├── example.xcworkspace │ │ └── contents.xcworkspacedata │ ├── example │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── main.m │ ├── exampleTests │ │ ├── Info.plist │ │ └── exampleTests.m │ └── link-assets-manifest.json ├── metro.config.js ├── package-lock.json ├── package.json ├── react-native.config.js ├── tsconfig.json └── yarn.lock ├── lib ├── FlexDivider.style.ts └── FlexDivider.tsx ├── package-lock.json ├── package.json ├── tsconfig.json └── yarn.lock /.commitlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@commitlint/config-conventional"], 3 | "rules": { 4 | "type-enum": [ 5 | 2, 6 | "always", 7 | [ 8 | "ci", 9 | "chore", 10 | "docs", 11 | "feat", 12 | "fix", 13 | "perf", 14 | "refactor", 15 | "revert", 16 | "style", 17 | "test" 18 | ] 19 | ] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: "@react-native-community", 4 | parser: "@typescript-eslint/parser", 5 | plugins: ["import", "eslint-plugin-import", "@typescript-eslint"], 6 | settings: { 7 | "import/resolver": { 8 | node: { 9 | extensions: [ 10 | ".js", 11 | ".jsx", 12 | ".ts", 13 | ".tsx", 14 | ".d.ts", 15 | ".android.js", 16 | ".android.jsx", 17 | ".android.ts", 18 | ".android.tsx", 19 | ".ios.js", 20 | ".ios.jsx", 21 | ".ios.ts", 22 | ".ios.tsx", 23 | ".web.js", 24 | ".web.jsx", 25 | ".web.ts", 26 | ".web.tsx", 27 | ], 28 | }, 29 | }, 30 | }, 31 | rules: { 32 | quotes: [ 33 | "error", 34 | "double", 35 | { 36 | avoidEscape: true, 37 | }, 38 | ], 39 | "max-len": ["error", 120], 40 | "@typescript-eslint/ban-ts-comment": 2, 41 | "@typescript-eslint/no-explicit-any": 2, 42 | "@typescript-eslint/explicit-module-boundary-types": 0, 43 | "react/jsx-filename-extension": ["error", { extensions: [".tsx"] }], 44 | "react-native/no-unused-styles": 2, 45 | "react-native/split-platform-components": 2, 46 | "react-native/no-inline-styles": 0, 47 | "react-native/no-color-literals": 0, 48 | "react-native/no-raw-text": 0, 49 | "import/no-extraneous-dependencies": 2, 50 | "import/extensions": ["error", "never", { svg: "always" }], 51 | "import/no-named-as-default-member": 2, 52 | "import/order": ["error", { "newlines-between": "always" }], 53 | "import/no-duplicates": 2, 54 | "import/no-useless-path-segments": 2, 55 | "import/no-cycle": 2, 56 | "import/prefer-default-export": 0, 57 | "import/no-anonymous-default-export": 0, 58 | "import/named": 0, 59 | "@typescript-eslint/no-empty-interface": 0, 60 | "import/namespace": 0, 61 | "import/default": 0, 62 | "import/no-named-as-default": 0, 63 | "import/no-unused-modules": 0, 64 | "import/no-deprecated": 0, 65 | "@typescript-eslint/indent": 0, 66 | "react-hooks/rules-of-hooks": 2, 67 | "react-hooks/exhaustive-deps": [ 68 | "error", 69 | { additionalHooks: "(useMemoOne)" }, 70 | ], 71 | "jest/no-identical-title": 2, 72 | "jest/valid-expect": 2, 73 | camelcase: 2, 74 | "prefer-destructuring": 2, 75 | "no-nested-ternary": 2, 76 | }, 77 | }; 78 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # 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 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no-install commitlint --edit 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm run prettier 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Node Modules 2 | **/node_modules 3 | node_modules 4 | # Example 5 | example 6 | # Assets 7 | Assets 8 | assets -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "bracketSpacing": true, 3 | "jsxBracketSameLine": false, 4 | "singleQuote": false, 5 | "trailingComma": "all", 6 | "tabWidth": 2, 7 | "semi": true 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | React Native Flex Divider 2 | 3 | [![React Native Flex Divider](https://img.shields.io/badge/-Fully%20customizable%20flex%20divider%20with%20a%20easy%20use%20for%20React%20Native-orange?style=for-the-badge)](https://github.com/WrathChaos/react-native-flex-divider) 4 | 5 | [![npm version](https://img.shields.io/npm/v/react-native-flex-divider.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-flex-divider) 6 | [![npm](https://img.shields.io/npm/dt/react-native-flex-divider.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-flex-divider) 7 | ![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge) 8 | [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT) 9 | [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier) 10 | 11 | 12 | 13 | 16 | 19 | 20 | 21 |
14 | React Native Flex Divider 15 | 17 | React Native Flex Divider 18 |
22 | 23 | # Installation 24 | 25 | Add the dependency: 26 | 27 | ```bash 28 | npm i react-native-flex-divider 29 | ``` 30 | 31 | ## Peer Dependencies 32 | 33 | Zero Dependency 34 | 35 | # Usage 36 | 37 | ## Import 38 | 39 | ```jsx 40 | import FlexDivider from "react-native-flex-divider"; 41 | ``` 42 | 43 | ## Fundamental Usage 44 | 45 | ```jsx 46 | 47 | ``` 48 | 49 | ## Customization Usage 50 | 51 | ```jsx 52 | 57 | ``` 58 | 59 | ## Example Project 😍 60 | 61 | You can checkout the example project 🥰 62 | 63 | Simply run 64 | 65 | - `npm i` 66 | - `react-native run-ios/android` 67 | 68 | should work of the example project. 69 | 70 | # Configuration - Props 71 | 72 | ## Fundamentals 73 | 74 | | Property | Type | Default | Description | 75 | | -------- | :----: | :-------: | --------------- | 76 | | text | string | undefined | change the text | 77 | 78 | ## Customization (Optionals) 79 | 80 | | Property | Type | Default | Description | 81 | | ----------------- | :-------: | :-----: | ----------------------------------------------------------------------- | 82 | | style | ViewStyle | default | set or override the style object for the main container | 83 | | text | ViewStyle | default | set or override the style object for the `text style` | 84 | | leftDividerStyle | ViewStyle | default | set or override the style object for the `left divider style` | 85 | | rightDividerStyle | ViewStyle | default | set or override the style object for the `right divider style` | 86 | | TextComponent | Text | default | set your own component instead of default react-native `Text` component | 87 | 88 | ## Future Plans 89 | 90 | - [x] ~~LICENSE~~ 91 | - [ ] Write an article about the lib on Medium 92 | 93 | ## Author 94 | 95 | FreakyCoder, kurayogun@gmail.com 96 | 97 | ## License 98 | 99 | React Native Flex Divider is available under the MIT license. See the LICENSE file for more info. 100 | -------------------------------------------------------------------------------- /assets/Screenshots/react-native-flex-divider-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/assets/Screenshots/react-native-flex-divider-2.png -------------------------------------------------------------------------------- /assets/Screenshots/react-native-flex-divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/assets/Screenshots/react-native-flex-divider.png -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/assets/logo.png -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /example/.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /example/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /example/.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 | -------------------------------------------------------------------------------- /example/.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 | *.hprof 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | !debug.keystore 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://docs.fastlane.tools/best-practices/source-control/ 51 | 52 | */fastlane/report.xml 53 | */fastlane/Preview.html 54 | */fastlane/screenshots 55 | 56 | # Bundle artifact 57 | *.jsbundle 58 | 59 | # CocoaPods 60 | /ios/Pods/ 61 | -------------------------------------------------------------------------------- /example/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "bracketSpacing": true, 3 | "jsxBracketSameLine": false, 4 | "singleQuote": false, 5 | "trailingComma": "all", 6 | "tabWidth": 2, 7 | "semi": true 8 | } 9 | -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/App.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { View, SafeAreaView, StatusBar } from "react-native"; 3 | import LinearGradient from "react-native-linear-gradient"; 4 | import FlexDivider from "react-native-flex-divider"; 5 | 6 | const App = () => { 7 | return ( 8 | 14 | 15 | 16 | 17 | 21 | 22 | 23 | 28 | 29 | 30 | 35 | 36 | 37 | 38 | ); 39 | }; 40 | 41 | export default App; 42 | -------------------------------------------------------------------------------- /example/__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /example/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.example", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.example", 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 | -------------------------------------------------------------------------------- /example/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 | /** 124 | * Architectures to build native code for in debug. 125 | */ 126 | def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures") 127 | 128 | android { 129 | ndkVersion rootProject.ext.ndkVersion 130 | 131 | compileSdkVersion rootProject.ext.compileSdkVersion 132 | 133 | defaultConfig { 134 | applicationId "com.example" 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 | if (nativeArchitectures) { 160 | ndk { 161 | abiFilters nativeArchitectures.split(',') 162 | } 163 | } 164 | } 165 | release { 166 | // Caution! In production, you need to generate your own keystore file. 167 | // see https://reactnative.dev/docs/signed-apk-android. 168 | signingConfig signingConfigs.debug 169 | minifyEnabled enableProguardInReleaseBuilds 170 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 171 | } 172 | } 173 | 174 | // applicationVariants are e.g. debug, release 175 | applicationVariants.all { variant -> 176 | variant.outputs.each { output -> 177 | // For each separate APK per architecture, set a unique version code as described here: 178 | // https://developer.android.com/studio/build/configure-apk-splits.html 179 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 180 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 181 | def abi = output.getFilter(OutputFile.ABI) 182 | if (abi != null) { // null for the universal-debug, universal-release variants 183 | output.versionCodeOverride = 184 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 185 | } 186 | 187 | } 188 | } 189 | } 190 | 191 | dependencies { 192 | implementation fileTree(dir: "libs", include: ["*.jar"]) 193 | //noinspection GradleDynamicVersion 194 | implementation "com.facebook.react:react-native:+" // From node_modules 195 | 196 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 197 | 198 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 199 | exclude group:'com.facebook.fbjni' 200 | } 201 | 202 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 203 | exclude group:'com.facebook.flipper' 204 | exclude group:'com.squareup.okhttp3', module:'okhttp' 205 | } 206 | 207 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 208 | exclude group:'com.facebook.flipper' 209 | } 210 | 211 | if (enableHermes) { 212 | def hermesPath = "../../node_modules/hermes-engine/android/"; 213 | debugImplementation files(hermesPath + "hermes-debug.aar") 214 | releaseImplementation files(hermesPath + "hermes-release.aar") 215 | } else { 216 | implementation jscFlavor 217 | } 218 | } 219 | 220 | // Run this once to be able to run the application with BUCK 221 | // puts all compile dependencies into folder libs for BUCK to use 222 | task copyDownloadableDepsToLibs(type: Copy) { 223 | from configurations.implementation 224 | into 'libs' 225 | } 226 | 227 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 228 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/debug.keystore -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /example/android/app/src/debug/java/com/example/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.example; 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 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /example/android/app/src/main/assets/fonts/SuezOne.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/assets/fonts/SuezOne.ttf -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 "example"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 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.example.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 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | example 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/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 = "30.0.2" 6 | minSdkVersion = 21 7 | compileSdkVersion = 30 8 | targetSdkVersion = 30 9 | ndkVersion = "21.4.7075529" 10 | } 11 | repositories { 12 | google() 13 | mavenCentral() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.2.2") 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 | mavenCentral() 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url("$rootDir/../node_modules/react-native/android") 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url("$rootDir/../node_modules/jsc-android/dist") 33 | } 34 | 35 | google() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /example/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.99.0 29 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/link-assets-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "migIndex": 1, 3 | "data": [ 4 | { 5 | "path": "assets/fonts/SuezOne.ttf", 6 | "sha1": "e8eaad00863f66dd31a2fc71c2e8f84a66bfafef" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'example' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "displayName": "example" 4 | } -------------------------------------------------------------------------------- /example/assets/fonts/SuezOne.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WrathChaos/react-native-flex-divider/5c012e40d05fe418a6015ffee234a33a34c3d0a5/example/assets/fonts/SuezOne.ttf -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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, '11.0' 5 | 6 | target 'example' 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 'exampleTests' 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 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 29 | end 30 | end -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost (1.76.0) 3 | - BVLinearGradient (2.5.6): 4 | - React 5 | - CocoaAsyncSocket (7.6.5) 6 | - DoubleConversion (1.1.6) 7 | - FBLazyVector (0.66.3) 8 | - FBReactNativeSpec (0.66.3): 9 | - RCT-Folly (= 2021.06.28.00-v2) 10 | - RCTRequired (= 0.66.3) 11 | - RCTTypeSafety (= 0.66.3) 12 | - React-Core (= 0.66.3) 13 | - React-jsi (= 0.66.3) 14 | - ReactCommon/turbomodule/core (= 0.66.3) 15 | - Flipper (0.99.0): 16 | - Flipper-Folly (~> 2.6) 17 | - Flipper-RSocket (~> 1.4) 18 | - Flipper-Boost-iOSX (1.76.0.1.11) 19 | - Flipper-DoubleConversion (3.1.7) 20 | - Flipper-Fmt (7.1.7) 21 | - Flipper-Folly (2.6.7): 22 | - Flipper-Boost-iOSX 23 | - Flipper-DoubleConversion 24 | - Flipper-Fmt (= 7.1.7) 25 | - Flipper-Glog 26 | - libevent (~> 2.1.12) 27 | - OpenSSL-Universal (= 1.1.180) 28 | - Flipper-Glog (0.3.6) 29 | - Flipper-PeerTalk (0.0.4) 30 | - Flipper-RSocket (1.4.3): 31 | - Flipper-Folly (~> 2.6) 32 | - FlipperKit (0.99.0): 33 | - FlipperKit/Core (= 0.99.0) 34 | - FlipperKit/Core (0.99.0): 35 | - Flipper (~> 0.99.0) 36 | - FlipperKit/CppBridge 37 | - FlipperKit/FBCxxFollyDynamicConvert 38 | - FlipperKit/FBDefines 39 | - FlipperKit/FKPortForwarding 40 | - FlipperKit/CppBridge (0.99.0): 41 | - Flipper (~> 0.99.0) 42 | - FlipperKit/FBCxxFollyDynamicConvert (0.99.0): 43 | - Flipper-Folly (~> 2.6) 44 | - FlipperKit/FBDefines (0.99.0) 45 | - FlipperKit/FKPortForwarding (0.99.0): 46 | - CocoaAsyncSocket (~> 7.6) 47 | - Flipper-PeerTalk (~> 0.0.4) 48 | - FlipperKit/FlipperKitHighlightOverlay (0.99.0) 49 | - FlipperKit/FlipperKitLayoutHelpers (0.99.0): 50 | - FlipperKit/Core 51 | - FlipperKit/FlipperKitHighlightOverlay 52 | - FlipperKit/FlipperKitLayoutTextSearchable 53 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.99.0): 54 | - FlipperKit/Core 55 | - FlipperKit/FlipperKitHighlightOverlay 56 | - FlipperKit/FlipperKitLayoutHelpers 57 | - YogaKit (~> 1.18) 58 | - FlipperKit/FlipperKitLayoutPlugin (0.99.0): 59 | - FlipperKit/Core 60 | - FlipperKit/FlipperKitHighlightOverlay 61 | - FlipperKit/FlipperKitLayoutHelpers 62 | - FlipperKit/FlipperKitLayoutIOSDescriptors 63 | - FlipperKit/FlipperKitLayoutTextSearchable 64 | - YogaKit (~> 1.18) 65 | - FlipperKit/FlipperKitLayoutTextSearchable (0.99.0) 66 | - FlipperKit/FlipperKitNetworkPlugin (0.99.0): 67 | - FlipperKit/Core 68 | - FlipperKit/FlipperKitReactPlugin (0.99.0): 69 | - FlipperKit/Core 70 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.99.0): 71 | - FlipperKit/Core 72 | - FlipperKit/SKIOSNetworkPlugin (0.99.0): 73 | - FlipperKit/Core 74 | - FlipperKit/FlipperKitNetworkPlugin 75 | - fmt (6.2.1) 76 | - glog (0.3.5) 77 | - libevent (2.1.12) 78 | - OpenSSL-Universal (1.1.180) 79 | - RCT-Folly (2021.06.28.00-v2): 80 | - boost 81 | - DoubleConversion 82 | - fmt (~> 6.2.1) 83 | - glog 84 | - RCT-Folly/Default (= 2021.06.28.00-v2) 85 | - RCT-Folly/Default (2021.06.28.00-v2): 86 | - boost 87 | - DoubleConversion 88 | - fmt (~> 6.2.1) 89 | - glog 90 | - RCTRequired (0.66.3) 91 | - RCTTypeSafety (0.66.3): 92 | - FBLazyVector (= 0.66.3) 93 | - RCT-Folly (= 2021.06.28.00-v2) 94 | - RCTRequired (= 0.66.3) 95 | - React-Core (= 0.66.3) 96 | - React (0.66.3): 97 | - React-Core (= 0.66.3) 98 | - React-Core/DevSupport (= 0.66.3) 99 | - React-Core/RCTWebSocket (= 0.66.3) 100 | - React-RCTActionSheet (= 0.66.3) 101 | - React-RCTAnimation (= 0.66.3) 102 | - React-RCTBlob (= 0.66.3) 103 | - React-RCTImage (= 0.66.3) 104 | - React-RCTLinking (= 0.66.3) 105 | - React-RCTNetwork (= 0.66.3) 106 | - React-RCTSettings (= 0.66.3) 107 | - React-RCTText (= 0.66.3) 108 | - React-RCTVibration (= 0.66.3) 109 | - React-callinvoker (0.66.3) 110 | - React-Core (0.66.3): 111 | - glog 112 | - RCT-Folly (= 2021.06.28.00-v2) 113 | - React-Core/Default (= 0.66.3) 114 | - React-cxxreact (= 0.66.3) 115 | - React-jsi (= 0.66.3) 116 | - React-jsiexecutor (= 0.66.3) 117 | - React-perflogger (= 0.66.3) 118 | - Yoga 119 | - React-Core/CoreModulesHeaders (0.66.3): 120 | - glog 121 | - RCT-Folly (= 2021.06.28.00-v2) 122 | - React-Core/Default 123 | - React-cxxreact (= 0.66.3) 124 | - React-jsi (= 0.66.3) 125 | - React-jsiexecutor (= 0.66.3) 126 | - React-perflogger (= 0.66.3) 127 | - Yoga 128 | - React-Core/Default (0.66.3): 129 | - glog 130 | - RCT-Folly (= 2021.06.28.00-v2) 131 | - React-cxxreact (= 0.66.3) 132 | - React-jsi (= 0.66.3) 133 | - React-jsiexecutor (= 0.66.3) 134 | - React-perflogger (= 0.66.3) 135 | - Yoga 136 | - React-Core/DevSupport (0.66.3): 137 | - glog 138 | - RCT-Folly (= 2021.06.28.00-v2) 139 | - React-Core/Default (= 0.66.3) 140 | - React-Core/RCTWebSocket (= 0.66.3) 141 | - React-cxxreact (= 0.66.3) 142 | - React-jsi (= 0.66.3) 143 | - React-jsiexecutor (= 0.66.3) 144 | - React-jsinspector (= 0.66.3) 145 | - React-perflogger (= 0.66.3) 146 | - Yoga 147 | - React-Core/RCTActionSheetHeaders (0.66.3): 148 | - glog 149 | - RCT-Folly (= 2021.06.28.00-v2) 150 | - React-Core/Default 151 | - React-cxxreact (= 0.66.3) 152 | - React-jsi (= 0.66.3) 153 | - React-jsiexecutor (= 0.66.3) 154 | - React-perflogger (= 0.66.3) 155 | - Yoga 156 | - React-Core/RCTAnimationHeaders (0.66.3): 157 | - glog 158 | - RCT-Folly (= 2021.06.28.00-v2) 159 | - React-Core/Default 160 | - React-cxxreact (= 0.66.3) 161 | - React-jsi (= 0.66.3) 162 | - React-jsiexecutor (= 0.66.3) 163 | - React-perflogger (= 0.66.3) 164 | - Yoga 165 | - React-Core/RCTBlobHeaders (0.66.3): 166 | - glog 167 | - RCT-Folly (= 2021.06.28.00-v2) 168 | - React-Core/Default 169 | - React-cxxreact (= 0.66.3) 170 | - React-jsi (= 0.66.3) 171 | - React-jsiexecutor (= 0.66.3) 172 | - React-perflogger (= 0.66.3) 173 | - Yoga 174 | - React-Core/RCTImageHeaders (0.66.3): 175 | - glog 176 | - RCT-Folly (= 2021.06.28.00-v2) 177 | - React-Core/Default 178 | - React-cxxreact (= 0.66.3) 179 | - React-jsi (= 0.66.3) 180 | - React-jsiexecutor (= 0.66.3) 181 | - React-perflogger (= 0.66.3) 182 | - Yoga 183 | - React-Core/RCTLinkingHeaders (0.66.3): 184 | - glog 185 | - RCT-Folly (= 2021.06.28.00-v2) 186 | - React-Core/Default 187 | - React-cxxreact (= 0.66.3) 188 | - React-jsi (= 0.66.3) 189 | - React-jsiexecutor (= 0.66.3) 190 | - React-perflogger (= 0.66.3) 191 | - Yoga 192 | - React-Core/RCTNetworkHeaders (0.66.3): 193 | - glog 194 | - RCT-Folly (= 2021.06.28.00-v2) 195 | - React-Core/Default 196 | - React-cxxreact (= 0.66.3) 197 | - React-jsi (= 0.66.3) 198 | - React-jsiexecutor (= 0.66.3) 199 | - React-perflogger (= 0.66.3) 200 | - Yoga 201 | - React-Core/RCTSettingsHeaders (0.66.3): 202 | - glog 203 | - RCT-Folly (= 2021.06.28.00-v2) 204 | - React-Core/Default 205 | - React-cxxreact (= 0.66.3) 206 | - React-jsi (= 0.66.3) 207 | - React-jsiexecutor (= 0.66.3) 208 | - React-perflogger (= 0.66.3) 209 | - Yoga 210 | - React-Core/RCTTextHeaders (0.66.3): 211 | - glog 212 | - RCT-Folly (= 2021.06.28.00-v2) 213 | - React-Core/Default 214 | - React-cxxreact (= 0.66.3) 215 | - React-jsi (= 0.66.3) 216 | - React-jsiexecutor (= 0.66.3) 217 | - React-perflogger (= 0.66.3) 218 | - Yoga 219 | - React-Core/RCTVibrationHeaders (0.66.3): 220 | - glog 221 | - RCT-Folly (= 2021.06.28.00-v2) 222 | - React-Core/Default 223 | - React-cxxreact (= 0.66.3) 224 | - React-jsi (= 0.66.3) 225 | - React-jsiexecutor (= 0.66.3) 226 | - React-perflogger (= 0.66.3) 227 | - Yoga 228 | - React-Core/RCTWebSocket (0.66.3): 229 | - glog 230 | - RCT-Folly (= 2021.06.28.00-v2) 231 | - React-Core/Default (= 0.66.3) 232 | - React-cxxreact (= 0.66.3) 233 | - React-jsi (= 0.66.3) 234 | - React-jsiexecutor (= 0.66.3) 235 | - React-perflogger (= 0.66.3) 236 | - Yoga 237 | - React-CoreModules (0.66.3): 238 | - FBReactNativeSpec (= 0.66.3) 239 | - RCT-Folly (= 2021.06.28.00-v2) 240 | - RCTTypeSafety (= 0.66.3) 241 | - React-Core/CoreModulesHeaders (= 0.66.3) 242 | - React-jsi (= 0.66.3) 243 | - React-RCTImage (= 0.66.3) 244 | - ReactCommon/turbomodule/core (= 0.66.3) 245 | - React-cxxreact (0.66.3): 246 | - boost (= 1.76.0) 247 | - DoubleConversion 248 | - glog 249 | - RCT-Folly (= 2021.06.28.00-v2) 250 | - React-callinvoker (= 0.66.3) 251 | - React-jsi (= 0.66.3) 252 | - React-jsinspector (= 0.66.3) 253 | - React-logger (= 0.66.3) 254 | - React-perflogger (= 0.66.3) 255 | - React-runtimeexecutor (= 0.66.3) 256 | - React-jsi (0.66.3): 257 | - boost (= 1.76.0) 258 | - DoubleConversion 259 | - glog 260 | - RCT-Folly (= 2021.06.28.00-v2) 261 | - React-jsi/Default (= 0.66.3) 262 | - React-jsi/Default (0.66.3): 263 | - boost (= 1.76.0) 264 | - DoubleConversion 265 | - glog 266 | - RCT-Folly (= 2021.06.28.00-v2) 267 | - React-jsiexecutor (0.66.3): 268 | - DoubleConversion 269 | - glog 270 | - RCT-Folly (= 2021.06.28.00-v2) 271 | - React-cxxreact (= 0.66.3) 272 | - React-jsi (= 0.66.3) 273 | - React-perflogger (= 0.66.3) 274 | - React-jsinspector (0.66.3) 275 | - React-logger (0.66.3): 276 | - glog 277 | - React-perflogger (0.66.3) 278 | - React-RCTActionSheet (0.66.3): 279 | - React-Core/RCTActionSheetHeaders (= 0.66.3) 280 | - React-RCTAnimation (0.66.3): 281 | - FBReactNativeSpec (= 0.66.3) 282 | - RCT-Folly (= 2021.06.28.00-v2) 283 | - RCTTypeSafety (= 0.66.3) 284 | - React-Core/RCTAnimationHeaders (= 0.66.3) 285 | - React-jsi (= 0.66.3) 286 | - ReactCommon/turbomodule/core (= 0.66.3) 287 | - React-RCTBlob (0.66.3): 288 | - FBReactNativeSpec (= 0.66.3) 289 | - RCT-Folly (= 2021.06.28.00-v2) 290 | - React-Core/RCTBlobHeaders (= 0.66.3) 291 | - React-Core/RCTWebSocket (= 0.66.3) 292 | - React-jsi (= 0.66.3) 293 | - React-RCTNetwork (= 0.66.3) 294 | - ReactCommon/turbomodule/core (= 0.66.3) 295 | - React-RCTImage (0.66.3): 296 | - FBReactNativeSpec (= 0.66.3) 297 | - RCT-Folly (= 2021.06.28.00-v2) 298 | - RCTTypeSafety (= 0.66.3) 299 | - React-Core/RCTImageHeaders (= 0.66.3) 300 | - React-jsi (= 0.66.3) 301 | - React-RCTNetwork (= 0.66.3) 302 | - ReactCommon/turbomodule/core (= 0.66.3) 303 | - React-RCTLinking (0.66.3): 304 | - FBReactNativeSpec (= 0.66.3) 305 | - React-Core/RCTLinkingHeaders (= 0.66.3) 306 | - React-jsi (= 0.66.3) 307 | - ReactCommon/turbomodule/core (= 0.66.3) 308 | - React-RCTNetwork (0.66.3): 309 | - FBReactNativeSpec (= 0.66.3) 310 | - RCT-Folly (= 2021.06.28.00-v2) 311 | - RCTTypeSafety (= 0.66.3) 312 | - React-Core/RCTNetworkHeaders (= 0.66.3) 313 | - React-jsi (= 0.66.3) 314 | - ReactCommon/turbomodule/core (= 0.66.3) 315 | - React-RCTSettings (0.66.3): 316 | - FBReactNativeSpec (= 0.66.3) 317 | - RCT-Folly (= 2021.06.28.00-v2) 318 | - RCTTypeSafety (= 0.66.3) 319 | - React-Core/RCTSettingsHeaders (= 0.66.3) 320 | - React-jsi (= 0.66.3) 321 | - ReactCommon/turbomodule/core (= 0.66.3) 322 | - React-RCTText (0.66.3): 323 | - React-Core/RCTTextHeaders (= 0.66.3) 324 | - React-RCTVibration (0.66.3): 325 | - FBReactNativeSpec (= 0.66.3) 326 | - RCT-Folly (= 2021.06.28.00-v2) 327 | - React-Core/RCTVibrationHeaders (= 0.66.3) 328 | - React-jsi (= 0.66.3) 329 | - ReactCommon/turbomodule/core (= 0.66.3) 330 | - React-runtimeexecutor (0.66.3): 331 | - React-jsi (= 0.66.3) 332 | - ReactCommon/turbomodule/core (0.66.3): 333 | - DoubleConversion 334 | - glog 335 | - RCT-Folly (= 2021.06.28.00-v2) 336 | - React-callinvoker (= 0.66.3) 337 | - React-Core (= 0.66.3) 338 | - React-cxxreact (= 0.66.3) 339 | - React-jsi (= 0.66.3) 340 | - React-logger (= 0.66.3) 341 | - React-perflogger (= 0.66.3) 342 | - Yoga (1.14.0) 343 | - YogaKit (1.18.1): 344 | - Yoga (~> 1.14) 345 | 346 | DEPENDENCIES: 347 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) 348 | - BVLinearGradient (from `../node_modules/react-native-linear-gradient`) 349 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 350 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 351 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 352 | - Flipper (= 0.99.0) 353 | - Flipper-Boost-iOSX (= 1.76.0.1.11) 354 | - Flipper-DoubleConversion (= 3.1.7) 355 | - Flipper-Fmt (= 7.1.7) 356 | - Flipper-Folly (= 2.6.7) 357 | - Flipper-Glog (= 0.3.6) 358 | - Flipper-PeerTalk (= 0.0.4) 359 | - Flipper-RSocket (= 1.4.3) 360 | - FlipperKit (= 0.99.0) 361 | - FlipperKit/Core (= 0.99.0) 362 | - FlipperKit/CppBridge (= 0.99.0) 363 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.99.0) 364 | - FlipperKit/FBDefines (= 0.99.0) 365 | - FlipperKit/FKPortForwarding (= 0.99.0) 366 | - FlipperKit/FlipperKitHighlightOverlay (= 0.99.0) 367 | - FlipperKit/FlipperKitLayoutPlugin (= 0.99.0) 368 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.99.0) 369 | - FlipperKit/FlipperKitNetworkPlugin (= 0.99.0) 370 | - FlipperKit/FlipperKitReactPlugin (= 0.99.0) 371 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.99.0) 372 | - FlipperKit/SKIOSNetworkPlugin (= 0.99.0) 373 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 374 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 375 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 376 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 377 | - React (from `../node_modules/react-native/`) 378 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 379 | - React-Core (from `../node_modules/react-native/`) 380 | - React-Core/DevSupport (from `../node_modules/react-native/`) 381 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 382 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 383 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 384 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 385 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 386 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 387 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`) 388 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 389 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 390 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 391 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 392 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 393 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 394 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 395 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 396 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 397 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 398 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 399 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 400 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 401 | 402 | SPEC REPOS: 403 | trunk: 404 | - CocoaAsyncSocket 405 | - Flipper 406 | - Flipper-Boost-iOSX 407 | - Flipper-DoubleConversion 408 | - Flipper-Fmt 409 | - Flipper-Folly 410 | - Flipper-Glog 411 | - Flipper-PeerTalk 412 | - Flipper-RSocket 413 | - FlipperKit 414 | - fmt 415 | - libevent 416 | - OpenSSL-Universal 417 | - YogaKit 418 | 419 | EXTERNAL SOURCES: 420 | boost: 421 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" 422 | BVLinearGradient: 423 | :path: "../node_modules/react-native-linear-gradient" 424 | DoubleConversion: 425 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 426 | FBLazyVector: 427 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 428 | FBReactNativeSpec: 429 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 430 | glog: 431 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 432 | RCT-Folly: 433 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 434 | RCTRequired: 435 | :path: "../node_modules/react-native/Libraries/RCTRequired" 436 | RCTTypeSafety: 437 | :path: "../node_modules/react-native/Libraries/TypeSafety" 438 | React: 439 | :path: "../node_modules/react-native/" 440 | React-callinvoker: 441 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 442 | React-Core: 443 | :path: "../node_modules/react-native/" 444 | React-CoreModules: 445 | :path: "../node_modules/react-native/React/CoreModules" 446 | React-cxxreact: 447 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 448 | React-jsi: 449 | :path: "../node_modules/react-native/ReactCommon/jsi" 450 | React-jsiexecutor: 451 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 452 | React-jsinspector: 453 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 454 | React-logger: 455 | :path: "../node_modules/react-native/ReactCommon/logger" 456 | React-perflogger: 457 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 458 | React-RCTActionSheet: 459 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 460 | React-RCTAnimation: 461 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 462 | React-RCTBlob: 463 | :path: "../node_modules/react-native/Libraries/Blob" 464 | React-RCTImage: 465 | :path: "../node_modules/react-native/Libraries/Image" 466 | React-RCTLinking: 467 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 468 | React-RCTNetwork: 469 | :path: "../node_modules/react-native/Libraries/Network" 470 | React-RCTSettings: 471 | :path: "../node_modules/react-native/Libraries/Settings" 472 | React-RCTText: 473 | :path: "../node_modules/react-native/Libraries/Text" 474 | React-RCTVibration: 475 | :path: "../node_modules/react-native/Libraries/Vibration" 476 | React-runtimeexecutor: 477 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 478 | ReactCommon: 479 | :path: "../node_modules/react-native/ReactCommon" 480 | Yoga: 481 | :path: "../node_modules/react-native/ReactCommon/yoga" 482 | 483 | SPEC CHECKSUMS: 484 | boost: a7c83b31436843459a1961bfd74b96033dc77234 485 | BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872 486 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 487 | DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 488 | FBLazyVector: de148e8310b8b878db304ceea2fec13f2c02e3a0 489 | FBReactNativeSpec: 6192956c9e346013d5f1809ba049af720b11c6a4 490 | Flipper: 30e8eeeed6abdc98edaf32af0cda2f198be4b733 491 | Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c 492 | Flipper-DoubleConversion: 57ffbe81ef95306cc9e69c4aa3aeeeeb58a6a28c 493 | Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b 494 | Flipper-Folly: 83af37379faa69497529e414bd43fbfc7cae259a 495 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 496 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 497 | Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 498 | FlipperKit: d8d346844eca5d9120c17d441a2f38596e8ed2b9 499 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 500 | glog: 5337263514dd6f09803962437687240c5dc39aa4 501 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 502 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 503 | RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 504 | RCTRequired: 59d2b744d8c2bf2d9bc7032a9f654809adcf7d50 505 | RCTTypeSafety: d0aaf7ccae5c70a4aaa3a5c3e9e0db97efae760e 506 | React: fbe655dd1d12c052299b61abdc576720098d80fc 507 | React-callinvoker: a535746608d9bc8b1dea7095ed4d8d3d7aae9a05 508 | React-Core: 008d2638c4f80b189c8e170ff2d241027ec517fd 509 | React-CoreModules: 91c9a03f4e1b74494c087d9c9a29e89a3145c228 510 | React-cxxreact: 9c462fb6d59f865855e2dee2097c7d87b3d2de49 511 | React-jsi: 4de8b8d70ba4ed841eb9b772bdb719f176387e21 512 | React-jsiexecutor: 433a691aee158533a6a6ee9c86cb4a1684fa2853 513 | React-jsinspector: d9c8eb0b53f0da206fed56612b289fec84991157 514 | React-logger: e522e76fa3e9ec3e7d7115b49485cc065cf4ae06 515 | React-perflogger: 73732888d37d4f5065198727b167846743232882 516 | React-RCTActionSheet: 96c6d774fa89b1f7c59fc460adc3245ba2d7fd79 517 | React-RCTAnimation: 8940cfd3a8640bd6f6372150dbdb83a79bcbae6c 518 | React-RCTBlob: e80de5fdf952a4f226a00fc54f3db526809f92f7 519 | React-RCTImage: f990d6b272c7e89ff864caf0bccfb620ab3ca5d0 520 | React-RCTLinking: 2280ed0d5ffb78954b484b90228d597b5f941c5f 521 | React-RCTNetwork: 1359fa853c216616e711b810dcb8682a6a8e7564 522 | React-RCTSettings: 84958860aaa3639f0249e751ea7702c62eb67188 523 | React-RCTText: 196cf06b8cb6229d8c6dd9fc9057bdf97db5d3fb 524 | React-RCTVibration: 50cfe7049167cfc7e83ac5542c6fff0c76791a9b 525 | React-runtimeexecutor: bbbdb3d8fcf327c6e2249ee71b6ef1764b7dc266 526 | ReactCommon: 9bac022ab71596f2b0fde1268272543184c63971 527 | Yoga: 32a18c0e845e185f4a2a66ec76e1fd1f958f22fa 528 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 529 | 530 | PODFILE CHECKSUM: 9af65361d8a000b8f3b07171fd9cfcc3632878eb 531 | 532 | COCOAPODS: 1.11.2 533 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.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 | 6172F2D35A4C3AA820D92908 /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6423831EA8574132BED9D8CC /* libPods-example.a */; }; 15 | 7EF68E3733C33B6898317E18 /* libPods-example-exampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ABFE59519B596E51CEFDCCC0 /* libPods-example-exampleTests.a */; }; 16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 17 | 4955452A0028446CA5F9DFE9 /* SuezOne.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8BD36CBDDB6240C3A4F36EC6 /* SuezOne.ttf */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 26 | remoteInfo = example; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; }; 34 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; }; 36 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; }; 37 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; }; 38 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; }; 39 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; }; 40 | 1D0AE47A65C8663E3B452821 /* Pods-example-exampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example-exampleTests.release.xcconfig"; path = "Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.release.xcconfig"; sourceTree = ""; }; 41 | 6423831EA8574132BED9D8CC /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 6C97AB639B58BBB4B15BBE30 /* Pods-example-exampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example-exampleTests.debug.xcconfig"; path = "Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.debug.xcconfig"; sourceTree = ""; }; 43 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example/LaunchScreen.storyboard; sourceTree = ""; }; 44 | ABFE59519B596E51CEFDCCC0 /* libPods-example-exampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example-exampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | C0A881CF5CF3F2B244570E2A /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = ""; }; 46 | D00AAFFCFCFDA5787532823F /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = ""; }; 47 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 48 | 8BD36CBDDB6240C3A4F36EC6 /* SuezOne.ttf */ = {isa = PBXFileReference; name = "SuezOne.ttf"; path = "../assets/fonts/SuezOne.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 49 | /* End PBXFileReference section */ 50 | 51 | /* Begin PBXFrameworksBuildPhase section */ 52 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 53 | isa = PBXFrameworksBuildPhase; 54 | buildActionMask = 2147483647; 55 | files = ( 56 | 7EF68E3733C33B6898317E18 /* libPods-example-exampleTests.a in Frameworks */, 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | 6172F2D35A4C3AA820D92908 /* libPods-example.a in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 00E356EF1AD99517003FC87E /* exampleTests */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 00E356F21AD99517003FC87E /* exampleTests.m */, 75 | 00E356F01AD99517003FC87E /* Supporting Files */, 76 | ); 77 | path = exampleTests; 78 | sourceTree = ""; 79 | }; 80 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 00E356F11AD99517003FC87E /* Info.plist */, 84 | ); 85 | name = "Supporting Files"; 86 | sourceTree = ""; 87 | }; 88 | 13B07FAE1A68108700A75B9A /* example */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 92 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 93 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 94 | 13B07FB61A68108700A75B9A /* Info.plist */, 95 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 96 | 13B07FB71A68108700A75B9A /* main.m */, 97 | ); 98 | name = example; 99 | sourceTree = ""; 100 | }; 101 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 105 | 6423831EA8574132BED9D8CC /* libPods-example.a */, 106 | ABFE59519B596E51CEFDCCC0 /* libPods-example-exampleTests.a */, 107 | ); 108 | name = Frameworks; 109 | sourceTree = ""; 110 | }; 111 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | ); 115 | name = Libraries; 116 | sourceTree = ""; 117 | }; 118 | 83CBB9F61A601CBA00E9B192 = { 119 | isa = PBXGroup; 120 | children = ( 121 | 13B07FAE1A68108700A75B9A /* example */, 122 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 123 | 00E356EF1AD99517003FC87E /* exampleTests */, 124 | 83CBBA001A601CBA00E9B192 /* Products */, 125 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 126 | E233CBF5F47BEE60B243DCF8 /* Pods */, 127 | 56905DC5C7B246349D086ED3 /* Resources */, 128 | ); 129 | indentWidth = 2; 130 | sourceTree = ""; 131 | tabWidth = 2; 132 | usesTabs = 0; 133 | }; 134 | 83CBBA001A601CBA00E9B192 /* Products */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 13B07F961A680F5B00A75B9A /* example.app */, 138 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */, 139 | ); 140 | name = Products; 141 | sourceTree = ""; 142 | }; 143 | E233CBF5F47BEE60B243DCF8 /* Pods */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | C0A881CF5CF3F2B244570E2A /* Pods-example.debug.xcconfig */, 147 | D00AAFFCFCFDA5787532823F /* Pods-example.release.xcconfig */, 148 | 6C97AB639B58BBB4B15BBE30 /* Pods-example-exampleTests.debug.xcconfig */, 149 | 1D0AE47A65C8663E3B452821 /* Pods-example-exampleTests.release.xcconfig */, 150 | ); 151 | name = Pods; 152 | path = Pods; 153 | sourceTree = ""; 154 | }; 155 | 56905DC5C7B246349D086ED3 /* Resources */ = { 156 | isa = "PBXGroup"; 157 | children = ( 158 | 8BD36CBDDB6240C3A4F36EC6 /* SuezOne.ttf */, 159 | ); 160 | name = Resources; 161 | sourceTree = ""; 162 | path = ""; 163 | }; 164 | /* End PBXGroup section */ 165 | 166 | /* Begin PBXNativeTarget section */ 167 | 00E356ED1AD99517003FC87E /* exampleTests */ = { 168 | isa = PBXNativeTarget; 169 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */; 170 | buildPhases = ( 171 | A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */, 172 | 00E356EA1AD99517003FC87E /* Sources */, 173 | 00E356EB1AD99517003FC87E /* Frameworks */, 174 | 00E356EC1AD99517003FC87E /* Resources */, 175 | 077E01280D4B4AD18B2E1770 /* [CP] Embed Pods Frameworks */, 176 | 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */, 177 | ); 178 | buildRules = ( 179 | ); 180 | dependencies = ( 181 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 182 | ); 183 | name = exampleTests; 184 | productName = exampleTests; 185 | productReference = 00E356EE1AD99517003FC87E /* exampleTests.xctest */; 186 | productType = "com.apple.product-type.bundle.unit-test"; 187 | }; 188 | 13B07F861A680F5B00A75B9A /* example */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */; 191 | buildPhases = ( 192 | 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */, 193 | FD10A7F022414F080027D42C /* Start Packager */, 194 | 13B07F871A680F5B00A75B9A /* Sources */, 195 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 196 | 13B07F8E1A680F5B00A75B9A /* Resources */, 197 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 198 | C8AC78B0264D0F9F6F6D630E /* [CP] Embed Pods Frameworks */, 199 | ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | ); 205 | name = example; 206 | productName = example; 207 | productReference = 13B07F961A680F5B00A75B9A /* example.app */; 208 | productType = "com.apple.product-type.application"; 209 | }; 210 | /* End PBXNativeTarget section */ 211 | 212 | /* Begin PBXProject section */ 213 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 214 | isa = PBXProject; 215 | attributes = { 216 | LastUpgradeCheck = 1210; 217 | TargetAttributes = { 218 | 00E356ED1AD99517003FC87E = { 219 | CreatedOnToolsVersion = 6.2; 220 | TestTargetID = 13B07F861A680F5B00A75B9A; 221 | }; 222 | 13B07F861A680F5B00A75B9A = { 223 | LastSwiftMigration = 1120; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */; 228 | compatibilityVersion = "Xcode 12.0"; 229 | developmentRegion = en; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 83CBB9F61A601CBA00E9B192; 236 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 13B07F861A680F5B00A75B9A /* example */, 241 | 00E356ED1AD99517003FC87E /* exampleTests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 00E356EC1AD99517003FC87E /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 259 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 260 | 4955452A0028446CA5F9DFE9 /* SuezOne.ttf in Resources */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | ); 274 | name = "Bundle React Native code and images"; 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 280 | }; 281 | 077E01280D4B4AD18B2E1770 /* [CP] Embed Pods Frameworks */ = { 282 | isa = PBXShellScriptBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | ); 286 | inputFileListPaths = ( 287 | "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 288 | ); 289 | name = "[CP] Embed Pods Frameworks"; 290 | outputFileListPaths = ( 291 | "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | shellPath = /bin/sh; 295 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks.sh\"\n"; 296 | showEnvVarsInLog = 0; 297 | }; 298 | 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */ = { 299 | isa = PBXShellScriptBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | ); 303 | inputFileListPaths = ( 304 | ); 305 | inputPaths = ( 306 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 307 | "${PODS_ROOT}/Manifest.lock", 308 | ); 309 | name = "[CP] Check Pods Manifest.lock"; 310 | outputFileListPaths = ( 311 | ); 312 | outputPaths = ( 313 | "$(DERIVED_FILE_DIR)/Pods-example-checkManifestLockResult.txt", 314 | ); 315 | runOnlyForDeploymentPostprocessing = 0; 316 | shellPath = /bin/sh; 317 | 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"; 318 | showEnvVarsInLog = 0; 319 | }; 320 | 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */ = { 321 | isa = PBXShellScriptBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | ); 325 | inputFileListPaths = ( 326 | "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", 327 | ); 328 | name = "[CP] Copy Pods Resources"; 329 | outputFileListPaths = ( 330 | "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | shellPath = /bin/sh; 334 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources.sh\"\n"; 335 | showEnvVarsInLog = 0; 336 | }; 337 | A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */ = { 338 | isa = PBXShellScriptBuildPhase; 339 | buildActionMask = 2147483647; 340 | files = ( 341 | ); 342 | inputFileListPaths = ( 343 | ); 344 | inputPaths = ( 345 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 346 | "${PODS_ROOT}/Manifest.lock", 347 | ); 348 | name = "[CP] Check Pods Manifest.lock"; 349 | outputFileListPaths = ( 350 | ); 351 | outputPaths = ( 352 | "$(DERIVED_FILE_DIR)/Pods-example-exampleTests-checkManifestLockResult.txt", 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | shellPath = /bin/sh; 356 | 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"; 357 | showEnvVarsInLog = 0; 358 | }; 359 | ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */ = { 360 | isa = PBXShellScriptBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | ); 364 | inputFileListPaths = ( 365 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-input-files.xcfilelist", 366 | ); 367 | name = "[CP] Copy Pods Resources"; 368 | outputFileListPaths = ( 369 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-output-files.xcfilelist", 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | shellPath = /bin/sh; 373 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\"\n"; 374 | showEnvVarsInLog = 0; 375 | }; 376 | C8AC78B0264D0F9F6F6D630E /* [CP] Embed Pods Frameworks */ = { 377 | isa = PBXShellScriptBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | ); 381 | inputFileListPaths = ( 382 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-input-files.xcfilelist", 383 | ); 384 | name = "[CP] Embed Pods Frameworks"; 385 | outputFileListPaths = ( 386 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-output-files.xcfilelist", 387 | ); 388 | runOnlyForDeploymentPostprocessing = 0; 389 | shellPath = /bin/sh; 390 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks.sh\"\n"; 391 | showEnvVarsInLog = 0; 392 | }; 393 | FD10A7F022414F080027D42C /* Start Packager */ = { 394 | isa = PBXShellScriptBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | ); 398 | inputFileListPaths = ( 399 | ); 400 | inputPaths = ( 401 | ); 402 | name = "Start Packager"; 403 | outputFileListPaths = ( 404 | ); 405 | outputPaths = ( 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | shellPath = /bin/sh; 409 | 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"; 410 | showEnvVarsInLog = 0; 411 | }; 412 | /* End PBXShellScriptBuildPhase section */ 413 | 414 | /* Begin PBXSourcesBuildPhase section */ 415 | 00E356EA1AD99517003FC87E /* Sources */ = { 416 | isa = PBXSourcesBuildPhase; 417 | buildActionMask = 2147483647; 418 | files = ( 419 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */, 420 | ); 421 | runOnlyForDeploymentPostprocessing = 0; 422 | }; 423 | 13B07F871A680F5B00A75B9A /* Sources */ = { 424 | isa = PBXSourcesBuildPhase; 425 | buildActionMask = 2147483647; 426 | files = ( 427 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 428 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 429 | ); 430 | runOnlyForDeploymentPostprocessing = 0; 431 | }; 432 | /* End PBXSourcesBuildPhase section */ 433 | 434 | /* Begin PBXTargetDependency section */ 435 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 436 | isa = PBXTargetDependency; 437 | target = 13B07F861A680F5B00A75B9A /* example */; 438 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 439 | }; 440 | /* End PBXTargetDependency section */ 441 | 442 | /* Begin XCBuildConfiguration section */ 443 | 00E356F61AD99517003FC87E /* Debug */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 6C97AB639B58BBB4B15BBE30 /* Pods-example-exampleTests.debug.xcconfig */; 446 | buildSettings = { 447 | BUNDLE_LOADER = "$(TEST_HOST)"; 448 | GCC_PREPROCESSOR_DEFINITIONS = ( 449 | "DEBUG=1", 450 | "$(inherited)", 451 | ); 452 | INFOPLIST_FILE = exampleTests/Info.plist; 453 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 454 | LD_RUNPATH_SEARCH_PATHS = ( 455 | "$(inherited)", 456 | "@executable_path/Frameworks", 457 | "@loader_path/Frameworks", 458 | ); 459 | OTHER_LDFLAGS = ( 460 | "-ObjC", 461 | "-lc++", 462 | "$(inherited)", 463 | ); 464 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 465 | PRODUCT_NAME = "$(TARGET_NAME)"; 466 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example"; 467 | }; 468 | name = Debug; 469 | }; 470 | 00E356F71AD99517003FC87E /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | baseConfigurationReference = 1D0AE47A65C8663E3B452821 /* Pods-example-exampleTests.release.xcconfig */; 473 | buildSettings = { 474 | BUNDLE_LOADER = "$(TEST_HOST)"; 475 | COPY_PHASE_STRIP = NO; 476 | INFOPLIST_FILE = exampleTests/Info.plist; 477 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 478 | LD_RUNPATH_SEARCH_PATHS = ( 479 | "$(inherited)", 480 | "@executable_path/Frameworks", 481 | "@loader_path/Frameworks", 482 | ); 483 | OTHER_LDFLAGS = ( 484 | "-ObjC", 485 | "-lc++", 486 | "$(inherited)", 487 | ); 488 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example"; 491 | }; 492 | name = Release; 493 | }; 494 | 13B07F941A680F5B00A75B9A /* Debug */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = C0A881CF5CF3F2B244570E2A /* Pods-example.debug.xcconfig */; 497 | buildSettings = { 498 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 499 | CLANG_ENABLE_MODULES = YES; 500 | CURRENT_PROJECT_VERSION = 1; 501 | ENABLE_BITCODE = NO; 502 | INFOPLIST_FILE = example/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = ( 504 | "$(inherited)", 505 | "@executable_path/Frameworks", 506 | ); 507 | OTHER_LDFLAGS = ( 508 | "$(inherited)", 509 | "-ObjC", 510 | "-lc++", 511 | ); 512 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 513 | PRODUCT_NAME = example; 514 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 515 | SWIFT_VERSION = 5.0; 516 | VERSIONING_SYSTEM = "apple-generic"; 517 | }; 518 | name = Debug; 519 | }; 520 | 13B07F951A680F5B00A75B9A /* Release */ = { 521 | isa = XCBuildConfiguration; 522 | baseConfigurationReference = D00AAFFCFCFDA5787532823F /* Pods-example.release.xcconfig */; 523 | buildSettings = { 524 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 525 | CLANG_ENABLE_MODULES = YES; 526 | CURRENT_PROJECT_VERSION = 1; 527 | INFOPLIST_FILE = example/Info.plist; 528 | LD_RUNPATH_SEARCH_PATHS = ( 529 | "$(inherited)", 530 | "@executable_path/Frameworks", 531 | ); 532 | OTHER_LDFLAGS = ( 533 | "$(inherited)", 534 | "-ObjC", 535 | "-lc++", 536 | ); 537 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 538 | PRODUCT_NAME = example; 539 | SWIFT_VERSION = 5.0; 540 | VERSIONING_SYSTEM = "apple-generic"; 541 | }; 542 | name = Release; 543 | }; 544 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | buildSettings = { 547 | ALWAYS_SEARCH_USER_PATHS = NO; 548 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 549 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 550 | CLANG_CXX_LIBRARY = "libc++"; 551 | CLANG_ENABLE_MODULES = YES; 552 | CLANG_ENABLE_OBJC_ARC = YES; 553 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 554 | CLANG_WARN_BOOL_CONVERSION = YES; 555 | CLANG_WARN_COMMA = YES; 556 | CLANG_WARN_CONSTANT_CONVERSION = YES; 557 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 558 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 559 | CLANG_WARN_EMPTY_BODY = YES; 560 | CLANG_WARN_ENUM_CONVERSION = YES; 561 | CLANG_WARN_INFINITE_RECURSION = YES; 562 | CLANG_WARN_INT_CONVERSION = YES; 563 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 564 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 565 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 566 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 567 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 568 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 569 | CLANG_WARN_STRICT_PROTOTYPES = YES; 570 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 571 | CLANG_WARN_UNREACHABLE_CODE = YES; 572 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 573 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 574 | COPY_PHASE_STRIP = NO; 575 | ENABLE_STRICT_OBJC_MSGSEND = YES; 576 | ENABLE_TESTABILITY = YES; 577 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 578 | GCC_C_LANGUAGE_STANDARD = gnu99; 579 | GCC_DYNAMIC_NO_PIC = NO; 580 | GCC_NO_COMMON_BLOCKS = YES; 581 | GCC_OPTIMIZATION_LEVEL = 0; 582 | GCC_PREPROCESSOR_DEFINITIONS = ( 583 | "DEBUG=1", 584 | "$(inherited)", 585 | ); 586 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 587 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 588 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 589 | GCC_WARN_UNDECLARED_SELECTOR = YES; 590 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 591 | GCC_WARN_UNUSED_FUNCTION = YES; 592 | GCC_WARN_UNUSED_VARIABLE = YES; 593 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 594 | LD_RUNPATH_SEARCH_PATHS = ( 595 | /usr/lib/swift, 596 | "$(inherited)", 597 | ); 598 | LIBRARY_SEARCH_PATHS = ( 599 | "\"$(SDKROOT)/usr/lib/swift\"", 600 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 601 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 602 | "\"$(inherited)\"", 603 | ); 604 | MTL_ENABLE_DEBUG_INFO = YES; 605 | ONLY_ACTIVE_ARCH = YES; 606 | SDKROOT = iphoneos; 607 | }; 608 | name = Debug; 609 | }; 610 | 83CBBA211A601CBA00E9B192 /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | ALWAYS_SEARCH_USER_PATHS = NO; 614 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 615 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 616 | CLANG_CXX_LIBRARY = "libc++"; 617 | CLANG_ENABLE_MODULES = YES; 618 | CLANG_ENABLE_OBJC_ARC = YES; 619 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 620 | CLANG_WARN_BOOL_CONVERSION = YES; 621 | CLANG_WARN_COMMA = YES; 622 | CLANG_WARN_CONSTANT_CONVERSION = YES; 623 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 624 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 625 | CLANG_WARN_EMPTY_BODY = YES; 626 | CLANG_WARN_ENUM_CONVERSION = YES; 627 | CLANG_WARN_INFINITE_RECURSION = YES; 628 | CLANG_WARN_INT_CONVERSION = YES; 629 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 630 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 631 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 632 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 633 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 634 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 635 | CLANG_WARN_STRICT_PROTOTYPES = YES; 636 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 637 | CLANG_WARN_UNREACHABLE_CODE = YES; 638 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 639 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 640 | COPY_PHASE_STRIP = YES; 641 | ENABLE_NS_ASSERTIONS = NO; 642 | ENABLE_STRICT_OBJC_MSGSEND = YES; 643 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 644 | GCC_C_LANGUAGE_STANDARD = gnu99; 645 | GCC_NO_COMMON_BLOCKS = YES; 646 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 647 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 648 | GCC_WARN_UNDECLARED_SELECTOR = YES; 649 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 650 | GCC_WARN_UNUSED_FUNCTION = YES; 651 | GCC_WARN_UNUSED_VARIABLE = YES; 652 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 653 | LD_RUNPATH_SEARCH_PATHS = ( 654 | /usr/lib/swift, 655 | "$(inherited)", 656 | ); 657 | LIBRARY_SEARCH_PATHS = ( 658 | "\"$(SDKROOT)/usr/lib/swift\"", 659 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 660 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 661 | "\"$(inherited)\"", 662 | ); 663 | MTL_ENABLE_DEBUG_INFO = NO; 664 | SDKROOT = iphoneos; 665 | VALIDATE_PRODUCT = YES; 666 | }; 667 | name = Release; 668 | }; 669 | /* End XCBuildConfiguration section */ 670 | 671 | /* Begin XCConfigurationList section */ 672 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */ = { 673 | isa = XCConfigurationList; 674 | buildConfigurations = ( 675 | 00E356F61AD99517003FC87E /* Debug */, 676 | 00E356F71AD99517003FC87E /* Release */, 677 | ); 678 | defaultConfigurationIsVisible = 0; 679 | defaultConfigurationName = Release; 680 | }; 681 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = { 682 | isa = XCConfigurationList; 683 | buildConfigurations = ( 684 | 13B07F941A680F5B00A75B9A /* Debug */, 685 | 13B07F951A680F5B00A75B9A /* Release */, 686 | ); 687 | defaultConfigurationIsVisible = 0; 688 | defaultConfigurationName = Release; 689 | }; 690 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = { 691 | isa = XCConfigurationList; 692 | buildConfigurations = ( 693 | 83CBBA201A601CBA00E9B192 /* Debug */, 694 | 83CBBA211A601CBA00E9B192 /* Release */, 695 | ); 696 | defaultConfigurationIsVisible = 0; 697 | defaultConfigurationName = Release; 698 | }; 699 | /* End XCConfigurationList section */ 700 | }; 701 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 702 | } 703 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/xcshareddata/xcschemes/example.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 | -------------------------------------------------------------------------------- /example/ios/example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/example/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /example/ios/example/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:@"example" 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 | -------------------------------------------------------------------------------- /example/ios/example/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 | } -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | UIAppFonts 55 | 56 | SuezOne.ttf 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /example/ios/example/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 | -------------------------------------------------------------------------------- /example/ios/example/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 | -------------------------------------------------------------------------------- /example/ios/exampleTests/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 | -------------------------------------------------------------------------------- /example/ios/exampleTests/exampleTests.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 exampleTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation exampleTests 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 | -------------------------------------------------------------------------------- /example/ios/link-assets-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "migIndex": 1, 3 | "data": [ 4 | { 5 | "path": "assets/fonts/SuezOne.ttf", 6 | "sha1": "e8eaad00863f66dd31a2fc71c2e8f84a66bfafef" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx" 11 | }, 12 | "dependencies": { 13 | "react": "17.0.2", 14 | "react-native": "0.66.3", 15 | "react-native-flex-divider": "^0.1.0", 16 | "react-native-gesture-handler": "^1.10.3", 17 | "react-native-linear-gradient": "^2.5.6" 18 | }, 19 | "devDependencies": { 20 | "@babel/core": "^7.12.9", 21 | "@babel/runtime": "^7.12.5", 22 | "@react-native-community/eslint-config": "^2.0.0", 23 | "@types/jest": "^26.0.23", 24 | "@types/react-native": "^0.66.4", 25 | "@types/react-test-renderer": "^17.0.1", 26 | "babel-jest": "^26.6.3", 27 | "eslint": "^7.14.0", 28 | "jest": "^26.6.3", 29 | "metro-react-native-babel-preset": "^0.66.2", 30 | "react-test-renderer": "17.0.2", 31 | "typescript": "^4.4.4" 32 | }, 33 | "resolutions": { 34 | "@types/react": "^17" 35 | }, 36 | "jest": { 37 | "preset": "react-native", 38 | "moduleFileExtensions": [ 39 | "ts", 40 | "tsx", 41 | "js", 42 | "jsx", 43 | "json", 44 | "node" 45 | ] 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /example/react-native.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | assets: ["./assets/fonts"], 3 | }; 4 | -------------------------------------------------------------------------------- /example/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": ["es2017"], /* 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 | "skipLibCheck": false, /* Skip type checking of declaration files. */ 49 | "resolveJsonModule": true /* Allows importing modules with a ‘.json’ extension, which is a common practice in node projects. */ 50 | 51 | /* Source Map Options */ 52 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 53 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 54 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 55 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 56 | 57 | /* Experimental Options */ 58 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 59 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 60 | }, 61 | "exclude": [ 62 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 63 | ] 64 | } 65 | -------------------------------------------------------------------------------- /lib/FlexDivider.style.ts: -------------------------------------------------------------------------------- 1 | import { ViewStyle, TextStyle, StyleSheet } from "react-native"; 2 | 3 | interface Style { 4 | container: ViewStyle; 5 | dividerStyle: ViewStyle; 6 | textStyle: TextStyle; 7 | } 8 | 9 | export default StyleSheet.create