├── .auto-changelog ├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .gitattributes ├── .gitignore ├── .prettierrc.json ├── .release-it.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── babel.config.js ├── commitlint.config.js ├── example ├── .buckconfig ├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.tsx ├── android │ ├── app │ │ ├── _BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── reactnativesyncedlistexample │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── reactnativesyncedlistexample │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios │ ├── Podfile │ ├── Podfile.lock │ ├── ReactNativeSyncedListExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── ReactNativeSyncedListExample.xcscheme │ ├── ReactNativeSyncedListExample.xcworkspace │ │ └── contents.xcworkspacedata │ ├── ReactNativeSyncedListExample │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── main.m │ └── ReactNativeSyncedListExampleTests │ │ ├── Info.plist │ │ └── ReactNativeSyncedListExampleTests.m ├── metro.config.js ├── mock-data.ts ├── package.json └── tsconfig.json ├── package.json ├── release-template.hbs ├── scripts └── auto-changelog.js ├── src ├── index.ts └── synced-list │ ├── horizontal-list │ └── index.tsx │ ├── index.tsx │ ├── types.d.ts │ └── vertical-list │ └── index.tsx ├── templates ├── changelog-template.hbs └── release-template.hbs └── tsconfig.json /.auto-changelog: -------------------------------------------------------------------------------- 1 | { 2 | "handlebarsSetup": "./scripts/auto-changelog.js", 3 | "ignoreCommitPattern": "^chore: release v", 4 | "tagPattern": "^v(0|1|2)+\\.\\d+\\.\\d+$", 5 | "unreleased": false, 6 | "commitLimit": false 7 | } 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | 9 | indent_style = space 10 | indent_size = 2 11 | 12 | end_of_line = lf 13 | charset = utf-8 14 | trim_trailing_whitespace = true 15 | insert_final_newline = true 16 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | example/ 3 | babel.config.js 4 | commitlint.config.js 5 | auto-changelog.js 6 | 7 | # generated by bob 8 | lib/ 9 | 10 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "env": { 4 | "es6": true, 5 | "node": true, 6 | "jest": true 7 | }, 8 | "extends": [ 9 | "airbnb-typescript", 10 | "plugin:prettier/recommended", 11 | "@react-native-community", 12 | "plugin:@typescript-eslint/recommended", 13 | "plugin:import/typescript", 14 | "plugin:react-hooks/recommended", 15 | "plugin:react/recommended", 16 | "plugin:@typescript-eslint/eslint-recommended", 17 | "plugin:@typescript-eslint/recommended", 18 | "plugin:@typescript-eslint/recommended-requiring-type-checking" 19 | ], 20 | "overrides": [ 21 | { 22 | "files": ["*.ts", "*.tsx"], 23 | "parserOptions": { 24 | "project": ["./tsconfig.json"] 25 | } 26 | } 27 | ], 28 | "parser": "@typescript-eslint/parser", 29 | "parserOptions": { 30 | "ecmaFeatures": { 31 | "jsx": true 32 | }, 33 | "ecmaVersion": 12, 34 | "project": "./tsconfig.json", 35 | "sourceType": "module" 36 | }, 37 | "plugins": ["react-hooks", "@typescript-eslint", "react", "import"], 38 | "settings": { 39 | "react": { 40 | "version": "detect" 41 | }, 42 | "import/extensions": [".ts", ".tsx", ".d.ts", ".js", ".jsx"], 43 | "import/external-module-folders": ["node_modules", "node_modules/@types"], 44 | "import/parsers": { 45 | "@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"] 46 | }, 47 | "import/resolver": { 48 | "node": { 49 | "extensions": [".ts", ".tsx", ".d.ts", ".js", ".jsx"], 50 | "paths": ["src"] 51 | } 52 | } 53 | }, 54 | "rules": { 55 | "import/named": "off", 56 | "@typescript-eslint/no-unnecessary-type-assertion": 0, 57 | "prefer-template": "off", 58 | "no-param-reassign": "off", 59 | "react/no-unused-prop-types": "off", 60 | "@typescript-eslint/restrict-plus-operands": 0, 61 | "no-return-assign": "off", 62 | "array-callback-return": "off", 63 | "@typescript-eslint/no-explicit-any": 0, 64 | "@typescript-eslint/prefer-regexp-exec": 0, 65 | "@typescript-eslint/no-non-null-assertion": 0, 66 | "@typescript-eslint/no-var-requires": 0, 67 | "no-spaced-func": "off", 68 | "@typescript-eslint/restrict-template-expressions": 0, 69 | "@typescript-eslint/no-unsafe-call": 0, 70 | "@typescript-eslint/no-misused-promises": 0, 71 | "@typescript-eslint/no-floating-promises": 0, 72 | "@typescript-eslint/no-unsafe-assignment": 0, 73 | "@typescript-eslint/ban-ts-comment": 0, 74 | "@typescript-eslint/no-unsafe-member-access": 0, 75 | "@typescript-eslint/no-unsafe-return": 0, 76 | "react/display-name": 0, 77 | "prettier/prettier": "error", 78 | "@typescript-eslint/explicit-module-boundary-types": 0, 79 | "@typescript-eslint/no-loop-func": 1, 80 | "@typescript-eslint/no-redeclare": 1, 81 | "@typescript-eslint/no-shadow": 1, 82 | "@typescript-eslint/naming-convention": 0, 83 | "@typescript-eslint/no-use-before-define": 0, 84 | "@typescript-eslint/no-unsafe-argument": 0, 85 | "comma-dangle": "off", 86 | "consistent-return": 0, 87 | "global-require": 0, 88 | "import/no-unresolved": 1, 89 | "max-classes-per-file": ["error", 2], 90 | "no-await-in-loop": 0, 91 | "no-inner-declarations": 0, 92 | "no-nested-ternary": 0, 93 | "no-underscore-dangle": 0, 94 | "quotes": ["error", "single"], 95 | "react-hooks/exhaustive-deps": ["error"], 96 | "react-native/no-inline-styles": 1, 97 | "react/destructuring-assignment": 0, 98 | "react/jsx-filename-extension": [ 99 | 1, 100 | { 101 | "extensions": [".jsx", ".tsx"] 102 | } 103 | ], 104 | "react/jsx-props-no-spreading": 0, 105 | "react/no-access-state-in-setstate": 0, 106 | "react/no-unescaped-entities": 0, 107 | "react/require-default-props": 0, 108 | "react/state-in-constructor": 0, 109 | "react/static-property-placement": 0, 110 | "import/extensions": [ 111 | "warn", 112 | "ignorePackages", 113 | { 114 | "js": "never", 115 | "mjs": "never", 116 | "jsx": "never", 117 | "ts": "never", 118 | "tsx": "never" 119 | } 120 | ] 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # OSX 3 | # 4 | .DS_Store 5 | 6 | # XDE 7 | .expo/ 8 | 9 | # VSCode 10 | .vscode/ 11 | jsconfig.json 12 | 13 | # Xcode 14 | # 15 | build/ 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | xcuserdata 25 | *.xccheckout 26 | *.moved-aside 27 | DerivedData 28 | *.hmap 29 | *.ipa 30 | *.xcuserstate 31 | project.xcworkspace 32 | 33 | # Android/IJ 34 | # 35 | .idea 36 | .gradle 37 | local.properties 38 | android.iml 39 | 40 | # Cocoapods 41 | # 42 | example/ios/Pods 43 | 44 | # node.js 45 | # 46 | node_modules/ 47 | npm-debug.log 48 | yarn-debug.log 49 | yarn-error.log 50 | yarn.lock 51 | example/yarn.lock 52 | 53 | # BUCK 54 | buck-out/ 55 | \.buckd/ 56 | android/app/libs 57 | android/keystores/debug.keystore 58 | 59 | # generated by bob 60 | lib/ 61 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 80, 3 | "arrowParens": "avoid", 4 | "singleQuote": true, 5 | "tabWidth": 2, 6 | "trailingComma": "es5", 7 | "useTabs": false 8 | } 9 | -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- 1 | { 2 | "git": { 3 | "push": true, 4 | "tagName": "v${version}", 5 | "commitMessage": "chore: release v${version}", 6 | "changelog": "auto-changelog --stdout --unreleased --template ./templates/changelog-template.hbs", 7 | "requireCleanWorkingDir": false 8 | 9 | }, 10 | "github": { 11 | "release": true, 12 | "releaseNotes": "auto-changelog --stdout --unreleased --template ./templates/release-template.hbs" 13 | }, 14 | "npm": { 15 | "publish": false 16 | }, 17 | "plugins": { 18 | "@release-it/conventional-changelog": { 19 | "preset": "angular" 20 | } 21 | }, 22 | "hooks": { 23 | "after:bump": "auto-changelog -p --template ./templates/changelog-template.hbs" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 1.0.1 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 georstat 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native Synced Horizontal and Vertical List 2 | 3 | [![npm version](https://img.shields.io/npm/v/@georstat/react-native-synced-list.svg?style=for-the-badge)](https://www.npmjs.com/package/@georstat/react-native-synced-list) 4 | [![npm](https://img.shields.io/npm/dt/@georstat/react-native-synced-list.svg?style=for-the-badge)](https://www.npmjs.com/package/@georstat/react-native-synced-list) 5 | [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT) 6 | ![GitHub package.json version](https://img.shields.io/github/package-json/v/georstat/react-native-synced-list?style=for-the-badge) 7 | ![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge) 8 | 9 | ## Features 10 | 11 | - Synced list component for horizontal and vertical navigation between items 12 | - Written in `Typescript` 13 | 14 | ### Preview: 15 | 16 | ![@georstat:react-native-synced-list demo](https://user-images.githubusercontent.com/717975/144762838-f83db62a-f1bb-4df4-bcf1-9dc56d193aa8.gif) 17 | 18 | ## Installation 19 | 20 | #### yarn: 21 | 22 | ```bash 23 | yarn add @georstat/react-native-synced-list 24 | ``` 25 | 26 | #### npm: 27 | 28 | ```bash 29 | npm i @georstat/react-native-synced-list 30 | ``` 31 | 32 | ## Usage 33 | 34 | #### Just to get started: 35 | 36 | ```tsx 37 | import { SyncedList } from '@georstat/react-native-synced-list'; 38 | 39 | const listData: Item[] = [ 40 | { 41 | id: 1, 42 | title: 'Breakfast', 43 | data: ['Eggs', 'Bacon', 'Milk', 'Coffee', 'Fresh fruits'], 44 | }, 45 | { 46 | id: 2, 47 | title: 'Lunch', 48 | data: [ 49 | 'Fish', 50 | 'Chicken with vegetables', 51 | 'Beans', 52 | 'Wine', 53 | 'Pork with fried potatoes', 54 | ], 55 | }, 56 | // Add more items here 57 | ]; 58 | 59 | const MySyncedList = () => { 60 | return ( 61 | 62 | 63 | 64 | ); 65 | }; 66 | ``` 67 | 68 | #### Custom List example: 69 | 70 | For more info check [example](https://github.com/georstat/react-native-synced-list/tree/main/example) 71 | 72 | ```tsx 73 | import { SyncedList } from '@georstat/react-native-synced-list'; 74 | 75 | const MySyncedList = () => { 76 | const renderHorizontalItem = ( 77 | index: number, 78 | isSelected: boolean, 79 | item: any 80 | ) => { 81 | return ( 82 | 83 | 90 | {item.title} 91 | 92 | 93 | ); 94 | }; 95 | 96 | const renderVerticalItem = (item: any) => { 97 | return ( 98 | 99 | {item} 100 | 101 | ); 102 | }; 103 | 104 | const renderSectionHeader = (section: any) => { 105 | return ( 106 | 107 | 108 | {section.title} 109 | 110 | 111 | ); 112 | }; 113 | 114 | return ( 115 | 116 | 123 | 124 | ); 125 | }; 126 | ``` 127 | 128 | ## Be careful 129 | 130 | By default the horizontal list will render 30 items and the vertical list 40. (`initialNumToRender`). 131 | This is fine for most cases and devices. If you need the maximum performance reduce this number and pass 132 | the `getItemLayoutProp` for the horizontal view. 133 | 134 | ## Props 135 | 136 | #### `SyncedList` accepts the following props: 137 | 138 | | Properties | PropType | Description | 139 | | ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 140 | | `data` | `Array` | (**Required**) Each element in the array must have an id, a title (section title) and a data array (data of each section) | 141 | | `initialId` | `Number` | id of the initial item to scroll | 142 | | `horizontalListContainerStyle` | `Object` | Style for the content container of the horizontal list | 143 | | `verticalListContainerStyle` | `Object` | Style for the content container of the Vertical list | 144 | | `renderHorizontalItem` | `Func` | Function to render a custom item on the horizontal list. Accepts the item , current index and if it is selected eg. `(index:number, isSelected:boolean, item:Item,) => ...` | 145 | | `renderSectionHeader` | `Func` | Function to render a custom header on each section. Accepts the section eg. `(section:Section ) => ...` | 146 | | `renderVerticalItem` | `Func` | Function to render a custom item on the vertical list. Accepts the item eg. `(item:Item) => ...` | 147 | | `verticalListProps` | `Object` | Extra props of the vertical section list | 148 | | `horizontalListProps` | `Object` | Extra props of the horizontal flat list | 149 | 150 | ## Authors: 151 | 152 | - [Efstathios Ntonas](https://github.com/efstathiosntonas) 153 | - [George Bakogiannis](https://github.com/geobako) 154 | - [George Kallinikos](https://github.com/giokallis) 155 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | }; 4 | -------------------------------------------------------------------------------- /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/.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | index.js 3 | metro.config.js 4 | babel.config.js 5 | -------------------------------------------------------------------------------- /example/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "env": { 4 | "es6": true, 5 | "node": true, 6 | "jest": true 7 | }, 8 | "extends": [ 9 | "airbnb-typescript", 10 | "plugin:prettier/recommended", 11 | "@react-native-community", 12 | "plugin:@typescript-eslint/recommended", 13 | "plugin:import/typescript", 14 | "plugin:react-hooks/recommended", 15 | "plugin:react/recommended", 16 | "plugin:@typescript-eslint/recommended-requiring-type-checking" 17 | ], 18 | "overrides": [ 19 | { 20 | "files": ["*.ts", "*.tsx"], 21 | "parserOptions": { 22 | "project": ["./tsconfig.json"] 23 | } 24 | } 25 | ], 26 | "parser": "@typescript-eslint/parser", 27 | "parserOptions": { 28 | "ecmaFeatures": { 29 | "jsx": true 30 | }, 31 | "ecmaVersion": 12, 32 | "project": "./tsconfig.json", 33 | "sourceType": "module" 34 | }, 35 | "plugins": ["react-hooks", "@typescript-eslint", "react", "import"], 36 | "settings": { 37 | "react": { 38 | "version": "detect" 39 | }, 40 | "import/extensions": [".ts", ".tsx", ".d.ts", ".js", ".jsx"], 41 | "import/external-module-folders": ["node_modules", "node_modules/@types"], 42 | "import/parsers": { 43 | "@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"] 44 | }, 45 | "import/resolver": { 46 | "node": { 47 | "extensions": [".ts", ".tsx", ".d.ts", ".js", ".jsx"], 48 | "paths": ["src"] 49 | } 50 | } 51 | }, 52 | "rules": { 53 | "import/named": "off", 54 | "@typescript-eslint/no-unnecessary-type-assertion": 0, 55 | "prefer-template": "off", 56 | "no-param-reassign": "off", 57 | "react/no-unused-prop-types": "off", 58 | "@typescript-eslint/restrict-plus-operands": 0, 59 | "no-return-assign": "off", 60 | "array-callback-return": "off", 61 | "@typescript-eslint/no-explicit-any": 0, 62 | "@typescript-eslint/prefer-regexp-exec": 0, 63 | "@typescript-eslint/no-non-null-assertion": 0, 64 | "@typescript-eslint/no-var-requires": 0, 65 | "no-spaced-func": "off", 66 | "@typescript-eslint/restrict-template-expressions": 0, 67 | "@typescript-eslint/no-unsafe-call": 0, 68 | "@typescript-eslint/no-misused-promises": 0, 69 | "@typescript-eslint/no-floating-promises": 0, 70 | "@typescript-eslint/no-unsafe-assignment": 0, 71 | "@typescript-eslint/ban-ts-comment": 0, 72 | "@typescript-eslint/no-unsafe-member-access": 0, 73 | "@typescript-eslint/no-unsafe-return": 0, 74 | "react/display-name": 0, 75 | "prettier/prettier": "error", 76 | "@typescript-eslint/explicit-module-boundary-types": 0, 77 | "@typescript-eslint/no-loop-func": 1, 78 | "@typescript-eslint/no-redeclare": 1, 79 | "@typescript-eslint/no-shadow": 1, 80 | "@typescript-eslint/naming-convention": 0, 81 | "@typescript-eslint/no-use-before-define": 0, 82 | "@typescript-eslint/no-unsafe-argument": 0, 83 | "comma-dangle": "off", 84 | "consistent-return": 0, 85 | "global-require": 0, 86 | "import/no-unresolved": 0, 87 | "max-classes-per-file": ["error", 2], 88 | "no-await-in-loop": 0, 89 | "no-inner-declarations": 0, 90 | "no-nested-ternary": 0, 91 | "no-underscore-dangle": 0, 92 | "quotes": ["error", "single"], 93 | "react-hooks/exhaustive-deps": ["error"], 94 | "react-native/no-inline-styles": 1, 95 | "react/destructuring-assignment": 0, 96 | "react/jsx-filename-extension": [ 97 | 1, 98 | { 99 | "extensions": [".jsx", ".tsx"] 100 | } 101 | ], 102 | "react/jsx-props-no-spreading": 0, 103 | "react/no-access-state-in-setstate": 0, 104 | "react/no-unescaped-entities": 0, 105 | "react/require-default-props": 0, 106 | "react/state-in-constructor": 0, 107 | "react/static-property-placement": 0, 108 | "import/extensions": [ 109 | "warn", 110 | "ignorePackages", 111 | { 112 | "js": "never", 113 | "mjs": "never", 114 | "jsx": "never", 115 | "ts": "never", 116 | "tsx": "never" 117 | } 118 | ] 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /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.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: true, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/App.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { SafeAreaView, StyleSheet, Text, View } from 'react-native'; 3 | import { SyncedList } from '@georstat/react-native-synced-list'; 4 | import { listData } from './mock-data'; 5 | 6 | const App = () => { 7 | const renderHorizontalItem = ( 8 | // @ts-ignore 9 | index: number, 10 | isSelected: boolean, 11 | item: any, 12 | ) => { 13 | return ( 14 | 15 | 21 | {item.title} 22 | 23 | 24 | ); 25 | }; 26 | 27 | const renderVerticalItem = (item: any) => { 28 | return ( 29 | 30 | {item} 31 | 32 | ); 33 | }; 34 | 35 | const renderSectionHeader = (section: any) => { 36 | return ( 37 | 38 | 39 | {section.title} 40 | 41 | 42 | ); 43 | }; 44 | 45 | return ( 46 | 47 | 54 | 55 | ); 56 | }; 57 | 58 | const styles = StyleSheet.create({ 59 | container: { 60 | flex: 1, 61 | paddingTop: 24, 62 | }, 63 | header: { 64 | color: 'white', 65 | }, 66 | headerContainer: { 67 | alignItems: 'center', 68 | flexDirection: 'row', 69 | marginBottom: 8, 70 | paddingHorizontal: 24, 71 | paddingTop: 24, 72 | }, 73 | horizontalItemWrapper: { 74 | borderRadius: 7, 75 | overflow: 'hidden', 76 | }, 77 | horizontalListContainerStyle: { 78 | paddingBottom: 6, 79 | }, 80 | innerHeaderContainer: { 81 | backgroundColor: 'gray', 82 | borderRadius: 3, 83 | height: 23, 84 | justifyContent: 'center', 85 | paddingHorizontal: 12, 86 | width: '100%', 87 | }, 88 | itemContainer: { 89 | borderRadius: 7, 90 | paddingHorizontal: 16, 91 | paddingVertical: 8, 92 | }, 93 | itemContainerSelected: { 94 | backgroundColor: 'lightblue', 95 | }, 96 | verticalItemContainer: { 97 | backgroundColor: 'rgba(0,0,0,0.1)', 98 | borderBottomColor: 'rgba(0,0,0,0.3)', 99 | borderBottomWidth: 4, 100 | marginBottom: 8, 101 | paddingHorizontal: 32, 102 | paddingVertical: 16, 103 | }, 104 | }); 105 | 106 | export default App; 107 | -------------------------------------------------------------------------------- /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.reactnativesyncedlistexample", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativesyncedlistexample", 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.reactnativesyncedlistexample" 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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/reactnativesyncedlistexample/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.reactnativesyncedlistexample; 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/java/com/reactnativesyncedlistexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativesyncedlistexample; 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 "ReactNativeSyncedListExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/reactnativesyncedlistexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativesyncedlistexample; 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.reactnativesyncedlistexample.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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeSyncedListExample 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/georstat/react-native-synced-list/c95ca2fcd695884cb5b015e0d774c93115ccedb4/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/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeSyncedListExample' 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": "ReactNativeSyncedListExample", 3 | "displayName": "ReactNativeSyncedListExample" 4 | } -------------------------------------------------------------------------------- /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 'ReactNativeSyncedListExample' 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 'ReactNativeSyncedListExampleTests' 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 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.66.3) 6 | - FBReactNativeSpec (0.66.3): 7 | - RCT-Folly (= 2021.06.28.00-v2) 8 | - RCTRequired (= 0.66.3) 9 | - RCTTypeSafety (= 0.66.3) 10 | - React-Core (= 0.66.3) 11 | - React-jsi (= 0.66.3) 12 | - ReactCommon/turbomodule/core (= 0.66.3) 13 | - Flipper (0.99.0): 14 | - Flipper-Folly (~> 2.6) 15 | - Flipper-RSocket (~> 1.4) 16 | - Flipper-Boost-iOSX (1.76.0.1.11) 17 | - Flipper-DoubleConversion (3.1.7) 18 | - Flipper-Fmt (7.1.7) 19 | - Flipper-Folly (2.6.7): 20 | - Flipper-Boost-iOSX 21 | - Flipper-DoubleConversion 22 | - Flipper-Fmt (= 7.1.7) 23 | - Flipper-Glog 24 | - libevent (~> 2.1.12) 25 | - OpenSSL-Universal (= 1.1.180) 26 | - Flipper-Glog (0.3.6) 27 | - Flipper-PeerTalk (0.0.4) 28 | - Flipper-RSocket (1.4.3): 29 | - Flipper-Folly (~> 2.6) 30 | - FlipperKit (0.99.0): 31 | - FlipperKit/Core (= 0.99.0) 32 | - FlipperKit/Core (0.99.0): 33 | - Flipper (~> 0.99.0) 34 | - FlipperKit/CppBridge 35 | - FlipperKit/FBCxxFollyDynamicConvert 36 | - FlipperKit/FBDefines 37 | - FlipperKit/FKPortForwarding 38 | - FlipperKit/CppBridge (0.99.0): 39 | - Flipper (~> 0.99.0) 40 | - FlipperKit/FBCxxFollyDynamicConvert (0.99.0): 41 | - Flipper-Folly (~> 2.6) 42 | - FlipperKit/FBDefines (0.99.0) 43 | - FlipperKit/FKPortForwarding (0.99.0): 44 | - CocoaAsyncSocket (~> 7.6) 45 | - Flipper-PeerTalk (~> 0.0.4) 46 | - FlipperKit/FlipperKitHighlightOverlay (0.99.0) 47 | - FlipperKit/FlipperKitLayoutHelpers (0.99.0): 48 | - FlipperKit/Core 49 | - FlipperKit/FlipperKitHighlightOverlay 50 | - FlipperKit/FlipperKitLayoutTextSearchable 51 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.99.0): 52 | - FlipperKit/Core 53 | - FlipperKit/FlipperKitHighlightOverlay 54 | - FlipperKit/FlipperKitLayoutHelpers 55 | - YogaKit (~> 1.18) 56 | - FlipperKit/FlipperKitLayoutPlugin (0.99.0): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitHighlightOverlay 59 | - FlipperKit/FlipperKitLayoutHelpers 60 | - FlipperKit/FlipperKitLayoutIOSDescriptors 61 | - FlipperKit/FlipperKitLayoutTextSearchable 62 | - YogaKit (~> 1.18) 63 | - FlipperKit/FlipperKitLayoutTextSearchable (0.99.0) 64 | - FlipperKit/FlipperKitNetworkPlugin (0.99.0): 65 | - FlipperKit/Core 66 | - FlipperKit/FlipperKitReactPlugin (0.99.0): 67 | - FlipperKit/Core 68 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.99.0): 69 | - FlipperKit/Core 70 | - FlipperKit/SKIOSNetworkPlugin (0.99.0): 71 | - FlipperKit/Core 72 | - FlipperKit/FlipperKitNetworkPlugin 73 | - fmt (6.2.1) 74 | - glog (0.3.5) 75 | - libevent (2.1.12) 76 | - OpenSSL-Universal (1.1.180) 77 | - RCT-Folly (2021.06.28.00-v2): 78 | - boost 79 | - DoubleConversion 80 | - fmt (~> 6.2.1) 81 | - glog 82 | - RCT-Folly/Default (= 2021.06.28.00-v2) 83 | - RCT-Folly/Default (2021.06.28.00-v2): 84 | - boost 85 | - DoubleConversion 86 | - fmt (~> 6.2.1) 87 | - glog 88 | - RCTRequired (0.66.3) 89 | - RCTTypeSafety (0.66.3): 90 | - FBLazyVector (= 0.66.3) 91 | - RCT-Folly (= 2021.06.28.00-v2) 92 | - RCTRequired (= 0.66.3) 93 | - React-Core (= 0.66.3) 94 | - React (0.66.3): 95 | - React-Core (= 0.66.3) 96 | - React-Core/DevSupport (= 0.66.3) 97 | - React-Core/RCTWebSocket (= 0.66.3) 98 | - React-RCTActionSheet (= 0.66.3) 99 | - React-RCTAnimation (= 0.66.3) 100 | - React-RCTBlob (= 0.66.3) 101 | - React-RCTImage (= 0.66.3) 102 | - React-RCTLinking (= 0.66.3) 103 | - React-RCTNetwork (= 0.66.3) 104 | - React-RCTSettings (= 0.66.3) 105 | - React-RCTText (= 0.66.3) 106 | - React-RCTVibration (= 0.66.3) 107 | - React-callinvoker (0.66.3) 108 | - React-Core (0.66.3): 109 | - glog 110 | - RCT-Folly (= 2021.06.28.00-v2) 111 | - React-Core/Default (= 0.66.3) 112 | - React-cxxreact (= 0.66.3) 113 | - React-jsi (= 0.66.3) 114 | - React-jsiexecutor (= 0.66.3) 115 | - React-perflogger (= 0.66.3) 116 | - Yoga 117 | - React-Core/CoreModulesHeaders (0.66.3): 118 | - glog 119 | - RCT-Folly (= 2021.06.28.00-v2) 120 | - React-Core/Default 121 | - React-cxxreact (= 0.66.3) 122 | - React-jsi (= 0.66.3) 123 | - React-jsiexecutor (= 0.66.3) 124 | - React-perflogger (= 0.66.3) 125 | - Yoga 126 | - React-Core/Default (0.66.3): 127 | - glog 128 | - RCT-Folly (= 2021.06.28.00-v2) 129 | - React-cxxreact (= 0.66.3) 130 | - React-jsi (= 0.66.3) 131 | - React-jsiexecutor (= 0.66.3) 132 | - React-perflogger (= 0.66.3) 133 | - Yoga 134 | - React-Core/DevSupport (0.66.3): 135 | - glog 136 | - RCT-Folly (= 2021.06.28.00-v2) 137 | - React-Core/Default (= 0.66.3) 138 | - React-Core/RCTWebSocket (= 0.66.3) 139 | - React-cxxreact (= 0.66.3) 140 | - React-jsi (= 0.66.3) 141 | - React-jsiexecutor (= 0.66.3) 142 | - React-jsinspector (= 0.66.3) 143 | - React-perflogger (= 0.66.3) 144 | - Yoga 145 | - React-Core/RCTActionSheetHeaders (0.66.3): 146 | - glog 147 | - RCT-Folly (= 2021.06.28.00-v2) 148 | - React-Core/Default 149 | - React-cxxreact (= 0.66.3) 150 | - React-jsi (= 0.66.3) 151 | - React-jsiexecutor (= 0.66.3) 152 | - React-perflogger (= 0.66.3) 153 | - Yoga 154 | - React-Core/RCTAnimationHeaders (0.66.3): 155 | - glog 156 | - RCT-Folly (= 2021.06.28.00-v2) 157 | - React-Core/Default 158 | - React-cxxreact (= 0.66.3) 159 | - React-jsi (= 0.66.3) 160 | - React-jsiexecutor (= 0.66.3) 161 | - React-perflogger (= 0.66.3) 162 | - Yoga 163 | - React-Core/RCTBlobHeaders (0.66.3): 164 | - glog 165 | - RCT-Folly (= 2021.06.28.00-v2) 166 | - React-Core/Default 167 | - React-cxxreact (= 0.66.3) 168 | - React-jsi (= 0.66.3) 169 | - React-jsiexecutor (= 0.66.3) 170 | - React-perflogger (= 0.66.3) 171 | - Yoga 172 | - React-Core/RCTImageHeaders (0.66.3): 173 | - glog 174 | - RCT-Folly (= 2021.06.28.00-v2) 175 | - React-Core/Default 176 | - React-cxxreact (= 0.66.3) 177 | - React-jsi (= 0.66.3) 178 | - React-jsiexecutor (= 0.66.3) 179 | - React-perflogger (= 0.66.3) 180 | - Yoga 181 | - React-Core/RCTLinkingHeaders (0.66.3): 182 | - glog 183 | - RCT-Folly (= 2021.06.28.00-v2) 184 | - React-Core/Default 185 | - React-cxxreact (= 0.66.3) 186 | - React-jsi (= 0.66.3) 187 | - React-jsiexecutor (= 0.66.3) 188 | - React-perflogger (= 0.66.3) 189 | - Yoga 190 | - React-Core/RCTNetworkHeaders (0.66.3): 191 | - glog 192 | - RCT-Folly (= 2021.06.28.00-v2) 193 | - React-Core/Default 194 | - React-cxxreact (= 0.66.3) 195 | - React-jsi (= 0.66.3) 196 | - React-jsiexecutor (= 0.66.3) 197 | - React-perflogger (= 0.66.3) 198 | - Yoga 199 | - React-Core/RCTSettingsHeaders (0.66.3): 200 | - glog 201 | - RCT-Folly (= 2021.06.28.00-v2) 202 | - React-Core/Default 203 | - React-cxxreact (= 0.66.3) 204 | - React-jsi (= 0.66.3) 205 | - React-jsiexecutor (= 0.66.3) 206 | - React-perflogger (= 0.66.3) 207 | - Yoga 208 | - React-Core/RCTTextHeaders (0.66.3): 209 | - glog 210 | - RCT-Folly (= 2021.06.28.00-v2) 211 | - React-Core/Default 212 | - React-cxxreact (= 0.66.3) 213 | - React-jsi (= 0.66.3) 214 | - React-jsiexecutor (= 0.66.3) 215 | - React-perflogger (= 0.66.3) 216 | - Yoga 217 | - React-Core/RCTVibrationHeaders (0.66.3): 218 | - glog 219 | - RCT-Folly (= 2021.06.28.00-v2) 220 | - React-Core/Default 221 | - React-cxxreact (= 0.66.3) 222 | - React-jsi (= 0.66.3) 223 | - React-jsiexecutor (= 0.66.3) 224 | - React-perflogger (= 0.66.3) 225 | - Yoga 226 | - React-Core/RCTWebSocket (0.66.3): 227 | - glog 228 | - RCT-Folly (= 2021.06.28.00-v2) 229 | - React-Core/Default (= 0.66.3) 230 | - React-cxxreact (= 0.66.3) 231 | - React-jsi (= 0.66.3) 232 | - React-jsiexecutor (= 0.66.3) 233 | - React-perflogger (= 0.66.3) 234 | - Yoga 235 | - React-CoreModules (0.66.3): 236 | - FBReactNativeSpec (= 0.66.3) 237 | - RCT-Folly (= 2021.06.28.00-v2) 238 | - RCTTypeSafety (= 0.66.3) 239 | - React-Core/CoreModulesHeaders (= 0.66.3) 240 | - React-jsi (= 0.66.3) 241 | - React-RCTImage (= 0.66.3) 242 | - ReactCommon/turbomodule/core (= 0.66.3) 243 | - React-cxxreact (0.66.3): 244 | - boost (= 1.76.0) 245 | - DoubleConversion 246 | - glog 247 | - RCT-Folly (= 2021.06.28.00-v2) 248 | - React-callinvoker (= 0.66.3) 249 | - React-jsi (= 0.66.3) 250 | - React-jsinspector (= 0.66.3) 251 | - React-logger (= 0.66.3) 252 | - React-perflogger (= 0.66.3) 253 | - React-runtimeexecutor (= 0.66.3) 254 | - React-jsi (0.66.3): 255 | - boost (= 1.76.0) 256 | - DoubleConversion 257 | - glog 258 | - RCT-Folly (= 2021.06.28.00-v2) 259 | - React-jsi/Default (= 0.66.3) 260 | - React-jsi/Default (0.66.3): 261 | - boost (= 1.76.0) 262 | - DoubleConversion 263 | - glog 264 | - RCT-Folly (= 2021.06.28.00-v2) 265 | - React-jsiexecutor (0.66.3): 266 | - DoubleConversion 267 | - glog 268 | - RCT-Folly (= 2021.06.28.00-v2) 269 | - React-cxxreact (= 0.66.3) 270 | - React-jsi (= 0.66.3) 271 | - React-perflogger (= 0.66.3) 272 | - React-jsinspector (0.66.3) 273 | - React-logger (0.66.3): 274 | - glog 275 | - React-perflogger (0.66.3) 276 | - React-RCTActionSheet (0.66.3): 277 | - React-Core/RCTActionSheetHeaders (= 0.66.3) 278 | - React-RCTAnimation (0.66.3): 279 | - FBReactNativeSpec (= 0.66.3) 280 | - RCT-Folly (= 2021.06.28.00-v2) 281 | - RCTTypeSafety (= 0.66.3) 282 | - React-Core/RCTAnimationHeaders (= 0.66.3) 283 | - React-jsi (= 0.66.3) 284 | - ReactCommon/turbomodule/core (= 0.66.3) 285 | - React-RCTBlob (0.66.3): 286 | - FBReactNativeSpec (= 0.66.3) 287 | - RCT-Folly (= 2021.06.28.00-v2) 288 | - React-Core/RCTBlobHeaders (= 0.66.3) 289 | - React-Core/RCTWebSocket (= 0.66.3) 290 | - React-jsi (= 0.66.3) 291 | - React-RCTNetwork (= 0.66.3) 292 | - ReactCommon/turbomodule/core (= 0.66.3) 293 | - React-RCTImage (0.66.3): 294 | - FBReactNativeSpec (= 0.66.3) 295 | - RCT-Folly (= 2021.06.28.00-v2) 296 | - RCTTypeSafety (= 0.66.3) 297 | - React-Core/RCTImageHeaders (= 0.66.3) 298 | - React-jsi (= 0.66.3) 299 | - React-RCTNetwork (= 0.66.3) 300 | - ReactCommon/turbomodule/core (= 0.66.3) 301 | - React-RCTLinking (0.66.3): 302 | - FBReactNativeSpec (= 0.66.3) 303 | - React-Core/RCTLinkingHeaders (= 0.66.3) 304 | - React-jsi (= 0.66.3) 305 | - ReactCommon/turbomodule/core (= 0.66.3) 306 | - React-RCTNetwork (0.66.3): 307 | - FBReactNativeSpec (= 0.66.3) 308 | - RCT-Folly (= 2021.06.28.00-v2) 309 | - RCTTypeSafety (= 0.66.3) 310 | - React-Core/RCTNetworkHeaders (= 0.66.3) 311 | - React-jsi (= 0.66.3) 312 | - ReactCommon/turbomodule/core (= 0.66.3) 313 | - React-RCTSettings (0.66.3): 314 | - FBReactNativeSpec (= 0.66.3) 315 | - RCT-Folly (= 2021.06.28.00-v2) 316 | - RCTTypeSafety (= 0.66.3) 317 | - React-Core/RCTSettingsHeaders (= 0.66.3) 318 | - React-jsi (= 0.66.3) 319 | - ReactCommon/turbomodule/core (= 0.66.3) 320 | - React-RCTText (0.66.3): 321 | - React-Core/RCTTextHeaders (= 0.66.3) 322 | - React-RCTVibration (0.66.3): 323 | - FBReactNativeSpec (= 0.66.3) 324 | - RCT-Folly (= 2021.06.28.00-v2) 325 | - React-Core/RCTVibrationHeaders (= 0.66.3) 326 | - React-jsi (= 0.66.3) 327 | - ReactCommon/turbomodule/core (= 0.66.3) 328 | - React-runtimeexecutor (0.66.3): 329 | - React-jsi (= 0.66.3) 330 | - ReactCommon/turbomodule/core (0.66.3): 331 | - DoubleConversion 332 | - glog 333 | - RCT-Folly (= 2021.06.28.00-v2) 334 | - React-callinvoker (= 0.66.3) 335 | - React-Core (= 0.66.3) 336 | - React-cxxreact (= 0.66.3) 337 | - React-jsi (= 0.66.3) 338 | - React-logger (= 0.66.3) 339 | - React-perflogger (= 0.66.3) 340 | - Yoga (1.14.0) 341 | - YogaKit (1.18.1): 342 | - Yoga (~> 1.14) 343 | 344 | DEPENDENCIES: 345 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) 346 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 347 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 348 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 349 | - Flipper (= 0.99.0) 350 | - Flipper-Boost-iOSX (= 1.76.0.1.11) 351 | - Flipper-DoubleConversion (= 3.1.7) 352 | - Flipper-Fmt (= 7.1.7) 353 | - Flipper-Folly (= 2.6.7) 354 | - Flipper-Glog (= 0.3.6) 355 | - Flipper-PeerTalk (= 0.0.4) 356 | - Flipper-RSocket (= 1.4.3) 357 | - FlipperKit (= 0.99.0) 358 | - FlipperKit/Core (= 0.99.0) 359 | - FlipperKit/CppBridge (= 0.99.0) 360 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.99.0) 361 | - FlipperKit/FBDefines (= 0.99.0) 362 | - FlipperKit/FKPortForwarding (= 0.99.0) 363 | - FlipperKit/FlipperKitHighlightOverlay (= 0.99.0) 364 | - FlipperKit/FlipperKitLayoutPlugin (= 0.99.0) 365 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.99.0) 366 | - FlipperKit/FlipperKitNetworkPlugin (= 0.99.0) 367 | - FlipperKit/FlipperKitReactPlugin (= 0.99.0) 368 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.99.0) 369 | - FlipperKit/SKIOSNetworkPlugin (= 0.99.0) 370 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 371 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 372 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 373 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 374 | - React (from `../node_modules/react-native/`) 375 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 376 | - React-Core (from `../node_modules/react-native/`) 377 | - React-Core/DevSupport (from `../node_modules/react-native/`) 378 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 379 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 380 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 381 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 382 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 383 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 384 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`) 385 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 386 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 387 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 388 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 389 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 390 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 391 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 392 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 393 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 394 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 395 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 396 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 397 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 398 | 399 | SPEC REPOS: 400 | trunk: 401 | - CocoaAsyncSocket 402 | - Flipper 403 | - Flipper-Boost-iOSX 404 | - Flipper-DoubleConversion 405 | - Flipper-Fmt 406 | - Flipper-Folly 407 | - Flipper-Glog 408 | - Flipper-PeerTalk 409 | - Flipper-RSocket 410 | - FlipperKit 411 | - fmt 412 | - libevent 413 | - OpenSSL-Universal 414 | - YogaKit 415 | 416 | EXTERNAL SOURCES: 417 | boost: 418 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" 419 | DoubleConversion: 420 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 421 | FBLazyVector: 422 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 423 | FBReactNativeSpec: 424 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 425 | glog: 426 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 427 | RCT-Folly: 428 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 429 | RCTRequired: 430 | :path: "../node_modules/react-native/Libraries/RCTRequired" 431 | RCTTypeSafety: 432 | :path: "../node_modules/react-native/Libraries/TypeSafety" 433 | React: 434 | :path: "../node_modules/react-native/" 435 | React-callinvoker: 436 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 437 | React-Core: 438 | :path: "../node_modules/react-native/" 439 | React-CoreModules: 440 | :path: "../node_modules/react-native/React/CoreModules" 441 | React-cxxreact: 442 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 443 | React-jsi: 444 | :path: "../node_modules/react-native/ReactCommon/jsi" 445 | React-jsiexecutor: 446 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 447 | React-jsinspector: 448 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 449 | React-logger: 450 | :path: "../node_modules/react-native/ReactCommon/logger" 451 | React-perflogger: 452 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 453 | React-RCTActionSheet: 454 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 455 | React-RCTAnimation: 456 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 457 | React-RCTBlob: 458 | :path: "../node_modules/react-native/Libraries/Blob" 459 | React-RCTImage: 460 | :path: "../node_modules/react-native/Libraries/Image" 461 | React-RCTLinking: 462 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 463 | React-RCTNetwork: 464 | :path: "../node_modules/react-native/Libraries/Network" 465 | React-RCTSettings: 466 | :path: "../node_modules/react-native/Libraries/Settings" 467 | React-RCTText: 468 | :path: "../node_modules/react-native/Libraries/Text" 469 | React-RCTVibration: 470 | :path: "../node_modules/react-native/Libraries/Vibration" 471 | React-runtimeexecutor: 472 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 473 | ReactCommon: 474 | :path: "../node_modules/react-native/ReactCommon" 475 | Yoga: 476 | :path: "../node_modules/react-native/ReactCommon/yoga" 477 | 478 | SPEC CHECKSUMS: 479 | boost: a7c83b31436843459a1961bfd74b96033dc77234 480 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 481 | DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 482 | FBLazyVector: de148e8310b8b878db304ceea2fec13f2c02e3a0 483 | FBReactNativeSpec: 6192956c9e346013d5f1809ba049af720b11c6a4 484 | Flipper: 30e8eeeed6abdc98edaf32af0cda2f198be4b733 485 | Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c 486 | Flipper-DoubleConversion: 57ffbe81ef95306cc9e69c4aa3aeeeeb58a6a28c 487 | Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b 488 | Flipper-Folly: 83af37379faa69497529e414bd43fbfc7cae259a 489 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 490 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 491 | Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 492 | FlipperKit: d8d346844eca5d9120c17d441a2f38596e8ed2b9 493 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 494 | glog: 5337263514dd6f09803962437687240c5dc39aa4 495 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 496 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 497 | RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 498 | RCTRequired: 59d2b744d8c2bf2d9bc7032a9f654809adcf7d50 499 | RCTTypeSafety: d0aaf7ccae5c70a4aaa3a5c3e9e0db97efae760e 500 | React: fbe655dd1d12c052299b61abdc576720098d80fc 501 | React-callinvoker: a535746608d9bc8b1dea7095ed4d8d3d7aae9a05 502 | React-Core: 008d2638c4f80b189c8e170ff2d241027ec517fd 503 | React-CoreModules: 91c9a03f4e1b74494c087d9c9a29e89a3145c228 504 | React-cxxreact: 9c462fb6d59f865855e2dee2097c7d87b3d2de49 505 | React-jsi: 4de8b8d70ba4ed841eb9b772bdb719f176387e21 506 | React-jsiexecutor: 433a691aee158533a6a6ee9c86cb4a1684fa2853 507 | React-jsinspector: d9c8eb0b53f0da206fed56612b289fec84991157 508 | React-logger: e522e76fa3e9ec3e7d7115b49485cc065cf4ae06 509 | React-perflogger: 73732888d37d4f5065198727b167846743232882 510 | React-RCTActionSheet: 96c6d774fa89b1f7c59fc460adc3245ba2d7fd79 511 | React-RCTAnimation: 8940cfd3a8640bd6f6372150dbdb83a79bcbae6c 512 | React-RCTBlob: e80de5fdf952a4f226a00fc54f3db526809f92f7 513 | React-RCTImage: f990d6b272c7e89ff864caf0bccfb620ab3ca5d0 514 | React-RCTLinking: 2280ed0d5ffb78954b484b90228d597b5f941c5f 515 | React-RCTNetwork: 1359fa853c216616e711b810dcb8682a6a8e7564 516 | React-RCTSettings: 84958860aaa3639f0249e751ea7702c62eb67188 517 | React-RCTText: 196cf06b8cb6229d8c6dd9fc9057bdf97db5d3fb 518 | React-RCTVibration: 50cfe7049167cfc7e83ac5542c6fff0c76791a9b 519 | React-runtimeexecutor: bbbdb3d8fcf327c6e2249ee71b6ef1764b7dc266 520 | ReactCommon: 9bac022ab71596f2b0fde1268272543184c63971 521 | Yoga: 32a18c0e845e185f4a2a66ec76e1fd1f958f22fa 522 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 523 | 524 | PODFILE CHECKSUM: 788428560fff74a1f631c7f92022a0502179df26 525 | 526 | COCOAPODS: 1.11.2 527 | -------------------------------------------------------------------------------- /example/ios/ReactNativeSyncedListExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ReactNativeSyncedListExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeSyncedListExampleTests.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-ReactNativeSyncedListExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6423831EA8574132BED9D8CC /* libPods-ReactNativeSyncedListExample.a */; }; 15 | 7EF68E3733C33B6898317E18 /* libPods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ABFE59519B596E51CEFDCCC0 /* libPods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.a */; }; 16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 25 | remoteInfo = ReactNativeSyncedListExample; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 00E356EE1AD99517003FC87E /* ReactNativeSyncedListExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeSyncedListExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 00E356F21AD99517003FC87E /* ReactNativeSyncedListExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeSyncedListExampleTests.m; sourceTree = ""; }; 33 | 13B07F961A680F5B00A75B9A /* ReactNativeSyncedListExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeSyncedListExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeSyncedListExample/AppDelegate.h; sourceTree = ""; }; 35 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeSyncedListExample/AppDelegate.m; sourceTree = ""; }; 36 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeSyncedListExample/Images.xcassets; sourceTree = ""; }; 37 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeSyncedListExample/Info.plist; sourceTree = ""; }; 38 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeSyncedListExample/main.m; sourceTree = ""; }; 39 | 1D0AE47A65C8663E3B452821 /* Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.release.xcconfig"; sourceTree = ""; }; 40 | 6423831EA8574132BED9D8CC /* libPods-ReactNativeSyncedListExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeSyncedListExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 6C97AB639B58BBB4B15BBE30 /* Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.debug.xcconfig"; sourceTree = ""; }; 42 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeSyncedListExample/LaunchScreen.storyboard; sourceTree = ""; }; 43 | ABFE59519B596E51CEFDCCC0 /* libPods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | C0A881CF5CF3F2B244570E2A /* Pods-ReactNativeSyncedListExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSyncedListExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample.debug.xcconfig"; sourceTree = ""; }; 45 | D00AAFFCFCFDA5787532823F /* Pods-ReactNativeSyncedListExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSyncedListExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample.release.xcconfig"; sourceTree = ""; }; 46 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 7EF68E3733C33B6898317E18 /* libPods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.a in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 6172F2D35A4C3AA820D92908 /* libPods-ReactNativeSyncedListExample.a in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 00E356EF1AD99517003FC87E /* ReactNativeSyncedListExampleTests */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 00E356F21AD99517003FC87E /* ReactNativeSyncedListExampleTests.m */, 73 | 00E356F01AD99517003FC87E /* Supporting Files */, 74 | ); 75 | path = ReactNativeSyncedListExampleTests; 76 | sourceTree = ""; 77 | }; 78 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 00E356F11AD99517003FC87E /* Info.plist */, 82 | ); 83 | name = "Supporting Files"; 84 | sourceTree = ""; 85 | }; 86 | 13B07FAE1A68108700A75B9A /* ReactNativeSyncedListExample */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 90 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 91 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 92 | 13B07FB61A68108700A75B9A /* Info.plist */, 93 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 94 | 13B07FB71A68108700A75B9A /* main.m */, 95 | ); 96 | name = ReactNativeSyncedListExample; 97 | sourceTree = ""; 98 | }; 99 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 103 | 6423831EA8574132BED9D8CC /* libPods-ReactNativeSyncedListExample.a */, 104 | ABFE59519B596E51CEFDCCC0 /* libPods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.a */, 105 | ); 106 | name = Frameworks; 107 | sourceTree = ""; 108 | }; 109 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | ); 113 | name = Libraries; 114 | sourceTree = ""; 115 | }; 116 | 83CBB9F61A601CBA00E9B192 = { 117 | isa = PBXGroup; 118 | children = ( 119 | 13B07FAE1A68108700A75B9A /* ReactNativeSyncedListExample */, 120 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 121 | 00E356EF1AD99517003FC87E /* ReactNativeSyncedListExampleTests */, 122 | 83CBBA001A601CBA00E9B192 /* Products */, 123 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 124 | E233CBF5F47BEE60B243DCF8 /* Pods */, 125 | ); 126 | indentWidth = 2; 127 | sourceTree = ""; 128 | tabWidth = 2; 129 | usesTabs = 0; 130 | }; 131 | 83CBBA001A601CBA00E9B192 /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 13B07F961A680F5B00A75B9A /* ReactNativeSyncedListExample.app */, 135 | 00E356EE1AD99517003FC87E /* ReactNativeSyncedListExampleTests.xctest */, 136 | ); 137 | name = Products; 138 | sourceTree = ""; 139 | }; 140 | E233CBF5F47BEE60B243DCF8 /* Pods */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | C0A881CF5CF3F2B244570E2A /* Pods-ReactNativeSyncedListExample.debug.xcconfig */, 144 | D00AAFFCFCFDA5787532823F /* Pods-ReactNativeSyncedListExample.release.xcconfig */, 145 | 6C97AB639B58BBB4B15BBE30 /* Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.debug.xcconfig */, 146 | 1D0AE47A65C8663E3B452821 /* Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.release.xcconfig */, 147 | ); 148 | name = Pods; 149 | path = Pods; 150 | sourceTree = ""; 151 | }; 152 | /* End PBXGroup section */ 153 | 154 | /* Begin PBXNativeTarget section */ 155 | 00E356ED1AD99517003FC87E /* ReactNativeSyncedListExampleTests */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeSyncedListExampleTests" */; 158 | buildPhases = ( 159 | A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */, 160 | 00E356EA1AD99517003FC87E /* Sources */, 161 | 00E356EB1AD99517003FC87E /* Frameworks */, 162 | 00E356EC1AD99517003FC87E /* Resources */, 163 | 077E01280D4B4AD18B2E1770 /* [CP] Embed Pods Frameworks */, 164 | 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */, 165 | ); 166 | buildRules = ( 167 | ); 168 | dependencies = ( 169 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 170 | ); 171 | name = ReactNativeSyncedListExampleTests; 172 | productName = ReactNativeSyncedListExampleTests; 173 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeSyncedListExampleTests.xctest */; 174 | productType = "com.apple.product-type.bundle.unit-test"; 175 | }; 176 | 13B07F861A680F5B00A75B9A /* ReactNativeSyncedListExample */ = { 177 | isa = PBXNativeTarget; 178 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeSyncedListExample" */; 179 | buildPhases = ( 180 | 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */, 181 | FD10A7F022414F080027D42C /* Start Packager */, 182 | 13B07F871A680F5B00A75B9A /* Sources */, 183 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 184 | 13B07F8E1A680F5B00A75B9A /* Resources */, 185 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 186 | C8AC78B0264D0F9F6F6D630E /* [CP] Embed Pods Frameworks */, 187 | ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | ); 193 | name = ReactNativeSyncedListExample; 194 | productName = ReactNativeSyncedListExample; 195 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeSyncedListExample.app */; 196 | productType = "com.apple.product-type.application"; 197 | }; 198 | /* End PBXNativeTarget section */ 199 | 200 | /* Begin PBXProject section */ 201 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 202 | isa = PBXProject; 203 | attributes = { 204 | LastUpgradeCheck = 1210; 205 | TargetAttributes = { 206 | 00E356ED1AD99517003FC87E = { 207 | CreatedOnToolsVersion = 6.2; 208 | TestTargetID = 13B07F861A680F5B00A75B9A; 209 | }; 210 | 13B07F861A680F5B00A75B9A = { 211 | LastSwiftMigration = 1120; 212 | }; 213 | }; 214 | }; 215 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeSyncedListExample" */; 216 | compatibilityVersion = "Xcode 12.0"; 217 | developmentRegion = en; 218 | hasScannedForEncodings = 0; 219 | knownRegions = ( 220 | en, 221 | Base, 222 | ); 223 | mainGroup = 83CBB9F61A601CBA00E9B192; 224 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 225 | projectDirPath = ""; 226 | projectRoot = ""; 227 | targets = ( 228 | 13B07F861A680F5B00A75B9A /* ReactNativeSyncedListExample */, 229 | 00E356ED1AD99517003FC87E /* ReactNativeSyncedListExampleTests */, 230 | ); 231 | }; 232 | /* End PBXProject section */ 233 | 234 | /* Begin PBXResourcesBuildPhase section */ 235 | 00E356EC1AD99517003FC87E /* Resources */ = { 236 | isa = PBXResourcesBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 243 | isa = PBXResourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 247 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | /* End PBXResourcesBuildPhase section */ 252 | 253 | /* Begin PBXShellScriptBuildPhase section */ 254 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 255 | isa = PBXShellScriptBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | inputPaths = ( 260 | ); 261 | name = "Bundle React Native code and images"; 262 | outputPaths = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | shellPath = /bin/sh; 266 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 267 | }; 268 | 077E01280D4B4AD18B2E1770 /* [CP] Embed Pods Frameworks */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputFileListPaths = ( 274 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 275 | ); 276 | name = "[CP] Embed Pods Frameworks"; 277 | outputFileListPaths = ( 278 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | shellPath = /bin/sh; 282 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-frameworks.sh\"\n"; 283 | showEnvVarsInLog = 0; 284 | }; 285 | 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */ = { 286 | isa = PBXShellScriptBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | inputFileListPaths = ( 291 | ); 292 | inputPaths = ( 293 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 294 | "${PODS_ROOT}/Manifest.lock", 295 | ); 296 | name = "[CP] Check Pods Manifest.lock"; 297 | outputFileListPaths = ( 298 | ); 299 | outputPaths = ( 300 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeSyncedListExample-checkManifestLockResult.txt", 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | shellPath = /bin/sh; 304 | 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"; 305 | showEnvVarsInLog = 0; 306 | }; 307 | 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */ = { 308 | isa = PBXShellScriptBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | inputFileListPaths = ( 313 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", 314 | ); 315 | name = "[CP] Copy Pods Resources"; 316 | outputFileListPaths = ( 317 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", 318 | ); 319 | runOnlyForDeploymentPostprocessing = 0; 320 | shellPath = /bin/sh; 321 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-resources.sh\"\n"; 322 | showEnvVarsInLog = 0; 323 | }; 324 | A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */ = { 325 | isa = PBXShellScriptBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | ); 329 | inputFileListPaths = ( 330 | ); 331 | inputPaths = ( 332 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 333 | "${PODS_ROOT}/Manifest.lock", 334 | ); 335 | name = "[CP] Check Pods Manifest.lock"; 336 | outputFileListPaths = ( 337 | ); 338 | outputPaths = ( 339 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests-checkManifestLockResult.txt", 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | shellPath = /bin/sh; 343 | 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"; 344 | showEnvVarsInLog = 0; 345 | }; 346 | ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */ = { 347 | isa = PBXShellScriptBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | ); 351 | inputFileListPaths = ( 352 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample-resources-${CONFIGURATION}-input-files.xcfilelist", 353 | ); 354 | name = "[CP] Copy Pods Resources"; 355 | outputFileListPaths = ( 356 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample-resources-${CONFIGURATION}-output-files.xcfilelist", 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | shellPath = /bin/sh; 360 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample-resources.sh\"\n"; 361 | showEnvVarsInLog = 0; 362 | }; 363 | C8AC78B0264D0F9F6F6D630E /* [CP] Embed Pods Frameworks */ = { 364 | isa = PBXShellScriptBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | ); 368 | inputFileListPaths = ( 369 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", 370 | ); 371 | name = "[CP] Embed Pods Frameworks"; 372 | outputFileListPaths = ( 373 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | shellPath = /bin/sh; 377 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSyncedListExample/Pods-ReactNativeSyncedListExample-frameworks.sh\"\n"; 378 | showEnvVarsInLog = 0; 379 | }; 380 | FD10A7F022414F080027D42C /* Start Packager */ = { 381 | isa = PBXShellScriptBuildPhase; 382 | buildActionMask = 2147483647; 383 | files = ( 384 | ); 385 | inputFileListPaths = ( 386 | ); 387 | inputPaths = ( 388 | ); 389 | name = "Start Packager"; 390 | outputFileListPaths = ( 391 | ); 392 | outputPaths = ( 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | shellPath = /bin/sh; 396 | 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"; 397 | showEnvVarsInLog = 0; 398 | }; 399 | /* End PBXShellScriptBuildPhase section */ 400 | 401 | /* Begin PBXSourcesBuildPhase section */ 402 | 00E356EA1AD99517003FC87E /* Sources */ = { 403 | isa = PBXSourcesBuildPhase; 404 | buildActionMask = 2147483647; 405 | files = ( 406 | 00E356F31AD99517003FC87E /* ReactNativeSyncedListExampleTests.m in Sources */, 407 | ); 408 | runOnlyForDeploymentPostprocessing = 0; 409 | }; 410 | 13B07F871A680F5B00A75B9A /* Sources */ = { 411 | isa = PBXSourcesBuildPhase; 412 | buildActionMask = 2147483647; 413 | files = ( 414 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 415 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 416 | ); 417 | runOnlyForDeploymentPostprocessing = 0; 418 | }; 419 | /* End PBXSourcesBuildPhase section */ 420 | 421 | /* Begin PBXTargetDependency section */ 422 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 423 | isa = PBXTargetDependency; 424 | target = 13B07F861A680F5B00A75B9A /* ReactNativeSyncedListExample */; 425 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 426 | }; 427 | /* End PBXTargetDependency section */ 428 | 429 | /* Begin XCBuildConfiguration section */ 430 | 00E356F61AD99517003FC87E /* Debug */ = { 431 | isa = XCBuildConfiguration; 432 | baseConfigurationReference = 6C97AB639B58BBB4B15BBE30 /* Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.debug.xcconfig */; 433 | buildSettings = { 434 | BUNDLE_LOADER = "$(TEST_HOST)"; 435 | GCC_PREPROCESSOR_DEFINITIONS = ( 436 | "DEBUG=1", 437 | "$(inherited)", 438 | ); 439 | INFOPLIST_FILE = ReactNativeSyncedListExampleTests/Info.plist; 440 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 441 | LD_RUNPATH_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "@executable_path/Frameworks", 444 | "@loader_path/Frameworks", 445 | ); 446 | OTHER_LDFLAGS = ( 447 | "-ObjC", 448 | "-lc++", 449 | "$(inherited)", 450 | ); 451 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeSyncedListExample.app/ReactNativeSyncedListExample"; 454 | }; 455 | name = Debug; 456 | }; 457 | 00E356F71AD99517003FC87E /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 1D0AE47A65C8663E3B452821 /* Pods-ReactNativeSyncedListExample-ReactNativeSyncedListExampleTests.release.xcconfig */; 460 | buildSettings = { 461 | BUNDLE_LOADER = "$(TEST_HOST)"; 462 | COPY_PHASE_STRIP = NO; 463 | INFOPLIST_FILE = ReactNativeSyncedListExampleTests/Info.plist; 464 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 465 | LD_RUNPATH_SEARCH_PATHS = ( 466 | "$(inherited)", 467 | "@executable_path/Frameworks", 468 | "@loader_path/Frameworks", 469 | ); 470 | OTHER_LDFLAGS = ( 471 | "-ObjC", 472 | "-lc++", 473 | "$(inherited)", 474 | ); 475 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 476 | PRODUCT_NAME = "$(TARGET_NAME)"; 477 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeSyncedListExample.app/ReactNativeSyncedListExample"; 478 | }; 479 | name = Release; 480 | }; 481 | 13B07F941A680F5B00A75B9A /* Debug */ = { 482 | isa = XCBuildConfiguration; 483 | baseConfigurationReference = C0A881CF5CF3F2B244570E2A /* Pods-ReactNativeSyncedListExample.debug.xcconfig */; 484 | buildSettings = { 485 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 486 | CLANG_ENABLE_MODULES = YES; 487 | CURRENT_PROJECT_VERSION = 1; 488 | ENABLE_BITCODE = NO; 489 | INFOPLIST_FILE = ReactNativeSyncedListExample/Info.plist; 490 | LD_RUNPATH_SEARCH_PATHS = ( 491 | "$(inherited)", 492 | "@executable_path/Frameworks", 493 | ); 494 | OTHER_LDFLAGS = ( 495 | "$(inherited)", 496 | "-ObjC", 497 | "-lc++", 498 | ); 499 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 500 | PRODUCT_NAME = ReactNativeSyncedListExample; 501 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 502 | SWIFT_VERSION = 5.0; 503 | VERSIONING_SYSTEM = "apple-generic"; 504 | }; 505 | name = Debug; 506 | }; 507 | 13B07F951A680F5B00A75B9A /* Release */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = D00AAFFCFCFDA5787532823F /* Pods-ReactNativeSyncedListExample.release.xcconfig */; 510 | buildSettings = { 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 512 | CLANG_ENABLE_MODULES = YES; 513 | CURRENT_PROJECT_VERSION = 1; 514 | INFOPLIST_FILE = ReactNativeSyncedListExample/Info.plist; 515 | LD_RUNPATH_SEARCH_PATHS = ( 516 | "$(inherited)", 517 | "@executable_path/Frameworks", 518 | ); 519 | OTHER_LDFLAGS = ( 520 | "$(inherited)", 521 | "-ObjC", 522 | "-lc++", 523 | ); 524 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 525 | PRODUCT_NAME = ReactNativeSyncedListExample; 526 | SWIFT_VERSION = 5.0; 527 | VERSIONING_SYSTEM = "apple-generic"; 528 | }; 529 | name = Release; 530 | }; 531 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 532 | isa = XCBuildConfiguration; 533 | buildSettings = { 534 | ALWAYS_SEARCH_USER_PATHS = NO; 535 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 536 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 537 | CLANG_CXX_LIBRARY = "libc++"; 538 | CLANG_ENABLE_MODULES = YES; 539 | CLANG_ENABLE_OBJC_ARC = YES; 540 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 541 | CLANG_WARN_BOOL_CONVERSION = YES; 542 | CLANG_WARN_COMMA = YES; 543 | CLANG_WARN_CONSTANT_CONVERSION = YES; 544 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 545 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 546 | CLANG_WARN_EMPTY_BODY = YES; 547 | CLANG_WARN_ENUM_CONVERSION = YES; 548 | CLANG_WARN_INFINITE_RECURSION = YES; 549 | CLANG_WARN_INT_CONVERSION = YES; 550 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 551 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 552 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 553 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 554 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 555 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 556 | CLANG_WARN_STRICT_PROTOTYPES = YES; 557 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 558 | CLANG_WARN_UNREACHABLE_CODE = YES; 559 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 560 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 561 | COPY_PHASE_STRIP = NO; 562 | ENABLE_STRICT_OBJC_MSGSEND = YES; 563 | ENABLE_TESTABILITY = YES; 564 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 565 | GCC_C_LANGUAGE_STANDARD = gnu99; 566 | GCC_DYNAMIC_NO_PIC = NO; 567 | GCC_NO_COMMON_BLOCKS = YES; 568 | GCC_OPTIMIZATION_LEVEL = 0; 569 | GCC_PREPROCESSOR_DEFINITIONS = ( 570 | "DEBUG=1", 571 | "$(inherited)", 572 | ); 573 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 574 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 575 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 576 | GCC_WARN_UNDECLARED_SELECTOR = YES; 577 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 578 | GCC_WARN_UNUSED_FUNCTION = YES; 579 | GCC_WARN_UNUSED_VARIABLE = YES; 580 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 581 | LD_RUNPATH_SEARCH_PATHS = ( 582 | /usr/lib/swift, 583 | "$(inherited)", 584 | ); 585 | LIBRARY_SEARCH_PATHS = ( 586 | "\"$(SDKROOT)/usr/lib/swift\"", 587 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 588 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 589 | "\"$(inherited)\"", 590 | ); 591 | MTL_ENABLE_DEBUG_INFO = YES; 592 | ONLY_ACTIVE_ARCH = YES; 593 | SDKROOT = iphoneos; 594 | }; 595 | name = Debug; 596 | }; 597 | 83CBBA211A601CBA00E9B192 /* Release */ = { 598 | isa = XCBuildConfiguration; 599 | buildSettings = { 600 | ALWAYS_SEARCH_USER_PATHS = NO; 601 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 602 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 603 | CLANG_CXX_LIBRARY = "libc++"; 604 | CLANG_ENABLE_MODULES = YES; 605 | CLANG_ENABLE_OBJC_ARC = YES; 606 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 607 | CLANG_WARN_BOOL_CONVERSION = YES; 608 | CLANG_WARN_COMMA = YES; 609 | CLANG_WARN_CONSTANT_CONVERSION = YES; 610 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 611 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 612 | CLANG_WARN_EMPTY_BODY = YES; 613 | CLANG_WARN_ENUM_CONVERSION = YES; 614 | CLANG_WARN_INFINITE_RECURSION = YES; 615 | CLANG_WARN_INT_CONVERSION = YES; 616 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 617 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 618 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 619 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 620 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 621 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 622 | CLANG_WARN_STRICT_PROTOTYPES = YES; 623 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 624 | CLANG_WARN_UNREACHABLE_CODE = YES; 625 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 626 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 627 | COPY_PHASE_STRIP = YES; 628 | ENABLE_NS_ASSERTIONS = NO; 629 | ENABLE_STRICT_OBJC_MSGSEND = YES; 630 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 631 | GCC_C_LANGUAGE_STANDARD = gnu99; 632 | GCC_NO_COMMON_BLOCKS = YES; 633 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 634 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 635 | GCC_WARN_UNDECLARED_SELECTOR = YES; 636 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 637 | GCC_WARN_UNUSED_FUNCTION = YES; 638 | GCC_WARN_UNUSED_VARIABLE = YES; 639 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 640 | LD_RUNPATH_SEARCH_PATHS = ( 641 | /usr/lib/swift, 642 | "$(inherited)", 643 | ); 644 | LIBRARY_SEARCH_PATHS = ( 645 | "\"$(SDKROOT)/usr/lib/swift\"", 646 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 647 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 648 | "\"$(inherited)\"", 649 | ); 650 | MTL_ENABLE_DEBUG_INFO = NO; 651 | SDKROOT = iphoneos; 652 | VALIDATE_PRODUCT = YES; 653 | }; 654 | name = Release; 655 | }; 656 | /* End XCBuildConfiguration section */ 657 | 658 | /* Begin XCConfigurationList section */ 659 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeSyncedListExampleTests" */ = { 660 | isa = XCConfigurationList; 661 | buildConfigurations = ( 662 | 00E356F61AD99517003FC87E /* Debug */, 663 | 00E356F71AD99517003FC87E /* Release */, 664 | ); 665 | defaultConfigurationIsVisible = 0; 666 | defaultConfigurationName = Release; 667 | }; 668 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeSyncedListExample" */ = { 669 | isa = XCConfigurationList; 670 | buildConfigurations = ( 671 | 13B07F941A680F5B00A75B9A /* Debug */, 672 | 13B07F951A680F5B00A75B9A /* Release */, 673 | ); 674 | defaultConfigurationIsVisible = 0; 675 | defaultConfigurationName = Release; 676 | }; 677 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeSyncedListExample" */ = { 678 | isa = XCConfigurationList; 679 | buildConfigurations = ( 680 | 83CBBA201A601CBA00E9B192 /* Debug */, 681 | 83CBBA211A601CBA00E9B192 /* Release */, 682 | ); 683 | defaultConfigurationIsVisible = 0; 684 | defaultConfigurationName = Release; 685 | }; 686 | /* End XCConfigurationList section */ 687 | }; 688 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 689 | } 690 | -------------------------------------------------------------------------------- /example/ios/ReactNativeSyncedListExample.xcodeproj/xcshareddata/xcschemes/ReactNativeSyncedListExample.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/ReactNativeSyncedListExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/ReactNativeSyncedListExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /example/ios/ReactNativeSyncedListExample/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:@"ReactNativeSyncedListExample" 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/ReactNativeSyncedListExample/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/ReactNativeSyncedListExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/ReactNativeSyncedListExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativeSyncedListExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /example/ios/ReactNativeSyncedListExample/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/ReactNativeSyncedListExample/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/ReactNativeSyncedListExampleTests/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/ReactNativeSyncedListExampleTests/ReactNativeSyncedListExampleTests.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 ReactNativeSyncedListExampleTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation ReactNativeSyncedListExampleTests 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/metro.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | const blacklist = require('metro-config/src/defaults/exclusionList'); 4 | 5 | const escape = require('escape-string-regexp'); 6 | 7 | const root = path.resolve(__dirname, '..'); 8 | const pak = JSON.parse( 9 | fs.readFileSync(path.join(root, 'package.json'), 'utf8'), 10 | ); 11 | 12 | const modules = [ 13 | '@babel/runtime', 14 | ...Object.keys({ 15 | ...pak.dependencies, 16 | ...pak.peerDependencies, 17 | }), 18 | ]; 19 | 20 | module.exports = { 21 | projectRoot: __dirname, 22 | watchFolders: [root], 23 | 24 | resolver: { 25 | blacklistRE: blacklist([ 26 | new RegExp(`^${escape(path.join(root, 'node_modules'))}\\/.*$`), 27 | ]), 28 | 29 | extraNodeModules: modules.reduce((acc, name) => { 30 | acc[name] = path.join(__dirname, 'node_modules', name); 31 | return acc; 32 | }, {}), 33 | }, 34 | 35 | transformer: { 36 | getTransformOptions: async () => ({ 37 | transform: { 38 | experimentalImportSupport: false, 39 | inlineRequires: true, 40 | }, 41 | }), 42 | }, 43 | }; 44 | -------------------------------------------------------------------------------- /example/mock-data.ts: -------------------------------------------------------------------------------- 1 | export type Item = { 2 | id: number; 3 | title: string; 4 | data: string[]; 5 | }; 6 | 7 | export const listData: Item[] = [ 8 | { 9 | id: 1, 10 | title: 'Breakfast', 11 | data: ['Eggs', 'Bacon', 'Milk', 'Coffee', 'Fresh fruits'], 12 | }, 13 | { 14 | id: 2, 15 | title: 'Lunch', 16 | data: [ 17 | 'Fish', 18 | 'Chicken with vegetables', 19 | 'Beans', 20 | 'Wine', 21 | 'Pork with fried potatoes', 22 | ], 23 | }, 24 | { 25 | id: 3, 26 | title: 'Dinner', 27 | data: [ 28 | 'Yogurt with fruits', 29 | 'Ham sandwich', 30 | 'Fruits', 31 | 'Coffee', 32 | 'Sweet potatoes', 33 | ], 34 | }, 35 | { 36 | id: 4, 37 | title: 'Salads', 38 | data: [ 39 | 'Greek Salad', 40 | 'Green salad', 41 | 'Fruit salads', 42 | 'Bound salads', 43 | 'Rice and pasta salads', 44 | 'Cobb Salad', 45 | ], 46 | }, 47 | { 48 | id: 5, 49 | title: 'Desserts', 50 | data: [ 51 | 'PASTEIS DE NATA', 52 | 'TIRAMISU', 53 | 'GULAB JAMUN', 54 | 'CHURROS', 55 | 'LAMINGTONS', 56 | 'LEMON PIE', 57 | ], 58 | }, 59 | { 60 | id: 6, 61 | title: 'Drinks', 62 | data: [ 63 | 'Coke', 64 | 'Orange juice', 65 | 'Wine', 66 | 'Tsipouro', 67 | 'Ouzo', 68 | 'Retsina', 69 | 'Water', 70 | ], 71 | }, 72 | { 73 | id: 7, 74 | title: 'More Drinks', 75 | data: [ 76 | 'Coke', 77 | 'Orange juice', 78 | 'Wine', 79 | 'Tsipouro', 80 | 'Ouzo', 81 | 'Retsina', 82 | 'Water', 83 | ], 84 | }, 85 | { 86 | id: 8, 87 | title: 'More Desserts', 88 | data: [ 89 | 'PASTEIS DE NATA', 90 | 'TIRAMISU', 91 | 'GULAB JAMUN', 92 | 'CHURROS', 93 | 'LAMINGTONS', 94 | 'LEMON PIE', 95 | ], 96 | }, 97 | { 98 | id: 9, 99 | title: 'More Salads', 100 | data: [ 101 | 'Greek Salad', 102 | 'Green salad', 103 | 'Fruit salads', 104 | 'Bound salads', 105 | 'Rice and pasta salads', 106 | 'Cobb Salad', 107 | ], 108 | }, 109 | ]; 110 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@georstat/react-native-synced-list-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 | }, 16 | "devDependencies": { 17 | "@babel/core": "^7.15.0", 18 | "@babel/runtime": "^7.15.3", 19 | "@react-native-community/eslint-config": "^3.0.1", 20 | "@types/jest": "^26.0.23", 21 | "@typescript-eslint/eslint-plugin": "^5.4.0", 22 | "@typescript-eslint/parser": "^5.4.0", 23 | "@types/react-native": "^0.66.5", 24 | "@types/react-test-renderer": "^17.0.1", 25 | "babel-jest": "^26.6.3", 26 | "eslint": "^8.3.0", 27 | "jest": "^26.6.3", 28 | "metro-react-native-babel-preset": "^0.66.2", 29 | "prettier": "^2.4.1", 30 | "react-test-renderer": "^17.0.2", 31 | "typescript": "^4.5.2", 32 | "eslint-config-prettier": "^8.3.0", 33 | "eslint-plugin-flowtype": "^8.0.3", 34 | "eslint-plugin-import": "^2.25.3", 35 | "eslint-plugin-prettier": "^4.0.0", 36 | "eslint-config-airbnb": "^19.0.0", 37 | "eslint-config-airbnb-typescript": "^16.0.0", 38 | "eslint-import-resolver-typescript": "^2.5.0", 39 | "eslint-plugin-react-hooks": "^4.3.0" 40 | }, 41 | "resolutions": { 42 | "@types/react": "^17" 43 | }, 44 | "jest": { 45 | "preset": "react-native", 46 | "moduleFileExtensions": [ 47 | "ts", 48 | "tsx", 49 | "js", 50 | "jsx", 51 | "json", 52 | "node" 53 | ] 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "@georstat/react-native-synced-list": ["../src/index"] 6 | }, 7 | "allowUnreachableCode": false, 8 | "allowUnusedLabels": false, 9 | "esModuleInterop": true, 10 | "forceConsistentCasingInFileNames": true, 11 | "jsx": "react", 12 | "lib": ["esnext"], 13 | "module": "esnext", 14 | "moduleResolution": "node", 15 | "noFallthroughCasesInSwitch": true, 16 | "noImplicitReturns": true, 17 | "noImplicitUseStrict": false, 18 | "noStrictGenericChecks": false, 19 | "noUnusedLocals": true, 20 | "noUnusedParameters": true, 21 | "resolveJsonModule": true, 22 | "skipLibCheck": true, 23 | "strict": true, 24 | "target": "esnext" 25 | }, 26 | "include": ["src"] 27 | } 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@georstat/react-native-synced-list", 3 | "version": "1.0.1", 4 | "access": "public", 5 | "description": "React Native Synced Lists", 6 | "main": "lib/commonjs/index.js", 7 | "module": "lib/module/index.js", 8 | "types": "lib/typescript/index.d.ts", 9 | "react-native": "src/index.ts", 10 | "files": [ 11 | "src", 12 | "lib" 13 | ], 14 | "keywords": [ 15 | "react-native", 16 | "ios", 17 | "android", 18 | "synced-list", 19 | "flatlist", 20 | "scrolllist", 21 | "synced", 22 | "list" 23 | ], 24 | "repository": "https://github.com/georstat/react-native-synced-list", 25 | "author": "Efstathios Ntonas - George Bakogiannis - George Kallinikos", 26 | "license": "MIT", 27 | "bugs": { 28 | "url": "https://github.com/georstat/react-native-synced-list/issues" 29 | }, 30 | "homepage": "https://github.com/georstat/react-native-synced-list", 31 | "scripts": { 32 | "typescript": "tsc --noEmit", 33 | "lint": "eslint \"**/*.{js,ts,tsx}\"", 34 | "build": "bob build && yarn copy-dts", 35 | "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" lib/typescript", 36 | "release": "release-it", 37 | "example": "yarn --cwd example", 38 | "prettier": "prettier \"**/*.{ts,tsx,js}\" --write", 39 | "bootstrap": "yarn install && yarn example", 40 | "prepare": "husky install" 41 | }, 42 | "dependencies": {}, 43 | "devDependencies": { 44 | "@commitlint/cli": "^15.0.0", 45 | "@commitlint/config-conventional": "^15.0.0", 46 | "@react-native-community/eslint-config": "^3.0.1", 47 | "@release-it/conventional-changelog": "^3.3.0", 48 | "@types/lodash": "^4.14.177", 49 | "@types/react": "^17.0.35", 50 | "@types/react-native": "^0.66.5", 51 | "@typescript-eslint/eslint-plugin": "^5.4.0", 52 | "@typescript-eslint/parser": "^5.4.0", 53 | "auto-changelog": "^2.3.0", 54 | "copyfiles": "^2.4.1", 55 | "eslint": "^8.3.0", 56 | "eslint-config-airbnb": "^19.0.0", 57 | "eslint-config-airbnb-typescript": "^16.0.0", 58 | "eslint-config-prettier": "^8.3.0", 59 | "eslint-import-resolver-typescript": "^2.5.0", 60 | "eslint-plugin-flowtype": "^8.0.3", 61 | "eslint-plugin-import": "^2.25.3", 62 | "eslint-plugin-prettier": "^4.0.0", 63 | "eslint-plugin-react-hooks": "^4.3.0", 64 | "eslint-plugin-react-native-a11y": "^3.0.0", 65 | "husky": "^7.0.4", 66 | "prettier": "^2.4.1", 67 | "react": "17.0.2", 68 | "react-native": "^0.64.2", 69 | "react-native-builder-bob": "^0.18.2", 70 | "release-it": "^14.11.8", 71 | "typescript": "^4.5.2" 72 | }, 73 | "peerDependencies": { 74 | "react": "*", 75 | "react-native": "*" 76 | }, 77 | "husky": { 78 | "hooks": { 79 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", 80 | "pre-commit": "yarn lint && yarn typescript" 81 | } 82 | }, 83 | "react-native-builder-bob": { 84 | "source": "src", 85 | "output": "lib", 86 | "targets": [ 87 | "commonjs", 88 | "module", 89 | "typescript" 90 | ] 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /release-template.hbs: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 | 8 | {{#unless options.hideCredit}} 9 | Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). 10 | {{/unless}} 11 | 12 | {{#each releases}} 13 | {{#if href}} 14 | ## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}} 15 | {{else}} 16 | ## {{title}}{{#if tag}} - {{isoDate}}{{/if}} 17 | {{/if}} 18 | 19 | {{#if summary}} 20 | {{summary}} 21 | {{/if}} 22 | 23 | {{#custom merges commits heading="#### Features" subject="feat: "}} 24 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 25 | {{/custom}} 26 | 27 | {{#custom merges commits heading="#### Improvements" subject="(chore|refactor|style): "}} 28 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 29 | {{/custom}} 30 | 31 | {{#custom merges commits heading="#### Fixes" subject="fix: "}} 32 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 33 | {{/custom}} 34 | 35 | {{#custom merges commits heading="#### Documentations" subject="docs: "}} 36 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 37 | {{/custom}} 38 | 39 | {{/each}} 40 | -------------------------------------------------------------------------------- /scripts/auto-changelog.js: -------------------------------------------------------------------------------- 1 | module.exports = function (Handlebars) { 2 | Handlebars.registerHelper('custom', function (context, extra, options) { 3 | if ((!context || context.length === 0) && (!extra || extra.length === 0)) { 4 | return ''; 5 | } 6 | 7 | const list = [...context, ...extra] 8 | .filter(item => { 9 | const commit = item.commit || item; 10 | if (options.hash.exclude) { 11 | const pattern = new RegExp(options.hash.exclude, 'm'); 12 | if (pattern.test(commit.message)) { 13 | return false; 14 | } 15 | } 16 | if (options.hash.message) { 17 | const pattern = new RegExp(options.hash.message, 'm'); 18 | return pattern.test(commit.message); 19 | } 20 | if (options.hash.subject) { 21 | const pattern = new RegExp(options.hash.subject); 22 | return pattern.test(commit.subject); 23 | } 24 | return true; 25 | }) 26 | .map(item => options.fn(item)) 27 | .join(''); 28 | 29 | if (!list) { 30 | return ''; 31 | } 32 | 33 | return options.hash.heading 34 | ? `${options.hash.heading}\n\n${list}` 35 | : `${list}`; 36 | }); 37 | }; 38 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export { default as SyncedList } from './synced-list'; 2 | -------------------------------------------------------------------------------- /src/synced-list/horizontal-list/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | FlatList, 4 | StyleSheet, 5 | Text, 6 | TouchableOpacity, 7 | View, 8 | } from 'react-native'; 9 | 10 | import { DataItem, HorizontalListProps } from '../types'; 11 | 12 | const HorizontalList = ({ 13 | contentContainerStyle, 14 | data, 15 | onSelect, 16 | renderHorizontalItem, 17 | scrollRef, 18 | selected, 19 | setHorizontalPressed, 20 | verticalScrollRef, 21 | horizontalListProps, 22 | }: HorizontalListProps) => { 23 | const onItemPress = (id: number | string, i: number) => { 24 | setHorizontalPressed(true); 25 | onSelect(id); 26 | if (verticalScrollRef?.current) { 27 | verticalScrollRef.current.scrollToLocation({ 28 | animated: true, 29 | itemIndex: 0, 30 | sectionIndex: i, 31 | viewPosition: 0, 32 | }); 33 | } 34 | if (scrollRef?.current) { 35 | scrollRef.current.scrollToIndex({ 36 | animated: true, 37 | index: i, 38 | viewPosition: 0.5, 39 | }); 40 | } 41 | 42 | setTimeout(() => { 43 | setHorizontalPressed(false); 44 | }, 300); 45 | }; 46 | 47 | const renderItem = ({ item, index }: { item: DataItem; index: number }) => { 48 | return ( 49 | onItemPress(item.id, index)} 52 | > 53 | {renderHorizontalItem ? ( 54 | renderHorizontalItem(index, selected === item.id, item) 55 | ) : ( 56 | 63 | {item.title} 64 | 65 | )} 66 | 67 | ); 68 | }; 69 | 70 | const getFlatlistProps = () => 71 | horizontalListProps ? horizontalListProps : {}; 72 | 73 | return ( 74 | 75 | 76 | item.id.toString()} 87 | onScrollToIndexFailed={() => { 88 | // fallBack(); 89 | }} 90 | ref={scrollRef} 91 | renderItem={renderItem} 92 | showsHorizontalScrollIndicator={false} 93 | {...getFlatlistProps()} 94 | /> 95 | 96 | 97 | ); 98 | }; 99 | 100 | const styles = StyleSheet.create({ 101 | container: { 102 | backgroundColor: 'white', 103 | }, 104 | contentContainerStyle: { 105 | backgroundColor: 'white', 106 | paddingLeft: 24, 107 | }, 108 | itemContainer: { 109 | paddingHorizontal: 16, 110 | paddingVertical: 12, 111 | }, 112 | itemContainerSelected: { 113 | borderBottomColor: '#252728', 114 | borderBottomWidth: 2, 115 | }, 116 | linearGradient: { 117 | bottom: -5, 118 | height: 5, 119 | position: 'absolute', 120 | right: 0, 121 | width: '100%', 122 | }, 123 | }); 124 | 125 | export default HorizontalList; 126 | -------------------------------------------------------------------------------- /src/synced-list/index.tsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable react-hooks/exhaustive-deps */ 2 | import React, { useCallback, useEffect, useRef, useState } from 'react'; 3 | import { FlatList, SectionList, View } from 'react-native'; 4 | 5 | import VerticalList from './vertical-list'; 6 | import HorizontalList from './horizontal-list'; 7 | import { IProps } from './types'; 8 | 9 | const SyncedList = ({ 10 | data, 11 | horizontalListContainerStyle, 12 | initialId, 13 | renderHorizontalItem, 14 | renderSectionHeader, 15 | renderVerticalItem, 16 | verticalListContainerStyle, 17 | horizontalListProps, 18 | verticalListProps, 19 | }: IProps) => { 20 | const horizontalRef = useRef(null); 21 | const verticalRef = useRef(null); 22 | const [horizontalPressed, setHorizontalPressed] = useState(false); 23 | const [rendered, setRendered] = useState(false); 24 | const [selected, setSelected] = useState(''); 25 | const [mapping, setMapping] = useState({}); 26 | 27 | const onSelect = useCallback(id => { 28 | setSelected(id); 29 | }, []); 30 | 31 | useEffect(() => { 32 | if (data.length) { 33 | setSelected(data[0].id); 34 | const initialMapping: { [key: string]: any } = {}; 35 | data.forEach((el, index) => { 36 | initialMapping[el.id] = index; 37 | }); 38 | setMapping(initialMapping); 39 | setTimeout(() => { 40 | setRendered(true); 41 | }, 700); 42 | } 43 | }, [data.length]); 44 | 45 | useEffect(() => { 46 | if (rendered && initialId) { 47 | setHorizontalPressed(true); 48 | setSelected(initialId); 49 | if (horizontalRef?.current && verticalRef?.current) { 50 | const idx = data.findIndex(el => el.id === initialId); 51 | if (idx === -1) { 52 | return; 53 | } 54 | horizontalRef.current.scrollToIndex({ 55 | animated: true, 56 | index: idx, 57 | viewPosition: 0, 58 | }); 59 | verticalRef.current.scrollToLocation({ 60 | animated: true, 61 | itemIndex: 0, 62 | sectionIndex: idx, 63 | viewPosition: 0, 64 | }); 65 | 66 | setTimeout(() => { 67 | setHorizontalPressed(false); 68 | }, 200); 69 | } 70 | } 71 | }, [rendered]); 72 | 73 | return ( 74 | 75 | 86 | 87 | 100 | 101 | ); 102 | }; 103 | 104 | export default SyncedList; 105 | -------------------------------------------------------------------------------- /src/synced-list/types.d.ts: -------------------------------------------------------------------------------- 1 | import React, { Dispatch, RefObject, SetStateAction } from 'react'; 2 | import { 3 | FlatList, 4 | SectionList, 5 | SectionListData, 6 | StyleProp, 7 | ViewStyle, 8 | FlatListProps, 9 | SectionListProps, 10 | } from 'react-native'; 11 | 12 | export type DataItem = { 13 | [key: string]: any; 14 | data: any[]; 15 | id: number | string; 16 | title: string; 17 | }; 18 | 19 | export interface IProps { 20 | horizontalListProps?: FlatListProps; 21 | verticalListProps?: SectionListProps; 22 | data: DataItem[]; 23 | horizontalListContainerStyle?: StyleProp; 24 | initialId?: number | string; 25 | renderHorizontalItem?: ( 26 | index: number, 27 | isSelected: boolean, 28 | item: DataItem 29 | ) => React.ReactNode; 30 | renderSectionHeader?: ( 31 | section: SectionListData 32 | ) => React.ReactElement< 33 | any, 34 | string | React.JSXElementConstructor 35 | > | null; 36 | renderVerticalItem?: (item: any) => JSX.Element; 37 | verticalListContainerStyle?: StyleProp; 38 | } 39 | 40 | export interface HorizontalListProps { 41 | contentContainerStyle?: StyleProp; 42 | data: DataItem[]; 43 | onSelect: (id: number | string | null) => void; 44 | renderHorizontalItem?: ( 45 | index: number, 46 | isSelected: boolean, 47 | item: DataItem 48 | ) => React.ReactNode; 49 | scrollRef: RefObject | undefined; 50 | selected: number | string | null; 51 | setHorizontalPressed: Dispatch>; 52 | verticalScrollRef: RefObject | undefined; 53 | horizontalListProps?: FlatListProps; 54 | } 55 | 56 | export interface VerticalListProps { 57 | verticalListProps?: SectionListProps; 58 | contentContainerStyle?: StyleProp; 59 | data: DataItem[]; 60 | horizontalPressed: boolean; 61 | horizontalScrollRef: RefObject | undefined; 62 | mapping: { [key: string]: any }; 63 | renderSectionHeader?: ( 64 | item: SectionListData 65 | ) => React.ReactElement< 66 | any, 67 | string | React.JSXElementConstructor 68 | > | null; 69 | renderVerticalItem?: (item: any) => JSX.Element; 70 | scrollRef: RefObject | undefined; 71 | selected: number | string | null; 72 | setSelected: Dispatch>; 73 | } 74 | -------------------------------------------------------------------------------- /src/synced-list/vertical-list/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | SectionList, 4 | SectionListData, 5 | StyleSheet, 6 | Text, 7 | View, 8 | ViewToken, 9 | } from 'react-native'; 10 | 11 | import { VerticalListProps } from '../types'; 12 | 13 | const VerticalList = ({ 14 | data, 15 | horizontalPressed, 16 | horizontalScrollRef, 17 | mapping, 18 | renderSectionHeader, 19 | renderVerticalItem, 20 | scrollRef, 21 | selected, 22 | setSelected, 23 | verticalListProps, 24 | }: VerticalListProps) => { 25 | const onViewableItemsChanged = ({ 26 | viewableItems, 27 | }: { 28 | viewableItems: ViewToken[]; 29 | }) => { 30 | if (viewableItems[0] && !viewableItems[0].index && !horizontalPressed) { 31 | const id = viewableItems[0].section.id; 32 | if (id !== selected) { 33 | setSelected(id); 34 | if (horizontalScrollRef?.current) { 35 | horizontalScrollRef.current.scrollToIndex({ 36 | animated: true, 37 | index: mapping[id], 38 | viewPosition: 0.5, 39 | }); 40 | } 41 | } 42 | } 43 | }; 44 | 45 | const fallBack = () => { 46 | if (horizontalScrollRef?.current) { 47 | horizontalScrollRef.current.scrollToIndex({ 48 | animated: true, 49 | index: 0, 50 | viewPosition: 0, 51 | }); 52 | } 53 | 54 | if (scrollRef?.current) { 55 | scrollRef.current.scrollToLocation({ 56 | animated: true, 57 | itemIndex: 0, 58 | sectionIndex: 0, 59 | viewPosition: 0, 60 | }); 61 | } 62 | }; 63 | 64 | const renderItem = ({ item }: { item: any }) => { 65 | if (renderVerticalItem) { 66 | return renderVerticalItem(item); 67 | } else { 68 | return ( 69 | 70 | {item} 71 | 72 | ); 73 | } 74 | }; 75 | 76 | const renderHeader = ({ 77 | section, 78 | }: { 79 | section: SectionListData; 80 | }): React.ReactElement< 81 | any, 82 | string | React.JSXElementConstructor 83 | > | null => { 84 | if (renderSectionHeader) { 85 | return renderSectionHeader(section); 86 | } else { 87 | return ( 88 | 89 | 90 | {section.title} 91 | 92 | 93 | ); 94 | } 95 | }; 96 | 97 | const keyExtractor = (item: any, index: number) => 98 | item?.id?.toString() || index.toString(); 99 | 100 | const getSectionListProps = () => 101 | verticalListProps ? verticalListProps : {}; 102 | 103 | return ( 104 | { 109 | fallBack(); 110 | }} 111 | onViewableItemsChanged={onViewableItemsChanged} 112 | ref={scrollRef} 113 | renderItem={renderItem} 114 | renderSectionHeader={renderHeader} 115 | sections={data} 116 | showsVerticalScrollIndicator={false} 117 | stickySectionHeadersEnabled={false} 118 | viewabilityConfig={{ 119 | itemVisiblePercentThreshold: 50, 120 | }} 121 | {...getSectionListProps()} 122 | /> 123 | ); 124 | }; 125 | 126 | const styles = StyleSheet.create({ 127 | contentContainerStyle: { 128 | paddingBottom: 80, 129 | }, 130 | header: { 131 | color: 'white', 132 | }, 133 | headerContainer: { 134 | alignItems: 'center', 135 | flexDirection: 'row', 136 | marginBottom: 8, 137 | paddingHorizontal: 24, 138 | paddingTop: 24, 139 | }, 140 | innerHeaderContainer: { 141 | backgroundColor: '#252728', 142 | borderRadius: 3, 143 | height: 23, 144 | justifyContent: 'center', 145 | paddingHorizontal: 12, 146 | width: '100%', 147 | }, 148 | itemContainer: { 149 | backgroundColor: 'rgba(0,0,0,0.1)', 150 | marginBottom: 8, 151 | paddingHorizontal: 32, 152 | paddingVertical: 16, 153 | }, 154 | }); 155 | 156 | export default VerticalList; 157 | -------------------------------------------------------------------------------- /templates/changelog-template.hbs: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | {{#each releases}} 4 | {{#if href}} 5 | ## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}} 6 | {{else}} 7 | ## {{title}}{{#if tag}} - {{isoDate}}{{/if}} 8 | {{/if}} 9 | 10 | {{#if summary}} 11 | {{summary}} 12 | {{/if}} 13 | 14 | {{#custom merges commits heading="#### Features" subject="feat: "}} 15 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 16 | {{/custom}} 17 | 18 | {{#custom merges commits heading="#### Improvements" subject="(chore|refactor|style): "}} 19 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 20 | {{/custom}} 21 | 22 | {{#custom merges commits heading="#### Fixes" subject="fix: "}} 23 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 24 | {{/custom}} 25 | 26 | {{#custom merges commits heading="#### Documentations" subject="docs: "}} 27 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 28 | {{/custom}} 29 | 30 | {{/each}} 31 | -------------------------------------------------------------------------------- /templates/release-template.hbs: -------------------------------------------------------------------------------- 1 | {{#each releases}} 2 | {{#if @first}} 3 | {{#custom merges commits heading="#### Features" subject="feat: "}} 4 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 5 | {{/custom}} 6 | 7 | {{#custom merges commits heading="#### Improvements" subject="(chore|refactor|style): "}} 8 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 9 | {{/custom}} 10 | 11 | {{#custom merges commits heading="#### Fixes" subject="fix: "}} 12 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 13 | {{/custom}} 14 | 15 | {{#custom merges commits heading="#### Documentations" subject="docs: "}} 16 | - {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})). 17 | {{/custom}} 18 | {{/if}} 19 | {{/each}} 20 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "@georstat/react-native-synced-list": ["./src/index"] 6 | }, 7 | "allowUnreachableCode": false, 8 | "allowUnusedLabels": false, 9 | "esModuleInterop": true, 10 | "forceConsistentCasingInFileNames": true, 11 | "jsx": "react", 12 | "lib": [ 13 | "esnext", 14 | "dom" 15 | ], 16 | "module": "esnext", 17 | "moduleResolution": "node", 18 | "noFallthroughCasesInSwitch": true, 19 | "noImplicitReturns": true, 20 | "noImplicitUseStrict": false, 21 | "noStrictGenericChecks": false, 22 | "noUnusedLocals": true, 23 | "noUnusedParameters": true, 24 | "resolveJsonModule": true, 25 | "skipLibCheck": true, 26 | "strict": true, 27 | "target": "esnext" 28 | }, 29 | "exclude": ["example"], 30 | "include": ["src"] 31 | } 32 | --------------------------------------------------------------------------------