├── .gitignore ├── screenshots.gif ├── RNPhonePicker.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── liubin.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ └── liubin.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── RNPhonePicker.xcscheme └── project.pbxproj ├── index.js ├── RNPhonePicker ├── RNPhonePicker.h └── RNPhonePicker.m ├── package.json ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /screenshots.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spikef/react-native-phone-picker/master/screenshots.gif -------------------------------------------------------------------------------- /RNPhonePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /RNPhonePicker.xcodeproj/project.xcworkspace/xcuserdata/liubin.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spikef/react-native-phone-picker/master/RNPhonePicker.xcodeproj/project.xcworkspace/xcuserdata/liubin.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var React = require('react-native'); 4 | var { NativeModules } = React; 5 | var RNPhonePicker = NativeModules.RNPhonePicker; 6 | 7 | var PhonePicker = { 8 | select: function(callback) { 9 | RNPhonePicker.selectPhoneNumber(callback) 10 | } 11 | }; 12 | 13 | module.exports = PhonePicker; 14 | -------------------------------------------------------------------------------- /RNPhonePicker/RNPhonePicker.h: -------------------------------------------------------------------------------- 1 | // 2 | // RNPhonePicker.h 3 | // RNPhonePicker 4 | // 5 | // Created by Spikef on 15/8/28. 6 | // Copyright (c) 2015年 envirs.com . All rights reserved. 7 | // 8 | 9 | #import 10 | #import "RCTBridgeModule.h" 11 | 12 | @interface RNPhonePicker : NSObject 13 | 14 | @property (nonatomic, strong) RCTResponseSenderBlock callback; 15 | 16 | @end -------------------------------------------------------------------------------- /RNPhonePicker.xcodeproj/xcuserdata/liubin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | RNPhonePicker.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 409A073A1B9047BF00F6A547 16 | 17 | primary 18 | 19 | 20 | 409A07451B9047BF00F6A547 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-phone-picker", 3 | "version": "0.0.3", 4 | "description": "React Native component for select phone number from address book", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/Spikef/react-native-phone-picker.git" 12 | }, 13 | "keywords": [ 14 | "react-component", 15 | "react-native", 16 | "ios", 17 | "address", 18 | "phone" 19 | ], 20 | "author": { 21 | "name": "Spikef", 22 | "email": "Spikef@Foxmail.com" 23 | }, 24 | "license": "MIT", 25 | "bugs": { 26 | "url": "https://github.com/silentcloud/react-native-phone-picker/issues" 27 | }, 28 | "peerDependencies": { 29 | "react-native": ">=0.7" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Corey Wilson 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 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-phone-picker 2 | 3 | React Native component for select phone number from address book 4 | 5 | 用于React Native的通讯录手机号选取模块 6 | 7 | ![image](https://github.com/Spikef/react-native-phone-picker/raw/master/screenshots.gif) 8 | 9 | ## Usage 10 | 11 | ```javascript 12 | npm install react-native-phone-picker --save 13 | ``` 14 | 15 | In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name], Go to node_modules ➜ react-native-phone-picker and add the `RNPhonePicker.xcodeproj` file 16 | 17 | In XCode, in the project navigator, select your project. Add the lib*.a from the RNPhonePicker project to your project's Build Phases ➜ Link Binary With Libraries Click `RNPhonePicker.xcodeproj` file you added before in the project navigator and go the Build Settings tab. Make sure 'All' is toggled on (instead of 'Basic'). Look for Header Search Paths and make sure it contains both $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React - mark both as recursive. 18 | 19 | Run your project (Cmd+R) 20 | 21 | ## Examples 22 | 23 | ```javascript 24 | 25 | var PhonePicker = require('react-native-phone-picker'); 26 | PhonePicker.select(function(phone) { 27 | if (phone) { 28 | phone = phone.replace(/[^\d]/g, ''); 29 | if (/^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(phone)) { 30 | console.log(phone); 31 | } 32 | } 33 | }) 34 | ``` 35 | 36 | -------------------------------------------------------------------------------- /RNPhonePicker.xcodeproj/xcuserdata/liubin.xcuserdatad/xcschemes/RNPhonePicker.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 94 | 100 | 101 | 102 | 103 | 105 | 106 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /RNPhonePicker/RNPhonePicker.m: -------------------------------------------------------------------------------- 1 | // 2 | // RNPhonePicker.m 3 | // RNPhonePicker 4 | // 5 | // Created by Spikef on 15/8/28. 6 | // Copyright (c) 2015年 envirs.com . All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import "RNPhonePicker.h" 13 | 14 | @implementation RNPhonePicker 15 | 16 | RCT_EXPORT_MODULE(); 17 | 18 | // 接口方法,显示通讯录选择 19 | RCT_EXPORT_METHOD(selectPhoneNumber:(RCTResponseSenderBlock) callback) 20 | { 21 | self.callback = callback; // save the callback 22 | 23 | ABPeoplePickerNavigationController *picker; 24 | picker = [[ABPeoplePickerNavigationController alloc] init]; 25 | picker.peoplePickerDelegate = self; 26 | 27 | if([[UIDevice currentDevice].systemVersion floatValue] >= 8.0){ 28 | picker.predicateForSelectionOfPerson = [NSPredicate predicateWithValue:false]; 29 | } 30 | 31 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 32 | [vc presentViewController:picker animated:YES completion:nil]; 33 | } 34 | 35 | // 进入详情页 iOS7 36 | - (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)picker 37 | shouldContinueAfterSelectingPerson:(ABRecordRef)person NS_DEPRECATED_IOS(2_0, 8_0){ 38 | return YES; 39 | } 40 | 41 | // 进入详情页 iOS8 42 | - (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)picker didSelectPerson:(ABRecordRef)person NS_AVAILABLE_IOS(8_0) { 43 | 44 | ABPersonViewController *personViewController = [[ABPersonViewController alloc] init]; 45 | personViewController.displayedPerson = person; 46 | 47 | [picker pushViewController:personViewController animated:YES]; 48 | }; 49 | 50 | 51 | // 选择号码 52 | - (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)picker 53 | shouldContinueAfterSelectingPerson:(ABRecordRef)person 54 | property:(ABPropertyID)property 55 | identifier:(ABMultiValueIdentifier)identifier 56 | NS_DEPRECATED_IOS(2_0, 8_0) 57 | 58 | { 59 | if (property == kABPersonPhoneProperty) { 60 | ABMutableMultiValueRef phoneMulti = ABRecordCopyValue(person, property); 61 | long index = ABMultiValueGetIndexForIdentifier(phoneMulti,identifier); 62 | NSString *phone = (NSString*)CFBridgingRelease(ABMultiValueCopyValueAtIndex(phoneMulti, index)); 63 | 64 | NSString *firstName = (__bridge NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty); 65 | if (firstName==nil) { 66 | firstName = @" "; 67 | } 68 | 69 | NSString *lastName=(__bridge NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty); 70 | if (lastName==nil) { 71 | lastName = @" "; 72 | } 73 | 74 | NSDictionary *dic = @{@"fullName": [NSString stringWithFormat:@"%@%@", firstName, lastName] 75 | ,@"phone" : phone}; 76 | 77 | self.callback(@[dic]); 78 | 79 | 80 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 81 | [vc dismissViewControllerAnimated:YES completion:nil]; 82 | } 83 | 84 | return NO; // 禁止打电话等其它操作 85 | } 86 | 87 | // 选择号码 88 | - (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)picker didSelectPerson:(ABRecordRef)person 89 | property:(ABPropertyID)property 90 | identifier:(ABMultiValueIdentifier)identifier 91 | NS_AVAILABLE_IOS(8_0) 92 | { 93 | if (property == kABPersonPhoneProperty) { 94 | ABMutableMultiValueRef phoneMulti = ABRecordCopyValue(person, property); 95 | long index = ABMultiValueGetIndexForIdentifier(phoneMulti,identifier); 96 | NSString *phone = (NSString*)CFBridgingRelease(ABMultiValueCopyValueAtIndex(phoneMulti, index)); 97 | 98 | NSString *firstName = (__bridge NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty); 99 | if (firstName==nil) { 100 | firstName = @" "; 101 | } 102 | 103 | NSString *lastName=(__bridge NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty); 104 | if (lastName==nil) { 105 | lastName = @" "; 106 | } 107 | 108 | NSDictionary *dic = @{@"fullName": [NSString stringWithFormat:@"%@%@", firstName, lastName] 109 | ,@"phone" : phone}; 110 | 111 | self.callback(@[dic]); 112 | 113 | 114 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 115 | [vc dismissViewControllerAnimated:YES completion:nil]; 116 | } 117 | } 118 | 119 | // 点击取消按钮 120 | - (void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)picker 121 | 122 | { 123 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 124 | [vc dismissViewControllerAnimated:YES completion:nil]; 125 | } 126 | 127 | @end 128 | -------------------------------------------------------------------------------- /RNPhonePicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 409A073F1B9047BF00F6A547 /* RNPhonePicker.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 409A073E1B9047BF00F6A547 /* RNPhonePicker.h */; }; 11 | 409A07411B9047BF00F6A547 /* RNPhonePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 409A07401B9047BF00F6A547 /* RNPhonePicker.m */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXCopyFilesBuildPhase section */ 15 | 409A07391B9047BF00F6A547 /* CopyFiles */ = { 16 | isa = PBXCopyFilesBuildPhase; 17 | buildActionMask = 2147483647; 18 | dstPath = "include/$(PRODUCT_NAME)"; 19 | dstSubfolderSpec = 16; 20 | files = ( 21 | 409A073F1B9047BF00F6A547 /* RNPhonePicker.h in CopyFiles */, 22 | ); 23 | runOnlyForDeploymentPostprocessing = 0; 24 | }; 25 | /* End PBXCopyFilesBuildPhase section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | 409A073B1B9047BF00F6A547 /* libRNPhonePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNPhonePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 409A073E1B9047BF00F6A547 /* RNPhonePicker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNPhonePicker.h; sourceTree = ""; }; 30 | 409A07401B9047BF00F6A547 /* RNPhonePicker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNPhonePicker.m; sourceTree = ""; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 409A07381B9047BF00F6A547 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | ); 39 | runOnlyForDeploymentPostprocessing = 0; 40 | }; 41 | /* End PBXFrameworksBuildPhase section */ 42 | 43 | /* Begin PBXGroup section */ 44 | 409A07321B9047BF00F6A547 = { 45 | isa = PBXGroup; 46 | children = ( 47 | 409A073D1B9047BF00F6A547 /* RNPhonePicker */, 48 | 409A073C1B9047BF00F6A547 /* Products */, 49 | ); 50 | sourceTree = ""; 51 | }; 52 | 409A073C1B9047BF00F6A547 /* Products */ = { 53 | isa = PBXGroup; 54 | children = ( 55 | 409A073B1B9047BF00F6A547 /* libRNPhonePicker.a */, 56 | ); 57 | name = Products; 58 | sourceTree = ""; 59 | }; 60 | 409A073D1B9047BF00F6A547 /* RNPhonePicker */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | 409A073E1B9047BF00F6A547 /* RNPhonePicker.h */, 64 | 409A07401B9047BF00F6A547 /* RNPhonePicker.m */, 65 | ); 66 | path = RNPhonePicker; 67 | sourceTree = ""; 68 | }; 69 | /* End PBXGroup section */ 70 | 71 | /* Begin PBXNativeTarget section */ 72 | 409A073A1B9047BF00F6A547 /* RNPhonePicker */ = { 73 | isa = PBXNativeTarget; 74 | buildConfigurationList = 409A074F1B9047BF00F6A547 /* Build configuration list for PBXNativeTarget "RNPhonePicker" */; 75 | buildPhases = ( 76 | 409A07371B9047BF00F6A547 /* Sources */, 77 | 409A07381B9047BF00F6A547 /* Frameworks */, 78 | 409A07391B9047BF00F6A547 /* CopyFiles */, 79 | ); 80 | buildRules = ( 81 | ); 82 | dependencies = ( 83 | ); 84 | name = RNPhonePicker; 85 | productName = RNPhonePicker; 86 | productReference = 409A073B1B9047BF00F6A547 /* libRNPhonePicker.a */; 87 | productType = "com.apple.product-type.library.static"; 88 | }; 89 | /* End PBXNativeTarget section */ 90 | 91 | /* Begin PBXProject section */ 92 | 409A07331B9047BF00F6A547 /* Project object */ = { 93 | isa = PBXProject; 94 | attributes = { 95 | LastUpgradeCheck = 0640; 96 | ORGANIZATIONNAME = Spikef; 97 | TargetAttributes = { 98 | 409A073A1B9047BF00F6A547 = { 99 | CreatedOnToolsVersion = 6.4; 100 | }; 101 | }; 102 | }; 103 | buildConfigurationList = 409A07361B9047BF00F6A547 /* Build configuration list for PBXProject "RNPhonePicker" */; 104 | compatibilityVersion = "Xcode 3.2"; 105 | developmentRegion = English; 106 | hasScannedForEncodings = 0; 107 | knownRegions = ( 108 | en, 109 | ); 110 | mainGroup = 409A07321B9047BF00F6A547; 111 | productRefGroup = 409A073C1B9047BF00F6A547 /* Products */; 112 | projectDirPath = ""; 113 | projectRoot = ""; 114 | targets = ( 115 | 409A073A1B9047BF00F6A547 /* RNPhonePicker */, 116 | ); 117 | }; 118 | /* End PBXProject section */ 119 | 120 | /* Begin PBXSourcesBuildPhase section */ 121 | 409A07371B9047BF00F6A547 /* Sources */ = { 122 | isa = PBXSourcesBuildPhase; 123 | buildActionMask = 2147483647; 124 | files = ( 125 | 409A07411B9047BF00F6A547 /* RNPhonePicker.m in Sources */, 126 | ); 127 | runOnlyForDeploymentPostprocessing = 0; 128 | }; 129 | /* End PBXSourcesBuildPhase section */ 130 | 131 | /* Begin XCBuildConfiguration section */ 132 | 409A074D1B9047BF00F6A547 /* Debug */ = { 133 | isa = XCBuildConfiguration; 134 | buildSettings = { 135 | ALWAYS_SEARCH_USER_PATHS = NO; 136 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 137 | CLANG_CXX_LIBRARY = "libc++"; 138 | CLANG_ENABLE_MODULES = YES; 139 | CLANG_ENABLE_OBJC_ARC = YES; 140 | CLANG_WARN_BOOL_CONVERSION = YES; 141 | CLANG_WARN_CONSTANT_CONVERSION = YES; 142 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 143 | CLANG_WARN_EMPTY_BODY = YES; 144 | CLANG_WARN_ENUM_CONVERSION = YES; 145 | CLANG_WARN_INT_CONVERSION = YES; 146 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 147 | CLANG_WARN_UNREACHABLE_CODE = YES; 148 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 149 | COPY_PHASE_STRIP = NO; 150 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 151 | ENABLE_STRICT_OBJC_MSGSEND = YES; 152 | GCC_C_LANGUAGE_STANDARD = gnu99; 153 | GCC_DYNAMIC_NO_PIC = NO; 154 | GCC_NO_COMMON_BLOCKS = YES; 155 | GCC_OPTIMIZATION_LEVEL = 0; 156 | GCC_PREPROCESSOR_DEFINITIONS = ( 157 | "DEBUG=1", 158 | "$(inherited)", 159 | ); 160 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 161 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 162 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 163 | GCC_WARN_UNDECLARED_SELECTOR = YES; 164 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 165 | GCC_WARN_UNUSED_FUNCTION = YES; 166 | GCC_WARN_UNUSED_VARIABLE = YES; 167 | HEADER_SEARCH_PATHS = ( 168 | "$(inherited)", 169 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 170 | "$(SRCROOT)/../../React/**", 171 | "$(SRCROOT)/../react-native/React/**", 172 | ); 173 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 174 | MTL_ENABLE_DEBUG_INFO = YES; 175 | ONLY_ACTIVE_ARCH = YES; 176 | SDKROOT = iphoneos; 177 | }; 178 | name = Debug; 179 | }; 180 | 409A074E1B9047BF00F6A547 /* Release */ = { 181 | isa = XCBuildConfiguration; 182 | buildSettings = { 183 | ALWAYS_SEARCH_USER_PATHS = NO; 184 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 185 | CLANG_CXX_LIBRARY = "libc++"; 186 | CLANG_ENABLE_MODULES = YES; 187 | CLANG_ENABLE_OBJC_ARC = YES; 188 | CLANG_WARN_BOOL_CONVERSION = YES; 189 | CLANG_WARN_CONSTANT_CONVERSION = YES; 190 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 191 | CLANG_WARN_EMPTY_BODY = YES; 192 | CLANG_WARN_ENUM_CONVERSION = YES; 193 | CLANG_WARN_INT_CONVERSION = YES; 194 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 195 | CLANG_WARN_UNREACHABLE_CODE = YES; 196 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 197 | COPY_PHASE_STRIP = NO; 198 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 199 | ENABLE_NS_ASSERTIONS = NO; 200 | ENABLE_STRICT_OBJC_MSGSEND = YES; 201 | GCC_C_LANGUAGE_STANDARD = gnu99; 202 | GCC_NO_COMMON_BLOCKS = YES; 203 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 204 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 205 | GCC_WARN_UNDECLARED_SELECTOR = YES; 206 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 207 | GCC_WARN_UNUSED_FUNCTION = YES; 208 | GCC_WARN_UNUSED_VARIABLE = YES; 209 | HEADER_SEARCH_PATHS = ( 210 | "$(inherited)", 211 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 212 | "$(SRCROOT)/../../React/**", 213 | "$(SRCROOT)/../react-native/React/**", 214 | ); 215 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 216 | MTL_ENABLE_DEBUG_INFO = NO; 217 | SDKROOT = iphoneos; 218 | VALIDATE_PRODUCT = YES; 219 | }; 220 | name = Release; 221 | }; 222 | 409A07501B9047BF00F6A547 /* Debug */ = { 223 | isa = XCBuildConfiguration; 224 | buildSettings = { 225 | GCC_DYNAMIC_NO_PIC = NO; 226 | HEADER_SEARCH_PATHS = ( 227 | "$(inherited)", 228 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 229 | "$(SRCROOT)/../../React/**", 230 | "$(SRCROOT)/../../node_modules/react-native/React/**", 231 | ); 232 | OTHER_LDFLAGS = "-ObjC"; 233 | PRODUCT_NAME = "$(TARGET_NAME)"; 234 | SKIP_INSTALL = YES; 235 | }; 236 | name = Debug; 237 | }; 238 | 409A07511B9047BF00F6A547 /* Release */ = { 239 | isa = XCBuildConfiguration; 240 | buildSettings = { 241 | GCC_DYNAMIC_NO_PIC = NO; 242 | HEADER_SEARCH_PATHS = ( 243 | "$(inherited)", 244 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 245 | "$(SRCROOT)/../../React/**", 246 | "$(SRCROOT)/../../node_modules/react-native/React/**", 247 | ); 248 | OTHER_LDFLAGS = "-ObjC"; 249 | PRODUCT_NAME = "$(TARGET_NAME)"; 250 | SKIP_INSTALL = YES; 251 | }; 252 | name = Release; 253 | }; 254 | /* End XCBuildConfiguration section */ 255 | 256 | /* Begin XCConfigurationList section */ 257 | 409A07361B9047BF00F6A547 /* Build configuration list for PBXProject "RNPhonePicker" */ = { 258 | isa = XCConfigurationList; 259 | buildConfigurations = ( 260 | 409A074D1B9047BF00F6A547 /* Debug */, 261 | 409A074E1B9047BF00F6A547 /* Release */, 262 | ); 263 | defaultConfigurationIsVisible = 0; 264 | defaultConfigurationName = Release; 265 | }; 266 | 409A074F1B9047BF00F6A547 /* Build configuration list for PBXNativeTarget "RNPhonePicker" */ = { 267 | isa = XCConfigurationList; 268 | buildConfigurations = ( 269 | 409A07501B9047BF00F6A547 /* Debug */, 270 | 409A07511B9047BF00F6A547 /* Release */, 271 | ); 272 | defaultConfigurationIsVisible = 0; 273 | defaultConfigurationName = Release; 274 | }; 275 | /* End XCConfigurationList section */ 276 | }; 277 | rootObject = 409A07331B9047BF00F6A547 /* Project object */; 278 | } 279 | --------------------------------------------------------------------------------