├── .buckconfig ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .github ├── custom_render_component.jpg ├── demo.gif ├── initial.jpeg ├── ios.gif ├── ios_select.png ├── ios_select_purple.png ├── loader.jpeg ├── select_all.jpeg ├── single_select.jpeg └── workflows │ └── pr_tests.yml ├── .gitignore ├── .npmignore ├── .prettierrc.js ├── .watchmanconfig ├── LICENSE ├── README.md ├── __tests__ └── checkList-test.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativecheckboxlist │ │ │ ├── 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 ├── example ├── basic.js ├── customCheckList.js └── images │ ├── angel-VQXKH9L6YR.svg.png │ ├── big-frown-ZA7K8VXWD6.svg.png │ ├── blank-XN4TPFSGQ8.svg.png │ ├── cheeky-YALX39Z6WP.svg.png │ ├── cry-TJG3CQ4Z9D.svg.png │ ├── excited-Z6NPFAH5XT.svg.png │ ├── frazzled-URBDMCWJXZ.svg.png │ ├── glasses-kiss-YUSND43AHW.svg.png │ ├── glasses-moustache-XQHURZY9V6.svg.png │ ├── glasses-shocked-YND64GWU3X.svg.png │ ├── happy-smile-X93T4WMFY2.svg.png │ ├── heart-Y6FBUTX3CP.svg.png │ ├── index.js │ ├── injured-XRDYPNAES3.svg.png │ ├── money-S6DHLMN347.svg.png │ ├── moustache-happy-X6NZET9Q7S.svg.png │ ├── normal-NY3M982B6Q.svg.png │ ├── ok-QBCJ4DSA8U.svg.png │ └── shifty-moustache-SLZY3JUA29.svg.png ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── reactNativeCheckboxList.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── reactNativeCheckboxList.xcscheme ├── reactNativeCheckboxList │ ├── AppDelegate.h │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── reactNativeCheckboxListTests │ ├── Info.plist │ └── reactNativeCheckboxListTests.m ├── metro.config.js ├── package.json ├── src ├── checkList.d.ts ├── checkList.js ├── checkListHeader.js ├── checkListItem.js ├── checkbox.js └── touchable.js ├── tsconfig.json └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | rules: { 5 | 'no-console': ['error', { allow: ['warn', 'error'] }], 6 | 'react-native/no-inline-styles': 0, // to save on unnecessary StyleSheet creation for flex:1 7 | 'sort-imports': 0, // this is not necessary 8 | }, 9 | }; 10 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; These should not be required directly 12 | ; require from fbjs/lib instead: require('fbjs/lib/warning') 13 | node_modules/warning/.* 14 | 15 | ; Flow doesn't support platforms 16 | .*/Libraries/Utilities/LoadingView.js 17 | 18 | [untyped] 19 | .*/node_modules/@react-native-community/cli/.*/.* 20 | 21 | [include] 22 | 23 | [libs] 24 | node_modules/react-native/Libraries/react-native/react-native-interface.js 25 | node_modules/react-native/flow/ 26 | 27 | [options] 28 | emoji=true 29 | 30 | esproposal.optional_chaining=enable 31 | esproposal.nullish_coalescing=enable 32 | 33 | module.file_ext=.js 34 | module.file_ext=.json 35 | module.file_ext=.ios.js 36 | 37 | munge_underscores=true 38 | 39 | module.name_mapper='^react-native$' -> '/node_modules/react-native/Libraries/react-native/react-native-implementation' 40 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 41 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 42 | 43 | suppress_type=$FlowIssue 44 | suppress_type=$FlowFixMe 45 | suppress_type=$FlowFixMeProps 46 | suppress_type=$FlowFixMeState 47 | 48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) 49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ 50 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 51 | 52 | [lints] 53 | sketchy-null-number=warn 54 | sketchy-null-mixed=warn 55 | sketchy-number=warn 56 | untyped-type-import=warn 57 | nonstrict-import=warn 58 | deprecated-type=warn 59 | unsafe-getters-setters=warn 60 | inexact-spread=warn 61 | unnecessary-invariant=warn 62 | signature-verification-failure=warn 63 | deprecated-utility=error 64 | 65 | [strict] 66 | deprecated-type 67 | nonstrict-import 68 | sketchy-null 69 | unclear-type 70 | unsafe-getters-setters 71 | untyped-import 72 | untyped-type-import 73 | 74 | [version] 75 | ^0.105.0 76 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.github/custom_render_component.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/custom_render_component.jpg -------------------------------------------------------------------------------- /.github/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/demo.gif -------------------------------------------------------------------------------- /.github/initial.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/initial.jpeg -------------------------------------------------------------------------------- /.github/ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/ios.gif -------------------------------------------------------------------------------- /.github/ios_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/ios_select.png -------------------------------------------------------------------------------- /.github/ios_select_purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/ios_select_purple.png -------------------------------------------------------------------------------- /.github/loader.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/loader.jpeg -------------------------------------------------------------------------------- /.github/select_all.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/select_all.jpeg -------------------------------------------------------------------------------- /.github/single_select.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/.github/single_select.jpeg -------------------------------------------------------------------------------- /.github/workflows/pr_tests.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | 3 | name: RunTests 4 | 5 | # Controls when the workflow will run 6 | on: 7 | pull_request: 8 | branches: [ master ] 9 | 10 | jobs: 11 | run-tests: 12 | # The type of runner that the job will run on 13 | runs-on: ubuntu-latest 14 | 15 | # Steps represent a sequence of tasks that will be executed as part of the job 16 | steps: 17 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 18 | - uses: actions/checkout@v2 19 | 20 | # Install dependencies 21 | - name: Install yarn dependencies 22 | run: | 23 | yarn install 24 | # Run Tests 25 | - name: Run tests 26 | run: | 27 | yarn test 28 | 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | android/ 62 | ios/ 63 | 64 | *.tgz -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | android/ 62 | ios/ 63 | example/ 64 | .github/ 65 | __tests__/ 66 | README.md 67 | index.js 68 | .eslintrc.js 69 | .flowconfig 70 | .gitattributes 71 | .prettierrc.js 72 | .prettierrc 73 | .watchmanconfig 74 | .buckconfig 75 | metro.config.js 76 | babel.config.js 77 | app.json 78 | 79 | *.tgz 80 | yarn.lock 81 | 82 | tsconfig.json 83 | LICENSE -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | tabWidth: 2, 3 | useTabs: false, 4 | bracketSpacing: true, 5 | jsxBracketSameLine: true, 6 | singleQuote: true, 7 | trailingComma: 'all', 8 | }; 9 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Rinku Kumari 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 | # rn-checkbox-list 2 | 3 | ![npm version](https://badge.fury.io/js/rn-checkbox-list.svg) 4 | [![CodeFactor](https://www.codefactor.io/repository/github/rinku-k/rn-checkbox-list/badge)](https://www.codefactor.io/repository/github/rinku-k/rn-checkbox-list) 5 | [![Coverage Status](https://coveralls.io/repos/github/rinku-k/rn-checkbox-list/badge.svg?branch=master)](https://coveralls.io/github/rinku-k/rn-checkbox-list?branch=master) 6 | [![Codacy Badge](https://app.codacy.com/project/badge/Grade/1e95eb5c852c4b3f886b70ece11aedba)](https://www.codacy.com/gh/rinku-k/rn-checkbox-list/dashboard?utm_source=github.com&utm_medium=referral&utm_content=rinku-k/rn-checkbox-list&utm_campaign=Badge_Grade) 7 | 8 | The goal of `rn-checkbox-list` is to achieve the checkbox list with minimal effort and easy customisation. 9 | 10 |

11 | 12 | 13 | 14 |

15 | 16 |
17 | Android screenshots 18 | 19 |

20 | 21 | 22 | 23 | 24 |

25 |
26 | 27 |
28 | iOS screenshots 29 | 30 |

31 | 32 | 33 |

34 |
35 | 36 | ## Support 37 | 38 | | rn-checkbox-list version | Platform | RN Version | 39 | | ------------------------ | --------------------- | ---------- | 40 | | >= 1.0.0 | Android, iOS, Windows | >=0.62.3 | 41 | | > 0.3 | Android, iOS, Windows | 0.61.5 | 42 | | <=0.2 | Android | 0.61.5 | 43 | 44 | ## Setup 45 | 46 | This library is available on [npm](https://www.npmjs.com/package/rn-checkbox-list), install it with: 47 | `npm i @react-native-community/checkbox rn-checkbox-list` 48 | or 49 | `yarn add @react-native-community/checkbox rn-checkbox-list` 50 | 51 | and then run `npx pod-install` 52 | ## Usage 53 | 54 | 1. Import rn-checkbox-list: 55 | 56 | ```javascript 57 | import CheckboxList from 'rn-checkbox-list'; 58 | ``` 59 | 60 | 2. Create data with id and name: 61 | 62 | ```javascript 63 | [{ id: 1, name: 'Green Book' }, { id: 2, name: 'Bohemian Rhapsody' }]; 64 | ``` 65 | 66 | 3. Add data to imported component 67 | 68 | ```javascript 69 | 70 | ``` 71 | 72 | ## Sample example 73 | 74 | ```javascript 75 | console.log('My updated list :: ', ids)} 80 | listItemStyle={{ borderBottomColor: '#eee', borderBottomWidth: 1 }} 81 | checkboxProp={{ boxType: 'square' }} // iOS (supported from v0.3.0) 82 | onLoading={() => } 83 | /> 84 | ``` 85 | 86 | Check for complete example [here](https://github.com/rinku-k/rn-checkbox-list/blob/master/example/index.js). 87 | 88 | ## Available props 89 | 90 | | Name | Type | Default | Description | 91 | | ----------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | 92 | | listItems | object array | [] | List of checkboxes | 93 | | selectedListItems | object array | [] | List of selected items(subset of `listItems`) | 94 | | headerName | string | '' | Shows header with the given name | 95 | | listItemStyle | object | {} | Each check list style | 96 | | checkboxProp | object | {} | Custom checkbox style | 97 | | headerStyle | object | [See here](https://github.com/rinku-k/rn-checkbox-list/wiki/Props-Details#headerstyle) | Header check list style | 98 | | onChange | function | null | Fires on each checkbox select or deselect | 99 | | onLoading | function | null | When the list is empty and a loader needs to be shown | 100 | | theme | string | #1A237E | Custom theme color for checkbox | 101 | |**v1.1.0 & above**||| 102 | | renderItem | function | Text Component | Custom render component for each list item | 103 | 104 | **Refer [wiki](https://github.com/rinku-k/rn-checkbox-list/wiki/Props-Details) for detailed usecases of the props** 105 | 106 | ## Improvements 107 | 108 | - [x] Importing checkbox through updated react-native package (removing warnings) 109 | - [x] Customisable checkbox colors 110 | - [x] Provide selected items and selected ids 111 | - [x] Support for default selected items 112 | - [x] Support iOS 113 | 114 | Pull requests, feedbacks and suggestions are welcome! 115 | -------------------------------------------------------------------------------- /__tests__/checkList-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import CheckboxList from '../src/checkList'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.reactnativecheckboxlist", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativecheckboxlist", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 22 | * bundleCommand: "ram-bundle", 23 | * 24 | * // whether to bundle JS and assets in debug mode 25 | * bundleInDebug: false, 26 | * 27 | * // whether to bundle JS and assets in release mode 28 | * bundleInRelease: true, 29 | * 30 | * // whether to bundle JS and assets in another build variant (if configured). 31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 32 | * // The configuration property can be in the following formats 33 | * // 'bundleIn${productFlavor}${buildType}' 34 | * // 'bundleIn${buildType}' 35 | * // bundleInFreeDebug: true, 36 | * // bundleInPaidRelease: true, 37 | * // bundleInBeta: true, 38 | * 39 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 40 | * // for example: to disable dev mode in the staging build type (if configured) 41 | * devDisabledInStaging: true, 42 | * // The configuration property can be in the following formats 43 | * // 'devDisabledIn${productFlavor}${buildType}' 44 | * // 'devDisabledIn${buildType}' 45 | * 46 | * // the root of your project, i.e. where "package.json" lives 47 | * root: "../../", 48 | * 49 | * // where to put the JS bundle asset in debug mode 50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 51 | * 52 | * // where to put the JS bundle asset in release mode 53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 54 | * 55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 56 | * // require('./image.png')), in debug mode 57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 58 | * 59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 60 | * // require('./image.png')), in release mode 61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 62 | * 63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 67 | * // for example, you might want to remove it from here. 68 | * inputExcludes: ["android/**", "ios/**"], 69 | * 70 | * // override which node gets called and with what additional arguments 71 | * nodeExecutableAndArgs: ["node"], 72 | * 73 | * // supply additional arguments to the packager 74 | * extraPackagerArgs: [] 75 | * ] 76 | */ 77 | 78 | project.ext.react = [ 79 | entryFile: "index.js", 80 | enableHermes: true, // clean and rebuild if changing 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | /** 101 | * The preferred build flavor of JavaScriptCore. 102 | * 103 | * For example, to use the international variant, you can use: 104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 105 | * 106 | * The international variant includes ICU i18n library and necessary data 107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 108 | * give correct results when using with locales other than en-US. Note that 109 | * this variant is about 6MiB larger per architecture than default. 110 | */ 111 | def jscFlavor = 'org.webkit:android-jsc:+' 112 | 113 | /** 114 | * Whether to enable the Hermes VM. 115 | * 116 | * This should be set on project.ext.react and that value will be read here. If it is not set 117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 118 | * and the benefits of using Hermes will therefore be sharply reduced. 119 | */ 120 | def enableHermes = project.ext.react.get("enableHermes", false); 121 | 122 | /** 123 | * Architectures to build native code for. 124 | */ 125 | def reactNativeArchitectures() { 126 | def value = project.getProperties().get("reactNativeArchitectures") 127 | return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] 128 | } 129 | 130 | android { 131 | ndkVersion rootProject.ext.ndkVersion 132 | compileSdkVersion rootProject.ext.compileSdkVersion 133 | 134 | compileOptions { 135 | sourceCompatibility JavaVersion.VERSION_1_8 136 | targetCompatibility JavaVersion.VERSION_1_8 137 | } 138 | 139 | defaultConfig { 140 | applicationId "com.reactnativecheckboxlist" 141 | minSdkVersion rootProject.ext.minSdkVersion 142 | targetSdkVersion rootProject.ext.targetSdkVersion 143 | versionCode 1 144 | versionName "1.0" 145 | buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() 146 | if (isNewArchitectureEnabled()) { 147 | // We configure the CMake build only if you decide to opt-in for the New Architecture. 148 | externalNativeBuild { 149 | cmake { 150 | arguments "-DPROJECT_BUILD_DIR=$buildDir", 151 | "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", 152 | "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", 153 | "-DNODE_MODULES_DIR=$rootDir/../node_modules", 154 | "-DANDROID_STL=c++_shared" 155 | } 156 | } 157 | if (!enableSeparateBuildPerCPUArchitecture) { 158 | ndk { 159 | abiFilters (*reactNativeArchitectures()) 160 | } 161 | } 162 | } 163 | } 164 | if (isNewArchitectureEnabled()) { 165 | // We configure the NDK build only if you decide to opt-in for the New Architecture. 166 | externalNativeBuild { 167 | cmake { 168 | path "$projectDir/src/main/jni/CMakeLists.txt" 169 | } 170 | } 171 | def reactAndroidProjectDir = project(':ReactAndroid').projectDir 172 | def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { 173 | dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") 174 | from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") 175 | into("$buildDir/react-ndk/exported") 176 | } 177 | def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { 178 | dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") 179 | from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") 180 | into("$buildDir/react-ndk/exported") 181 | } 182 | afterEvaluate { 183 | // If you wish to add a custom TurboModule or component locally, 184 | // you should uncomment this line. 185 | // preBuild.dependsOn("generateCodegenArtifactsFromSchema") 186 | preDebugBuild.dependsOn(packageReactNdkDebugLibs) 187 | preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) 188 | // Due to a bug inside AGP, we have to explicitly set a dependency 189 | // between configureCMakeDebug* tasks and the preBuild tasks. 190 | // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 191 | configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) 192 | configureCMakeDebug.dependsOn(preDebugBuild) 193 | reactNativeArchitectures().each { architecture -> 194 | tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { 195 | dependsOn("preDebugBuild") 196 | } 197 | tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { 198 | dependsOn("preReleaseBuild") 199 | } 200 | } 201 | } 202 | } 203 | 204 | splits { 205 | abi { 206 | reset() 207 | enable enableSeparateBuildPerCPUArchitecture 208 | universalApk false // If true, also generate a universal APK 209 | include (*reactNativeArchitectures()) 210 | } 211 | } 212 | signingConfigs { 213 | debug { 214 | storeFile file('debug.keystore') 215 | storePassword 'android' 216 | keyAlias 'androiddebugkey' 217 | keyPassword 'android' 218 | } 219 | } 220 | buildTypes { 221 | debug { 222 | signingConfig signingConfigs.debug 223 | } 224 | release { 225 | // Caution! In production, you need to generate your own keystore file. 226 | // see https://reactnative.dev/docs/signed-apk-android. 227 | signingConfig signingConfigs.debug 228 | minifyEnabled enableProguardInReleaseBuilds 229 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 230 | } 231 | } 232 | // applicationVariants are e.g. debug, release 233 | applicationVariants.all { variant -> 234 | variant.outputs.each { output -> 235 | // For each separate APK per architecture, set a unique version code as described here: 236 | // https://developer.android.com/studio/build/configure-apk-splits.html 237 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 238 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 239 | def abi = output.getFilter(OutputFile.ABI) 240 | if (abi != null) { // null for the universal-debug, universal-release variants 241 | output.versionCodeOverride = 242 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 243 | } 244 | 245 | } 246 | } 247 | } 248 | 249 | dependencies { 250 | implementation fileTree(dir: "libs", include: ["*.jar"]) 251 | implementation "com.facebook.react:react-native:+" // From node_modules 252 | 253 | if (enableHermes) { 254 | //noinspection GradleDynamicVersion 255 | implementation("com.facebook.react:hermes-engine:+") { // From node_modules 256 | exclude group:'com.facebook.fbjni' 257 | } 258 | } else { 259 | implementation jscFlavor 260 | } 261 | } 262 | 263 | if (isNewArchitectureEnabled()) { 264 | // If new architecture is enabled, we let you build RN from source 265 | // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. 266 | // This will be applied to all the imported transtitive dependency. 267 | configurations.all { 268 | resolutionStrategy.dependencySubstitution { 269 | substitute(module("com.facebook.react:react-native")) 270 | .using(project(":ReactAndroid")) 271 | .because("On New Architecture we're building React Native from source") 272 | substitute(module("com.facebook.react:hermes-engine")) 273 | .using(project(":ReactAndroid:hermes-engine")) 274 | .because("On New Architecture we're building Hermes from source") 275 | } 276 | } 277 | } 278 | 279 | // Run this once to be able to run the application with BUCK 280 | // puts all compile dependencies into folder libs for BUCK to use 281 | task copyDownloadableDepsToLibs(type: Copy) { 282 | from configurations.implementation 283 | into 'libs' 284 | } 285 | 286 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 287 | 288 | def isNewArchitectureEnabled() { 289 | // To opt-in for the New Architecture, you can either: 290 | // - Set `newArchEnabled` to true inside the `gradle.properties` file 291 | // - Invoke gradle with `-newArchEnabled=true` 292 | // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` 293 | return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" 294 | } -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/debug.keystore -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecheckboxlist/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecheckboxlist; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.ReactRootView; 6 | 7 | public class MainActivity extends ReactActivity { 8 | 9 | /** 10 | * Returns the name of the main component registered from JavaScript. This is used to schedule 11 | * rendering of the component. 12 | */ 13 | @Override 14 | protected String getMainComponentName() { 15 | return "reactNativeCheckboxList"; 16 | } 17 | 18 | /** 19 | * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and 20 | * you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer 21 | * (Paper). 22 | */ 23 | @Override 24 | protected ReactActivityDelegate createReactActivityDelegate() { 25 | return new MainActivityDelegate(this, getMainComponentName()); 26 | } 27 | public static class MainActivityDelegate extends ReactActivityDelegate { 28 | public MainActivityDelegate(ReactActivity activity, String mainComponentName) { 29 | super(activity, mainComponentName); 30 | } 31 | @Override 32 | protected ReactRootView createRootView() { 33 | ReactRootView reactRootView = new ReactRootView(getContext()); 34 | // If you opted-in for the New Architecture, we enable the Fabric Renderer. 35 | reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); 36 | return reactRootView; 37 | } 38 | @Override 39 | protected boolean isConcurrentRootEnabled() { 40 | // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18). 41 | // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html 42 | return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativecheckboxlist/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativecheckboxlist; 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.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import java.lang.reflect.InvocationTargetException; 11 | import java.util.List; 12 | 13 | public class MainApplication extends Application implements ReactApplication { 14 | 15 | private final ReactNativeHost mReactNativeHost = 16 | new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | @SuppressWarnings("UnnecessaryLocalVariable") 25 | List packages = new PackageList(this).getPackages(); 26 | // Packages that cannot be autolinked yet can be added manually here, for example: 27 | // packages.add(new MyReactNativePackage()); 28 | return packages; 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | initializeFlipper(this); // Remove this line if you don't want Flipper enabled 47 | } 48 | 49 | /** 50 | * Loads Flipper in React Native templates. 51 | * 52 | * @param context 53 | */ 54 | private static void initializeFlipper(Context context) { 55 | if (BuildConfig.DEBUG) { 56 | try { 57 | /* 58 | We use reflection here to pick up the class that initializes Flipper, 59 | since Flipper library is not available in release mode 60 | */ 61 | Class aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); 62 | aClass.getMethod("initializeFlipper", Context.class).invoke(null, context); 63 | } catch (ClassNotFoundException e) { 64 | e.printStackTrace(); 65 | } catch (NoSuchMethodException e) { 66 | e.printStackTrace(); 67 | } catch (IllegalAccessException e) { 68 | e.printStackTrace(); 69 | } catch (InvocationTargetException e) { 70 | e.printStackTrace(); 71 | } 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | reactNativeCheckboxList 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /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 = "31.0.0" 6 | minSdkVersion = 21 7 | compileSdkVersion = 31 8 | targetSdkVersion = 31 9 | if (System.properties['os.arch'] == "aarch64") { 10 | // For M1 Users we need to use the NDK 24 which added support for aarch64 11 | ndkVersion = "24.0.8215888" 12 | } else { 13 | // Otherwise we default to the side-by-side NDK version from AGP. 14 | ndkVersion = "21.4.7075529" 15 | } 16 | } 17 | repositories { 18 | google() 19 | mavenCentral() 20 | } 21 | dependencies { 22 | classpath("com.android.tools.build:gradle:7.2.1") 23 | classpath("com.facebook.react:react-native-gradle-plugin") 24 | classpath("de.undercouch:gradle-download-task:5.0.1") 25 | 26 | // NOTE: Do not place your application dependencies here; they belong 27 | // in the individual module build.gradle files 28 | } 29 | } 30 | 31 | allprojects { 32 | repositories { 33 | maven { 34 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 35 | url("$rootDir/../node_modules/react-native/android") 36 | } 37 | maven { 38 | // Android JSC is installed from npm 39 | url("$rootDir/../node_modules/jsc-android/dist") 40 | } 41 | mavenCentral { 42 | // We don't want to fetch react-native from Maven Central as there are 43 | // older versions over there. 44 | content { 45 | excludeGroup "com.facebook.react" 46 | } 47 | } 48 | 49 | google() 50 | maven { url 'https://jitpack.io' } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /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: -Xmx512m -XX:MaxMetaspaceSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m 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.125.0 29 | 30 | # Use this property to specify which architecture you want to build. 31 | # You can also override it from the CLI using 32 | # ./gradlew -PreactNativeArchitectures=x86_64 33 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 34 | 35 | # Use this property to enable support to the new architecture. 36 | # This will allow you to use TurboModules and the Fabric render in 37 | # your application. You should enable this flag either if you want 38 | # to write custom TurboModules/Fabric components OR use libraries that 39 | # are providing them. 40 | newArchEnabled=false 41 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original 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 POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 84 | 85 | APP_NAME="Gradle" 86 | APP_BASE_NAME=${0##*/} 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | MAX_FD=$( ulimit -H -n ) || 147 | warn "Could not query maximum file descriptor limit" 148 | esac 149 | case $MAX_FD in #( 150 | '' | soft) :;; #( 151 | *) 152 | ulimit -n "$MAX_FD" || 153 | warn "Could not set maximum file descriptor limit to $MAX_FD" 154 | esac 155 | fi 156 | 157 | # Collect all arguments for the java command, stacking in reverse order: 158 | # * args from the command line 159 | # * the main class name 160 | # * -classpath 161 | # * -D...appname settings 162 | # * --module-path (only if needed) 163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 164 | 165 | # For Cygwin or MSYS, switch paths to Windows format before running java 166 | if "$cygwin" || "$msys" ; then 167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 169 | 170 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 171 | 172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 173 | for arg do 174 | if 175 | case $arg in #( 176 | -*) false ;; # don't mess with options #( 177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 178 | [ -e "$t" ] ;; #( 179 | *) false ;; 180 | esac 181 | then 182 | arg=$( cygpath --path --ignore --mixed "$arg" ) 183 | fi 184 | # Roll the args list around exactly as many times as the number of 185 | # args, so each arg winds up back in the position where it started, but 186 | # possibly modified. 187 | # 188 | # NB: a `for` loop captures its iteration list before it begins, so 189 | # changing the positional parameters here affects neither the number of 190 | # iterations, nor the values presented in `arg`. 191 | shift # remove old arg 192 | set -- "$@" "$arg" # push replacement arg 193 | done 194 | fi 195 | 196 | # Collect all arguments for the java command; 197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 198 | # shell script including quotes and variable substitutions, so put them in 199 | # double quotes to make sure that they get re-expanded; and 200 | # * put everything else in single quotes, so that it's not re-expanded. 201 | 202 | set -- \ 203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 204 | -classpath "$CLASSPATH" \ 205 | org.gradle.wrapper.GradleWrapperMain \ 206 | "$@" 207 | 208 | # Use "xargs" to parse quoted args. 209 | # 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 211 | # 212 | # In Bash we could simply go: 213 | # 214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 215 | # set -- "${ARGS[@]}" "$@" 216 | # 217 | # but POSIX shell has neither arrays nor command substitution, so instead we 218 | # post-process each arg (as a line of input to sed) to backslash-escape any 219 | # character that might be a shell metacharacter, then use eval to reverse 220 | # that process (while maintaining the separation between arguments), and wrap 221 | # the whole thing up as a single "set" statement. 222 | # 223 | # This will of course break if any of these variables contains a newline or 224 | # an unmatched quote. 225 | # 226 | 227 | eval "set -- $( 228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 229 | xargs -n1 | 230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 231 | tr '\n' ' ' 232 | )" '"$@"' 233 | 234 | exec "$JAVACMD" "$@" 235 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | set APP_BASE_NAME=%~n0 2 | set APP_HOME=%DIRNAME% 3 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 4 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 5 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 6 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 7 | set JAVA_EXE=java.exe 8 | %JAVA_EXE% -version >NUL 2>&1 9 | if "%ERRORLEVEL%" == "0" goto execute 10 | echo. 11 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 12 | set JAVA_HOME=%JAVA_HOME:"=% 13 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 14 | if exist "%JAVA_EXE%" goto execute 15 | echo. 16 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 17 | goto fail 18 | :execute 19 | @rem Setup the command line 20 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 21 | @rem Execute Gradle 22 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 23 | :end 24 | @rem End local scope for the variables with windows NT shell -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'reactNativeCheckboxList' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | includeBuild('../node_modules/react-native-gradle-plugin') 5 | if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { 6 | include(":ReactAndroid") 7 | project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') 8 | include(":ReactAndroid:hermes-engine") 9 | project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') 10 | } -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactNativeCheckboxList", 3 | "displayName": "reactNativeCheckboxList" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /example/basic.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import CheckboxList from '../src/checkList'; 3 | import { 4 | View, 5 | Text, 6 | ActivityIndicator, 7 | SafeAreaView, 8 | Platform, 9 | } from 'react-native'; 10 | 11 | const data = [ 12 | { id: 1, name: 'Green Book' }, 13 | { id: 2, name: 'Bohemian Rhapsody' }, 14 | { id: 3, name: 'Roma' }, 15 | { id: 4, name: 'Black Panther' }, 16 | { id: 5, name: 'The Favourite' }, 17 | { id: 6, name: 'A Star Is Born' }, 18 | { id: 7, name: 'Vice' }, 19 | { id: 8, name: 'BlacKkKlansman' }, 20 | { id: 9, name: 'First Man' }, 21 | { id: 10, name: 'If Beale Street Could Talk' }, 22 | { id: 11, name: 'Bao' }, 23 | { id: 12, name: 'Harry Potter and the Deathly Hallows – Part 1' }, 24 | { id: 13, name: 'Free Solo' }, 25 | { id: 14, name: 'Period. End of Sentence.' }, 26 | { id: 15, name: 'Skin' }, 27 | { id: 16, name: 'Spider-Man: Into the Spider-Verse' }, 28 | ]; 29 | 30 | class Selector extends Component { 31 | constructor(props) { 32 | super(props); 33 | this.state = { 34 | loader: true, 35 | }; 36 | } 37 | 38 | componentDidMount() { 39 | setTimeout(() => this.setState({ loader: false }), 500); 40 | } 41 | 42 | render() { 43 | const theme = 'red'; 44 | const border = 'grey'; 45 | return ( 46 | 47 | { 52 | // eslint-disable-next-line no-console 53 | console.log('My updated list :: ', ids); 54 | }} 55 | onLoading={() => ( 56 | 62 | 63 | 64 | Loading.... 65 | 66 | 67 | )} 68 | selectedListItems={data.slice(0, 4)} 69 | checkboxProp={Platform.select({ 70 | // Optional 71 | ios: { 72 | // iOS (supported from v0.3.0) 73 | boxType: 'square', 74 | tintColor: border, 75 | onTintColor: theme, 76 | onCheckColor: '#fff', 77 | onFillColor: theme, 78 | }, 79 | android: { 80 | tintColors: { 81 | true: theme, 82 | false: border, 83 | }, 84 | }, 85 | })} 86 | // listItemStyle={{ borderBottomColor: "#eee", borderBottomWidth: 1 }} 87 | /> 88 | 89 | ); 90 | } 91 | } 92 | 93 | export default Selector; 94 | -------------------------------------------------------------------------------- /example/customCheckList.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import CheckboxList from '../src/checkList'; 3 | import { 4 | View, 5 | Text, 6 | ActivityIndicator, 7 | SafeAreaView, 8 | Platform, 9 | Image, 10 | } from 'react-native'; 11 | import Emojis from './images'; 12 | 13 | const data = Emojis; 14 | 15 | const renderItem = ({ item }) => { 16 | return ( 17 | 20 | 21 | 28 | {item.name} 29 | 30 | 31 | ); 32 | }; 33 | 34 | class Selector extends Component { 35 | constructor(props) { 36 | super(props); 37 | this.preSelectedItems = data.slice(0, 4); 38 | this.state = { 39 | loader: true, 40 | selectedItems: [], 41 | }; 42 | } 43 | 44 | componentDidMount() { 45 | setTimeout(() => { 46 | this.setState({ loader: false }); 47 | this.setState({ selectedItems: this.preSelectedItems }); 48 | }, 500); 49 | } 50 | 51 | render() { 52 | const theme = 'red'; 53 | const border = 'grey'; 54 | return ( 55 | 56 | 57 | { 62 | // eslint-disable-next-line no-console 63 | console.log('My updated list :: ', ids, items); 64 | this.setState({ selectedItems: items }); 65 | }} 66 | onLoading={() => ( 67 | 73 | 74 | 75 | Loading.... 76 | 77 | 78 | )} 79 | selectedListItems={data.slice(0, 4)} 80 | checkboxProp={Platform.select({ 81 | // Optional 82 | ios: { 83 | // iOS (supported from v0.3.0) 84 | boxType: 'square', 85 | tintColor: border, 86 | onTintColor: theme, 87 | onCheckColor: '#fff', 88 | onFillColor: theme, 89 | }, 90 | android: { 91 | tintColors: { 92 | true: theme, 93 | false: border, 94 | }, 95 | }, 96 | })} 97 | renderItem={renderItem} 98 | /> 99 | 100 | 108 | Total selected : {this.state.selectedItems.length} 109 | 110 | 111 | ); 112 | } 113 | } 114 | 115 | export default Selector; 116 | -------------------------------------------------------------------------------- /example/images/angel-VQXKH9L6YR.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/angel-VQXKH9L6YR.svg.png -------------------------------------------------------------------------------- /example/images/big-frown-ZA7K8VXWD6.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/big-frown-ZA7K8VXWD6.svg.png -------------------------------------------------------------------------------- /example/images/blank-XN4TPFSGQ8.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/blank-XN4TPFSGQ8.svg.png -------------------------------------------------------------------------------- /example/images/cheeky-YALX39Z6WP.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/cheeky-YALX39Z6WP.svg.png -------------------------------------------------------------------------------- /example/images/cry-TJG3CQ4Z9D.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/cry-TJG3CQ4Z9D.svg.png -------------------------------------------------------------------------------- /example/images/excited-Z6NPFAH5XT.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/excited-Z6NPFAH5XT.svg.png -------------------------------------------------------------------------------- /example/images/frazzled-URBDMCWJXZ.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/frazzled-URBDMCWJXZ.svg.png -------------------------------------------------------------------------------- /example/images/glasses-kiss-YUSND43AHW.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/glasses-kiss-YUSND43AHW.svg.png -------------------------------------------------------------------------------- /example/images/glasses-moustache-XQHURZY9V6.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/glasses-moustache-XQHURZY9V6.svg.png -------------------------------------------------------------------------------- /example/images/glasses-shocked-YND64GWU3X.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/glasses-shocked-YND64GWU3X.svg.png -------------------------------------------------------------------------------- /example/images/happy-smile-X93T4WMFY2.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/happy-smile-X93T4WMFY2.svg.png -------------------------------------------------------------------------------- /example/images/heart-Y6FBUTX3CP.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/heart-Y6FBUTX3CP.svg.png -------------------------------------------------------------------------------- /example/images/index.js: -------------------------------------------------------------------------------- 1 | const Emojis = [ 2 | { 3 | id: '1', 4 | name: 'Angel', 5 | src: require('./angel-VQXKH9L6YR.svg.png'), 6 | }, 7 | { 8 | id: '2', 9 | name: 'Big Frown', 10 | src: require('./big-frown-ZA7K8VXWD6.svg.png'), 11 | }, 12 | { 13 | id: '3', 14 | name: 'Blank', 15 | src: require('./blank-XN4TPFSGQ8.svg.png'), 16 | }, 17 | { 18 | id: '4', 19 | name: 'Cheeky', 20 | src: require('./cheeky-YALX39Z6WP.svg.png'), 21 | }, 22 | { 23 | id: '5', 24 | name: 'Cry', 25 | src: require('./cry-TJG3CQ4Z9D.svg.png'), 26 | }, 27 | { 28 | id: '6', 29 | name: 'Excited', 30 | src: require('./excited-Z6NPFAH5XT.svg.png'), 31 | }, 32 | { 33 | id: '7', 34 | name: 'Frazzled', 35 | src: require('./frazzled-URBDMCWJXZ.svg.png'), 36 | }, 37 | { 38 | id: '8', 39 | name: 'Glasses Kiss', 40 | src: require('./glasses-kiss-YUSND43AHW.svg.png'), 41 | }, 42 | { 43 | id: '9', 44 | name: 'Glasses Moustache', 45 | src: require('./glasses-moustache-XQHURZY9V6.svg.png'), 46 | }, 47 | { 48 | id: '10', 49 | name: 'Glasses Shocked', 50 | src: require('./glasses-shocked-YND64GWU3X.svg.png'), 51 | }, 52 | { 53 | id: '11', 54 | name: 'Happy Smile', 55 | src: require('./happy-smile-X93T4WMFY2.svg.png'), 56 | }, 57 | { 58 | id: '12', 59 | name: 'Heart', 60 | src: require('./heart-Y6FBUTX3CP.svg.png'), 61 | }, 62 | { 63 | id: '13', 64 | name: 'Injured', 65 | src: require('./injured-XRDYPNAES3.svg.png'), 66 | }, 67 | { 68 | id: '14', 69 | name: 'Money', 70 | src: require('./money-S6DHLMN347.svg.png'), 71 | }, 72 | { 73 | id: '15', 74 | name: 'Moustache Happy', 75 | src: require('./moustache-happy-X6NZET9Q7S.svg.png'), 76 | }, 77 | { 78 | id: '16', 79 | name: 'Normal', 80 | src: require('./normal-NY3M982B6Q.svg.png'), 81 | }, 82 | { 83 | id: '17', 84 | name: 'Ok', 85 | src: require('./ok-QBCJ4DSA8U.svg.png'), 86 | }, 87 | { 88 | id: '18', 89 | name: 'Shifty Moustache', 90 | src: require('./shifty-moustache-SLZY3JUA29.svg.png'), 91 | }, 92 | ]; 93 | 94 | export default Emojis; 95 | -------------------------------------------------------------------------------- /example/images/injured-XRDYPNAES3.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/injured-XRDYPNAES3.svg.png -------------------------------------------------------------------------------- /example/images/money-S6DHLMN347.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/money-S6DHLMN347.svg.png -------------------------------------------------------------------------------- /example/images/moustache-happy-X6NZET9Q7S.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/moustache-happy-X6NZET9Q7S.svg.png -------------------------------------------------------------------------------- /example/images/normal-NY3M982B6Q.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/normal-NY3M982B6Q.svg.png -------------------------------------------------------------------------------- /example/images/ok-QBCJ4DSA8U.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/ok-QBCJ4DSA8U.svg.png -------------------------------------------------------------------------------- /example/images/shifty-moustache-SLZY3JUA29.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rinku-k/rn-checkbox-list/7cf63e0f3f6304b7f7ce075fe6c3bd32658332f1/example/images/shifty-moustache-SLZY3JUA29.svg.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import { AppRegistry } from 'react-native'; 6 | // import App from './example/basic'; 7 | import App from './example/customCheckList'; 8 | import { name as appName } from './app.json'; 9 | 10 | AppRegistry.registerComponent(appName, () => App); 11 | -------------------------------------------------------------------------------- /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, '12.4' 5 | install! 'cocoapods', :deterministic_uuids => false 6 | target 'RnDiffApp' do 7 | config = use_native_modules! 8 | # Flags change depending on the env values. 9 | flags = get_default_flags() 10 | use_react_native!( 11 | :path => config[:reactNativePath], 12 | # Hermes is now enabled by default. Disable by setting this flag to false. 13 | # Upcoming versions of React Native may rely on get_default_flags(), but 14 | # we make it explicit here to aid in the React Native upgrade process. 15 | :hermes_enabled => true, 16 | :fabric_enabled => flags[:fabric_enabled], 17 | # Enables Flipper. 18 | # 19 | # Note that if you have use_frameworks! enabled, Flipper will not work and 20 | # you should disable the next line. 21 | :flipper_configuration => FlipperConfiguration.enabled, 22 | # An absolute path to your application root. 23 | :app_path => "#{Pod::Config.instance.installation_root}/.." 24 | ) 25 | 26 | target 'reactNativeCheckboxListTests' do 27 | inherit! :search_paths 28 | # Pods for testing 29 | end 30 | 31 | use_native_modules! 32 | end 33 | 34 | react_native_post_install( 35 | installer, 36 | # Set `mac_catalyst_enabled` to `true` in order to apply patches 37 | # necessary for Mac Catalyst builds 38 | :mac_catalyst_enabled => false 39 | ) 40 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 41 | end 42 | 43 | end 44 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - FBLazyVector (0.61.5) 5 | - FBReactNativeSpec (0.61.5): 6 | - Folly (= 2018.10.22.00) 7 | - RCTRequired (= 0.61.5) 8 | - RCTTypeSafety (= 0.61.5) 9 | - React-Core (= 0.61.5) 10 | - React-jsi (= 0.61.5) 11 | - ReactCommon/turbomodule/core (= 0.61.5) 12 | - Folly (2018.10.22.00): 13 | - boost-for-react-native 14 | - DoubleConversion 15 | - Folly/Default (= 2018.10.22.00) 16 | - glog 17 | - Folly/Default (2018.10.22.00): 18 | - boost-for-react-native 19 | - DoubleConversion 20 | - glog 21 | - glog (0.3.5) 22 | - RCTRequired (0.61.5) 23 | - RCTTypeSafety (0.61.5): 24 | - FBLazyVector (= 0.61.5) 25 | - Folly (= 2018.10.22.00) 26 | - RCTRequired (= 0.61.5) 27 | - React-Core (= 0.61.5) 28 | - React (0.61.5): 29 | - React-Core (= 0.61.5) 30 | - React-Core/DevSupport (= 0.61.5) 31 | - React-Core/RCTWebSocket (= 0.61.5) 32 | - React-RCTActionSheet (= 0.61.5) 33 | - React-RCTAnimation (= 0.61.5) 34 | - React-RCTBlob (= 0.61.5) 35 | - React-RCTImage (= 0.61.5) 36 | - React-RCTLinking (= 0.61.5) 37 | - React-RCTNetwork (= 0.61.5) 38 | - React-RCTSettings (= 0.61.5) 39 | - React-RCTText (= 0.61.5) 40 | - React-RCTVibration (= 0.61.5) 41 | - React-Core (0.61.5): 42 | - Folly (= 2018.10.22.00) 43 | - glog 44 | - React-Core/Default (= 0.61.5) 45 | - React-cxxreact (= 0.61.5) 46 | - React-jsi (= 0.61.5) 47 | - React-jsiexecutor (= 0.61.5) 48 | - Yoga 49 | - React-Core/CoreModulesHeaders (0.61.5): 50 | - Folly (= 2018.10.22.00) 51 | - glog 52 | - React-Core/Default 53 | - React-cxxreact (= 0.61.5) 54 | - React-jsi (= 0.61.5) 55 | - React-jsiexecutor (= 0.61.5) 56 | - Yoga 57 | - React-Core/Default (0.61.5): 58 | - Folly (= 2018.10.22.00) 59 | - glog 60 | - React-cxxreact (= 0.61.5) 61 | - React-jsi (= 0.61.5) 62 | - React-jsiexecutor (= 0.61.5) 63 | - Yoga 64 | - React-Core/DevSupport (0.61.5): 65 | - Folly (= 2018.10.22.00) 66 | - glog 67 | - React-Core/Default (= 0.61.5) 68 | - React-Core/RCTWebSocket (= 0.61.5) 69 | - React-cxxreact (= 0.61.5) 70 | - React-jsi (= 0.61.5) 71 | - React-jsiexecutor (= 0.61.5) 72 | - React-jsinspector (= 0.61.5) 73 | - Yoga 74 | - React-Core/RCTActionSheetHeaders (0.61.5): 75 | - Folly (= 2018.10.22.00) 76 | - glog 77 | - React-Core/Default 78 | - React-cxxreact (= 0.61.5) 79 | - React-jsi (= 0.61.5) 80 | - React-jsiexecutor (= 0.61.5) 81 | - Yoga 82 | - React-Core/RCTAnimationHeaders (0.61.5): 83 | - Folly (= 2018.10.22.00) 84 | - glog 85 | - React-Core/Default 86 | - React-cxxreact (= 0.61.5) 87 | - React-jsi (= 0.61.5) 88 | - React-jsiexecutor (= 0.61.5) 89 | - Yoga 90 | - React-Core/RCTBlobHeaders (0.61.5): 91 | - Folly (= 2018.10.22.00) 92 | - glog 93 | - React-Core/Default 94 | - React-cxxreact (= 0.61.5) 95 | - React-jsi (= 0.61.5) 96 | - React-jsiexecutor (= 0.61.5) 97 | - Yoga 98 | - React-Core/RCTImageHeaders (0.61.5): 99 | - Folly (= 2018.10.22.00) 100 | - glog 101 | - React-Core/Default 102 | - React-cxxreact (= 0.61.5) 103 | - React-jsi (= 0.61.5) 104 | - React-jsiexecutor (= 0.61.5) 105 | - Yoga 106 | - React-Core/RCTLinkingHeaders (0.61.5): 107 | - Folly (= 2018.10.22.00) 108 | - glog 109 | - React-Core/Default 110 | - React-cxxreact (= 0.61.5) 111 | - React-jsi (= 0.61.5) 112 | - React-jsiexecutor (= 0.61.5) 113 | - Yoga 114 | - React-Core/RCTNetworkHeaders (0.61.5): 115 | - Folly (= 2018.10.22.00) 116 | - glog 117 | - React-Core/Default 118 | - React-cxxreact (= 0.61.5) 119 | - React-jsi (= 0.61.5) 120 | - React-jsiexecutor (= 0.61.5) 121 | - Yoga 122 | - React-Core/RCTSettingsHeaders (0.61.5): 123 | - Folly (= 2018.10.22.00) 124 | - glog 125 | - React-Core/Default 126 | - React-cxxreact (= 0.61.5) 127 | - React-jsi (= 0.61.5) 128 | - React-jsiexecutor (= 0.61.5) 129 | - Yoga 130 | - React-Core/RCTTextHeaders (0.61.5): 131 | - Folly (= 2018.10.22.00) 132 | - glog 133 | - React-Core/Default 134 | - React-cxxreact (= 0.61.5) 135 | - React-jsi (= 0.61.5) 136 | - React-jsiexecutor (= 0.61.5) 137 | - Yoga 138 | - React-Core/RCTVibrationHeaders (0.61.5): 139 | - Folly (= 2018.10.22.00) 140 | - glog 141 | - React-Core/Default 142 | - React-cxxreact (= 0.61.5) 143 | - React-jsi (= 0.61.5) 144 | - React-jsiexecutor (= 0.61.5) 145 | - Yoga 146 | - React-Core/RCTWebSocket (0.61.5): 147 | - Folly (= 2018.10.22.00) 148 | - glog 149 | - React-Core/Default (= 0.61.5) 150 | - React-cxxreact (= 0.61.5) 151 | - React-jsi (= 0.61.5) 152 | - React-jsiexecutor (= 0.61.5) 153 | - Yoga 154 | - React-CoreModules (0.61.5): 155 | - FBReactNativeSpec (= 0.61.5) 156 | - Folly (= 2018.10.22.00) 157 | - RCTTypeSafety (= 0.61.5) 158 | - React-Core/CoreModulesHeaders (= 0.61.5) 159 | - React-RCTImage (= 0.61.5) 160 | - ReactCommon/turbomodule/core (= 0.61.5) 161 | - React-cxxreact (0.61.5): 162 | - boost-for-react-native (= 1.63.0) 163 | - DoubleConversion 164 | - Folly (= 2018.10.22.00) 165 | - glog 166 | - React-jsinspector (= 0.61.5) 167 | - React-jsi (0.61.5): 168 | - boost-for-react-native (= 1.63.0) 169 | - DoubleConversion 170 | - Folly (= 2018.10.22.00) 171 | - glog 172 | - React-jsi/Default (= 0.61.5) 173 | - React-jsi/Default (0.61.5): 174 | - boost-for-react-native (= 1.63.0) 175 | - DoubleConversion 176 | - Folly (= 2018.10.22.00) 177 | - glog 178 | - React-jsiexecutor (0.61.5): 179 | - DoubleConversion 180 | - Folly (= 2018.10.22.00) 181 | - glog 182 | - React-cxxreact (= 0.61.5) 183 | - React-jsi (= 0.61.5) 184 | - React-jsinspector (0.61.5) 185 | - React-RCTActionSheet (0.61.5): 186 | - React-Core/RCTActionSheetHeaders (= 0.61.5) 187 | - React-RCTAnimation (0.61.5): 188 | - React-Core/RCTAnimationHeaders (= 0.61.5) 189 | - React-RCTBlob (0.61.5): 190 | - React-Core/RCTBlobHeaders (= 0.61.5) 191 | - React-Core/RCTWebSocket (= 0.61.5) 192 | - React-jsi (= 0.61.5) 193 | - React-RCTNetwork (= 0.61.5) 194 | - React-RCTImage (0.61.5): 195 | - React-Core/RCTImageHeaders (= 0.61.5) 196 | - React-RCTNetwork (= 0.61.5) 197 | - React-RCTLinking (0.61.5): 198 | - React-Core/RCTLinkingHeaders (= 0.61.5) 199 | - React-RCTNetwork (0.61.5): 200 | - React-Core/RCTNetworkHeaders (= 0.61.5) 201 | - React-RCTSettings (0.61.5): 202 | - React-Core/RCTSettingsHeaders (= 0.61.5) 203 | - React-RCTText (0.61.5): 204 | - React-Core/RCTTextHeaders (= 0.61.5) 205 | - React-RCTVibration (0.61.5): 206 | - React-Core/RCTVibrationHeaders (= 0.61.5) 207 | - ReactCommon/jscallinvoker (0.61.5): 208 | - DoubleConversion 209 | - Folly (= 2018.10.22.00) 210 | - glog 211 | - React-cxxreact (= 0.61.5) 212 | - ReactCommon/turbomodule/core (0.61.5): 213 | - DoubleConversion 214 | - Folly (= 2018.10.22.00) 215 | - glog 216 | - React-Core (= 0.61.5) 217 | - React-cxxreact (= 0.61.5) 218 | - React-jsi (= 0.61.5) 219 | - ReactCommon/jscallinvoker (= 0.61.5) 220 | - RNCCheckbox (0.5.1): 221 | - React 222 | - Yoga (1.14.0) 223 | 224 | DEPENDENCIES: 225 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 226 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 227 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 228 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 229 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 230 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 231 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 232 | - React (from `../node_modules/react-native/`) 233 | - React-Core (from `../node_modules/react-native/`) 234 | - React-Core/DevSupport (from `../node_modules/react-native/`) 235 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 236 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 237 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 238 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 239 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 240 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 241 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 242 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 243 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 244 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 245 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 246 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 247 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 248 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 249 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 250 | - ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`) 251 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 252 | - "RNCCheckbox (from `../node_modules/@react-native-community/checkbox`)" 253 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 254 | 255 | SPEC REPOS: 256 | trunk: 257 | - boost-for-react-native 258 | 259 | EXTERNAL SOURCES: 260 | DoubleConversion: 261 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 262 | FBLazyVector: 263 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 264 | FBReactNativeSpec: 265 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 266 | Folly: 267 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 268 | glog: 269 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 270 | RCTRequired: 271 | :path: "../node_modules/react-native/Libraries/RCTRequired" 272 | RCTTypeSafety: 273 | :path: "../node_modules/react-native/Libraries/TypeSafety" 274 | React: 275 | :path: "../node_modules/react-native/" 276 | React-Core: 277 | :path: "../node_modules/react-native/" 278 | React-CoreModules: 279 | :path: "../node_modules/react-native/React/CoreModules" 280 | React-cxxreact: 281 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 282 | React-jsi: 283 | :path: "../node_modules/react-native/ReactCommon/jsi" 284 | React-jsiexecutor: 285 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 286 | React-jsinspector: 287 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 288 | React-RCTActionSheet: 289 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 290 | React-RCTAnimation: 291 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 292 | React-RCTBlob: 293 | :path: "../node_modules/react-native/Libraries/Blob" 294 | React-RCTImage: 295 | :path: "../node_modules/react-native/Libraries/Image" 296 | React-RCTLinking: 297 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 298 | React-RCTNetwork: 299 | :path: "../node_modules/react-native/Libraries/Network" 300 | React-RCTSettings: 301 | :path: "../node_modules/react-native/Libraries/Settings" 302 | React-RCTText: 303 | :path: "../node_modules/react-native/Libraries/Text" 304 | React-RCTVibration: 305 | :path: "../node_modules/react-native/Libraries/Vibration" 306 | ReactCommon: 307 | :path: "../node_modules/react-native/ReactCommon" 308 | RNCCheckbox: 309 | :path: "../node_modules/@react-native-community/checkbox" 310 | Yoga: 311 | :path: "../node_modules/react-native/ReactCommon/yoga" 312 | 313 | SPEC CHECKSUMS: 314 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 315 | DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2 316 | FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f 317 | FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75 318 | Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 319 | glog: 1f3da668190260b06b429bb211bfbee5cd790c28 320 | RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1 321 | RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320 322 | React: b6a59ef847b2b40bb6e0180a97d0ca716969ac78 323 | React-Core: 688b451f7d616cc1134ac95295b593d1b5158a04 324 | React-CoreModules: d04f8494c1a328b69ec11db9d1137d667f916dcb 325 | React-cxxreact: d0f7bcafa196ae410e5300736b424455e7fb7ba7 326 | React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7 327 | React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386 328 | React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0 329 | React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76 330 | React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360 331 | React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72 332 | React-RCTImage: 6b8e8df449eb7c814c99a92d6b52de6fe39dea4e 333 | React-RCTLinking: 121bb231c7503cf9094f4d8461b96a130fabf4a5 334 | React-RCTNetwork: fb353640aafcee84ca8b78957297bd395f065c9a 335 | React-RCTSettings: 8db258ea2a5efee381fcf7a6d5044e2f8b68b640 336 | React-RCTText: 9ccc88273e9a3aacff5094d2175a605efa854dbe 337 | React-RCTVibration: a49a1f42bf8f5acf1c3e297097517c6b3af377ad 338 | ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd 339 | RNCCheckbox: 3e2d9e896be53e4ff56aac93fbd0f0dbf55d4e73 340 | Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b 341 | 342 | PODFILE CHECKSUM: 056ad560f9d1c6dfa4dc1a1b6ff9a9a90790cef5 343 | 344 | COCOAPODS: 1.10.0 345 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* reactNativeCheckboxListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* reactNativeCheckboxListTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 15 | 22BA1457CA6D0C92B9AD236D /* libPods-reactNativeCheckboxList-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F0977BC33E8A682ABE694065 /* libPods-reactNativeCheckboxList-tvOSTests.a */; }; 16 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 17 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 18 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 19 | 2DCD954D1E0B4F2C00145EB5 /* reactNativeCheckboxListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* reactNativeCheckboxListTests.m */; }; 20 | 3052D3E4E8801F5325F46A91 /* libPods-reactNativeCheckboxList.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 91F2A9674512520EB6DD2D42 /* libPods-reactNativeCheckboxList.a */; }; 21 | 8ADE9D185FDC9DB6EE2CBC34 /* libPods-reactNativeCheckboxList-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E8CC2E5870E162D26A01FFFB /* libPods-reactNativeCheckboxList-tvOS.a */; }; 22 | BCF57CCFF80ADFC664BF9F8F /* libPods-reactNativeCheckboxListTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9388FB1418A0201DB2736670 /* libPods-reactNativeCheckboxListTests.a */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 31 | remoteInfo = reactNativeCheckboxList; 32 | }; 33 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 38 | remoteInfo = "reactNativeCheckboxList-tvOS"; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 44 | 00E356EE1AD99517003FC87E /* reactNativeCheckboxListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = reactNativeCheckboxListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 00E356F21AD99517003FC87E /* reactNativeCheckboxListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = reactNativeCheckboxListTests.m; sourceTree = ""; }; 47 | 13B07F961A680F5B00A75B9A /* reactNativeCheckboxList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = reactNativeCheckboxList.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = reactNativeCheckboxList/AppDelegate.h; sourceTree = ""; }; 49 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = reactNativeCheckboxList/AppDelegate.m; sourceTree = ""; }; 50 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 51 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = reactNativeCheckboxList/Images.xcassets; sourceTree = ""; }; 52 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = reactNativeCheckboxList/Info.plist; sourceTree = ""; }; 53 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = reactNativeCheckboxList/main.m; sourceTree = ""; }; 54 | 2BA83A1090CDAEEFFBA014C0 /* Pods-reactNativeCheckboxList-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxList-tvOS.release.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxList-tvOS/Pods-reactNativeCheckboxList-tvOS.release.xcconfig"; sourceTree = ""; }; 55 | 2D02E47B1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "reactNativeCheckboxList-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 2D02E4901E0B4A5D006451C7 /* reactNativeCheckboxList-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "reactNativeCheckboxList-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 3DB178D20A1953CB59491D77 /* Pods-reactNativeCheckboxList-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxList-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxList-tvOSTests/Pods-reactNativeCheckboxList-tvOSTests.release.xcconfig"; sourceTree = ""; }; 58 | 4E4DFE78EE07435DF6BB8CB0 /* Pods-reactNativeCheckboxList.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxList.debug.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxList/Pods-reactNativeCheckboxList.debug.xcconfig"; sourceTree = ""; }; 59 | 9169CDD2964F1D8F25FB082B /* Pods-reactNativeCheckboxListTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxListTests.debug.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxListTests/Pods-reactNativeCheckboxListTests.debug.xcconfig"; sourceTree = ""; }; 60 | 91F2A9674512520EB6DD2D42 /* libPods-reactNativeCheckboxList.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-reactNativeCheckboxList.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 9388FB1418A0201DB2736670 /* libPods-reactNativeCheckboxListTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-reactNativeCheckboxListTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 9792C624B2A67280B03ED498 /* Pods-reactNativeCheckboxList.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxList.release.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxList/Pods-reactNativeCheckboxList.release.xcconfig"; sourceTree = ""; }; 63 | A2BBBFA519B273C3C219749A /* Pods-reactNativeCheckboxList-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxList-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxList-tvOS/Pods-reactNativeCheckboxList-tvOS.debug.xcconfig"; sourceTree = ""; }; 64 | E8CC2E5870E162D26A01FFFB /* libPods-reactNativeCheckboxList-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-reactNativeCheckboxList-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 66 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 67 | EE1ECCFFC5D60F45DBFDFE83 /* Pods-reactNativeCheckboxListTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxListTests.release.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxListTests/Pods-reactNativeCheckboxListTests.release.xcconfig"; sourceTree = ""; }; 68 | F0977BC33E8A682ABE694065 /* libPods-reactNativeCheckboxList-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-reactNativeCheckboxList-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | F8C044A3A12F13198E99E7C9 /* Pods-reactNativeCheckboxList-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactNativeCheckboxList-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-reactNativeCheckboxList-tvOSTests/Pods-reactNativeCheckboxList-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | BCF57CCFF80ADFC664BF9F8F /* libPods-reactNativeCheckboxListTests.a in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 3052D3E4E8801F5325F46A91 /* libPods-reactNativeCheckboxList.a in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 8ADE9D185FDC9DB6EE2CBC34 /* libPods-reactNativeCheckboxList-tvOS.a in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 22BA1457CA6D0C92B9AD236D /* libPods-reactNativeCheckboxList-tvOSTests.a in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 00E356EF1AD99517003FC87E /* reactNativeCheckboxListTests */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 00E356F21AD99517003FC87E /* reactNativeCheckboxListTests.m */, 112 | 00E356F01AD99517003FC87E /* Supporting Files */, 113 | ); 114 | path = reactNativeCheckboxListTests; 115 | sourceTree = ""; 116 | }; 117 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 00E356F11AD99517003FC87E /* Info.plist */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | 13B07FAE1A68108700A75B9A /* reactNativeCheckboxList */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 129 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 130 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 131 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 132 | 13B07FB61A68108700A75B9A /* Info.plist */, 133 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 134 | 13B07FB71A68108700A75B9A /* main.m */, 135 | ); 136 | name = reactNativeCheckboxList; 137 | sourceTree = ""; 138 | }; 139 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 143 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 144 | 91F2A9674512520EB6DD2D42 /* libPods-reactNativeCheckboxList.a */, 145 | E8CC2E5870E162D26A01FFFB /* libPods-reactNativeCheckboxList-tvOS.a */, 146 | F0977BC33E8A682ABE694065 /* libPods-reactNativeCheckboxList-tvOSTests.a */, 147 | 9388FB1418A0201DB2736670 /* libPods-reactNativeCheckboxListTests.a */, 148 | ); 149 | name = Frameworks; 150 | sourceTree = ""; 151 | }; 152 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | ); 156 | name = Libraries; 157 | sourceTree = ""; 158 | }; 159 | 83CBB9F61A601CBA00E9B192 = { 160 | isa = PBXGroup; 161 | children = ( 162 | 13B07FAE1A68108700A75B9A /* reactNativeCheckboxList */, 163 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 164 | 00E356EF1AD99517003FC87E /* reactNativeCheckboxListTests */, 165 | 83CBBA001A601CBA00E9B192 /* Products */, 166 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 167 | 89F9646186AA338D6A79AF1C /* Pods */, 168 | ); 169 | indentWidth = 2; 170 | sourceTree = ""; 171 | tabWidth = 2; 172 | usesTabs = 0; 173 | }; 174 | 83CBBA001A601CBA00E9B192 /* Products */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | 13B07F961A680F5B00A75B9A /* reactNativeCheckboxList.app */, 178 | 00E356EE1AD99517003FC87E /* reactNativeCheckboxListTests.xctest */, 179 | 2D02E47B1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOS.app */, 180 | 2D02E4901E0B4A5D006451C7 /* reactNativeCheckboxList-tvOSTests.xctest */, 181 | ); 182 | name = Products; 183 | sourceTree = ""; 184 | }; 185 | 89F9646186AA338D6A79AF1C /* Pods */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | 4E4DFE78EE07435DF6BB8CB0 /* Pods-reactNativeCheckboxList.debug.xcconfig */, 189 | 9792C624B2A67280B03ED498 /* Pods-reactNativeCheckboxList.release.xcconfig */, 190 | A2BBBFA519B273C3C219749A /* Pods-reactNativeCheckboxList-tvOS.debug.xcconfig */, 191 | 2BA83A1090CDAEEFFBA014C0 /* Pods-reactNativeCheckboxList-tvOS.release.xcconfig */, 192 | F8C044A3A12F13198E99E7C9 /* Pods-reactNativeCheckboxList-tvOSTests.debug.xcconfig */, 193 | 3DB178D20A1953CB59491D77 /* Pods-reactNativeCheckboxList-tvOSTests.release.xcconfig */, 194 | 9169CDD2964F1D8F25FB082B /* Pods-reactNativeCheckboxListTests.debug.xcconfig */, 195 | EE1ECCFFC5D60F45DBFDFE83 /* Pods-reactNativeCheckboxListTests.release.xcconfig */, 196 | ); 197 | name = Pods; 198 | path = Pods; 199 | sourceTree = ""; 200 | }; 201 | /* End PBXGroup section */ 202 | 203 | /* Begin PBXNativeTarget section */ 204 | 00E356ED1AD99517003FC87E /* reactNativeCheckboxListTests */ = { 205 | isa = PBXNativeTarget; 206 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "reactNativeCheckboxListTests" */; 207 | buildPhases = ( 208 | 9014A6E261A587F8AB62A260 /* [CP] Check Pods Manifest.lock */, 209 | 00E356EA1AD99517003FC87E /* Sources */, 210 | 00E356EB1AD99517003FC87E /* Frameworks */, 211 | 00E356EC1AD99517003FC87E /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 217 | ); 218 | name = reactNativeCheckboxListTests; 219 | productName = reactNativeCheckboxListTests; 220 | productReference = 00E356EE1AD99517003FC87E /* reactNativeCheckboxListTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | 13B07F861A680F5B00A75B9A /* reactNativeCheckboxList */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "reactNativeCheckboxList" */; 226 | buildPhases = ( 227 | F2CF9A87E369762D2A590664 /* [CP] Check Pods Manifest.lock */, 228 | FD10A7F022414F080027D42C /* Start Packager */, 229 | 13B07F871A680F5B00A75B9A /* Sources */, 230 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 231 | 13B07F8E1A680F5B00A75B9A /* Resources */, 232 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | ); 238 | name = reactNativeCheckboxList; 239 | productName = reactNativeCheckboxList; 240 | productReference = 13B07F961A680F5B00A75B9A /* reactNativeCheckboxList.app */; 241 | productType = "com.apple.product-type.application"; 242 | }; 243 | 2D02E47A1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOS */ = { 244 | isa = PBXNativeTarget; 245 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "reactNativeCheckboxList-tvOS" */; 246 | buildPhases = ( 247 | 48C4AD660BCAC6A24D812930 /* [CP] Check Pods Manifest.lock */, 248 | FD10A7F122414F3F0027D42C /* Start Packager */, 249 | 2D02E4771E0B4A5D006451C7 /* Sources */, 250 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 251 | 2D02E4791E0B4A5D006451C7 /* Resources */, 252 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 253 | ); 254 | buildRules = ( 255 | ); 256 | dependencies = ( 257 | ); 258 | name = "reactNativeCheckboxList-tvOS"; 259 | productName = "reactNativeCheckboxList-tvOS"; 260 | productReference = 2D02E47B1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOS.app */; 261 | productType = "com.apple.product-type.application"; 262 | }; 263 | 2D02E48F1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOSTests */ = { 264 | isa = PBXNativeTarget; 265 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "reactNativeCheckboxList-tvOSTests" */; 266 | buildPhases = ( 267 | DB04F1D81FF9DE36F7CE81E5 /* [CP] Check Pods Manifest.lock */, 268 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 269 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 270 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 276 | ); 277 | name = "reactNativeCheckboxList-tvOSTests"; 278 | productName = "reactNativeCheckboxList-tvOSTests"; 279 | productReference = 2D02E4901E0B4A5D006451C7 /* reactNativeCheckboxList-tvOSTests.xctest */; 280 | productType = "com.apple.product-type.bundle.unit-test"; 281 | }; 282 | /* End PBXNativeTarget section */ 283 | 284 | /* Begin PBXProject section */ 285 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 286 | isa = PBXProject; 287 | attributes = { 288 | LastUpgradeCheck = 0940; 289 | ORGANIZATIONNAME = Facebook; 290 | TargetAttributes = { 291 | 00E356ED1AD99517003FC87E = { 292 | CreatedOnToolsVersion = 6.2; 293 | TestTargetID = 13B07F861A680F5B00A75B9A; 294 | }; 295 | 2D02E47A1E0B4A5D006451C7 = { 296 | CreatedOnToolsVersion = 8.2.1; 297 | ProvisioningStyle = Automatic; 298 | }; 299 | 2D02E48F1E0B4A5D006451C7 = { 300 | CreatedOnToolsVersion = 8.2.1; 301 | ProvisioningStyle = Automatic; 302 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 303 | }; 304 | }; 305 | }; 306 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "reactNativeCheckboxList" */; 307 | compatibilityVersion = "Xcode 3.2"; 308 | developmentRegion = English; 309 | hasScannedForEncodings = 0; 310 | knownRegions = ( 311 | en, 312 | Base, 313 | ); 314 | mainGroup = 83CBB9F61A601CBA00E9B192; 315 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 316 | projectDirPath = ""; 317 | projectRoot = ""; 318 | targets = ( 319 | 13B07F861A680F5B00A75B9A /* reactNativeCheckboxList */, 320 | 00E356ED1AD99517003FC87E /* reactNativeCheckboxListTests */, 321 | 2D02E47A1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOS */, 322 | 2D02E48F1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOSTests */, 323 | ); 324 | }; 325 | /* End PBXProject section */ 326 | 327 | /* Begin PBXResourcesBuildPhase section */ 328 | 00E356EC1AD99517003FC87E /* Resources */ = { 329 | isa = PBXResourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 336 | isa = PBXResourcesBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 340 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | }; 344 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 345 | isa = PBXResourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 353 | isa = PBXResourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | /* End PBXResourcesBuildPhase section */ 360 | 361 | /* Begin PBXShellScriptBuildPhase section */ 362 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 363 | isa = PBXShellScriptBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | inputPaths = ( 368 | ); 369 | name = "Bundle React Native code and images"; 370 | outputPaths = ( 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | shellPath = /bin/sh; 374 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 375 | }; 376 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 377 | isa = PBXShellScriptBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | ); 381 | inputPaths = ( 382 | ); 383 | name = "Bundle React Native Code And Images"; 384 | outputPaths = ( 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | shellPath = /bin/sh; 388 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 389 | }; 390 | 48C4AD660BCAC6A24D812930 /* [CP] Check Pods Manifest.lock */ = { 391 | isa = PBXShellScriptBuildPhase; 392 | buildActionMask = 2147483647; 393 | files = ( 394 | ); 395 | inputFileListPaths = ( 396 | ); 397 | inputPaths = ( 398 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 399 | "${PODS_ROOT}/Manifest.lock", 400 | ); 401 | name = "[CP] Check Pods Manifest.lock"; 402 | outputFileListPaths = ( 403 | ); 404 | outputPaths = ( 405 | "$(DERIVED_FILE_DIR)/Pods-reactNativeCheckboxList-tvOS-checkManifestLockResult.txt", 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | shellPath = /bin/sh; 409 | 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"; 410 | showEnvVarsInLog = 0; 411 | }; 412 | 9014A6E261A587F8AB62A260 /* [CP] Check Pods Manifest.lock */ = { 413 | isa = PBXShellScriptBuildPhase; 414 | buildActionMask = 2147483647; 415 | files = ( 416 | ); 417 | inputFileListPaths = ( 418 | ); 419 | inputPaths = ( 420 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 421 | "${PODS_ROOT}/Manifest.lock", 422 | ); 423 | name = "[CP] Check Pods Manifest.lock"; 424 | outputFileListPaths = ( 425 | ); 426 | outputPaths = ( 427 | "$(DERIVED_FILE_DIR)/Pods-reactNativeCheckboxListTests-checkManifestLockResult.txt", 428 | ); 429 | runOnlyForDeploymentPostprocessing = 0; 430 | shellPath = /bin/sh; 431 | 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"; 432 | showEnvVarsInLog = 0; 433 | }; 434 | DB04F1D81FF9DE36F7CE81E5 /* [CP] Check Pods Manifest.lock */ = { 435 | isa = PBXShellScriptBuildPhase; 436 | buildActionMask = 2147483647; 437 | files = ( 438 | ); 439 | inputFileListPaths = ( 440 | ); 441 | inputPaths = ( 442 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 443 | "${PODS_ROOT}/Manifest.lock", 444 | ); 445 | name = "[CP] Check Pods Manifest.lock"; 446 | outputFileListPaths = ( 447 | ); 448 | outputPaths = ( 449 | "$(DERIVED_FILE_DIR)/Pods-reactNativeCheckboxList-tvOSTests-checkManifestLockResult.txt", 450 | ); 451 | runOnlyForDeploymentPostprocessing = 0; 452 | shellPath = /bin/sh; 453 | 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"; 454 | showEnvVarsInLog = 0; 455 | }; 456 | F2CF9A87E369762D2A590664 /* [CP] Check Pods Manifest.lock */ = { 457 | isa = PBXShellScriptBuildPhase; 458 | buildActionMask = 2147483647; 459 | files = ( 460 | ); 461 | inputFileListPaths = ( 462 | ); 463 | inputPaths = ( 464 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 465 | "${PODS_ROOT}/Manifest.lock", 466 | ); 467 | name = "[CP] Check Pods Manifest.lock"; 468 | outputFileListPaths = ( 469 | ); 470 | outputPaths = ( 471 | "$(DERIVED_FILE_DIR)/Pods-reactNativeCheckboxList-checkManifestLockResult.txt", 472 | ); 473 | runOnlyForDeploymentPostprocessing = 0; 474 | shellPath = /bin/sh; 475 | 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"; 476 | showEnvVarsInLog = 0; 477 | }; 478 | FD10A7F022414F080027D42C /* Start Packager */ = { 479 | isa = PBXShellScriptBuildPhase; 480 | buildActionMask = 2147483647; 481 | files = ( 482 | ); 483 | inputFileListPaths = ( 484 | ); 485 | inputPaths = ( 486 | ); 487 | name = "Start Packager"; 488 | outputFileListPaths = ( 489 | ); 490 | outputPaths = ( 491 | ); 492 | runOnlyForDeploymentPostprocessing = 0; 493 | shellPath = /bin/sh; 494 | 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"; 495 | showEnvVarsInLog = 0; 496 | }; 497 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 498 | isa = PBXShellScriptBuildPhase; 499 | buildActionMask = 2147483647; 500 | files = ( 501 | ); 502 | inputFileListPaths = ( 503 | ); 504 | inputPaths = ( 505 | ); 506 | name = "Start Packager"; 507 | outputFileListPaths = ( 508 | ); 509 | outputPaths = ( 510 | ); 511 | runOnlyForDeploymentPostprocessing = 0; 512 | shellPath = /bin/sh; 513 | 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"; 514 | showEnvVarsInLog = 0; 515 | }; 516 | /* End PBXShellScriptBuildPhase section */ 517 | 518 | /* Begin PBXSourcesBuildPhase section */ 519 | 00E356EA1AD99517003FC87E /* Sources */ = { 520 | isa = PBXSourcesBuildPhase; 521 | buildActionMask = 2147483647; 522 | files = ( 523 | 00E356F31AD99517003FC87E /* reactNativeCheckboxListTests.m in Sources */, 524 | ); 525 | runOnlyForDeploymentPostprocessing = 0; 526 | }; 527 | 13B07F871A680F5B00A75B9A /* Sources */ = { 528 | isa = PBXSourcesBuildPhase; 529 | buildActionMask = 2147483647; 530 | files = ( 531 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 532 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 533 | ); 534 | runOnlyForDeploymentPostprocessing = 0; 535 | }; 536 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 537 | isa = PBXSourcesBuildPhase; 538 | buildActionMask = 2147483647; 539 | files = ( 540 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 541 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 542 | ); 543 | runOnlyForDeploymentPostprocessing = 0; 544 | }; 545 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 546 | isa = PBXSourcesBuildPhase; 547 | buildActionMask = 2147483647; 548 | files = ( 549 | 2DCD954D1E0B4F2C00145EB5 /* reactNativeCheckboxListTests.m in Sources */, 550 | ); 551 | runOnlyForDeploymentPostprocessing = 0; 552 | }; 553 | /* End PBXSourcesBuildPhase section */ 554 | 555 | /* Begin PBXTargetDependency section */ 556 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 557 | isa = PBXTargetDependency; 558 | target = 13B07F861A680F5B00A75B9A /* reactNativeCheckboxList */; 559 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 560 | }; 561 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 562 | isa = PBXTargetDependency; 563 | target = 2D02E47A1E0B4A5D006451C7 /* reactNativeCheckboxList-tvOS */; 564 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 565 | }; 566 | /* End PBXTargetDependency section */ 567 | 568 | /* Begin PBXVariantGroup section */ 569 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 570 | isa = PBXVariantGroup; 571 | children = ( 572 | 13B07FB21A68108700A75B9A /* Base */, 573 | ); 574 | name = LaunchScreen.xib; 575 | path = reactNativeCheckboxList; 576 | sourceTree = ""; 577 | }; 578 | /* End PBXVariantGroup section */ 579 | 580 | /* Begin XCBuildConfiguration section */ 581 | 00E356F61AD99517003FC87E /* Debug */ = { 582 | isa = XCBuildConfiguration; 583 | baseConfigurationReference = 9169CDD2964F1D8F25FB082B /* Pods-reactNativeCheckboxListTests.debug.xcconfig */; 584 | buildSettings = { 585 | BUNDLE_LOADER = "$(TEST_HOST)"; 586 | GCC_PREPROCESSOR_DEFINITIONS = ( 587 | "DEBUG=1", 588 | "$(inherited)", 589 | ); 590 | INFOPLIST_FILE = reactNativeCheckboxListTests/Info.plist; 591 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 592 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 593 | OTHER_LDFLAGS = ( 594 | "-ObjC", 595 | "-lc++", 596 | "$(inherited)", 597 | ); 598 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 599 | PRODUCT_NAME = "$(TARGET_NAME)"; 600 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactNativeCheckboxList.app/reactNativeCheckboxList"; 601 | }; 602 | name = Debug; 603 | }; 604 | 00E356F71AD99517003FC87E /* Release */ = { 605 | isa = XCBuildConfiguration; 606 | baseConfigurationReference = EE1ECCFFC5D60F45DBFDFE83 /* Pods-reactNativeCheckboxListTests.release.xcconfig */; 607 | buildSettings = { 608 | BUNDLE_LOADER = "$(TEST_HOST)"; 609 | COPY_PHASE_STRIP = NO; 610 | INFOPLIST_FILE = reactNativeCheckboxListTests/Info.plist; 611 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 612 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 613 | OTHER_LDFLAGS = ( 614 | "-ObjC", 615 | "-lc++", 616 | "$(inherited)", 617 | ); 618 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 619 | PRODUCT_NAME = "$(TARGET_NAME)"; 620 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactNativeCheckboxList.app/reactNativeCheckboxList"; 621 | }; 622 | name = Release; 623 | }; 624 | 13B07F941A680F5B00A75B9A /* Debug */ = { 625 | isa = XCBuildConfiguration; 626 | baseConfigurationReference = 4E4DFE78EE07435DF6BB8CB0 /* Pods-reactNativeCheckboxList.debug.xcconfig */; 627 | buildSettings = { 628 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 629 | CURRENT_PROJECT_VERSION = 1; 630 | DEAD_CODE_STRIPPING = NO; 631 | INFOPLIST_FILE = reactNativeCheckboxList/Info.plist; 632 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 633 | OTHER_LDFLAGS = ( 634 | "$(inherited)", 635 | "-ObjC", 636 | "-lc++", 637 | ); 638 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 639 | PRODUCT_NAME = reactNativeCheckboxList; 640 | VERSIONING_SYSTEM = "apple-generic"; 641 | }; 642 | name = Debug; 643 | }; 644 | 13B07F951A680F5B00A75B9A /* Release */ = { 645 | isa = XCBuildConfiguration; 646 | baseConfigurationReference = 9792C624B2A67280B03ED498 /* Pods-reactNativeCheckboxList.release.xcconfig */; 647 | buildSettings = { 648 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 649 | CURRENT_PROJECT_VERSION = 1; 650 | INFOPLIST_FILE = reactNativeCheckboxList/Info.plist; 651 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 652 | OTHER_LDFLAGS = ( 653 | "$(inherited)", 654 | "-ObjC", 655 | "-lc++", 656 | ); 657 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 658 | PRODUCT_NAME = reactNativeCheckboxList; 659 | VERSIONING_SYSTEM = "apple-generic"; 660 | }; 661 | name = Release; 662 | }; 663 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 664 | isa = XCBuildConfiguration; 665 | baseConfigurationReference = A2BBBFA519B273C3C219749A /* Pods-reactNativeCheckboxList-tvOS.debug.xcconfig */; 666 | buildSettings = { 667 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 668 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 669 | CLANG_ANALYZER_NONNULL = YES; 670 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 671 | CLANG_WARN_INFINITE_RECURSION = YES; 672 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 673 | DEBUG_INFORMATION_FORMAT = dwarf; 674 | ENABLE_TESTABILITY = YES; 675 | GCC_NO_COMMON_BLOCKS = YES; 676 | INFOPLIST_FILE = "reactNativeCheckboxList-tvOS/Info.plist"; 677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 678 | OTHER_LDFLAGS = ( 679 | "$(inherited)", 680 | "-ObjC", 681 | "-lc++", 682 | ); 683 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.reactNativeCheckboxList-tvOS"; 684 | PRODUCT_NAME = "$(TARGET_NAME)"; 685 | SDKROOT = appletvos; 686 | TARGETED_DEVICE_FAMILY = 3; 687 | TVOS_DEPLOYMENT_TARGET = 9.2; 688 | }; 689 | name = Debug; 690 | }; 691 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 692 | isa = XCBuildConfiguration; 693 | baseConfigurationReference = 2BA83A1090CDAEEFFBA014C0 /* Pods-reactNativeCheckboxList-tvOS.release.xcconfig */; 694 | buildSettings = { 695 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 696 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 697 | CLANG_ANALYZER_NONNULL = YES; 698 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 699 | CLANG_WARN_INFINITE_RECURSION = YES; 700 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 701 | COPY_PHASE_STRIP = NO; 702 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 703 | GCC_NO_COMMON_BLOCKS = YES; 704 | INFOPLIST_FILE = "reactNativeCheckboxList-tvOS/Info.plist"; 705 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 706 | OTHER_LDFLAGS = ( 707 | "$(inherited)", 708 | "-ObjC", 709 | "-lc++", 710 | ); 711 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.reactNativeCheckboxList-tvOS"; 712 | PRODUCT_NAME = "$(TARGET_NAME)"; 713 | SDKROOT = appletvos; 714 | TARGETED_DEVICE_FAMILY = 3; 715 | TVOS_DEPLOYMENT_TARGET = 9.2; 716 | }; 717 | name = Release; 718 | }; 719 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 720 | isa = XCBuildConfiguration; 721 | baseConfigurationReference = F8C044A3A12F13198E99E7C9 /* Pods-reactNativeCheckboxList-tvOSTests.debug.xcconfig */; 722 | buildSettings = { 723 | BUNDLE_LOADER = "$(TEST_HOST)"; 724 | CLANG_ANALYZER_NONNULL = YES; 725 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 726 | CLANG_WARN_INFINITE_RECURSION = YES; 727 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 728 | DEBUG_INFORMATION_FORMAT = dwarf; 729 | ENABLE_TESTABILITY = YES; 730 | GCC_NO_COMMON_BLOCKS = YES; 731 | INFOPLIST_FILE = "reactNativeCheckboxList-tvOSTests/Info.plist"; 732 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 733 | OTHER_LDFLAGS = ( 734 | "$(inherited)", 735 | "-ObjC", 736 | "-lc++", 737 | ); 738 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.reactNativeCheckboxList-tvOSTests"; 739 | PRODUCT_NAME = "$(TARGET_NAME)"; 740 | SDKROOT = appletvos; 741 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactNativeCheckboxList-tvOS.app/reactNativeCheckboxList-tvOS"; 742 | TVOS_DEPLOYMENT_TARGET = 10.1; 743 | }; 744 | name = Debug; 745 | }; 746 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 747 | isa = XCBuildConfiguration; 748 | baseConfigurationReference = 3DB178D20A1953CB59491D77 /* Pods-reactNativeCheckboxList-tvOSTests.release.xcconfig */; 749 | buildSettings = { 750 | BUNDLE_LOADER = "$(TEST_HOST)"; 751 | CLANG_ANALYZER_NONNULL = YES; 752 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 753 | CLANG_WARN_INFINITE_RECURSION = YES; 754 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 755 | COPY_PHASE_STRIP = NO; 756 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 757 | GCC_NO_COMMON_BLOCKS = YES; 758 | INFOPLIST_FILE = "reactNativeCheckboxList-tvOSTests/Info.plist"; 759 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 760 | OTHER_LDFLAGS = ( 761 | "$(inherited)", 762 | "-ObjC", 763 | "-lc++", 764 | ); 765 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.reactNativeCheckboxList-tvOSTests"; 766 | PRODUCT_NAME = "$(TARGET_NAME)"; 767 | SDKROOT = appletvos; 768 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactNativeCheckboxList-tvOS.app/reactNativeCheckboxList-tvOS"; 769 | TVOS_DEPLOYMENT_TARGET = 10.1; 770 | }; 771 | name = Release; 772 | }; 773 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 774 | isa = XCBuildConfiguration; 775 | buildSettings = { 776 | ALWAYS_SEARCH_USER_PATHS = NO; 777 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 778 | CLANG_CXX_LIBRARY = "libc++"; 779 | CLANG_ENABLE_MODULES = YES; 780 | CLANG_ENABLE_OBJC_ARC = YES; 781 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 782 | CLANG_WARN_BOOL_CONVERSION = YES; 783 | CLANG_WARN_COMMA = YES; 784 | CLANG_WARN_CONSTANT_CONVERSION = YES; 785 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 786 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 787 | CLANG_WARN_EMPTY_BODY = YES; 788 | CLANG_WARN_ENUM_CONVERSION = YES; 789 | CLANG_WARN_INFINITE_RECURSION = YES; 790 | CLANG_WARN_INT_CONVERSION = YES; 791 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 792 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 793 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 794 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 795 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 796 | CLANG_WARN_STRICT_PROTOTYPES = YES; 797 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 798 | CLANG_WARN_UNREACHABLE_CODE = YES; 799 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 800 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 801 | COPY_PHASE_STRIP = NO; 802 | ENABLE_STRICT_OBJC_MSGSEND = YES; 803 | ENABLE_TESTABILITY = YES; 804 | GCC_C_LANGUAGE_STANDARD = gnu99; 805 | GCC_DYNAMIC_NO_PIC = NO; 806 | GCC_NO_COMMON_BLOCKS = YES; 807 | GCC_OPTIMIZATION_LEVEL = 0; 808 | GCC_PREPROCESSOR_DEFINITIONS = ( 809 | "DEBUG=1", 810 | "$(inherited)", 811 | ); 812 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 813 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 814 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 815 | GCC_WARN_UNDECLARED_SELECTOR = YES; 816 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 817 | GCC_WARN_UNUSED_FUNCTION = YES; 818 | GCC_WARN_UNUSED_VARIABLE = YES; 819 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 820 | MTL_ENABLE_DEBUG_INFO = YES; 821 | ONLY_ACTIVE_ARCH = YES; 822 | SDKROOT = iphoneos; 823 | }; 824 | name = Debug; 825 | }; 826 | 83CBBA211A601CBA00E9B192 /* Release */ = { 827 | isa = XCBuildConfiguration; 828 | buildSettings = { 829 | ALWAYS_SEARCH_USER_PATHS = NO; 830 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 831 | CLANG_CXX_LIBRARY = "libc++"; 832 | CLANG_ENABLE_MODULES = YES; 833 | CLANG_ENABLE_OBJC_ARC = YES; 834 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 835 | CLANG_WARN_BOOL_CONVERSION = YES; 836 | CLANG_WARN_COMMA = YES; 837 | CLANG_WARN_CONSTANT_CONVERSION = YES; 838 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 839 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 840 | CLANG_WARN_EMPTY_BODY = YES; 841 | CLANG_WARN_ENUM_CONVERSION = YES; 842 | CLANG_WARN_INFINITE_RECURSION = YES; 843 | CLANG_WARN_INT_CONVERSION = YES; 844 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 845 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 846 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 847 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 848 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 849 | CLANG_WARN_STRICT_PROTOTYPES = YES; 850 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 851 | CLANG_WARN_UNREACHABLE_CODE = YES; 852 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 853 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 854 | COPY_PHASE_STRIP = YES; 855 | ENABLE_NS_ASSERTIONS = NO; 856 | ENABLE_STRICT_OBJC_MSGSEND = YES; 857 | GCC_C_LANGUAGE_STANDARD = gnu99; 858 | GCC_NO_COMMON_BLOCKS = YES; 859 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 860 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 861 | GCC_WARN_UNDECLARED_SELECTOR = YES; 862 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 863 | GCC_WARN_UNUSED_FUNCTION = YES; 864 | GCC_WARN_UNUSED_VARIABLE = YES; 865 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 866 | MTL_ENABLE_DEBUG_INFO = NO; 867 | SDKROOT = iphoneos; 868 | VALIDATE_PRODUCT = YES; 869 | }; 870 | name = Release; 871 | }; 872 | /* End XCBuildConfiguration section */ 873 | 874 | /* Begin XCConfigurationList section */ 875 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "reactNativeCheckboxListTests" */ = { 876 | isa = XCConfigurationList; 877 | buildConfigurations = ( 878 | 00E356F61AD99517003FC87E /* Debug */, 879 | 00E356F71AD99517003FC87E /* Release */, 880 | ); 881 | defaultConfigurationIsVisible = 0; 882 | defaultConfigurationName = Release; 883 | }; 884 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "reactNativeCheckboxList" */ = { 885 | isa = XCConfigurationList; 886 | buildConfigurations = ( 887 | 13B07F941A680F5B00A75B9A /* Debug */, 888 | 13B07F951A680F5B00A75B9A /* Release */, 889 | ); 890 | defaultConfigurationIsVisible = 0; 891 | defaultConfigurationName = Release; 892 | }; 893 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "reactNativeCheckboxList-tvOS" */ = { 894 | isa = XCConfigurationList; 895 | buildConfigurations = ( 896 | 2D02E4971E0B4A5E006451C7 /* Debug */, 897 | 2D02E4981E0B4A5E006451C7 /* Release */, 898 | ); 899 | defaultConfigurationIsVisible = 0; 900 | defaultConfigurationName = Release; 901 | }; 902 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "reactNativeCheckboxList-tvOSTests" */ = { 903 | isa = XCConfigurationList; 904 | buildConfigurations = ( 905 | 2D02E4991E0B4A5E006451C7 /* Debug */, 906 | 2D02E49A1E0B4A5E006451C7 /* Release */, 907 | ); 908 | defaultConfigurationIsVisible = 0; 909 | defaultConfigurationName = Release; 910 | }; 911 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "reactNativeCheckboxList" */ = { 912 | isa = XCConfigurationList; 913 | buildConfigurations = ( 914 | 83CBBA201A601CBA00E9B192 /* Debug */, 915 | 83CBBA211A601CBA00E9B192 /* Release */, 916 | ); 917 | defaultConfigurationIsVisible = 0; 918 | defaultConfigurationName = Release; 919 | }; 920 | /* End XCConfigurationList section */ 921 | }; 922 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 923 | } 924 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList.xcodeproj/xcshareddata/xcschemes/reactNativeCheckboxList.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | reactNativeCheckboxList 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxList/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxListTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/reactNativeCheckboxListTests/reactNativeCheckboxListTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 16 | 17 | @interface reactNativeCheckboxListTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation reactNativeCheckboxListTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | #ifdef DEBUG 44 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 45 | if (level >= RCTLogLevelError) { 46 | redboxError = message; 47 | } 48 | }); 49 | #endif 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | #ifdef DEBUG 64 | RCTSetLogFunction(RCTDefaultLogFunction); 65 | #endif 66 | 67 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 68 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 69 | } 70 | 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rn-checkbox-list", 3 | "version": "1.1.0", 4 | "scripts": { 5 | "android": "react-native run-android", 6 | "ios": "react-native run-ios", 7 | "start": "react-native start", 8 | "test": "jest", 9 | "lint": "eslint ." 10 | }, 11 | "devDependencies": { 12 | "@babel/core": "^7.9.0", 13 | "@babel/runtime": "^7.8.3", 14 | "@react-native-community/checkbox": "^0.5.8", 15 | "@react-native-community/eslint-config": "^0.0.6", 16 | "@react-native-community/eslint-plugin": "^1.1.0", 17 | "@rnx-kit/align-deps": "^2.0.1", 18 | "babel-jest": "^24.9.0", 19 | "eslint": "^6.8.0", 20 | "jest": "^26.6.3", 21 | "metro-react-native-babel-preset": "^0.72.1", 22 | "prop-types": "^15.7.2", 23 | "react": "18.1.0", 24 | "react-native": "^0.70.0", 25 | "react-test-renderer": "18.1.0", 26 | "typescript": "^4.4.3" 27 | }, 28 | "jest": { 29 | "preset": "react-native" 30 | }, 31 | "description": "List of checkboxes with select and deselect all option", 32 | "main": "src/checkList.js", 33 | "types": "src/checkList.d.ts", 34 | "directories": { 35 | "example": "example", 36 | "src": "src" 37 | }, 38 | "repository": { 39 | "type": "git", 40 | "url": "git+https://github.com/rinku-k/rn-checkbox-list.git" 41 | }, 42 | "keywords": [ 43 | "checkbox", 44 | "checkboxes", 45 | "react-native", 46 | "checkbox-list", 47 | "checklist", 48 | "android", 49 | "ios" 50 | ], 51 | "author": "Rinku", 52 | "license": "ISC", 53 | "bugs": { 54 | "url": "https://github.com/rinku-k/rn-checkbox-list/issues" 55 | }, 56 | "homepage": "https://github.com/rinku-k/rn-checkbox-list#readme", 57 | "rnx-kit": { 58 | "kitType": "library", 59 | "alignDeps": { 60 | "requirements": { 61 | "development": [ 62 | "react-native@0.70" 63 | ], 64 | "production": [ 65 | "react-native@0.70" 66 | ] 67 | }, 68 | "capabilities": [ 69 | "babel-preset-react-native", 70 | "checkbox", 71 | "core", 72 | "core-android", 73 | "core-ios", 74 | "jest", 75 | "react", 76 | "react-test-renderer" 77 | ] 78 | } 79 | }, 80 | "peerDependencies": { 81 | "@react-native-community/checkbox": "^0.5.8", 82 | "react": "18.1.0", 83 | "react-native": "^0.70.0" 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/checkList.d.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { ColorValue, StyleProp, ViewStyle } from 'react-native'; 3 | 4 | export interface listItem { 5 | id?: number | string; 6 | name?: string; 7 | } 8 | 9 | export interface CheckBoxProps { 10 | listItems?: listItem[]; 11 | selectedListItems?: listItem[]; 12 | headerName?: string; 13 | listItemStyle?: StyleProp; 14 | checkboxProp?: object; 15 | headerStyle?: StyleProp; 16 | onChange?: () => void; 17 | onLoading?: () => void; 18 | theme?: StyleProp; 19 | renderItem?: () => void; 20 | } 21 | 22 | export default class CheckBoxList extends React.Component {} 23 | -------------------------------------------------------------------------------- /src/checkList.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { View, ScrollView, Text } from 'react-native'; 3 | import PropTypes from 'prop-types'; 4 | import CheckListItem from './checkListItem'; 5 | import CheckListHeader from './checkListHeader'; 6 | 7 | class CheckboxList extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | selectedIndexes: props.selectedListItems.map(item => item.id), 12 | selectedListItems: props.selectedListItems, 13 | }; 14 | this.selectAllItems = this.selectAllItems.bind(this); 15 | } 16 | 17 | handleOnChange() { 18 | this.props.onChange({ 19 | ids: this.state.selectedIndexes, 20 | items: this.state.selectedListItems, 21 | }); 22 | } 23 | 24 | unSelectAllItem() { 25 | this.setState( 26 | { 27 | selectedIndexes: [], 28 | selectedListItems: [], 29 | }, 30 | this.handleOnChange, 31 | ); 32 | } 33 | 34 | selectAllItems() { 35 | const { selectedIndexes } = this.state; 36 | const { listItems } = this.props; 37 | if (selectedIndexes.length < listItems.length) { 38 | this.setState( 39 | { 40 | selectedIndexes: listItems.map(item => item.id), 41 | selectedListItems: [...listItems], 42 | }, 43 | this.handleOnChange, 44 | ); 45 | } else { 46 | this.unSelectAllItem(); 47 | } 48 | } 49 | 50 | selectCurrentItem(data) { 51 | const { 52 | selectedIndexes: currentSelectedIds, 53 | selectedListItems: currentSelectedItems, 54 | } = this.state; 55 | const currentSelectedIndex = currentSelectedIds.indexOf(data.id); 56 | if (currentSelectedIndex > -1) { 57 | currentSelectedIds.splice(currentSelectedIndex, 1); 58 | currentSelectedItems.splice(currentSelectedIndex, 1); 59 | } else { 60 | currentSelectedIds.push(data.id); 61 | currentSelectedItems.push(data); 62 | } 63 | this.setState( 64 | { 65 | selectedIndexes: currentSelectedIds, 66 | selectedListItems: currentSelectedItems, 67 | }, 68 | this.handleOnChange, 69 | ); 70 | } 71 | 72 | render() { 73 | const { 74 | listItems, 75 | headerName, 76 | listItemStyle, 77 | checkboxProp, 78 | headerStyle, 79 | theme, 80 | onLoading, 81 | renderItem, 82 | } = this.props; 83 | const { selectedIndexes } = this.state; 84 | return ( 85 | 86 | {!!headerName && ( 87 | 0 92 | } 93 | text={headerName} 94 | onPress={this.selectAllItems} 95 | style={headerStyle} 96 | checkboxProp={checkboxProp} 97 | /> 98 | )} 99 | {!listItems.length ? ( 100 | onLoading() 101 | ) : ( 102 | 103 | {listItems.map(item => ( 104 | -1} 108 | item={item} 109 | onPress={() => this.selectCurrentItem(item)} 110 | checkboxProp={checkboxProp} 111 | style={listItemStyle} 112 | renderItem={renderItem} 113 | /> 114 | ))} 115 | 116 | )} 117 | 118 | ); 119 | } 120 | } 121 | 122 | CheckboxList.propTypes = { 123 | listItems: PropTypes.array, 124 | selectedListItems: PropTypes.array, 125 | headerName: PropTypes.string, 126 | listItemStyle: PropTypes.object, 127 | checkboxProp: PropTypes.object, 128 | headerStyle: PropTypes.object, 129 | onChange: PropTypes.func, 130 | onLoading: PropTypes.func, 131 | theme: PropTypes.string, 132 | renderItem: PropTypes.func, 133 | }; 134 | 135 | const defaultTextProp = { 136 | numberOfLines: 1, 137 | style: { 138 | fontSize: 14, 139 | color: '#626262', 140 | }, 141 | }; 142 | 143 | const defaultHeaderStyle = { 144 | padding: 10, 145 | flexDirection: 'row', 146 | alignItems: 'center', 147 | backgroundColor: '#F2F6FC', 148 | text: { 149 | color: '#212121', 150 | fontWeight: 'bold', 151 | fontSize: 16, 152 | }, 153 | }; 154 | 155 | CheckboxList.defaultProps = { 156 | listItems: [], 157 | selectedListItems: [], 158 | headerName: '', 159 | listItemStyle: {}, 160 | checkboxProp: {}, 161 | headerStyle: defaultHeaderStyle, 162 | onChange: () => {}, 163 | onLoading: () => null, 164 | theme: '#1A237E', 165 | renderItem: ({ item }) => {item.name}, 166 | }; 167 | 168 | export default CheckboxList; 169 | -------------------------------------------------------------------------------- /src/checkListHeader.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, Text } from 'react-native'; 3 | import CheckBox from './checkbox'; 4 | import PropTypes from 'prop-types'; 5 | import Touchable from './touchable'; 6 | 7 | const CheckListHeader = ({ 8 | children, 9 | text, 10 | style, 11 | checkboxProp, 12 | onPress, 13 | isActive, 14 | theme, 15 | }) => ( 16 | 17 | 18 | {!!text && ( 19 | 20 | 21 | {text} 22 | 23 | 24 | )} 25 | {children} 26 | 27 | ); 28 | 29 | CheckListHeader.propTypes = { 30 | children: PropTypes.node, 31 | text: PropTypes.string, 32 | style: PropTypes.object, 33 | onPress: PropTypes.func, 34 | checkboxProp: PropTypes.object, 35 | theme: PropTypes.string.isRequired, 36 | }; 37 | 38 | CheckListHeader.defaultProps = { 39 | children: null, 40 | text: '', 41 | style: {}, 42 | checkboxProp: {}, 43 | onPress: () => {}, 44 | }; 45 | 46 | export default CheckListHeader; 47 | -------------------------------------------------------------------------------- /src/checkListItem.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | import CheckBox from './checkbox'; 4 | import PropTypes from 'prop-types'; 5 | import Touchable from './touchable'; 6 | 7 | const CheckListItem = ({ 8 | children, 9 | item, 10 | style, 11 | checkboxProp, 12 | onPress, 13 | isActive, 14 | theme, 15 | renderItem, 16 | }) => ( 17 | 25 | 26 | {!!item && {renderItem({ item })}} 27 | {children} 28 | 29 | ); 30 | 31 | CheckListItem.propTypes = { 32 | children: PropTypes.node, 33 | text: PropTypes.string, 34 | style: PropTypes.object, 35 | checkboxProp: PropTypes.object, 36 | onPress: PropTypes.func, 37 | theme: PropTypes.string.isRequired, 38 | }; 39 | 40 | CheckListItem.defaultProps = { 41 | children: null, 42 | item: null, 43 | style: {}, 44 | checkboxProp: {}, 45 | onPress: () => {}, 46 | }; 47 | 48 | export default CheckListItem; 49 | -------------------------------------------------------------------------------- /src/checkbox.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import CheckBox from '@react-native-community/checkbox'; 3 | import PropTypes from 'prop-types'; 4 | import { Platform } from 'react-native'; 5 | 6 | const CustomCheckBox = ({ checkboxProp, isActive, theme }) => ( 7 | 26 | ); 27 | 28 | CustomCheckBox.propTypes = { 29 | checkboxProp: PropTypes.object, 30 | theme: PropTypes.string.isRequired, 31 | isActive: PropTypes.bool, 32 | }; 33 | 34 | CustomCheckBox.defaultProps = { 35 | checkboxProp: {}, 36 | isActive: false, 37 | }; 38 | 39 | export default CustomCheckBox; 40 | -------------------------------------------------------------------------------- /src/touchable.js: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | import React, { PureComponent } from 'react'; 3 | import { 4 | View, 5 | Animated, 6 | Easing, 7 | Platform, 8 | TouchableWithoutFeedback, 9 | I18nManager, 10 | StyleSheet 11 | } from 'react-native'; 12 | 13 | 14 | const radius = 10; 15 | const styles = StyleSheet.create({ 16 | container: { 17 | ...StyleSheet.absoluteFillObject, 18 | 19 | backgroundColor: 'transparent', 20 | overflow: 'hidden', 21 | }, 22 | 23 | ripple: { 24 | width: radius * 2, 25 | height: radius * 2, 26 | borderRadius: radius, 27 | overflow: 'hidden', 28 | position: 'absolute', 29 | }, 30 | }); 31 | 32 | export default class Ripple extends PureComponent { 33 | constructor(props) { 34 | super(props); 35 | 36 | this.onLayout = this.onLayout.bind(this); 37 | this.onPress = this.onPress.bind(this); 38 | this.onPressIn = this.onPressIn.bind(this); 39 | this.onPressOut = this.onPressOut.bind(this); 40 | this.onLongPress = this.onLongPress.bind(this); 41 | this.onAnimationEnd = this.onAnimationEnd.bind(this); 42 | 43 | this.renderRipple = this.renderRipple.bind(this); 44 | 45 | this.unique = 0; 46 | this.mounted = false; 47 | 48 | this.state = { 49 | width: 0, 50 | height: 0, 51 | ripples: [], 52 | }; 53 | } 54 | 55 | componentDidMount() { 56 | this.mounted = true; 57 | } 58 | 59 | componentWillUnmount() { 60 | this.mounted = false; 61 | } 62 | 63 | onLayout(event) { 64 | let { width, height } = event.nativeEvent.layout; 65 | let { onLayout } = this.props; 66 | 67 | if ('function' === typeof onLayout) { 68 | onLayout(event); 69 | } 70 | 71 | this.setState({ width, height }); 72 | } 73 | 74 | onPress(event) { 75 | let { ripples } = this.state; 76 | let { onPress, rippleSequential } = this.props; 77 | 78 | if (!rippleSequential || !ripples.length) { 79 | if ('function' === typeof onPress) { 80 | requestAnimationFrame(() => onPress(event)); 81 | } 82 | 83 | this.startRipple(event); 84 | } 85 | } 86 | 87 | onLongPress(event) { 88 | let { onLongPress } = this.props; 89 | 90 | if ('function' === typeof onLongPress) { 91 | requestAnimationFrame(() => onLongPress(event)); 92 | } 93 | 94 | this.startRipple(event); 95 | } 96 | 97 | onPressIn(event) { 98 | let { onPressIn } = this.props; 99 | 100 | if ('function' === typeof onPressIn) { 101 | onPressIn(event); 102 | } 103 | } 104 | 105 | onPressOut(event) { 106 | let { onPressOut } = this.props; 107 | 108 | if ('function' === typeof onPressOut) { 109 | onPressOut(event); 110 | } 111 | } 112 | 113 | onAnimationEnd() { 114 | if (this.mounted) { 115 | this.setState(({ ripples }) => ({ ripples: ripples.slice(1) })); 116 | } 117 | } 118 | 119 | startRipple(event) { 120 | let { width, height } = this.state; 121 | let { 122 | rippleDuration, 123 | rippleCentered, 124 | rippleSize, 125 | onRippleAnimation, 126 | } = this.props; 127 | 128 | let w2 = 0.5 * width; 129 | let h2 = 0.5 * height; 130 | 131 | let { locationX, locationY } = rippleCentered? 132 | { locationX: w2, locationY: h2 }: 133 | event.nativeEvent; 134 | 135 | let offsetX = Math.abs(w2 - locationX); 136 | let offsetY = Math.abs(h2 - locationY); 137 | 138 | let R = rippleSize > 0? 139 | 0.5 * rippleSize: 140 | Math.sqrt(Math.pow(w2 + offsetX, 2) + Math.pow(h2 + offsetY, 2)); 141 | 142 | let ripple = { 143 | unique: this.unique++, 144 | progress: new Animated.Value(0), 145 | locationX, 146 | locationY, 147 | R, 148 | }; 149 | 150 | let animation = Animated 151 | .timing(ripple.progress, { 152 | toValue: 1, 153 | easing: Easing.out(Easing.ease), 154 | duration: rippleDuration, 155 | useNativeDriver: true, 156 | }); 157 | 158 | onRippleAnimation(animation, this.onAnimationEnd); 159 | 160 | this.setState(({ ripples }) => ({ ripples: ripples.concat(ripple) })); 161 | } 162 | 163 | renderRipple({ unique, progress, locationX, locationY, R }) { 164 | let { rippleColor, rippleOpacity, rippleFades } = this.props; 165 | 166 | let rippleStyle = { 167 | top: locationY - radius, 168 | [I18nManager.isRTL? 'right' : 'left']: locationX - radius, 169 | backgroundColor: rippleColor, 170 | 171 | transform: [{ 172 | scale: progress.interpolate({ 173 | inputRange: [0, 1], 174 | outputRange: [0.5 / radius, R / radius], 175 | }), 176 | }], 177 | 178 | opacity: rippleFades? 179 | progress.interpolate({ 180 | inputRange: [0, 1], 181 | outputRange: [rippleOpacity, 0], 182 | }): 183 | rippleOpacity, 184 | }; 185 | 186 | return ( 187 | 188 | ); 189 | } 190 | 191 | render() { 192 | let { ripples } = this.state; 193 | let { 194 | delayLongPress, 195 | delayPressIn, 196 | delayPressOut, 197 | disabled, 198 | hitSlop, 199 | pressRetentionOffset, 200 | children, 201 | rippleContainerBorderRadius, 202 | testID, 203 | nativeID, 204 | accessible, 205 | accessibilityHint, 206 | accessibilityLabel, 207 | 208 | onPress, 209 | onLongPress, 210 | onLayout, 211 | onRippleAnimation, 212 | 213 | rippleColor, 214 | rippleOpacity, 215 | rippleDuration, 216 | rippleSize, 217 | rippleCentered, 218 | rippleSequential, 219 | rippleFades, 220 | 221 | ...props 222 | } = this.props; 223 | 224 | let touchableProps = { 225 | delayLongPress, 226 | delayPressIn, 227 | delayPressOut, 228 | disabled, 229 | hitSlop, 230 | pressRetentionOffset, 231 | testID, 232 | accessible, 233 | accessibilityHint, 234 | accessibilityLabel, 235 | onLayout: this.onLayout, 236 | onPress: this.onPress, 237 | onPressIn: this.onPressIn, 238 | onPressOut: this.onPressOut, 239 | onLongPress: onLongPress? 240 | this.onLongPress: 241 | undefined, 242 | 243 | ...('web' !== Platform.OS? { nativeID } : null), 244 | }; 245 | 246 | let containerStyle = { 247 | borderRadius: rippleContainerBorderRadius, 248 | }; 249 | 250 | return ( 251 | 252 | 253 | {children} 254 | 255 | {ripples.map(this.renderRipple)} 256 | 257 | 258 | 259 | ); 260 | } 261 | } 262 | 263 | Ripple.defaultProps = { 264 | ...TouchableWithoutFeedback.defaultProps, 265 | rippleColor: '#aaa', 266 | rippleOpacity: 0.30, 267 | rippleDuration: 300, 268 | rippleSize: 0, 269 | rippleContainerBorderRadius: 0, 270 | rippleCentered: false, 271 | rippleSequential: false, 272 | rippleFades: true, 273 | disabled: false, 274 | 275 | onRippleAnimation: (animation, callback) => animation.start(callback), 276 | }; 277 | 278 | Ripple.propTypes = { 279 | ...Animated.View.propTypes, 280 | ...TouchableWithoutFeedback.propTypes, 281 | 282 | rippleColor: PropTypes.string, 283 | rippleOpacity: PropTypes.number, 284 | rippleDuration: PropTypes.number, 285 | rippleSize: PropTypes.number, 286 | rippleContainerBorderRadius: PropTypes.number, 287 | rippleCentered: PropTypes.bool, 288 | rippleSequential: PropTypes.bool, 289 | rippleFades: PropTypes.bool, 290 | disabled: PropTypes.bool, 291 | 292 | onRippleAnimation: PropTypes.func, 293 | }; 294 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */ 4 | 5 | /* Projects */ 6 | // "incremental": true, /* Enable incremental compilation */ 7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ 8 | // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ 9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ 10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ 12 | 13 | /* Language and Environment */ 14 | "target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 15 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ 16 | // "jsx": "preserve", /* Specify what JSX code is generated. */ 17 | // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ 18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ 19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */ 20 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */ 22 | // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */ 23 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 24 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 25 | 26 | /* Modules */ 27 | "module": "commonjs", /* Specify what module code is generated. */ 28 | // "rootDir": "./", /* Specify the root folder within your source files. */ 29 | // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ 30 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 31 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 32 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 33 | // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ 34 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */ 35 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 36 | // "resolveJsonModule": true, /* Enable importing .json files */ 37 | // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */ 38 | 39 | /* JavaScript Support */ 40 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ 41 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ 42 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ 43 | 44 | /* Emit */ 45 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 46 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ 47 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ 48 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ 49 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ 50 | // "outDir": "./", /* Specify an output folder for all emitted files. */ 51 | // "removeComments": true, /* Disable emitting comments. */ 52 | // "noEmit": true, /* Disable emitting files from a compilation. */ 53 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ 54 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */ 55 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ 56 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ 57 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 58 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ 59 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ 60 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ 61 | // "newLine": "crlf", /* Set the newline character for emitting files. */ 62 | // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */ 63 | // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ 64 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ 65 | // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ 66 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ 67 | 68 | /* Interop Constraints */ 69 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ 70 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ 71 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ 72 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ 73 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ 74 | 75 | /* Type Checking */ 76 | "strict": true, /* Enable all strict type-checking options. */ 77 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */ 78 | // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ 79 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ 80 | // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */ 81 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ 82 | // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */ 83 | // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */ 84 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ 85 | // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ 86 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ 87 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ 88 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ 89 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ 90 | // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ 91 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ 92 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */ 93 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ 94 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ 95 | 96 | /* Completeness */ 97 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 98 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ 99 | } 100 | } 101 | --------------------------------------------------------------------------------