├── .github └── FUNDING.yml ├── .gitignore ├── App.js ├── LICENSE ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── rnselectmultiplebutton │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── index.ios.js ├── index.js ├── ios ├── rnSelectmultipleButton-tvOS │ └── Info.plist ├── rnSelectmultipleButton-tvOSTests │ └── Info.plist ├── rnSelectmultipleButton.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── rnSelectmultipleButton-tvOS.xcscheme │ │ └── rnSelectmultipleButton.xcscheme ├── rnSelectmultipleButton │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── rnSelectmultipleButtonTests │ ├── Info.plist │ └── rnSelectmultipleButtonTests.m ├── libraries ├── SelectMultipleButton.js └── SelectMultipleGroupButton.js ├── package.json ├── sample ├── GroupButton.js ├── ListButton.js ├── SegmentedControl.js └── SimpleButton.js └── screenCapture └── ios-screencapture.gif /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [danceyoung] 4 | patreon: danceyoung 5 | -------------------------------------------------------------------------------- /.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 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 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 | # .file 56 | __tests__/App.js 57 | .babelrc 58 | .flowconfig 59 | .buckconfig 60 | .watchmanconfig 61 | .gitattributes 62 | 63 | # npmignore 64 | # android/ 65 | # ios/ 66 | # index.ios.js 67 | # app.json 68 | #App.js 69 | # screenCapture/ 70 | # sample/ 71 | 72 | 73 | .vscode/launch.json 74 | -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-02-08 17:53:17 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-08-31 09:59:55 8 | */ 9 | 10 | import React, { Component } from "react"; 11 | import { StyleSheet, Text, View, ScrollView, Dimensions } from "react-native"; 12 | 13 | const SCREEN_WIDTH = Dimensions.get("window").width; 14 | const ios_blue = "#007AFF"; 15 | const themeColor = "#0D1014"; 16 | 17 | import { SelectMultipleGroupButton } from "./index.js"; 18 | import SimpleButton from "./sample/SimpleButton"; 19 | import GroupButton from "./sample/GroupButton"; 20 | import SegmentedControl from "./sample/SegmentedControl"; 21 | import ListButton from "./sample/ListButton"; 22 | 23 | export default class App extends Component { 24 | constructor(props) { 25 | super(props); 26 | 27 | this.state = { 28 | usageScrollView: null 29 | }; 30 | } 31 | 32 | render() { 33 | return ( 34 | 35 | 36 | { 46 | switch (valueTap) { 47 | case "SimpleBtn": 48 | this.state.usageScrollView.scrollTo({ 49 | x: 0 * SCREEN_WIDTH, 50 | y: 0, 51 | animated: true 52 | }); 53 | break; 54 | case "GroupBtn": 55 | this.state.usageScrollView.scrollTo({ 56 | x: 1 * SCREEN_WIDTH, 57 | y: 0, 58 | animated: true 59 | }); 60 | break; 61 | case "Segment": 62 | this.state.usageScrollView.scrollTo({ 63 | x: 2 * SCREEN_WIDTH, 64 | y: 0, 65 | animated: true 66 | }); 67 | break; 68 | case "List": 69 | this.state.usageScrollView.scrollTo({ 70 | x: 3 * SCREEN_WIDTH, 71 | y: 0, 72 | animated: true 73 | }); 74 | break; 75 | default: 76 | break; 77 | } 78 | }} 79 | buttonViewStyle={{ flex: 1, margin: 0, borderRadius: 0 }} 80 | highLightStyle={{ 81 | borderColor: ios_blue, 82 | textColor: ios_blue, 83 | backgroundColor: themeColor, 84 | borderTintColor: ios_blue, 85 | textTintColor: "white", 86 | backgroundTintColor: ios_blue 87 | }} 88 | /> 89 | (this.state.usageScrollView = ref)} 91 | pagingEnabled={true} 92 | scrollEnabled={false} 93 | horizontal={true} 94 | > 95 | 99 | Simple Button Usage 100 | 101 | 102 | 106 | Group Button Usage 107 | 108 | 109 | 110 | 111 | SegmentedControl Usage 112 | 113 | 114 | 115 | 116 | List Usage 117 | 118 | 119 | 120 | 121 | 122 | ); 123 | } 124 | } 125 | 126 | const styles = StyleSheet.create({ 127 | usageTitle: { 128 | color: "white", 129 | marginTop: 20 130 | }, 131 | horizontalView: { 132 | width: SCREEN_WIDTH 133 | }, 134 | contentStyle: { 135 | height: 700 136 | } 137 | }); 138 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Young 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native SelectMultiple Button 2 | 3 | This library is a button (or a grouped buttons) supporting multiple or radio selection by building with React Native. https://github.com/danceyoung/selectmultiplebuttons for Swift. 4 | 5 | You can specify any **Layout** and **Style** for container view,button view and text through `View Style Props`, `Layout Props` and `Text Style Props` supporting by React Native 6 | 7 | ## Example running in iOS and Android(captured by GIPHY CAPTURE) 8 | 9 | ![captured by GIPHY CAPTURE](https://github.com/danceyoung/react-native-selectmultiple-button/blob/master/screenCapture/ios-screencapture.gif?raw=true) 10 | 11 | > Note:Runing a Android Virtual Device is TMDing too large memory eated. 12 | 13 | ## Instruction 14 | 15 | - SelectMultipleButton 16 | 17 | - SelectMultiple**Group**Button 18 | 19 | ### SelectMultipleButton 20 | 21 | You need to set the props `selected` as `true` to highlight button's selected status and manage the data selected through event props `singleTap(valueTap)` by hard coding yourself. 22 | 23 | ### SelectMultipleGroupButton 24 | 25 | You needn't to set these settings like SelectMultipleButton, because these features are build in the SelectMultipleGroupButton. What you do is set the event props `singleTap(valueTap)` to hold the value tap and the event props `onSelectedValuesChange(selectedValues)` to hold the array of values selected. 26 | 27 | ## Installation 28 | 29 | cd your project root direction 30 | 31 | $ npm install react-native-selectmultiple-button --save 32 | 33 | ## Usage 34 | 35 | code example 36 | 37 | [App.js](https://github.com/danceyoung/react-native-selectmultiple-button/blob/master/App.js) 38 | 39 | code snap 40 | 41 | ```javascript 42 | import { 43 | SelectMultipleButton, 44 | SelectMultipleGroupButton 45 | } from "react-native-selectmultiple-button"; 46 | 47 | this._singleTapMultipleSelectedButtons(interest)} 73 | />; 74 | 75 | 93 | this._groupButtonOnSelectedValuesChange(selectedValues) 94 | } 95 | group={multipleGroupData} 96 | />; 97 | ``` 98 | 99 | ## Props 100 | 101 | ### SelectMultipleButton 102 | 103 | | props | type | required | desc | 104 | | -------------- | --------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- | 105 | | `selected` | bool | no | Default is false. The `selected` prop determines whether the button is selected and highlighted | 106 | | `value` | one of types(string,number) | yes | Your business key | 107 | | `displayValue` | one of types(string,number) | no | Default is == `value` prop if not set `displayValue` prop. Displayed as button's text | 108 | | `singleTap` | function(valueTap) | no | Handler to be called when the user taps the button. The button's props `value` is passed as an argument to the callback handler | 109 | 110 | ---------- 111 | 112 | `highLightStyle` 113 | 114 | Normal or highlighted style, the style object `{}` contains the following keys. 115 | 116 | - borderColor: PropTypes.string.isRequired---Normal color of button border. 117 | 118 | - backgroundColor: PropTypes.string.isRequired---Normal color of button background. 119 | 120 | - textColor: PropTypes.string.isRequired---Normal color of text. 121 | 122 | - borderTintColor: PropTypes.string.isRequired---Highlighted color of button border. 123 | 124 | - backgroundTintColor: PropTypes.string.isRequired---Highlighted color of button background. 125 | 126 | - textTintColor: PropTypes.string.isRequired--Highlighted color of text. 127 | 128 | Default style is 129 | 130 | 131 | 132 | { 133 | 134 | borderColor: 'gray', 135 | 136 | backgroundColor: 'transparent', 137 | 138 | textColor: 'gray', 139 | 140 | borderTintColor: ios_blue, 141 | 142 | backgroundTintColor: 'transparent', 143 | 144 | textTintColor: ios_blue, 145 | 146 | } 147 | 148 | ---------- 149 | 150 | `buttonViewStyle` 151 | 152 | Style of button view. You can specify any [View Style Props](https://facebook.github.io/react-native/docs/view-style-props.html). 153 | 154 | Default style is 155 | 156 | ```css 157 | { 158 | margin: 5, 159 | borderRadius: 3, 160 | alignItems: 'center', 161 | justifyContent: 'center', 162 | borderWidth: 1 163 | } 164 | ``` 165 | 166 | ---------- 167 | 168 | `textStyle` 169 | 170 | Style of text. You can specify any [Text Style Props](https://facebook.github.io/react-native/docs/text.html#style) 171 | 172 | Default style is 173 | 174 | ```css 175 | { 176 | textAlign: 'center', 177 | marginTop: 5, 178 | marginBottom: 5, 179 | marginLeft: 10, 180 | marginRight: 10, 181 | } 182 | ``` 183 | 184 | ### SelectMultipleGroupButton 185 | 186 | | props | type | required | desc | 187 | | ------------------------ | ----------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- | 188 | | `multiple` | bool | no | Default is true. The `multiple` prop determines the grouped buttons are multiple or radio selected | 189 | | `defaultSelectedIndexes` | array | no | The indexes array in `group` of the grouped buttons to be default selected and highlighted | 190 | | `maximumNumberSelected` | number | no | Specifies maximum number for selecting buttons, and its smallest value is 2. Only enabled for `multiple` prop is set true | 191 | | `group` | array of {value,displayValue} | yes | Just a plain array, `value` and `displayValue` props are akin to `value` and `displayValue` props of `SelectMultipleButton`. | 192 | | `singleTap` | function(valueTap) | no | Handler to be called when the user taps the button. The button's props `value` is passed as an argument to the callback handler. | 193 | | `onSelectedValuesChange` | function(selectedValues) | no | Handler to be called when the user taps the button.the array of selected values is passed as an argument to the callback handler. | 194 | 195 | ---------- 196 | 197 | `highLightStyle` 198 | 199 | Normal or highlighted style, akin to `highLightStyle` of `SelectMultipleButton`. 200 | 201 | ---------- 202 | 203 | `buttonViewStyle` 204 | 205 | Style of button view, akin to `buttonViewStyle` of `SelectMultipleButton`. 206 | 207 | ---------- 208 | 209 | `textStyle` 210 | 211 | Style of text, akin to `textStyle` of `SelectMultipleButton`. 212 | 213 | ---------- 214 | 215 | `containerViewStyle` 216 | 217 | Style of the grouped buttons container view. You can specify any [View Style Props](https://facebook.github.io/react-native/docs/view-style-props.html) and [Layout Props](https://facebook.github.io/react-native/docs/layout-props.html). 218 | 219 | Default View Style and Layout props is 220 | 221 | ```css 222 | { 223 | flexWrap: 'wrap', 224 | flexDirection: 'row', 225 | justifyContent: 'center' 226 | } 227 | ``` 228 | 229 | ## License 230 | 231 | react-native-selectmultiple-button is [MIT Licensed](https://github.com/danceyoung/react-native-selectmultiple-button/blob/master/LICENSE). 232 | -------------------------------------------------------------------------------- /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 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 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 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.rnselectmultiplebutton", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.rnselectmultiplebutton", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /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 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion 23 98 | buildToolsVersion "23.0.1" 99 | 100 | defaultConfig { 101 | applicationId "com.rnselectmultiplebutton" 102 | minSdkVersion 16 103 | targetSdkVersion 22 104 | versionCode 1 105 | versionName "1.0" 106 | ndk { 107 | abiFilters "armeabi-v7a", "x86" 108 | } 109 | } 110 | splits { 111 | abi { 112 | reset() 113 | enable enableSeparateBuildPerCPUArchitecture 114 | universalApk false // If true, also generate a universal APK 115 | include "armeabi-v7a", "x86" 116 | } 117 | } 118 | buildTypes { 119 | release { 120 | minifyEnabled enableProguardInReleaseBuilds 121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 122 | } 123 | } 124 | // applicationVariants are e.g. debug, release 125 | applicationVariants.all { variant -> 126 | variant.outputs.each { output -> 127 | // For each separate APK per architecture, set a unique version code as described here: 128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 129 | def versionCodes = ["armeabi-v7a":1, "x86":2] 130 | def abi = output.getFilter(OutputFile.ABI) 131 | if (abi != null) { // null for the universal-debug, universal-release variants 132 | output.versionCodeOverride = 133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 134 | } 135 | } 136 | } 137 | } 138 | 139 | dependencies { 140 | compile fileTree(dir: "libs", include: ["*.jar"]) 141 | compile "com.android.support:appcompat-v7:23.0.1" 142 | compile "com.facebook.react:react-native:+" // From node_modules 143 | } 144 | 145 | // Run this once to be able to run the application with BUCK 146 | // puts all compile dependencies into folder libs for BUCK to use 147 | task copyDownloadableDepsToLibs(type: Copy) { 148 | from configurations.compile 149 | into 'libs' 150 | } 151 | -------------------------------------------------------------------------------- /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 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnselectmultiplebutton/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rnselectmultiplebutton; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "rnSelectmultipleButton"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnselectmultiplebutton/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rnselectmultiplebutton; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | 11 | import java.util.Arrays; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | return Arrays.asList( 25 | new MainReactPackage() 26 | ); 27 | } 28 | 29 | @Override 30 | protected String getJSMainModuleName() { 31 | return "index.ios"; 32 | } 33 | }; 34 | 35 | @Override 36 | public ReactNativeHost getReactNativeHost() { 37 | return mReactNativeHost; 38 | } 39 | 40 | @Override 41 | public void onCreate() { 42 | super.onCreate(); 43 | SoLoader.init(this, /* native exopackage */ false); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danceyoung/react-native-selectmultiple-button/3edf5205729653a6b572ad6d0f19e2bdc6c8cd3d/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danceyoung/react-native-selectmultiple-button/3edf5205729653a6b572ad6d0f19e2bdc6c8cd3d/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danceyoung/react-native-selectmultiple-button/3edf5205729653a6b572ad6d0f19e2bdc6c8cd3d/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danceyoung/react-native-selectmultiple-button/3edf5205729653a6b572ad6d0f19e2bdc6c8cd3d/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | rnSelectmultipleButton 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.0.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danceyoung/react-native-selectmultiple-button/3edf5205729653a6b572ad6d0f19e2bdc6c8cd3d/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Feb 23 08:48:03 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'rnSelectmultipleButton' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rnSelectmultipleButton", 3 | "displayName": "rnSelectmultipleButton" 4 | } -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-02-08 17:53:02 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-02-08 17:53:02 8 | */ 9 | import { AppRegistry } from 'react-native'; 10 | import App from './App'; 11 | 12 | AppRegistry.registerComponent('rnSelectmultipleButton', () => App); 13 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-02-08 17:52:34 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-02-09 10:15:13 8 | */ 9 | 10 | import SelectMultipleButton from './libraries/SelectMultipleButton' 11 | import SelectMultipleGroupButton from './libraries/SelectMultipleGroupButton' 12 | 13 | module.exports = { 14 | SelectMultipleButton, 15 | SelectMultipleGroupButton 16 | } 17 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* rnSelectmultipleButtonTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* rnSelectmultipleButtonTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* rnSelectmultipleButtonTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* rnSelectmultipleButtonTests.m */; }; 37 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = rnSelectmultipleButton; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 109 | proxyType = 1; 110 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 111 | remoteInfo = "rnSelectmultipleButton-tvOS"; 112 | }; 113 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 118 | remoteInfo = "RCTBlob-tvOS"; 119 | }; 120 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 125 | remoteInfo = fishhook; 126 | }; 127 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 132 | remoteInfo = "fishhook-tvOS"; 133 | }; 134 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 139 | remoteInfo = "RCTImage-tvOS"; 140 | }; 141 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 146 | remoteInfo = "RCTLinking-tvOS"; 147 | }; 148 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 153 | remoteInfo = "RCTNetwork-tvOS"; 154 | }; 155 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 160 | remoteInfo = "RCTSettings-tvOS"; 161 | }; 162 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 167 | remoteInfo = "RCTText-tvOS"; 168 | }; 169 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 174 | remoteInfo = "RCTWebSocket-tvOS"; 175 | }; 176 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 181 | remoteInfo = "React-tvOS"; 182 | }; 183 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 188 | remoteInfo = yoga; 189 | }; 190 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 195 | remoteInfo = "yoga-tvOS"; 196 | }; 197 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 202 | remoteInfo = cxxreact; 203 | }; 204 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 209 | remoteInfo = "cxxreact-tvOS"; 210 | }; 211 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 216 | remoteInfo = jschelpers; 217 | }; 218 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 223 | remoteInfo = "jschelpers-tvOS"; 224 | }; 225 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 230 | remoteInfo = RCTAnimation; 231 | }; 232 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 237 | remoteInfo = "RCTAnimation-tvOS"; 238 | }; 239 | 6FC82230202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 240 | isa = PBXContainerItemProxy; 241 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 242 | proxyType = 2; 243 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 244 | remoteInfo = jsinspector; 245 | }; 246 | 6FC82232202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 247 | isa = PBXContainerItemProxy; 248 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 249 | proxyType = 2; 250 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 251 | remoteInfo = "jsinspector-tvOS"; 252 | }; 253 | 6FC82234202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 254 | isa = PBXContainerItemProxy; 255 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 256 | proxyType = 2; 257 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 258 | remoteInfo = "third-party"; 259 | }; 260 | 6FC82236202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 261 | isa = PBXContainerItemProxy; 262 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 263 | proxyType = 2; 264 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 265 | remoteInfo = "third-party-tvOS"; 266 | }; 267 | 6FC82238202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 268 | isa = PBXContainerItemProxy; 269 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 270 | proxyType = 2; 271 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 272 | remoteInfo = "double-conversion"; 273 | }; 274 | 6FC8223A202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 275 | isa = PBXContainerItemProxy; 276 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 277 | proxyType = 2; 278 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 279 | remoteInfo = "double-conversion-tvOS"; 280 | }; 281 | 6FC8223C202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 282 | isa = PBXContainerItemProxy; 283 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 284 | proxyType = 2; 285 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 286 | remoteInfo = privatedata; 287 | }; 288 | 6FC8223E202C4ECA002EEEF3 /* PBXContainerItemProxy */ = { 289 | isa = PBXContainerItemProxy; 290 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 291 | proxyType = 2; 292 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 293 | remoteInfo = "privatedata-tvOS"; 294 | }; 295 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 296 | isa = PBXContainerItemProxy; 297 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 298 | proxyType = 2; 299 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 300 | remoteInfo = RCTLinking; 301 | }; 302 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 303 | isa = PBXContainerItemProxy; 304 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 305 | proxyType = 2; 306 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 307 | remoteInfo = RCTText; 308 | }; 309 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 310 | isa = PBXContainerItemProxy; 311 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 312 | proxyType = 2; 313 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 314 | remoteInfo = RCTBlob; 315 | }; 316 | /* End PBXContainerItemProxy section */ 317 | 318 | /* Begin PBXFileReference section */ 319 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 320 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 321 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 322 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 323 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 324 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 325 | 00E356EE1AD99517003FC87E /* rnSelectmultipleButtonTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = rnSelectmultipleButtonTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 326 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 327 | 00E356F21AD99517003FC87E /* rnSelectmultipleButtonTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = rnSelectmultipleButtonTests.m; sourceTree = ""; }; 328 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 329 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 330 | 13B07F961A680F5B00A75B9A /* rnSelectmultipleButton.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = rnSelectmultipleButton.app; sourceTree = BUILT_PRODUCTS_DIR; }; 331 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = rnSelectmultipleButton/AppDelegate.h; sourceTree = ""; }; 332 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = rnSelectmultipleButton/AppDelegate.m; sourceTree = ""; }; 333 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 334 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = rnSelectmultipleButton/Images.xcassets; sourceTree = ""; }; 335 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = rnSelectmultipleButton/Info.plist; sourceTree = ""; }; 336 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = rnSelectmultipleButton/main.m; sourceTree = ""; }; 337 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 338 | 2D02E47B1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "rnSelectmultipleButton-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 339 | 2D02E4901E0B4A5D006451C7 /* rnSelectmultipleButton-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "rnSelectmultipleButton-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 340 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 341 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 342 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 343 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 344 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 345 | /* End PBXFileReference section */ 346 | 347 | /* Begin PBXFrameworksBuildPhase section */ 348 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 349 | isa = PBXFrameworksBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 357 | isa = PBXFrameworksBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 361 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 362 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 363 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 364 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 365 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 366 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 367 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 368 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 369 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 370 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 371 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 372 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 377 | isa = PBXFrameworksBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 381 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 382 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 383 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 384 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 385 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 386 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 387 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 392 | isa = PBXFrameworksBuildPhase; 393 | buildActionMask = 2147483647; 394 | files = ( 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | }; 398 | /* End PBXFrameworksBuildPhase section */ 399 | 400 | /* Begin PBXGroup section */ 401 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 402 | isa = PBXGroup; 403 | children = ( 404 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 405 | ); 406 | name = Products; 407 | sourceTree = ""; 408 | }; 409 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 410 | isa = PBXGroup; 411 | children = ( 412 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 413 | ); 414 | name = Products; 415 | sourceTree = ""; 416 | }; 417 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 418 | isa = PBXGroup; 419 | children = ( 420 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 421 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 422 | ); 423 | name = Products; 424 | sourceTree = ""; 425 | }; 426 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 427 | isa = PBXGroup; 428 | children = ( 429 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 430 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 431 | ); 432 | name = Products; 433 | sourceTree = ""; 434 | }; 435 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 436 | isa = PBXGroup; 437 | children = ( 438 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 439 | ); 440 | name = Products; 441 | sourceTree = ""; 442 | }; 443 | 00E356EF1AD99517003FC87E /* rnSelectmultipleButtonTests */ = { 444 | isa = PBXGroup; 445 | children = ( 446 | 00E356F21AD99517003FC87E /* rnSelectmultipleButtonTests.m */, 447 | 00E356F01AD99517003FC87E /* Supporting Files */, 448 | ); 449 | path = rnSelectmultipleButtonTests; 450 | sourceTree = ""; 451 | }; 452 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 453 | isa = PBXGroup; 454 | children = ( 455 | 00E356F11AD99517003FC87E /* Info.plist */, 456 | ); 457 | name = "Supporting Files"; 458 | sourceTree = ""; 459 | }; 460 | 139105B71AF99BAD00B5F7CC /* Products */ = { 461 | isa = PBXGroup; 462 | children = ( 463 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 464 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 465 | ); 466 | name = Products; 467 | sourceTree = ""; 468 | }; 469 | 139FDEE71B06529A00C62182 /* Products */ = { 470 | isa = PBXGroup; 471 | children = ( 472 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 473 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 474 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 475 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 476 | ); 477 | name = Products; 478 | sourceTree = ""; 479 | }; 480 | 13B07FAE1A68108700A75B9A /* rnSelectmultipleButton */ = { 481 | isa = PBXGroup; 482 | children = ( 483 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 484 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 485 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 486 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 487 | 13B07FB61A68108700A75B9A /* Info.plist */, 488 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 489 | 13B07FB71A68108700A75B9A /* main.m */, 490 | ); 491 | name = rnSelectmultipleButton; 492 | sourceTree = ""; 493 | }; 494 | 146834001AC3E56700842450 /* Products */ = { 495 | isa = PBXGroup; 496 | children = ( 497 | 146834041AC3E56700842450 /* libReact.a */, 498 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 499 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 500 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 501 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 502 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 503 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 504 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 505 | 6FC82231202C4ECA002EEEF3 /* libjsinspector.a */, 506 | 6FC82233202C4ECA002EEEF3 /* libjsinspector-tvOS.a */, 507 | 6FC82235202C4ECA002EEEF3 /* libthird-party.a */, 508 | 6FC82237202C4ECA002EEEF3 /* libthird-party.a */, 509 | 6FC82239202C4ECA002EEEF3 /* libdouble-conversion.a */, 510 | 6FC8223B202C4ECA002EEEF3 /* libdouble-conversion.a */, 511 | 6FC8223D202C4ECA002EEEF3 /* libprivatedata.a */, 512 | 6FC8223F202C4ECA002EEEF3 /* libprivatedata-tvOS.a */, 513 | ); 514 | name = Products; 515 | sourceTree = ""; 516 | }; 517 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 518 | isa = PBXGroup; 519 | children = ( 520 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 521 | ); 522 | name = Frameworks; 523 | sourceTree = ""; 524 | }; 525 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 526 | isa = PBXGroup; 527 | children = ( 528 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 529 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 530 | ); 531 | name = Products; 532 | sourceTree = ""; 533 | }; 534 | 78C398B11ACF4ADC00677621 /* Products */ = { 535 | isa = PBXGroup; 536 | children = ( 537 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 538 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 539 | ); 540 | name = Products; 541 | sourceTree = ""; 542 | }; 543 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 544 | isa = PBXGroup; 545 | children = ( 546 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 547 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 548 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 549 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 550 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 551 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 552 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 553 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 554 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 555 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 556 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 557 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 558 | ); 559 | name = Libraries; 560 | sourceTree = ""; 561 | }; 562 | 832341B11AAA6A8300B99B32 /* Products */ = { 563 | isa = PBXGroup; 564 | children = ( 565 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 566 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 567 | ); 568 | name = Products; 569 | sourceTree = ""; 570 | }; 571 | 83CBB9F61A601CBA00E9B192 = { 572 | isa = PBXGroup; 573 | children = ( 574 | 13B07FAE1A68108700A75B9A /* rnSelectmultipleButton */, 575 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 576 | 00E356EF1AD99517003FC87E /* rnSelectmultipleButtonTests */, 577 | 83CBBA001A601CBA00E9B192 /* Products */, 578 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 579 | ); 580 | indentWidth = 2; 581 | sourceTree = ""; 582 | tabWidth = 2; 583 | usesTabs = 0; 584 | }; 585 | 83CBBA001A601CBA00E9B192 /* Products */ = { 586 | isa = PBXGroup; 587 | children = ( 588 | 13B07F961A680F5B00A75B9A /* rnSelectmultipleButton.app */, 589 | 00E356EE1AD99517003FC87E /* rnSelectmultipleButtonTests.xctest */, 590 | 2D02E47B1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOS.app */, 591 | 2D02E4901E0B4A5D006451C7 /* rnSelectmultipleButton-tvOSTests.xctest */, 592 | ); 593 | name = Products; 594 | sourceTree = ""; 595 | }; 596 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 597 | isa = PBXGroup; 598 | children = ( 599 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 600 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 601 | ); 602 | name = Products; 603 | sourceTree = ""; 604 | }; 605 | /* End PBXGroup section */ 606 | 607 | /* Begin PBXNativeTarget section */ 608 | 00E356ED1AD99517003FC87E /* rnSelectmultipleButtonTests */ = { 609 | isa = PBXNativeTarget; 610 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rnSelectmultipleButtonTests" */; 611 | buildPhases = ( 612 | 00E356EA1AD99517003FC87E /* Sources */, 613 | 00E356EB1AD99517003FC87E /* Frameworks */, 614 | 00E356EC1AD99517003FC87E /* Resources */, 615 | ); 616 | buildRules = ( 617 | ); 618 | dependencies = ( 619 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 620 | ); 621 | name = rnSelectmultipleButtonTests; 622 | productName = rnSelectmultipleButtonTests; 623 | productReference = 00E356EE1AD99517003FC87E /* rnSelectmultipleButtonTests.xctest */; 624 | productType = "com.apple.product-type.bundle.unit-test"; 625 | }; 626 | 13B07F861A680F5B00A75B9A /* rnSelectmultipleButton */ = { 627 | isa = PBXNativeTarget; 628 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rnSelectmultipleButton" */; 629 | buildPhases = ( 630 | 13B07F871A680F5B00A75B9A /* Sources */, 631 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 632 | 13B07F8E1A680F5B00A75B9A /* Resources */, 633 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 634 | ); 635 | buildRules = ( 636 | ); 637 | dependencies = ( 638 | ); 639 | name = rnSelectmultipleButton; 640 | productName = "Hello World"; 641 | productReference = 13B07F961A680F5B00A75B9A /* rnSelectmultipleButton.app */; 642 | productType = "com.apple.product-type.application"; 643 | }; 644 | 2D02E47A1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOS */ = { 645 | isa = PBXNativeTarget; 646 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnSelectmultipleButton-tvOS" */; 647 | buildPhases = ( 648 | 2D02E4771E0B4A5D006451C7 /* Sources */, 649 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 650 | 2D02E4791E0B4A5D006451C7 /* Resources */, 651 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 652 | ); 653 | buildRules = ( 654 | ); 655 | dependencies = ( 656 | ); 657 | name = "rnSelectmultipleButton-tvOS"; 658 | productName = "rnSelectmultipleButton-tvOS"; 659 | productReference = 2D02E47B1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOS.app */; 660 | productType = "com.apple.product-type.application"; 661 | }; 662 | 2D02E48F1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOSTests */ = { 663 | isa = PBXNativeTarget; 664 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnSelectmultipleButton-tvOSTests" */; 665 | buildPhases = ( 666 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 667 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 668 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 669 | ); 670 | buildRules = ( 671 | ); 672 | dependencies = ( 673 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 674 | ); 675 | name = "rnSelectmultipleButton-tvOSTests"; 676 | productName = "rnSelectmultipleButton-tvOSTests"; 677 | productReference = 2D02E4901E0B4A5D006451C7 /* rnSelectmultipleButton-tvOSTests.xctest */; 678 | productType = "com.apple.product-type.bundle.unit-test"; 679 | }; 680 | /* End PBXNativeTarget section */ 681 | 682 | /* Begin PBXProject section */ 683 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 684 | isa = PBXProject; 685 | attributes = { 686 | LastUpgradeCheck = 0610; 687 | ORGANIZATIONNAME = Facebook; 688 | TargetAttributes = { 689 | 00E356ED1AD99517003FC87E = { 690 | CreatedOnToolsVersion = 6.2; 691 | DevelopmentTeam = S2967W4UUP; 692 | TestTargetID = 13B07F861A680F5B00A75B9A; 693 | }; 694 | 13B07F861A680F5B00A75B9A = { 695 | DevelopmentTeam = S2967W4UUP; 696 | }; 697 | 2D02E47A1E0B4A5D006451C7 = { 698 | CreatedOnToolsVersion = 8.2.1; 699 | ProvisioningStyle = Automatic; 700 | }; 701 | 2D02E48F1E0B4A5D006451C7 = { 702 | CreatedOnToolsVersion = 8.2.1; 703 | ProvisioningStyle = Automatic; 704 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 705 | }; 706 | }; 707 | }; 708 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "rnSelectmultipleButton" */; 709 | compatibilityVersion = "Xcode 3.2"; 710 | developmentRegion = English; 711 | hasScannedForEncodings = 0; 712 | knownRegions = ( 713 | en, 714 | Base, 715 | ); 716 | mainGroup = 83CBB9F61A601CBA00E9B192; 717 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 718 | projectDirPath = ""; 719 | projectReferences = ( 720 | { 721 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 722 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 723 | }, 724 | { 725 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 726 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 727 | }, 728 | { 729 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 730 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 731 | }, 732 | { 733 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 734 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 735 | }, 736 | { 737 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 738 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 739 | }, 740 | { 741 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 742 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 743 | }, 744 | { 745 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 746 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 747 | }, 748 | { 749 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 750 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 751 | }, 752 | { 753 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 754 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 755 | }, 756 | { 757 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 758 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 759 | }, 760 | { 761 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 762 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 763 | }, 764 | { 765 | ProductGroup = 146834001AC3E56700842450 /* Products */; 766 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 767 | }, 768 | ); 769 | projectRoot = ""; 770 | targets = ( 771 | 13B07F861A680F5B00A75B9A /* rnSelectmultipleButton */, 772 | 00E356ED1AD99517003FC87E /* rnSelectmultipleButtonTests */, 773 | 2D02E47A1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOS */, 774 | 2D02E48F1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOSTests */, 775 | ); 776 | }; 777 | /* End PBXProject section */ 778 | 779 | /* Begin PBXReferenceProxy section */ 780 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 781 | isa = PBXReferenceProxy; 782 | fileType = archive.ar; 783 | path = libRCTActionSheet.a; 784 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 785 | sourceTree = BUILT_PRODUCTS_DIR; 786 | }; 787 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 788 | isa = PBXReferenceProxy; 789 | fileType = archive.ar; 790 | path = libRCTGeolocation.a; 791 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 792 | sourceTree = BUILT_PRODUCTS_DIR; 793 | }; 794 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 795 | isa = PBXReferenceProxy; 796 | fileType = archive.ar; 797 | path = libRCTImage.a; 798 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 799 | sourceTree = BUILT_PRODUCTS_DIR; 800 | }; 801 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 802 | isa = PBXReferenceProxy; 803 | fileType = archive.ar; 804 | path = libRCTNetwork.a; 805 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 806 | sourceTree = BUILT_PRODUCTS_DIR; 807 | }; 808 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 809 | isa = PBXReferenceProxy; 810 | fileType = archive.ar; 811 | path = libRCTVibration.a; 812 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 813 | sourceTree = BUILT_PRODUCTS_DIR; 814 | }; 815 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 816 | isa = PBXReferenceProxy; 817 | fileType = archive.ar; 818 | path = libRCTSettings.a; 819 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 820 | sourceTree = BUILT_PRODUCTS_DIR; 821 | }; 822 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 823 | isa = PBXReferenceProxy; 824 | fileType = archive.ar; 825 | path = libRCTWebSocket.a; 826 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 827 | sourceTree = BUILT_PRODUCTS_DIR; 828 | }; 829 | 146834041AC3E56700842450 /* libReact.a */ = { 830 | isa = PBXReferenceProxy; 831 | fileType = archive.ar; 832 | path = libReact.a; 833 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 834 | sourceTree = BUILT_PRODUCTS_DIR; 835 | }; 836 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 837 | isa = PBXReferenceProxy; 838 | fileType = archive.ar; 839 | path = "libRCTBlob-tvOS.a"; 840 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 841 | sourceTree = BUILT_PRODUCTS_DIR; 842 | }; 843 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 844 | isa = PBXReferenceProxy; 845 | fileType = archive.ar; 846 | path = libfishhook.a; 847 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 848 | sourceTree = BUILT_PRODUCTS_DIR; 849 | }; 850 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 851 | isa = PBXReferenceProxy; 852 | fileType = archive.ar; 853 | path = "libfishhook-tvOS.a"; 854 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 855 | sourceTree = BUILT_PRODUCTS_DIR; 856 | }; 857 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 858 | isa = PBXReferenceProxy; 859 | fileType = archive.ar; 860 | path = "libRCTImage-tvOS.a"; 861 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 862 | sourceTree = BUILT_PRODUCTS_DIR; 863 | }; 864 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 865 | isa = PBXReferenceProxy; 866 | fileType = archive.ar; 867 | path = "libRCTLinking-tvOS.a"; 868 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 869 | sourceTree = BUILT_PRODUCTS_DIR; 870 | }; 871 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 872 | isa = PBXReferenceProxy; 873 | fileType = archive.ar; 874 | path = "libRCTNetwork-tvOS.a"; 875 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 876 | sourceTree = BUILT_PRODUCTS_DIR; 877 | }; 878 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 879 | isa = PBXReferenceProxy; 880 | fileType = archive.ar; 881 | path = "libRCTSettings-tvOS.a"; 882 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 883 | sourceTree = BUILT_PRODUCTS_DIR; 884 | }; 885 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 886 | isa = PBXReferenceProxy; 887 | fileType = archive.ar; 888 | path = "libRCTText-tvOS.a"; 889 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 890 | sourceTree = BUILT_PRODUCTS_DIR; 891 | }; 892 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 893 | isa = PBXReferenceProxy; 894 | fileType = archive.ar; 895 | path = "libRCTWebSocket-tvOS.a"; 896 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 897 | sourceTree = BUILT_PRODUCTS_DIR; 898 | }; 899 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 900 | isa = PBXReferenceProxy; 901 | fileType = archive.ar; 902 | path = libReact.a; 903 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 904 | sourceTree = BUILT_PRODUCTS_DIR; 905 | }; 906 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 907 | isa = PBXReferenceProxy; 908 | fileType = archive.ar; 909 | path = libyoga.a; 910 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 911 | sourceTree = BUILT_PRODUCTS_DIR; 912 | }; 913 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 914 | isa = PBXReferenceProxy; 915 | fileType = archive.ar; 916 | path = libyoga.a; 917 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 918 | sourceTree = BUILT_PRODUCTS_DIR; 919 | }; 920 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 921 | isa = PBXReferenceProxy; 922 | fileType = archive.ar; 923 | path = libcxxreact.a; 924 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 925 | sourceTree = BUILT_PRODUCTS_DIR; 926 | }; 927 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 928 | isa = PBXReferenceProxy; 929 | fileType = archive.ar; 930 | path = libcxxreact.a; 931 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 932 | sourceTree = BUILT_PRODUCTS_DIR; 933 | }; 934 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 935 | isa = PBXReferenceProxy; 936 | fileType = archive.ar; 937 | path = libjschelpers.a; 938 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 939 | sourceTree = BUILT_PRODUCTS_DIR; 940 | }; 941 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 942 | isa = PBXReferenceProxy; 943 | fileType = archive.ar; 944 | path = libjschelpers.a; 945 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 946 | sourceTree = BUILT_PRODUCTS_DIR; 947 | }; 948 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 949 | isa = PBXReferenceProxy; 950 | fileType = archive.ar; 951 | path = libRCTAnimation.a; 952 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 953 | sourceTree = BUILT_PRODUCTS_DIR; 954 | }; 955 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 956 | isa = PBXReferenceProxy; 957 | fileType = archive.ar; 958 | path = libRCTAnimation.a; 959 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 960 | sourceTree = BUILT_PRODUCTS_DIR; 961 | }; 962 | 6FC82231202C4ECA002EEEF3 /* libjsinspector.a */ = { 963 | isa = PBXReferenceProxy; 964 | fileType = archive.ar; 965 | path = libjsinspector.a; 966 | remoteRef = 6FC82230202C4ECA002EEEF3 /* PBXContainerItemProxy */; 967 | sourceTree = BUILT_PRODUCTS_DIR; 968 | }; 969 | 6FC82233202C4ECA002EEEF3 /* libjsinspector-tvOS.a */ = { 970 | isa = PBXReferenceProxy; 971 | fileType = archive.ar; 972 | path = "libjsinspector-tvOS.a"; 973 | remoteRef = 6FC82232202C4ECA002EEEF3 /* PBXContainerItemProxy */; 974 | sourceTree = BUILT_PRODUCTS_DIR; 975 | }; 976 | 6FC82235202C4ECA002EEEF3 /* libthird-party.a */ = { 977 | isa = PBXReferenceProxy; 978 | fileType = archive.ar; 979 | path = "libthird-party.a"; 980 | remoteRef = 6FC82234202C4ECA002EEEF3 /* PBXContainerItemProxy */; 981 | sourceTree = BUILT_PRODUCTS_DIR; 982 | }; 983 | 6FC82237202C4ECA002EEEF3 /* libthird-party.a */ = { 984 | isa = PBXReferenceProxy; 985 | fileType = archive.ar; 986 | path = "libthird-party.a"; 987 | remoteRef = 6FC82236202C4ECA002EEEF3 /* PBXContainerItemProxy */; 988 | sourceTree = BUILT_PRODUCTS_DIR; 989 | }; 990 | 6FC82239202C4ECA002EEEF3 /* libdouble-conversion.a */ = { 991 | isa = PBXReferenceProxy; 992 | fileType = archive.ar; 993 | path = "libdouble-conversion.a"; 994 | remoteRef = 6FC82238202C4ECA002EEEF3 /* PBXContainerItemProxy */; 995 | sourceTree = BUILT_PRODUCTS_DIR; 996 | }; 997 | 6FC8223B202C4ECA002EEEF3 /* libdouble-conversion.a */ = { 998 | isa = PBXReferenceProxy; 999 | fileType = archive.ar; 1000 | path = "libdouble-conversion.a"; 1001 | remoteRef = 6FC8223A202C4ECA002EEEF3 /* PBXContainerItemProxy */; 1002 | sourceTree = BUILT_PRODUCTS_DIR; 1003 | }; 1004 | 6FC8223D202C4ECA002EEEF3 /* libprivatedata.a */ = { 1005 | isa = PBXReferenceProxy; 1006 | fileType = archive.ar; 1007 | path = libprivatedata.a; 1008 | remoteRef = 6FC8223C202C4ECA002EEEF3 /* PBXContainerItemProxy */; 1009 | sourceTree = BUILT_PRODUCTS_DIR; 1010 | }; 1011 | 6FC8223F202C4ECA002EEEF3 /* libprivatedata-tvOS.a */ = { 1012 | isa = PBXReferenceProxy; 1013 | fileType = archive.ar; 1014 | path = "libprivatedata-tvOS.a"; 1015 | remoteRef = 6FC8223E202C4ECA002EEEF3 /* PBXContainerItemProxy */; 1016 | sourceTree = BUILT_PRODUCTS_DIR; 1017 | }; 1018 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1019 | isa = PBXReferenceProxy; 1020 | fileType = archive.ar; 1021 | path = libRCTLinking.a; 1022 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1023 | sourceTree = BUILT_PRODUCTS_DIR; 1024 | }; 1025 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1026 | isa = PBXReferenceProxy; 1027 | fileType = archive.ar; 1028 | path = libRCTText.a; 1029 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1030 | sourceTree = BUILT_PRODUCTS_DIR; 1031 | }; 1032 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1033 | isa = PBXReferenceProxy; 1034 | fileType = archive.ar; 1035 | path = libRCTBlob.a; 1036 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1037 | sourceTree = BUILT_PRODUCTS_DIR; 1038 | }; 1039 | /* End PBXReferenceProxy section */ 1040 | 1041 | /* Begin PBXResourcesBuildPhase section */ 1042 | 00E356EC1AD99517003FC87E /* Resources */ = { 1043 | isa = PBXResourcesBuildPhase; 1044 | buildActionMask = 2147483647; 1045 | files = ( 1046 | ); 1047 | runOnlyForDeploymentPostprocessing = 0; 1048 | }; 1049 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1050 | isa = PBXResourcesBuildPhase; 1051 | buildActionMask = 2147483647; 1052 | files = ( 1053 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1054 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1055 | ); 1056 | runOnlyForDeploymentPostprocessing = 0; 1057 | }; 1058 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1059 | isa = PBXResourcesBuildPhase; 1060 | buildActionMask = 2147483647; 1061 | files = ( 1062 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1063 | ); 1064 | runOnlyForDeploymentPostprocessing = 0; 1065 | }; 1066 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1067 | isa = PBXResourcesBuildPhase; 1068 | buildActionMask = 2147483647; 1069 | files = ( 1070 | ); 1071 | runOnlyForDeploymentPostprocessing = 0; 1072 | }; 1073 | /* End PBXResourcesBuildPhase section */ 1074 | 1075 | /* Begin PBXShellScriptBuildPhase section */ 1076 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1077 | isa = PBXShellScriptBuildPhase; 1078 | buildActionMask = 2147483647; 1079 | files = ( 1080 | ); 1081 | inputPaths = ( 1082 | ); 1083 | name = "Bundle React Native code and images"; 1084 | outputPaths = ( 1085 | ); 1086 | runOnlyForDeploymentPostprocessing = 0; 1087 | shellPath = /bin/sh; 1088 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1089 | }; 1090 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1091 | isa = PBXShellScriptBuildPhase; 1092 | buildActionMask = 2147483647; 1093 | files = ( 1094 | ); 1095 | inputPaths = ( 1096 | ); 1097 | name = "Bundle React Native Code And Images"; 1098 | outputPaths = ( 1099 | ); 1100 | runOnlyForDeploymentPostprocessing = 0; 1101 | shellPath = /bin/sh; 1102 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1103 | }; 1104 | /* End PBXShellScriptBuildPhase section */ 1105 | 1106 | /* Begin PBXSourcesBuildPhase section */ 1107 | 00E356EA1AD99517003FC87E /* Sources */ = { 1108 | isa = PBXSourcesBuildPhase; 1109 | buildActionMask = 2147483647; 1110 | files = ( 1111 | 00E356F31AD99517003FC87E /* rnSelectmultipleButtonTests.m in Sources */, 1112 | ); 1113 | runOnlyForDeploymentPostprocessing = 0; 1114 | }; 1115 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1116 | isa = PBXSourcesBuildPhase; 1117 | buildActionMask = 2147483647; 1118 | files = ( 1119 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1120 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1121 | ); 1122 | runOnlyForDeploymentPostprocessing = 0; 1123 | }; 1124 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1125 | isa = PBXSourcesBuildPhase; 1126 | buildActionMask = 2147483647; 1127 | files = ( 1128 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1129 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1130 | ); 1131 | runOnlyForDeploymentPostprocessing = 0; 1132 | }; 1133 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1134 | isa = PBXSourcesBuildPhase; 1135 | buildActionMask = 2147483647; 1136 | files = ( 1137 | 2DCD954D1E0B4F2C00145EB5 /* rnSelectmultipleButtonTests.m in Sources */, 1138 | ); 1139 | runOnlyForDeploymentPostprocessing = 0; 1140 | }; 1141 | /* End PBXSourcesBuildPhase section */ 1142 | 1143 | /* Begin PBXTargetDependency section */ 1144 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1145 | isa = PBXTargetDependency; 1146 | target = 13B07F861A680F5B00A75B9A /* rnSelectmultipleButton */; 1147 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1148 | }; 1149 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1150 | isa = PBXTargetDependency; 1151 | target = 2D02E47A1E0B4A5D006451C7 /* rnSelectmultipleButton-tvOS */; 1152 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1153 | }; 1154 | /* End PBXTargetDependency section */ 1155 | 1156 | /* Begin PBXVariantGroup section */ 1157 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1158 | isa = PBXVariantGroup; 1159 | children = ( 1160 | 13B07FB21A68108700A75B9A /* Base */, 1161 | ); 1162 | name = LaunchScreen.xib; 1163 | path = rnSelectmultipleButton; 1164 | sourceTree = ""; 1165 | }; 1166 | /* End PBXVariantGroup section */ 1167 | 1168 | /* Begin XCBuildConfiguration section */ 1169 | 00E356F61AD99517003FC87E /* Debug */ = { 1170 | isa = XCBuildConfiguration; 1171 | buildSettings = { 1172 | BUNDLE_LOADER = "$(TEST_HOST)"; 1173 | DEVELOPMENT_TEAM = S2967W4UUP; 1174 | GCC_PREPROCESSOR_DEFINITIONS = ( 1175 | "DEBUG=1", 1176 | "$(inherited)", 1177 | ); 1178 | INFOPLIST_FILE = rnSelectmultipleButtonTests/Info.plist; 1179 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1180 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1181 | OTHER_LDFLAGS = ( 1182 | "-ObjC", 1183 | "-lc++", 1184 | ); 1185 | PRODUCT_NAME = "$(TARGET_NAME)"; 1186 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnSelectmultipleButton.app/rnSelectmultipleButton"; 1187 | }; 1188 | name = Debug; 1189 | }; 1190 | 00E356F71AD99517003FC87E /* Release */ = { 1191 | isa = XCBuildConfiguration; 1192 | buildSettings = { 1193 | BUNDLE_LOADER = "$(TEST_HOST)"; 1194 | COPY_PHASE_STRIP = NO; 1195 | DEVELOPMENT_TEAM = S2967W4UUP; 1196 | INFOPLIST_FILE = rnSelectmultipleButtonTests/Info.plist; 1197 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1198 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1199 | OTHER_LDFLAGS = ( 1200 | "-ObjC", 1201 | "-lc++", 1202 | ); 1203 | PRODUCT_NAME = "$(TARGET_NAME)"; 1204 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnSelectmultipleButton.app/rnSelectmultipleButton"; 1205 | }; 1206 | name = Release; 1207 | }; 1208 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1209 | isa = XCBuildConfiguration; 1210 | buildSettings = { 1211 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1212 | CURRENT_PROJECT_VERSION = 1; 1213 | DEAD_CODE_STRIPPING = NO; 1214 | DEVELOPMENT_TEAM = S2967W4UUP; 1215 | INFOPLIST_FILE = rnSelectmultipleButton/Info.plist; 1216 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1217 | OTHER_LDFLAGS = ( 1218 | "$(inherited)", 1219 | "-ObjC", 1220 | "-lc++", 1221 | ); 1222 | PRODUCT_NAME = rnSelectmultipleButton; 1223 | VERSIONING_SYSTEM = "apple-generic"; 1224 | }; 1225 | name = Debug; 1226 | }; 1227 | 13B07F951A680F5B00A75B9A /* Release */ = { 1228 | isa = XCBuildConfiguration; 1229 | buildSettings = { 1230 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1231 | CURRENT_PROJECT_VERSION = 1; 1232 | DEVELOPMENT_TEAM = S2967W4UUP; 1233 | INFOPLIST_FILE = rnSelectmultipleButton/Info.plist; 1234 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1235 | OTHER_LDFLAGS = ( 1236 | "$(inherited)", 1237 | "-ObjC", 1238 | "-lc++", 1239 | ); 1240 | PRODUCT_NAME = rnSelectmultipleButton; 1241 | VERSIONING_SYSTEM = "apple-generic"; 1242 | }; 1243 | name = Release; 1244 | }; 1245 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1246 | isa = XCBuildConfiguration; 1247 | buildSettings = { 1248 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1249 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1250 | CLANG_ANALYZER_NONNULL = YES; 1251 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1252 | CLANG_WARN_INFINITE_RECURSION = YES; 1253 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1254 | DEBUG_INFORMATION_FORMAT = dwarf; 1255 | ENABLE_TESTABILITY = YES; 1256 | GCC_NO_COMMON_BLOCKS = YES; 1257 | INFOPLIST_FILE = "rnSelectmultipleButton-tvOS/Info.plist"; 1258 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1259 | OTHER_LDFLAGS = ( 1260 | "-ObjC", 1261 | "-lc++", 1262 | ); 1263 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnSelectmultipleButton-tvOS"; 1264 | PRODUCT_NAME = "$(TARGET_NAME)"; 1265 | SDKROOT = appletvos; 1266 | TARGETED_DEVICE_FAMILY = 3; 1267 | TVOS_DEPLOYMENT_TARGET = 9.2; 1268 | }; 1269 | name = Debug; 1270 | }; 1271 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1272 | isa = XCBuildConfiguration; 1273 | buildSettings = { 1274 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1275 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1276 | CLANG_ANALYZER_NONNULL = YES; 1277 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1278 | CLANG_WARN_INFINITE_RECURSION = YES; 1279 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1280 | COPY_PHASE_STRIP = NO; 1281 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1282 | GCC_NO_COMMON_BLOCKS = YES; 1283 | INFOPLIST_FILE = "rnSelectmultipleButton-tvOS/Info.plist"; 1284 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1285 | OTHER_LDFLAGS = ( 1286 | "-ObjC", 1287 | "-lc++", 1288 | ); 1289 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnSelectmultipleButton-tvOS"; 1290 | PRODUCT_NAME = "$(TARGET_NAME)"; 1291 | SDKROOT = appletvos; 1292 | TARGETED_DEVICE_FAMILY = 3; 1293 | TVOS_DEPLOYMENT_TARGET = 9.2; 1294 | }; 1295 | name = Release; 1296 | }; 1297 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1298 | isa = XCBuildConfiguration; 1299 | buildSettings = { 1300 | BUNDLE_LOADER = "$(TEST_HOST)"; 1301 | CLANG_ANALYZER_NONNULL = YES; 1302 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1303 | CLANG_WARN_INFINITE_RECURSION = YES; 1304 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1305 | DEBUG_INFORMATION_FORMAT = dwarf; 1306 | ENABLE_TESTABILITY = YES; 1307 | GCC_NO_COMMON_BLOCKS = YES; 1308 | INFOPLIST_FILE = "rnSelectmultipleButton-tvOSTests/Info.plist"; 1309 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1310 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnSelectmultipleButton-tvOSTests"; 1311 | PRODUCT_NAME = "$(TARGET_NAME)"; 1312 | SDKROOT = appletvos; 1313 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnSelectmultipleButton-tvOS.app/rnSelectmultipleButton-tvOS"; 1314 | TVOS_DEPLOYMENT_TARGET = 10.1; 1315 | }; 1316 | name = Debug; 1317 | }; 1318 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1319 | isa = XCBuildConfiguration; 1320 | buildSettings = { 1321 | BUNDLE_LOADER = "$(TEST_HOST)"; 1322 | CLANG_ANALYZER_NONNULL = YES; 1323 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1324 | CLANG_WARN_INFINITE_RECURSION = YES; 1325 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1326 | COPY_PHASE_STRIP = NO; 1327 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1328 | GCC_NO_COMMON_BLOCKS = YES; 1329 | INFOPLIST_FILE = "rnSelectmultipleButton-tvOSTests/Info.plist"; 1330 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1331 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.rnSelectmultipleButton-tvOSTests"; 1332 | PRODUCT_NAME = "$(TARGET_NAME)"; 1333 | SDKROOT = appletvos; 1334 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rnSelectmultipleButton-tvOS.app/rnSelectmultipleButton-tvOS"; 1335 | TVOS_DEPLOYMENT_TARGET = 10.1; 1336 | }; 1337 | name = Release; 1338 | }; 1339 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1340 | isa = XCBuildConfiguration; 1341 | buildSettings = { 1342 | ALWAYS_SEARCH_USER_PATHS = NO; 1343 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1344 | CLANG_CXX_LIBRARY = "libc++"; 1345 | CLANG_ENABLE_MODULES = YES; 1346 | CLANG_ENABLE_OBJC_ARC = YES; 1347 | CLANG_WARN_BOOL_CONVERSION = YES; 1348 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1349 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1350 | CLANG_WARN_EMPTY_BODY = YES; 1351 | CLANG_WARN_ENUM_CONVERSION = YES; 1352 | CLANG_WARN_INT_CONVERSION = YES; 1353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1354 | CLANG_WARN_UNREACHABLE_CODE = YES; 1355 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1356 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1357 | COPY_PHASE_STRIP = NO; 1358 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1359 | GCC_C_LANGUAGE_STANDARD = gnu99; 1360 | GCC_DYNAMIC_NO_PIC = NO; 1361 | GCC_OPTIMIZATION_LEVEL = 0; 1362 | GCC_PREPROCESSOR_DEFINITIONS = ( 1363 | "DEBUG=1", 1364 | "$(inherited)", 1365 | ); 1366 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1370 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1371 | GCC_WARN_UNUSED_FUNCTION = YES; 1372 | GCC_WARN_UNUSED_VARIABLE = YES; 1373 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1374 | MTL_ENABLE_DEBUG_INFO = YES; 1375 | ONLY_ACTIVE_ARCH = YES; 1376 | SDKROOT = iphoneos; 1377 | }; 1378 | name = Debug; 1379 | }; 1380 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1381 | isa = XCBuildConfiguration; 1382 | buildSettings = { 1383 | ALWAYS_SEARCH_USER_PATHS = NO; 1384 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1385 | CLANG_CXX_LIBRARY = "libc++"; 1386 | CLANG_ENABLE_MODULES = YES; 1387 | CLANG_ENABLE_OBJC_ARC = YES; 1388 | CLANG_WARN_BOOL_CONVERSION = YES; 1389 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1391 | CLANG_WARN_EMPTY_BODY = YES; 1392 | CLANG_WARN_ENUM_CONVERSION = YES; 1393 | CLANG_WARN_INT_CONVERSION = YES; 1394 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1395 | CLANG_WARN_UNREACHABLE_CODE = YES; 1396 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1397 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1398 | COPY_PHASE_STRIP = YES; 1399 | ENABLE_NS_ASSERTIONS = NO; 1400 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1401 | GCC_C_LANGUAGE_STANDARD = gnu99; 1402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1403 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1404 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1405 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1406 | GCC_WARN_UNUSED_FUNCTION = YES; 1407 | GCC_WARN_UNUSED_VARIABLE = YES; 1408 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1409 | MTL_ENABLE_DEBUG_INFO = NO; 1410 | SDKROOT = iphoneos; 1411 | VALIDATE_PRODUCT = YES; 1412 | }; 1413 | name = Release; 1414 | }; 1415 | /* End XCBuildConfiguration section */ 1416 | 1417 | /* Begin XCConfigurationList section */ 1418 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rnSelectmultipleButtonTests" */ = { 1419 | isa = XCConfigurationList; 1420 | buildConfigurations = ( 1421 | 00E356F61AD99517003FC87E /* Debug */, 1422 | 00E356F71AD99517003FC87E /* Release */, 1423 | ); 1424 | defaultConfigurationIsVisible = 0; 1425 | defaultConfigurationName = Release; 1426 | }; 1427 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rnSelectmultipleButton" */ = { 1428 | isa = XCConfigurationList; 1429 | buildConfigurations = ( 1430 | 13B07F941A680F5B00A75B9A /* Debug */, 1431 | 13B07F951A680F5B00A75B9A /* Release */, 1432 | ); 1433 | defaultConfigurationIsVisible = 0; 1434 | defaultConfigurationName = Release; 1435 | }; 1436 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnSelectmultipleButton-tvOS" */ = { 1437 | isa = XCConfigurationList; 1438 | buildConfigurations = ( 1439 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1440 | 2D02E4981E0B4A5E006451C7 /* Release */, 1441 | ); 1442 | defaultConfigurationIsVisible = 0; 1443 | defaultConfigurationName = Release; 1444 | }; 1445 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rnSelectmultipleButton-tvOSTests" */ = { 1446 | isa = XCConfigurationList; 1447 | buildConfigurations = ( 1448 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1449 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1450 | ); 1451 | defaultConfigurationIsVisible = 0; 1452 | defaultConfigurationName = Release; 1453 | }; 1454 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "rnSelectmultipleButton" */ = { 1455 | isa = XCConfigurationList; 1456 | buildConfigurations = ( 1457 | 83CBBA201A601CBA00E9B192 /* Debug */, 1458 | 83CBBA211A601CBA00E9B192 /* Release */, 1459 | ); 1460 | defaultConfigurationIsVisible = 0; 1461 | defaultConfigurationName = Release; 1462 | }; 1463 | /* End XCConfigurationList section */ 1464 | }; 1465 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1466 | } 1467 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton.xcodeproj/xcshareddata/xcschemes/rnSelectmultipleButton-tvOS.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/rnSelectmultipleButton.xcodeproj/xcshareddata/xcschemes/rnSelectmultipleButton.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/rnSelectmultipleButton/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"rnSelectmultipleButton" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | rnSelectmultipleButton 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 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 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButton/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButtonTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/rnSelectmultipleButtonTests/rnSelectmultipleButtonTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface rnSelectmultipleButtonTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation rnSelectmultipleButtonTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 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 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /libraries/SelectMultipleButton.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-02-06 13:54:25 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-08-31 14:03:36 8 | */ 9 | import React, { Component } from 'react' 10 | import PropTypes from 'prop-types' 11 | import { 12 | View, 13 | Text, 14 | TouchableWithoutFeedback, 15 | Alert, 16 | StyleSheet, 17 | } from 'react-native' 18 | 19 | const ios_blue = '#007AFF' 20 | 21 | export default class SelectMultipleButton extends Component { 22 | 23 | static propTypes = { 24 | selected: PropTypes.bool, 25 | 26 | value: PropTypes.oneOfType( 27 | [ 28 | PropTypes.string, 29 | PropTypes.number 30 | ] 31 | ).isRequired, 32 | displayValue: PropTypes.oneOfType( 33 | [ 34 | PropTypes.string, 35 | PropTypes.number 36 | ] 37 | ), 38 | 39 | highLightStyle: PropTypes.shape({ 40 | borderColor: PropTypes.string.isRequired, 41 | backgroundColor: PropTypes.string.isRequired, 42 | textColor: PropTypes.string.isRequired, 43 | borderTintColor: PropTypes.string.isRequired, 44 | backgroundTintColor: PropTypes.string.isRequired, 45 | textTintColor: PropTypes.string.isRequired, 46 | }), 47 | 48 | buttonViewStyle: PropTypes.object, 49 | textStyle: PropTypes.object, 50 | singleTap: PropTypes.func, 51 | 52 | } 53 | 54 | static defaultProps = { 55 | selected: false, 56 | highLightStyle: { 57 | borderColor: 'gray', 58 | backgroundColor: 'transparent', 59 | textColor: 'gray', 60 | borderTintColor: ios_blue, 61 | backgroundTintColor: 'transparent', 62 | textTintColor: ios_blue, 63 | }, 64 | 65 | singleTap: (valueTap) => { }, 66 | } 67 | 68 | constructor(props) { 69 | super(props) 70 | this.state = { 71 | selected: false, 72 | } 73 | } 74 | 75 | componentDidMount() { 76 | this.setState({ 77 | selected: this.props.selected, 78 | }) 79 | } 80 | 81 | static getDerivedStateFromProps(nextProps, prevState) { 82 | if (prevState.selected !== nextProps.selected) { 83 | return { 84 | selected: nextProps.selected 85 | } 86 | } 87 | return null; 88 | } 89 | 90 | render() { 91 | return ( 92 | { 94 | this.props.singleTap(this.props.value) 95 | } 96 | }> 97 | 98 | 109 | 116 | {this.props.displayValue === undefined ? this.props.value : this.props.displayValue} 117 | 118 | 119 | 120 | ) 121 | } 122 | } 123 | 124 | const styles = StyleSheet.create({ 125 | button: { 126 | margin: 5, 127 | borderRadius: 3, 128 | alignItems: 'center', 129 | justifyContent: 'center', 130 | borderWidth: 1 131 | }, 132 | text: { 133 | textAlign: 'center', 134 | marginTop: 5, 135 | marginBottom: 5, 136 | marginLeft: 10, 137 | marginRight: 10, 138 | } 139 | }) 140 | -------------------------------------------------------------------------------- /libraries/SelectMultipleGroupButton.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-02-07 14:08:34 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-08-31 09:31:47 8 | */ 9 | import React, { Component } from "react"; 10 | import { View, Text, StyleSheet } from "react-native"; 11 | 12 | import PropTypes from "prop-types"; 13 | import _ from "lodash"; 14 | import SelectMultipleButton from "./SelectMultipleButton"; 15 | 16 | const ios_blue = "#007AFF"; 17 | 18 | export default class SelectMultipleGroupButton extends Component { 19 | static propTypes = { 20 | multiple: PropTypes.bool, 21 | defaultSelectedIndexes: PropTypes.arrayOf(PropTypes.number), 22 | 23 | maximumNumberSelected: function(props, propName, componentName) { 24 | let value = props[propName]; 25 | if (value === undefined) { 26 | return null; 27 | } 28 | // console.log(propName + " " + value + " " + typeof value); 29 | if (typeof value !== "number") { 30 | return new Error( 31 | "Invalid prop `" + 32 | propName + 33 | "` supplied to `" + 34 | componentName + 35 | ", excepted `number`" 36 | ); 37 | } 38 | if (value < 2) { 39 | return new Error( 40 | "Invalid prop `" + 41 | propName + 42 | "` supplied to" + 43 | " `" + 44 | componentName + 45 | "`, " + 46 | propName + 47 | "'s minimum value is 2." 48 | ); 49 | } 50 | 51 | return null; 52 | }, 53 | 54 | group: PropTypes.arrayOf( 55 | PropTypes.shape({ 56 | value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) 57 | .isRequired, 58 | displayValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) 59 | }) 60 | ).isRequired, 61 | 62 | highLightStyle: PropTypes.shape({ 63 | borderColor: PropTypes.string.isRequired, 64 | backgroundColor: PropTypes.string.isRequired, 65 | textColor: PropTypes.string.isRequired, 66 | borderTintColor: PropTypes.string.isRequired, 67 | backgroundTintColor: PropTypes.string.isRequired, 68 | textTintColor: PropTypes.string.isRequired 69 | }), 70 | containerViewStyle: PropTypes.object, 71 | buttonViewStyle: PropTypes.object, 72 | textStyle: PropTypes.object, 73 | 74 | singleTap: PropTypes.func, 75 | onSelectedValuesChange: PropTypes.func 76 | }; 77 | 78 | static defaultProps = { 79 | multiple: true, 80 | singleTap: valueTap => {}, 81 | onSelectedValuesChange: selectedValues => {} 82 | }; 83 | 84 | constructor(props) { 85 | super(props); 86 | 87 | this.state = { 88 | multipleSelectedData: [], 89 | radioSelectedData: "" 90 | }; 91 | } 92 | 93 | componentDidMount() { 94 | if (this.props.defaultSelectedIndexes !== undefined) { 95 | if (this.props.multiple) { 96 | this.props.defaultSelectedIndexes.map(item => { 97 | var defaultSelectedValue = this.props.group[item].value; 98 | this.state.multipleSelectedData.push(defaultSelectedValue); 99 | }); 100 | this.setState({ 101 | multipleSelectedData: this.state.multipleSelectedData 102 | }); 103 | } else { 104 | var idx = this.props.defaultSelectedIndexes[0]; 105 | if (idx !== undefined) { 106 | this.setState({ 107 | radioSelectedData: this.props.group[idx].value 108 | }); 109 | } 110 | } 111 | } 112 | } 113 | 114 | _singleTapMultipleSelectedButtons(valueTap) { 115 | if (this.props.multiple) { 116 | if (this.state.multipleSelectedData.includes(valueTap)) { 117 | _.remove(this.state.multipleSelectedData, item => { 118 | return item === valueTap; 119 | }); 120 | } else { 121 | if (this.props.maximumNumberSelected !== undefined) { 122 | if ( 123 | this.state.multipleSelectedData.length < 124 | this.props.maximumNumberSelected 125 | ) { 126 | this.state.multipleSelectedData.push(valueTap); 127 | } 128 | }else{ 129 | this.state.multipleSelectedData.push(valueTap); 130 | } 131 | } 132 | 133 | this.props.onSelectedValuesChange(this.state.multipleSelectedData); 134 | 135 | this.setState({ 136 | multipleSelectedData: this.state.multipleSelectedData 137 | }); 138 | } else { 139 | this.props.onSelectedValuesChange([valueTap]); 140 | this.setState({ 141 | radioSelectedData: valueTap 142 | }); 143 | } 144 | 145 | this.props.singleTap(valueTap); 146 | } 147 | 148 | _selectedStatus(value) { 149 | if (this.props.multiple) { 150 | return this.state.multipleSelectedData.includes(value); 151 | } else { 152 | return this.state.radioSelectedData === value; 153 | } 154 | } 155 | 156 | render() { 157 | return ( 158 | 159 | {this.props.group.map((ele, index) => ( 160 | 170 | this._singleTapMultipleSelectedButtons(valueTap) 171 | } 172 | /> 173 | ))} 174 | 175 | ); 176 | } 177 | } 178 | 179 | const styles = StyleSheet.create({ 180 | containerView: { 181 | flexWrap: "wrap", 182 | flexDirection: "row", 183 | justifyContent: "center" 184 | } 185 | }); 186 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-selectmultiple-button", 3 | "version": "0.1.105", 4 | "private": false, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": ">=16.2.0", 11 | "react-native": ">=0.53.0" 12 | }, 13 | "devDependencies": { 14 | "babel-jest": "22.2.0", 15 | "babel-preset-react-native": "4.0.0", 16 | "jest": "22.2.1", 17 | "react-test-renderer": "16.2.0" 18 | }, 19 | "jest": { 20 | "preset": "react-native" 21 | }, 22 | "description": "A button (or a group buttons) for multiple or radio selection by building with React Native", 23 | "main": "index.js", 24 | "repository": { 25 | "type": "git", 26 | "url": "git+https://github.com/danceyoung/react-native-selectmultiple-button.git" 27 | }, 28 | "keywords": [ 29 | "react-native", 30 | "react", 31 | "ios", 32 | "android", 33 | "multiple", 34 | "select", 35 | "checkbox", 36 | "radio", 37 | "button", 38 | "tag", 39 | "multi select" 40 | ], 41 | "author": "danceyoung", 42 | "license": "MIT", 43 | "bugs": { 44 | "url": "https://github.com/danceyoung/react-native-selectmultiple-button/issues" 45 | }, 46 | "homepage": "https://github.com/danceyoung/react-native-selectmultiple-button#readme" 47 | } 48 | -------------------------------------------------------------------------------- /sample/GroupButton.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-04-07 11:13:31 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-08-31 10:55:27 8 | */ 9 | import React, { Component } from "react"; 10 | 11 | import { View, Text, StyleSheet } from "react-native"; 12 | 13 | import _ from "lodash"; 14 | import { SelectMultipleGroupButton } from "../index.js"; 15 | 16 | const multipleGroupData = [ 17 | { value: "running" }, 18 | { value: "riding" }, 19 | { value: "reading" }, 20 | { value: "coding" }, 21 | { value: "Niuer" } 22 | ]; 23 | const radioGroupData = [ 24 | { value: "Female", displayValue: "F" }, 25 | { value: "Male", displayValue: "M" }, 26 | { value: "Other", displayValue: "O" }, 27 | { value: "Rather not say", displayValue: "R" } 28 | ]; 29 | 30 | const defaultSelectedIndex_group_insterest = [0, 1, 4]; 31 | const defaultSelectedIndex_group_gender = [1]; 32 | 33 | const ios_blue = "#007AFF"; 34 | 35 | export default class GroupButton extends Component { 36 | constructor(props) { 37 | super(props); 38 | 39 | var selectedValues1 = []; 40 | defaultSelectedIndex_group_insterest.map(item => { 41 | selectedValues1.push(multipleGroupData[item].value); 42 | }); 43 | 44 | this.state = { 45 | multipleSelectedData: [], 46 | multipleSelectedDataLimited: [], 47 | radioSelectedData: "", 48 | multipleSelectedData_group: selectedValues1, 49 | multipleSelectedData_group_limited: [], 50 | radioSelectedData_group: 51 | radioGroupData[defaultSelectedIndex_group_gender[0]].value 52 | }; 53 | } 54 | 55 | render() { 56 | return ( 57 | 58 | 59 | implement the multiple-select buttons demo by 60 | SelectMultipleGroupButton 61 | 62 | 63 | I like {_.join(this.state.multipleSelectedData_group, ", ")} 64 | 65 | 78 | this._groupButtonOnSelectedValuesChange(selectedValues) 79 | } 80 | group={multipleGroupData} 81 | /> 82 | 83 | 84 | Maximum 3(by yourself) limited 85 | 86 | 87 | I like {_.join(this.state.multipleSelectedData_group_limited, ", ")} 88 | 89 | 101 | this._groupButtonOnSelectedValuesChange_limited(selectedValues) 102 | } 103 | group={multipleGroupData} 104 | /> 105 | 106 | 107 | 108 | implement the radio-select buttons demo by SelectMultipleGroupButton 109 | 110 | 111 | I am {this.state.radioSelectedData_group} 112 | 113 | { 127 | this._onRadioGroupButtonSingleTap(valueTap); 128 | }} 129 | group={radioGroupData} 130 | /> 131 | 132 | ); 133 | } 134 | 135 | _groupButtonOnSelectedValuesChange(selectedValues) { 136 | this.setState({ 137 | multipleSelectedData_group: selectedValues 138 | }); 139 | } 140 | 141 | _groupButtonOnSelectedValuesChange_limited(selectedValues) { 142 | this.setState({ 143 | multipleSelectedData_group_limited: selectedValues 144 | }); 145 | } 146 | 147 | _onRadioGroupButtonSingleTap(valueTap) { 148 | this.setState({ 149 | radioSelectedData_group: valueTap 150 | }); 151 | } 152 | } 153 | 154 | const styles = StyleSheet.create({ 155 | welcome: { 156 | margin: 10, 157 | // marginTop: 30, 158 | color: "gray" 159 | } 160 | }); 161 | -------------------------------------------------------------------------------- /sample/ListButton.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-04-07 11:58:19 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-04-08 10:29:43 8 | */ 9 | 10 | import React, { Component } from 'react' 11 | import { 12 | View, 13 | } from 'react-native' 14 | 15 | import { SelectMultipleGroupButton } from '../index.js' 16 | 17 | const themeColor = '#0D1014' 18 | const ios_blue = '#007AFF' 19 | 20 | export default class ListButton extends Component { 21 | 22 | render() { 23 | return ( 24 | 25 | 41 | 42 | 58 | 59 | ) 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /sample/SegmentedControl.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-04-07 11:36:18 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-04-07 12:21:55 8 | */ 9 | import React, { Component } from 'react' 10 | import { 11 | View, 12 | } from 'react-native' 13 | 14 | import { SelectMultipleGroupButton } from '../index.js' 15 | 16 | const themeColor = '#0D1014' 17 | const ios_blue = '#007AFF' 18 | 19 | export default class SegmentedControl extends Component { 20 | 21 | render() { 22 | return ( 23 | 24 | 38 | 39 | 54 | 55 | ) 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /sample/SimpleButton.js: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: Young 3 | * DSHARP 4 | * @flow 5 | * @Date: 2018-04-07 10:51:10 6 | * @Last Modified by: Young 7 | * @Last Modified time: 2018-08-31 14:03:18 8 | */ 9 | import React, { Component } from "react"; 10 | import { View, Text, StyleSheet } from "react-native"; 11 | import _ from "lodash"; 12 | import { SelectMultipleButton } from "../index.js"; 13 | 14 | const ios_blue = "#007AFF"; 15 | const multipleData = ["running", "riding", "reading", "coding", "Niuer"]; 16 | const radioData = ["Female", "Male", "Other", "Rather not say"]; 17 | 18 | export default class SimpleButton extends Component { 19 | constructor(props) { 20 | super(props); 21 | 22 | this.state = { 23 | multipleSelectedData: [], 24 | multipleSelectedDataLimited: [] 25 | }; 26 | } 27 | 28 | render() { 29 | return ( 30 | 31 | 32 | implement the multiple-select buttons demo by SelectMultipleButton 33 | 34 | 35 | I like {_.join(this.state.multipleSelectedData, ", ")} 36 | 37 | 44 | {multipleData.map(interest => ( 45 | 65 | this._singleTapMultipleSelectedButtons(interest) 66 | } 67 | /> 68 | ))} 69 | 70 | 71 | 72 | Maximum 3 limited 73 | 74 | 75 | I like {_.join(this.state.multipleSelectedDataLimited, ", ")} 76 | 77 | 84 | {multipleData.map(interest => ( 85 | 107 | this._singleTapMultipleSelectedButtons_limited(interest) 108 | } 109 | /> 110 | ))} 111 | 112 | 113 | 114 | 115 | 116 | implement the radio-select buttons demo by SelectMultipleButton 117 | 118 | 119 | I am {this.state.radioSelectedData} 120 | 121 | 128 | {radioData.map(gender => ( 129 | 143 | this._singleTapRadioSelectedButtons(valueTap, gender) 144 | } 145 | /> 146 | ))} 147 | 148 | 149 | ); 150 | } 151 | 152 | _singleTapRadioSelectedButtons(valueTap, gender) { 153 | // Alert.alert('', valueTap) 154 | this.setState({ 155 | radioSelectedData: gender 156 | }); 157 | } 158 | 159 | _singleTapMultipleSelectedButtons(interest) { 160 | if (this.state.multipleSelectedData.includes(interest)) { 161 | _.remove(this.state.multipleSelectedData, ele => { 162 | return ele === interest; 163 | }); 164 | } else { 165 | this.state.multipleSelectedData.push(interest); 166 | } 167 | 168 | this.setState({ 169 | multipleSelectedData: this.state.multipleSelectedData 170 | }); 171 | } 172 | 173 | _singleTapMultipleSelectedButtons_limited(interest) { 174 | if (this.state.multipleSelectedDataLimited.includes(interest)) { 175 | _.remove(this.state.multipleSelectedDataLimited, ele => { 176 | return ele === interest; 177 | }); 178 | } else { 179 | if (this.state.multipleSelectedDataLimited.length < 3) 180 | this.state.multipleSelectedDataLimited.push(interest); 181 | } 182 | 183 | this.setState({ 184 | multipleSelectedDataLimited: this.state.multipleSelectedDataLimited 185 | }); 186 | } 187 | } 188 | 189 | const styles = StyleSheet.create({ 190 | welcome: { 191 | margin: 10, 192 | marginTop: 30, 193 | color: "gray" 194 | } 195 | }); 196 | -------------------------------------------------------------------------------- /screenCapture/ios-screencapture.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danceyoung/react-native-selectmultiple-button/3edf5205729653a6b572ad6d0f19e2bdc6c8cd3d/screenCapture/ios-screencapture.gif --------------------------------------------------------------------------------