├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── README.md ├── android ├── app │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── citysectionlist │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── babel.config.js ├── city-data.json ├── city.js ├── images └── aa.gif ├── index.js ├── ios ├── CitySectionList-tvOS │ └── Info.plist ├── CitySectionList-tvOSTests │ └── Info.plist ├── CitySectionList.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── CitySectionList-tvOS.xcscheme │ │ └── CitySectionList.xcscheme ├── CitySectionList │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── CitySectionListTests │ ├── CitySectionListTests.m │ └── Info.plist ├── metro.config.js ├── package.json └── public_close_icon@2x.png /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | 28 | [options] 29 | emoji=true 30 | 31 | esproposal.optional_chaining=enable 32 | esproposal.nullish_coalescing=enable 33 | 34 | module.system=haste 35 | module.system.haste.use_name_reducers=true 36 | # get basename 37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 38 | # strip .js or .js.flow suffix 39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 40 | # strip .ios suffix 41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 44 | module.system.haste.paths.blacklist=.*/__tests__/.* 45 | module.system.haste.paths.blacklist=.*/__mocks__/.* 46 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 47 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 48 | 49 | munge_underscores=true 50 | 51 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 52 | 53 | module.file_ext=.js 54 | module.file_ext=.jsx 55 | module.file_ext=.json 56 | module.file_ext=.native.js 57 | 58 | suppress_type=$FlowIssue 59 | suppress_type=$FlowFixMe 60 | suppress_type=$FlowFixMeProps 61 | suppress_type=$FlowFixMeState 62 | 63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 67 | 68 | [version] 69 | ^0.92.0 70 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 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 | # Bundle artifact 56 | *.jsbundle 57 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow 7 | */ 8 | 9 | import React, {Component} from 'react'; 10 | import {Platform, StyleSheet, Text, View} from 'react-native'; 11 | 12 | const instructions = Platform.select({ 13 | ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', 14 | android: 15 | 'Double tap R on your keyboard to reload,\n' + 16 | 'Shake or press menu button for dev menu', 17 | }); 18 | 19 | type Props = {}; 20 | export default class App extends Component { 21 | render() { 22 | return ( 23 | 24 | Welcome to React Native! 25 | To get started, edit App.js 26 | {instructions} 27 | 28 | ); 29 | } 30 | } 31 | 32 | const styles = StyleSheet.create({ 33 | container: { 34 | flex: 1, 35 | justifyContent: 'center', 36 | alignItems: 'center', 37 | backgroundColor: '#F5FCFF', 38 | }, 39 | welcome: { 40 | fontSize: 20, 41 | textAlign: 'center', 42 | margin: 10, 43 | }, 44 | instructions: { 45 | textAlign: 'center', 46 | color: '#333333', 47 | marginBottom: 5, 48 | }, 49 | }); 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### 引言 2 | 使用RN开发了一段时间,最近遇到了一个比较棘手的问题,就是用react写个城市选择列表,当然这个如果用Android原生来写,网上的例子数不胜数,随便就能找到,但是react却很少,也没有一个和我这个需求相匹配的,所以就只能自己动手撸一个出来咯. 3 | ### 效果 4 | 这个城市列表和其他的有点区别 5 | >1,有当前定位城市 6 | >2,有热门城市 7 | >3,每个子项是一个类似GridView的效果,而不是ListView 8 | 实现的效果图如下: 9 | ![在这里插入图片描述](./images/aa.gif) 10 | ### 实现步骤 11 | * 首先需要一个city.json的json文件 12 | 例: 13 | ``` 14 | { 15 | "key": "A", 16 | "data": [{ 17 | "citys": [ 18 | { 19 | "city": "阿拉善盟", 20 | "id": 152900 21 | }, 22 | { 23 | "city": "鞍山", 24 | "id": 210300 25 | }, 26 | { 27 | "city": "安庆", 28 | "id": 340800 29 | }, 30 | { 31 | "city": "安阳", 32 | "id": 410500 33 | }, 34 | 35 | .....] 36 | } 37 | ``` 38 | 39 | * 整个列表采用sectionList 40 | SectionList提供了粘性的header,设置为true即可`stickySectionHeadersEnabled=true`,这样在滚动的时候就有实现了粘性效果; 41 | 42 | 代码如下: 43 | 44 | ``` 45 | 54 | ``` 55 | * 右边采用ScrollView来实现,最开始采用View,发现会有事件抢夺问题,具体的原因不祥,毕竟我对RN的事件传递也不是特别熟 56 | 代码如下: 57 | 58 | ``` 59 | /*右侧索引*/ 60 | sectionItemView() { 61 | const sectionItem = this.state.sections.map((item, index) => { 62 | if (index === 0) { 63 | return null 64 | } 65 | return 70 | {item.key} 71 | 72 | }); 73 | 74 | return ( 75 | true} 78 | onMoveShouldSetResponder={() => true} 79 | onResponderTerminationRequest={() => true} 80 | onResponderGrant={this.responderGrant} 81 | onResponderMove={this.responderMove} 82 | onResponderRelease={this.responderRelease} 83 | > 84 | {sectionItem} 85 | 86 | 87 | ); 88 | } 89 | ``` 90 | 这里的几个方法需要具体说明一下(React Native手势响应,就和android的onTouchEvent一个意思): 91 | 通过实施正确的处理方法,视图可以成为接触响应器。有两种方法来询问视图是否想成为响应器: 92 | - View.props.onStartShouldSetResponder: (evt) => true,——这个视图是否在触摸开始时想成为响应器? 93 | - View.props.onMoveShouldSetResponder: (evt) => true,——当视图不是响应器时,该指令被在视图上移动的触摸调用:这个视图想“声明”触摸响应吗? 94 | 如果视图返回 true 并且想成为响应器,那么下述的情况之一就会发生: 95 | - View.props.onResponderGrant:(evt)= > { } ——视图现在正在响应触摸事件。这个时候要高亮标明并显示给用户正在发生的事情。 96 | - View.props.onResponderReject:(evt)= > { }——当前有其他的东西成为响应器并且没有释放它。 97 | 如果视图正在响应,那么可以调用以下处理程序: 98 | - View.props.onResponderMove:(evt)= > { }——用户正移动他们的手指 99 | - View.props.onResponderRelease:(evt)= > { }——在触摸最后被引发,即“touchUp” 100 | - View.props.onResponderTerminationRequest:(evt)= >true——其他的东西想成为响应器。这种视图应该释放应答吗?返回 true 就是允许释放 101 | 102 | 事件处理: 103 | 104 | ``` 105 | 106 | /*用户手指开始触摸*/ 107 | responderGrant(event) { 108 | this.scrollSectionList(event); 109 | this.setState({ 110 | isTouchDown: true, 111 | }) 112 | } 113 | 114 | /*用户手指在屏幕上移动手指,没有停下也没有离开*/ 115 | responderMove(event) { 116 | console.log("responderMove") 117 | this.scrollSectionList(event); 118 | this.setState({ 119 | isTouchDown: true, 120 | }) 121 | } 122 | 123 | /*用户手指离开屏幕*/ 124 | responderRelease(event) { 125 | console.log("onTouchUp") 126 | this.setState({ 127 | isTouchDown: false, 128 | }) 129 | } 130 | /*手指滑动,触发事件*/ 131 | scrollSectionList(event) { 132 | const touch = event.nativeEvent.touches[0]; 133 | // 手指滑动范围 从 A-Q 范围从50 到 50 + sectionItemHeight * cities.length 134 | if (touch.pageY >= sectionTopBottomHeight+headerHeight+statusHeight 135 | && touch.pageY <= statusHeight +headerHeight+sectionTopBottomHeight + sectionItemHeight * 25 136 | && touch.pageX >= width - sectionWidth 137 | && touch.pageX <= width 138 | ) { 139 | console.log("touchx" + touch.pageX + '.=======touchY' + touch.pageY) 140 | const index = (touch.pageY - sectionTopBottomHeight - headerHeight) / sectionItemHeight; 141 | console.log("index" + index); 142 | if (Math.round(index)>=0&&Math.round(index)<=25){ 143 | this.setState({ 144 | selectText: this.state.sections[Math.round(index)].key 145 | }) 146 | //默认跳转到 第 index 个section 的第 1 个 item 147 | this.refs.sectionList.scrollToLocation({ 148 | animated: true, 149 | sectionIndex: Math.round(index), 150 | itemIndex: 0, 151 | viewOffset: headerHeight 152 | }); 153 | } 154 | 155 | } 156 | } 157 | ``` 158 | 这里根据手指在右边索引栏的滑动事件,获取到当前的x轴和y轴的具体值,然后计算出具体的子项目的标题,让SectionList滚动到具体的index位置; 159 | * 子项目列表采用FlatList实现GridView的效果 160 | 161 | ``` 162 | this._createItem(item)} 168 | keyExtractor={this._extraUniqueKey2} 169 | /> 170 | ``` 171 | 这样基本大体的效果就实现了 172 | 173 | ### 最后 174 | React native实现这个有个很坑爹的地方,就是渲染列表会花费很长的时间,Android是这样,ios没试过,所以如果没有渲染完就去滑动索引栏会报这个`scrolltoindex-should-be-used-in-conjunction-with-getitemlayout-or-on`异常,网上找了很多资料,说是SectionList没有渲染完就调用scrollToLocation,如果要在没有渲染完之前调用scrollToLocation需要配合getitemlayout使用,但是这个getitemlayout又需要传入具体item的高度,然而我的FlatList的高度是不确定的,所以就很坑爹了,找不到办法解决,只能延时加载右边索引栏; 175 | 代码如下: 176 | ``` 177 | componentDidMount() { 178 | setTimeout(() => { 179 | this.setState({ 180 | canTouch: true 181 | }) 182 | }, 1600) 183 | } 184 | ``` 185 | 这样全部基本就完成了 186 | 项目地址: 187 | ![]()[https://github.com/mouxuefei/RN-CitySectionList](https://github.com/mouxuefei/RN-CitySectionList) -------------------------------------------------------------------------------- /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 rootProject.ext.compileSdkVersion 98 | 99 | compileOptions { 100 | sourceCompatibility JavaVersion.VERSION_1_8 101 | targetCompatibility JavaVersion.VERSION_1_8 102 | } 103 | 104 | defaultConfig { 105 | applicationId "com.citysectionlist" 106 | minSdkVersion rootProject.ext.minSdkVersion 107 | targetSdkVersion rootProject.ext.targetSdkVersion 108 | versionCode 1 109 | versionName "1.0" 110 | } 111 | splits { 112 | abi { 113 | reset() 114 | enable enableSeparateBuildPerCPUArchitecture 115 | universalApk false // If true, also generate a universal APK 116 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 117 | } 118 | } 119 | buildTypes { 120 | release { 121 | minifyEnabled enableProguardInReleaseBuilds 122 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 123 | } 124 | } 125 | // applicationVariants are e.g. debug, release 126 | applicationVariants.all { variant -> 127 | variant.outputs.each { output -> 128 | // For each separate APK per architecture, set a unique version code as described here: 129 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 130 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4] 131 | def abi = output.getFilter(OutputFile.ABI) 132 | if (abi != null) { // null for the universal-debug, universal-release variants 133 | output.versionCodeOverride = 134 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 135 | } 136 | } 137 | } 138 | } 139 | 140 | dependencies { 141 | implementation project(':react-native-gesture-handler') 142 | implementation fileTree(dir: "libs", include: ["*.jar"]) 143 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 144 | implementation "com.facebook.react:react-native:+" // From node_modules 145 | } 146 | 147 | // Run this once to be able to run the application with BUCK 148 | // puts all compile dependencies into folder libs for BUCK to use 149 | task copyDownloadableDepsToLibs(type: Copy) { 150 | from configurations.compile 151 | into 'libs' 152 | } 153 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/citysectionlist/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.citysectionlist; 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 "CitySectionList"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/citysectionlist/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.citysectionlist; 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 | import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; 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 | new RNGestureHandlerPackage() 27 | ); 28 | } 29 | 30 | @Override 31 | protected String getJSMainModuleName() { 32 | return "index"; 33 | } 34 | }; 35 | 36 | @Override 37 | public ReactNativeHost getReactNativeHost() { 38 | return mReactNativeHost; 39 | } 40 | 41 | @Override 42 | public void onCreate() { 43 | super.onCreate(); 44 | SoLoader.init(this, /* native exopackage */ false); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CitySectionList 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 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:3.3.0") 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin, switch paths to Windows format before running java 129 | if $cygwin ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=$((i+1)) 158 | done 159 | case $i in 160 | (0) set -- ;; 161 | (1) set -- "$args0" ;; 162 | (2) set -- "$args0" "$args1" ;; 163 | (3) set -- "$args0" "$args1" "$args2" ;; 164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=$(save "$@") 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem http://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /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 = 'CitySectionList' 2 | include ':react-native-gesture-handler' 3 | project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CitySectionList", 3 | "displayName": "CitySectionList" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /city-data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "key": "当前定位城市", 4 | "data": [{ 5 | "citys": [ 6 | { 7 | "id": "110100", 8 | "city": "北京" 9 | } 10 | ] 11 | }] 12 | }, 13 | { 14 | "key": "热", 15 | "data": [{ 16 | "citys": [ 17 | { 18 | "id": "110100", 19 | "city": "北京" 20 | }, 21 | { 22 | "id": "120100", 23 | "city": "天津" 24 | }, 25 | { 26 | "id": "130100", 27 | "city": "石家庄" 28 | }, 29 | { 30 | "id": "150100", 31 | "city": "呼和浩特" 32 | }, 33 | { 34 | "id": "210100", 35 | "city": "沈阳" 36 | }, 37 | { 38 | "id": "210200", 39 | "city": "大连" 40 | }, 41 | { 42 | "id": "220100", 43 | "city": "长春" 44 | }, 45 | { 46 | "id": "230100", 47 | "city": "哈尔滨" 48 | }, 49 | { 50 | "id": "310100", 51 | "city": "上海" 52 | }, 53 | { 54 | "id": "320100", 55 | "city": "南京" 56 | }, 57 | { 58 | "id": "320200", 59 | "city": "无锡" 60 | }, 61 | { 62 | "id": "320400", 63 | "city": "常州" 64 | }, 65 | { 66 | "id": "320500", 67 | "city": "苏州" 68 | }, 69 | { 70 | "id": "330100", 71 | "city": "杭州" 72 | }, 73 | { 74 | "id": "330200", 75 | "city": "宁波" 76 | }, 77 | { 78 | "id": "330300", 79 | "city": "温州" 80 | }, 81 | { 82 | "id": "340100", 83 | "city": "合肥" 84 | }, 85 | { 86 | "id": "350100", 87 | "city": "福州" 88 | }, 89 | { 90 | "id": "350200", 91 | "city": "厦门" 92 | }, 93 | { 94 | "id": "360100", 95 | "city": "南昌" 96 | }, 97 | { 98 | "id": "370100", 99 | "city": "济南" 100 | }, 101 | { 102 | "id": "370200", 103 | "city": "青岛" 104 | }, 105 | { 106 | "id": "410100", 107 | "city": "郑州" 108 | }, 109 | { 110 | "id": "420100", 111 | "city": "武汉" 112 | }, 113 | { 114 | "id": "430100", 115 | "city": "长沙" 116 | }, 117 | { 118 | "id": "440100", 119 | "city": "广州" 120 | }, 121 | { 122 | "id": "440300", 123 | "city": "深圳" 124 | }, 125 | { 126 | "id": "440600", 127 | "city": "佛山" 128 | }, 129 | { 130 | "id": "441900", 131 | "city": "东莞" 132 | }, 133 | { 134 | "id": "450100", 135 | "city": "南宁" 136 | }, 137 | { 138 | "id": "500100", 139 | "city": "重庆" 140 | }, 141 | { 142 | "id": "510100", 143 | "city": "成都" 144 | }, 145 | { 146 | "id": "520100", 147 | "city": "贵阳" 148 | }, 149 | { 150 | "id": "530100", 151 | "city": "昆明" 152 | }, 153 | { 154 | "id": "610100", 155 | "city": "西安" 156 | } 157 | ] 158 | }] 159 | }, 160 | { 161 | "key": "A", 162 | "data": [{ 163 | "citys": [ 164 | { 165 | "city": "阿拉善盟", 166 | "id": 152900 167 | }, 168 | { 169 | "city": "鞍山", 170 | "id": 210300 171 | }, 172 | { 173 | "city": "安庆", 174 | "id": 340800 175 | }, 176 | { 177 | "city": "安阳", 178 | "id": 410500 179 | }, 180 | { 181 | "city": "阿坝", 182 | "id": 513200 183 | }, 184 | { 185 | "city": "安顺", 186 | "id": 520400 187 | }, 188 | { 189 | "city": "阿里", 190 | "id": 542500 191 | }, 192 | { 193 | "city": "安康", 194 | "id": 610900 195 | }, 196 | { 197 | "city": "阿克苏", 198 | "id": 652900 199 | }, 200 | { 201 | "city": "阿勒泰", 202 | "id": 654300 203 | }, 204 | { 205 | "city": "阿拉尔", 206 | "id": 659002 207 | }, 208 | { 209 | "city": "澳门半岛", 210 | "id": 820100 211 | } 212 | ] 213 | }] 214 | }, 215 | { 216 | "key": "B", 217 | "data": [{ 218 | "citys": [ 219 | { 220 | "city": "北京", 221 | "id": 110100 222 | }, 223 | { 224 | "city": "保定", 225 | "id": 130600 226 | }, 227 | { 228 | "city": "包头", 229 | "id": 150200 230 | }, 231 | { 232 | "city": "巴彦淖尔", 233 | "id": 150800 234 | }, 235 | { 236 | "city": "本溪", 237 | "id": 210500 238 | }, 239 | { 240 | "city": "白山", 241 | "id": 220600 242 | }, 243 | { 244 | "city": "白城", 245 | "id": 220800 246 | }, 247 | { 248 | "city": "蚌埠", 249 | "id": 340300 250 | }, 251 | { 252 | "city": "亳州", 253 | "id": 341600 254 | }, 255 | { 256 | "city": "滨州", 257 | "id": 371600 258 | }, 259 | { 260 | "city": "北海", 261 | "id": 450500 262 | }, 263 | { 264 | "city": "百色", 265 | "id": 451000 266 | }, 267 | { 268 | "city": "白沙", 269 | "id": 469030 270 | }, 271 | { 272 | "city": "保亭", 273 | "id": 469035 274 | }, 275 | { 276 | "city": "巴中", 277 | "id": 511900 278 | }, 279 | { 280 | "city": "毕节", 281 | "id": 522400 282 | }, 283 | { 284 | "city": "保山", 285 | "id": 530500 286 | }, 287 | { 288 | "city": "宝鸡", 289 | "id": 610300 290 | }, 291 | { 292 | "city": "白银", 293 | "id": 620400 294 | }, 295 | { 296 | "city": "博尔塔拉", 297 | "id": 652700 298 | }, 299 | { 300 | "city": "巴音郭楞", 301 | "id": 652800 302 | } 303 | ] 304 | }] 305 | }, 306 | { 307 | "key": "C", 308 | "data": [{ 309 | "citys": [ 310 | { 311 | "city": "承德", 312 | "id": 130800 313 | }, 314 | { 315 | "city": "沧州", 316 | "id": 130900 317 | }, 318 | { 319 | "city": "长治", 320 | "id": 140400 321 | }, 322 | { 323 | "city": "赤峰", 324 | "id": 150400 325 | }, 326 | { 327 | "city": "朝阳", 328 | "id": 211300 329 | }, 330 | { 331 | "city": "长春", 332 | "id": 220100 333 | }, 334 | { 335 | "city": "常州", 336 | "id": 320400 337 | }, 338 | { 339 | "city": "滁州", 340 | "id": 341100 341 | }, 342 | { 343 | "city": "池州", 344 | "id": 341700 345 | }, 346 | { 347 | "city": "长沙", 348 | "id": 430100 349 | }, 350 | { 351 | "city": "常德", 352 | "id": 430700 353 | }, 354 | { 355 | "city": "郴州", 356 | "id": 431000 357 | }, 358 | { 359 | "city": "潮州", 360 | "id": 445100 361 | }, 362 | { 363 | "city": "崇左", 364 | "id": 451400 365 | }, 366 | { 367 | "city": "澄迈", 368 | "id": 469027 369 | }, 370 | { 371 | "city": "昌江", 372 | "id": 469031 373 | }, 374 | { 375 | "city": "重庆", 376 | "id": 500100 377 | }, 378 | { 379 | "city": "成都", 380 | "id": 510100 381 | }, 382 | { 383 | "city": "楚雄", 384 | "id": 532300 385 | }, 386 | { 387 | "city": "昌都", 388 | "id": 542100 389 | }, 390 | { 391 | "city": "昌吉", 392 | "id": 652300 393 | } 394 | ] 395 | }] 396 | }, 397 | { 398 | "key": "D", 399 | "data": [{ 400 | "citys": [ 401 | { 402 | "city": "大同", 403 | "id": 140200 404 | }, 405 | { 406 | "city": "大连", 407 | "id": 210200 408 | }, 409 | { 410 | "city": "丹东", 411 | "id": 210600 412 | }, 413 | { 414 | "city": "大庆", 415 | "id": 230600 416 | }, 417 | { 418 | "city": "大兴安岭", 419 | "id": 232700 420 | }, 421 | { 422 | "city": "东营", 423 | "id": 370500 424 | }, 425 | { 426 | "city": "德州", 427 | "id": 371400 428 | }, 429 | { 430 | "city": "东莞", 431 | "id": 441900 432 | }, 433 | { 434 | "city": "东沙群岛", 435 | "id": 442101 436 | }, 437 | { 438 | "city": "儋州", 439 | "id": 469003 440 | }, 441 | { 442 | "city": "东方", 443 | "id": 469007 444 | }, 445 | { 446 | "city": "定安", 447 | "id": 469025 448 | }, 449 | { 450 | "city": "德阳", 451 | "id": 510600 452 | }, 453 | { 454 | "city": "达州", 455 | "id": 511700 456 | }, 457 | { 458 | "city": "大理", 459 | "id": 532900 460 | }, 461 | { 462 | "city": "德宏", 463 | "id": 533100 464 | }, 465 | { 466 | "city": "迪庆", 467 | "id": 533400 468 | }, 469 | { 470 | "city": "定西", 471 | "id": 621100 472 | } 473 | ] 474 | }] 475 | }, 476 | { 477 | "key": "E", 478 | "data": [{ 479 | "citys": [ 480 | { 481 | "city": "鄂尔多斯", 482 | "id": 150600 483 | }, 484 | { 485 | "city": "鄂州", 486 | "id": 420700 487 | }, 488 | { 489 | "city": "恩施", 490 | "id": 422800 491 | } 492 | ] 493 | }] 494 | }, 495 | { 496 | "key": "F", 497 | "data": [{ 498 | "citys": [ 499 | { 500 | "city": "抚顺", 501 | "id": 210400 502 | }, 503 | { 504 | "city": "阜新", 505 | "id": 210900 506 | }, 507 | { 508 | "city": "阜阳", 509 | "id": 341200 510 | }, 511 | { 512 | "city": "福州", 513 | "id": 350100 514 | }, 515 | { 516 | "city": "抚州", 517 | "id": 361000 518 | }, 519 | { 520 | "city": "佛山", 521 | "id": 440600 522 | }, 523 | { 524 | "city": "防城港", 525 | "id": 450600 526 | } 527 | ] 528 | }] 529 | }, 530 | { 531 | "key": "G", 532 | "data": [{ 533 | "citys": [ 534 | { 535 | "city": "赣州", 536 | "id": 360700 537 | }, 538 | { 539 | "city": "广州", 540 | "id": 440100 541 | }, 542 | { 543 | "city": "桂林", 544 | "id": 450300 545 | }, 546 | { 547 | "city": "贵港", 548 | "id": 450800 549 | }, 550 | { 551 | "city": "广元", 552 | "id": 510800 553 | }, 554 | { 555 | "city": "广安", 556 | "id": 511600 557 | }, 558 | { 559 | "city": "甘孜", 560 | "id": 513300 561 | }, 562 | { 563 | "city": "贵阳", 564 | "id": 520100 565 | }, 566 | { 567 | "city": "甘南", 568 | "id": 623000 569 | }, 570 | { 571 | "city": "果洛", 572 | "id": 632600 573 | }, 574 | { 575 | "city": "固原", 576 | "id": 640400 577 | }, 578 | { 579 | "city": "高雄", 580 | "id": 710200 581 | } 582 | ] 583 | }] 584 | }, 585 | { 586 | "key": "H", 587 | "data": [{ 588 | "citys": [ 589 | { 590 | "city": "邯郸", 591 | "id": 130400 592 | }, 593 | { 594 | "city": "衡水", 595 | "id": 131100 596 | }, 597 | { 598 | "city": "呼和浩特", 599 | "id": 150100 600 | }, 601 | { 602 | "city": "呼伦贝尔", 603 | "id": 150700 604 | }, 605 | { 606 | "city": "葫芦岛", 607 | "id": 211400 608 | }, 609 | { 610 | "city": "哈尔滨", 611 | "id": 230100 612 | }, 613 | { 614 | "city": "鹤岗", 615 | "id": 230400 616 | }, 617 | { 618 | "city": "黑河", 619 | "id": 231100 620 | }, 621 | { 622 | "city": "淮安", 623 | "id": 320800 624 | }, 625 | { 626 | "city": "杭州", 627 | "id": 330100 628 | }, 629 | { 630 | "city": "湖州", 631 | "id": 330500 632 | }, 633 | { 634 | "city": "合肥", 635 | "id": 340100 636 | }, 637 | { 638 | "city": "淮南", 639 | "id": 340400 640 | }, 641 | { 642 | "city": "淮北", 643 | "id": 340600 644 | }, 645 | { 646 | "city": "黄山", 647 | "id": 341000 648 | }, 649 | { 650 | "city": "菏泽", 651 | "id": 371700 652 | }, 653 | { 654 | "city": "鹤壁", 655 | "id": 410600 656 | }, 657 | { 658 | "city": "黄石", 659 | "id": 420200 660 | }, 661 | { 662 | "city": "黄冈", 663 | "id": 421100 664 | }, 665 | { 666 | "city": "衡阳", 667 | "id": 430400 668 | }, 669 | { 670 | "city": "怀化", 671 | "id": 431200 672 | }, 673 | { 674 | "city": "惠州", 675 | "id": 441300 676 | }, 677 | { 678 | "city": "河源", 679 | "id": 441600 680 | }, 681 | { 682 | "city": "贺州", 683 | "id": 451100 684 | }, 685 | { 686 | "city": "河池", 687 | "id": 451200 688 | }, 689 | { 690 | "city": "海口", 691 | "id": 460100 692 | }, 693 | { 694 | "city": "红河", 695 | "id": 532500 696 | }, 697 | { 698 | "city": "汉中", 699 | "id": 610700 700 | }, 701 | { 702 | "city": "海东", 703 | "id": 632100 704 | }, 705 | { 706 | "city": "海北", 707 | "id": 632200 708 | }, 709 | { 710 | "city": "黄南", 711 | "id": 632300 712 | }, 713 | { 714 | "city": "海南", 715 | "id": 632500 716 | }, 717 | { 718 | "city": "海西", 719 | "id": 632800 720 | }, 721 | { 722 | "city": "哈密", 723 | "id": 652200 724 | }, 725 | { 726 | "city": "和田", 727 | "id": 653200 728 | }, 729 | { 730 | "city": "花莲", 731 | "id": 712600 732 | } 733 | ] 734 | }] 735 | }, 736 | { 737 | "key": "I", 738 | "data": [{ 739 | "citys": [] 740 | }] 741 | }, 742 | { 743 | "key": "J", 744 | "data": [{ 745 | "citys":[ 746 | { 747 | "city": "晋城", 748 | "id": 140500 749 | }, 750 | { 751 | "city": "晋中", 752 | "id": 140700 753 | }, 754 | { 755 | "city": "锦州", 756 | "id": 210700 757 | }, 758 | { 759 | "city": "吉林", 760 | "id": 220200 761 | }, 762 | { 763 | "city": "鸡西", 764 | "id": 230300 765 | }, 766 | { 767 | "city": "佳木斯", 768 | "id": 230800 769 | }, 770 | { 771 | "city": "嘉兴", 772 | "id": 330400 773 | }, 774 | { 775 | "city": "金华", 776 | "id": 330700 777 | }, 778 | { 779 | "city": "景德镇", 780 | "id": 360200 781 | }, 782 | { 783 | "city": "九江", 784 | "id": 360400 785 | }, 786 | { 787 | "city": "吉安", 788 | "id": 360800 789 | }, 790 | { 791 | "city": "济南", 792 | "id": 370100 793 | }, 794 | { 795 | "city": "济宁", 796 | "id": 370800 797 | }, 798 | { 799 | "city": "焦作", 800 | "id": 410800 801 | }, 802 | { 803 | "city": "济源", 804 | "id": 410881 805 | }, 806 | { 807 | "city": "荆门", 808 | "id": 420800 809 | }, 810 | { 811 | "city": "荆州", 812 | "id": 421000 813 | }, 814 | { 815 | "city": "江门", 816 | "id": 440700 817 | }, 818 | { 819 | "city": "揭阳", 820 | "id": 445200 821 | }, 822 | { 823 | "city": "嘉峪关", 824 | "id": 620200 825 | }, 826 | { 827 | "city": "金昌", 828 | "id": 620300 829 | }, 830 | { 831 | "city": "酒泉", 832 | "id": 620900 833 | }, 834 | { 835 | "city": "金门", 836 | "id": 710500 837 | }, 838 | { 839 | "city": "基隆", 840 | "id": 710700 841 | }, 842 | { 843 | "city": "嘉义", 844 | "id": 710900 845 | }, 846 | { 847 | "city": "嘉义", 848 | "id": 711900 849 | }, 850 | { 851 | "city": "九龙", 852 | "id": 810200 853 | } 854 | ] 855 | }] 856 | }, 857 | { 858 | "key": "K", 859 | "data": [{ 860 | "citys": [ 861 | { 862 | "city": "开封", 863 | "id": 410200 864 | }, 865 | { 866 | "city": "昆明", 867 | "id": 530100 868 | }, 869 | { 870 | "city": "克拉玛依", 871 | "id": 650200 872 | }, 873 | { 874 | "city": "克孜勒苏", 875 | "id": 653000 876 | }, 877 | { 878 | "city": "喀什", 879 | "id": 653100 880 | } 881 | ] 882 | }] 883 | }, 884 | { 885 | "key": "L", 886 | "data": [{ 887 | "citys": [ 888 | { 889 | "city": "廊坊", 890 | "id": 131000 891 | }, 892 | { 893 | "city": "临汾", 894 | "id": 141000 895 | }, 896 | { 897 | "city": "吕梁", 898 | "id": 141100 899 | }, 900 | { 901 | "city": "辽阳", 902 | "id": 211000 903 | }, 904 | { 905 | "city": "辽源", 906 | "id": 220400 907 | }, 908 | { 909 | "city": "连云港", 910 | "id": 320700 911 | }, 912 | { 913 | "city": "丽水", 914 | "id": 331100 915 | }, 916 | { 917 | "city": "六安", 918 | "id": 341500 919 | }, 920 | { 921 | "city": "龙岩", 922 | "id": 350800 923 | }, 924 | { 925 | "city": "莱芜", 926 | "id": 371200 927 | }, 928 | { 929 | "city": "临沂", 930 | "id": 371300 931 | }, 932 | { 933 | "city": "聊城", 934 | "id": 371500 935 | }, 936 | { 937 | "city": "洛阳", 938 | "id": 410300 939 | }, 940 | { 941 | "city": "漯河", 942 | "id": 411100 943 | }, 944 | { 945 | "city": "娄底", 946 | "id": 431300 947 | }, 948 | { 949 | "city": "柳州", 950 | "id": 450200 951 | }, 952 | { 953 | "city": "来宾", 954 | "id": 451300 955 | }, 956 | { 957 | "city": "临高", 958 | "id": 469028 959 | }, 960 | { 961 | "city": "乐东", 962 | "id": 469033 963 | }, 964 | { 965 | "city": "陵水", 966 | "id": 469034 967 | }, 968 | { 969 | "city": "泸州", 970 | "id": 510500 971 | }, 972 | { 973 | "city": "乐山", 974 | "id": 511100 975 | }, 976 | { 977 | "city": "凉山", 978 | "id": 513400 979 | }, 980 | { 981 | "city": "六盘水", 982 | "id": 520200 983 | }, 984 | { 985 | "city": "丽江", 986 | "id": 530700 987 | }, 988 | { 989 | "city": "临沧", 990 | "id": 530900 991 | }, 992 | { 993 | "city": "拉萨", 994 | "id": 540100 995 | }, 996 | { 997 | "city": "林芝", 998 | "id": 542600 999 | }, 1000 | { 1001 | "city": "兰州", 1002 | "id": 620100 1003 | }, 1004 | { 1005 | "city": "陇南", 1006 | "id": 621200 1007 | }, 1008 | { 1009 | "city": "临夏", 1010 | "id": 622900 1011 | }, 1012 | { 1013 | "city": "连江", 1014 | "id": 712800 1015 | } 1016 | ] 1017 | }] 1018 | }, 1019 | { 1020 | "key": "M", 1021 | "data": [{ 1022 | "citys": [ 1023 | { 1024 | "city": "牡丹江", 1025 | "id": 231000 1026 | }, 1027 | { 1028 | "city": "马鞍山", 1029 | "id": 340500 1030 | }, 1031 | { 1032 | "city": "茂名", 1033 | "id": 440900 1034 | }, 1035 | { 1036 | "city": "梅州", 1037 | "id": 441400 1038 | }, 1039 | { 1040 | "city": "绵阳", 1041 | "id": 510700 1042 | }, 1043 | { 1044 | "city": "眉山", 1045 | "id": 511400 1046 | }, 1047 | { 1048 | "city": "苗栗", 1049 | "id": 711500 1050 | } 1051 | ] 1052 | }] 1053 | }, 1054 | { 1055 | "key": "N", 1056 | "data": [{ 1057 | "citys": [ 1058 | { 1059 | "city": "南京", 1060 | "id": 320100 1061 | }, 1062 | { 1063 | "city": "南通", 1064 | "id": 320600 1065 | }, 1066 | { 1067 | "city": "宁波", 1068 | "id": 330200 1069 | }, 1070 | { 1071 | "city": "南平", 1072 | "id": 350700 1073 | }, 1074 | { 1075 | "city": "宁德", 1076 | "id": 350900 1077 | }, 1078 | { 1079 | "city": "南昌", 1080 | "id": 360100 1081 | }, 1082 | { 1083 | "city": "南阳", 1084 | "id": 411300 1085 | }, 1086 | { 1087 | "city": "南宁", 1088 | "id": 450100 1089 | }, 1090 | { 1091 | "city": "内江", 1092 | "id": 511000 1093 | }, 1094 | { 1095 | "city": "南充", 1096 | "id": 511300 1097 | }, 1098 | { 1099 | "city": "怒江", 1100 | "id": 533300 1101 | }, 1102 | { 1103 | "city": "那曲", 1104 | "id": 542400 1105 | }, 1106 | { 1107 | "city": "南投", 1108 | "id": 710600 1109 | } 1110 | ] 1111 | }] 1112 | }, 1113 | { 1114 | "key": "O", 1115 | "data": [{ 1116 | "citys": [] 1117 | }] 1118 | }, 1119 | { 1120 | "key": "P", 1121 | "data": [{ 1122 | "citys": [ 1123 | { 1124 | "city": "盘锦", 1125 | "id": 211100 1126 | }, 1127 | { 1128 | "city": "莆田", 1129 | "id": 350300 1130 | }, 1131 | { 1132 | "city": "萍乡", 1133 | "id": 360300 1134 | }, 1135 | { 1136 | "city": "平顶山", 1137 | "id": 410400 1138 | }, 1139 | { 1140 | "city": "濮阳", 1141 | "id": 410900 1142 | }, 1143 | { 1144 | "city": "攀枝花", 1145 | "id": 510400 1146 | }, 1147 | { 1148 | "city": "普洱", 1149 | "id": 530800 1150 | }, 1151 | { 1152 | "city": "平凉", 1153 | "id": 620800 1154 | }, 1155 | { 1156 | "city": "屏东", 1157 | "id": 712400 1158 | }, 1159 | { 1160 | "city": "澎湖", 1161 | "id": 712700 1162 | } 1163 | ] 1164 | }] 1165 | }, 1166 | { 1167 | "key": "Q", 1168 | "data": [{ 1169 | "citys": [ 1170 | { 1171 | "city": "秦皇岛", 1172 | "id": 130300 1173 | }, 1174 | { 1175 | "city": "齐齐哈尔", 1176 | "id": 230200 1177 | }, 1178 | { 1179 | "city": "七台河", 1180 | "id": 230900 1181 | }, 1182 | { 1183 | "city": "衢州", 1184 | "id": 330800 1185 | }, 1186 | { 1187 | "city": "泉州", 1188 | "id": 350500 1189 | }, 1190 | { 1191 | "city": "青岛", 1192 | "id": 370200 1193 | }, 1194 | { 1195 | "city": "潜江", 1196 | "id": 429005 1197 | }, 1198 | { 1199 | "city": "清远", 1200 | "id": 441800 1201 | }, 1202 | { 1203 | "city": "钦州", 1204 | "id": 450700 1205 | }, 1206 | { 1207 | "city": "琼海", 1208 | "id": 469002 1209 | }, 1210 | { 1211 | "city": "琼中", 1212 | "id": 469036 1213 | }, 1214 | { 1215 | "city": "黔西南", 1216 | "id": 522300 1217 | }, 1218 | { 1219 | "city": "黔东南", 1220 | "id": 522600 1221 | }, 1222 | { 1223 | "city": "黔南", 1224 | "id": 522700 1225 | }, 1226 | { 1227 | "city": "曲靖", 1228 | "id": 530300 1229 | }, 1230 | { 1231 | "city": "庆阳", 1232 | "id": 621000 1233 | } 1234 | ] 1235 | }] 1236 | }, 1237 | { 1238 | "key": "R", 1239 | "data": [{ 1240 | "citys": [ 1241 | { 1242 | "city": "日照", 1243 | "id": 371100 1244 | }, 1245 | { 1246 | "city": "日喀则", 1247 | "id": 542300 1248 | } 1249 | ] 1250 | }] 1251 | }, 1252 | { 1253 | "key": "S", 1254 | "data": [{ 1255 | "citys": [ 1256 | { 1257 | "city": "石家庄", 1258 | "id": 130100 1259 | }, 1260 | { 1261 | "city": "朔州", 1262 | "id": 140600 1263 | }, 1264 | { 1265 | "city": "沈阳", 1266 | "id": 210100 1267 | }, 1268 | { 1269 | "city": "四平", 1270 | "id": 220300 1271 | }, 1272 | { 1273 | "city": "松原", 1274 | "id": 220700 1275 | }, 1276 | { 1277 | "city": "双鸭山", 1278 | "id": 230500 1279 | }, 1280 | { 1281 | "city": "绥化", 1282 | "id": 231200 1283 | }, 1284 | { 1285 | "city": "上海", 1286 | "id": 310100 1287 | }, 1288 | { 1289 | "city": "苏州", 1290 | "id": 320500 1291 | }, 1292 | { 1293 | "city": "宿迁", 1294 | "id": 321300 1295 | }, 1296 | { 1297 | "city": "绍兴", 1298 | "id": 330600 1299 | }, 1300 | { 1301 | "city": "宿州", 1302 | "id": 341300 1303 | }, 1304 | { 1305 | "city": "三明", 1306 | "id": 350400 1307 | }, 1308 | { 1309 | "city": "上饶", 1310 | "id": 361100 1311 | }, 1312 | { 1313 | "city": "三门峡", 1314 | "id": 411200 1315 | }, 1316 | { 1317 | "city": "商丘", 1318 | "id": 411400 1319 | }, 1320 | { 1321 | "city": "十堰", 1322 | "id": 420300 1323 | }, 1324 | { 1325 | "city": "随州", 1326 | "id": 421300 1327 | }, 1328 | { 1329 | "city": "神农架林区", 1330 | "id": 429021 1331 | }, 1332 | { 1333 | "city": "邵阳", 1334 | "id": 430500 1335 | }, 1336 | { 1337 | "city": "韶关", 1338 | "id": 440200 1339 | }, 1340 | { 1341 | "city": "深圳", 1342 | "id": 440300 1343 | }, 1344 | { 1345 | "city": "汕头", 1346 | "id": 440500 1347 | }, 1348 | { 1349 | "city": "汕尾", 1350 | "id": 441500 1351 | }, 1352 | { 1353 | "city": "三亚", 1354 | "id": 460200 1355 | }, 1356 | { 1357 | "city": "三沙", 1358 | "id": 460300 1359 | }, 1360 | { 1361 | "city": "遂宁", 1362 | "id": 510900 1363 | }, 1364 | { 1365 | "city": "山南", 1366 | "id": 542200 1367 | }, 1368 | { 1369 | "city": "商洛", 1370 | "id": 611000 1371 | }, 1372 | { 1373 | "city": "石嘴山", 1374 | "id": 640200 1375 | }, 1376 | { 1377 | "city": "石河子", 1378 | "id": 659001 1379 | } 1380 | ] 1381 | }] 1382 | }, 1383 | { 1384 | "key": "T", 1385 | "data": [{ 1386 | "citys": [ 1387 | { 1388 | "city": "天津", 1389 | "id": 120100 1390 | }, 1391 | { 1392 | "city": "唐山", 1393 | "id": 130200 1394 | }, 1395 | { 1396 | "city": "太原", 1397 | "id": 140100 1398 | }, 1399 | { 1400 | "city": "通辽", 1401 | "id": 150500 1402 | }, 1403 | { 1404 | "city": "铁岭", 1405 | "id": 211200 1406 | }, 1407 | { 1408 | "city": "通化", 1409 | "id": 220500 1410 | }, 1411 | { 1412 | "city": "泰州", 1413 | "id": 321200 1414 | }, 1415 | { 1416 | "city": "台州", 1417 | "id": 331000 1418 | }, 1419 | { 1420 | "city": "铜陵", 1421 | "id": 340700 1422 | }, 1423 | { 1424 | "city": "泰安", 1425 | "id": 370900 1426 | }, 1427 | { 1428 | "city": "天门", 1429 | "id": 429006 1430 | }, 1431 | { 1432 | "city": "屯昌", 1433 | "id": 469026 1434 | }, 1435 | { 1436 | "city": "铜仁", 1437 | "id": 522200 1438 | }, 1439 | { 1440 | "city": "铜川", 1441 | "id": 610200 1442 | }, 1443 | { 1444 | "city": "天水", 1445 | "id": 620500 1446 | }, 1447 | { 1448 | "city": "吐鲁番", 1449 | "id": 652100 1450 | }, 1451 | { 1452 | "city": "塔城", 1453 | "id": 654200 1454 | }, 1455 | { 1456 | "city": "图木舒克", 1457 | "id": 659003 1458 | }, 1459 | { 1460 | "city": "台北", 1461 | "id": 710100 1462 | }, 1463 | { 1464 | "city": "台南", 1465 | "id": 710300 1466 | }, 1467 | { 1468 | "city": "台中", 1469 | "id": 710400 1470 | }, 1471 | { 1472 | "city": "桃园", 1473 | "id": 711400 1474 | }, 1475 | { 1476 | "city": "台东", 1477 | "id": 712500 1478 | } 1479 | ] 1480 | }] 1481 | }, 1482 | { 1483 | "key": "W", 1484 | "data": [{ 1485 | "citys": [ 1486 | { 1487 | "city": "乌海", 1488 | "id": 150300 1489 | }, 1490 | { 1491 | "city": "乌兰察布", 1492 | "id": 150900 1493 | }, 1494 | { 1495 | "city": "无锡", 1496 | "id": 320200 1497 | }, 1498 | { 1499 | "city": "温州", 1500 | "id": 330300 1501 | }, 1502 | { 1503 | "city": "芜湖", 1504 | "id": 340200 1505 | }, 1506 | { 1507 | "city": "潍坊", 1508 | "id": 370700 1509 | }, 1510 | { 1511 | "city": "威海", 1512 | "id": 371000 1513 | }, 1514 | { 1515 | "city": "武汉", 1516 | "id": 420100 1517 | }, 1518 | { 1519 | "city": "梧州", 1520 | "id": 450400 1521 | }, 1522 | { 1523 | "city": "五指山", 1524 | "id": 469001 1525 | }, 1526 | { 1527 | "city": "文昌", 1528 | "id": 469005 1529 | }, 1530 | { 1531 | "city": "万宁", 1532 | "id": 469006 1533 | }, 1534 | { 1535 | "city": "文山", 1536 | "id": 532600 1537 | }, 1538 | { 1539 | "city": "渭南", 1540 | "id": 610500 1541 | }, 1542 | { 1543 | "city": "武威", 1544 | "id": 620600 1545 | }, 1546 | { 1547 | "city": "吴忠", 1548 | "id": 640300 1549 | }, 1550 | { 1551 | "city": "乌鲁木齐", 1552 | "id": 650100 1553 | }, 1554 | { 1555 | "city": "五家渠", 1556 | "id": 659004 1557 | } 1558 | ] 1559 | }] 1560 | }, 1561 | { 1562 | "key": "X", 1563 | "data": [{ 1564 | "citys": [ 1565 | { 1566 | "city": "邢台", 1567 | "id": 130500 1568 | }, 1569 | { 1570 | "city": "忻州", 1571 | "id": 140900 1572 | }, 1573 | { 1574 | "city": "兴安盟", 1575 | "id": 152200 1576 | }, 1577 | { 1578 | "city": "锡林郭勒盟", 1579 | "id": 152500 1580 | }, 1581 | { 1582 | "city": "徐州", 1583 | "id": 320300 1584 | }, 1585 | { 1586 | "city": "宣城", 1587 | "id": 341800 1588 | }, 1589 | { 1590 | "city": "厦门", 1591 | "id": 350200 1592 | }, 1593 | { 1594 | "city": "新余", 1595 | "id": 360500 1596 | }, 1597 | { 1598 | "city": "新乡", 1599 | "id": 410700 1600 | }, 1601 | { 1602 | "city": "许昌", 1603 | "id": 411000 1604 | }, 1605 | { 1606 | "city": "信阳", 1607 | "id": 411500 1608 | }, 1609 | { 1610 | "city": "襄阳", 1611 | "id": 420600 1612 | }, 1613 | { 1614 | "city": "孝感", 1615 | "id": 420900 1616 | }, 1617 | { 1618 | "city": "咸宁", 1619 | "id": 421200 1620 | }, 1621 | { 1622 | "city": "仙桃", 1623 | "id": 429004 1624 | }, 1625 | { 1626 | "city": "湘潭", 1627 | "id": 430300 1628 | }, 1629 | { 1630 | "city": "湘西", 1631 | "id": 433100 1632 | }, 1633 | { 1634 | "city": "西双版纳", 1635 | "id": 532800 1636 | }, 1637 | { 1638 | "city": "西安", 1639 | "id": 610100 1640 | }, 1641 | { 1642 | "city": "咸阳", 1643 | "id": 610400 1644 | }, 1645 | { 1646 | "city": "西宁", 1647 | "id": 630100 1648 | }, 1649 | { 1650 | "city": "新竹", 1651 | "id": 710800 1652 | }, 1653 | { 1654 | "city": "新北", 1655 | "id": 711100 1656 | }, 1657 | { 1658 | "city": "新竹", 1659 | "id": 711300 1660 | }, 1661 | { 1662 | "city": "香港", 1663 | "id": 810100 1664 | }, 1665 | { 1666 | "city": "新界", 1667 | "id": 810300 1668 | } 1669 | ] 1670 | }] 1671 | }, 1672 | { 1673 | "key": "Y", 1674 | "data": [{ 1675 | "citys": [ 1676 | { 1677 | "city": "阳泉", 1678 | "id": 140300 1679 | }, 1680 | { 1681 | "city": "运城", 1682 | "id": 140800 1683 | }, 1684 | { 1685 | "city": "营口", 1686 | "id": 210800 1687 | }, 1688 | { 1689 | "city": "延边", 1690 | "id": 222400 1691 | }, 1692 | { 1693 | "city": "伊春", 1694 | "id": 230700 1695 | }, 1696 | { 1697 | "city": "盐城", 1698 | "id": 320900 1699 | }, 1700 | { 1701 | "city": "扬州", 1702 | "id": 321000 1703 | }, 1704 | { 1705 | "city": "鹰潭", 1706 | "id": 360600 1707 | }, 1708 | { 1709 | "city": "宜春", 1710 | "id": 360900 1711 | }, 1712 | { 1713 | "city": "烟台", 1714 | "id": 370600 1715 | }, 1716 | { 1717 | "city": "宜昌", 1718 | "id": 420500 1719 | }, 1720 | { 1721 | "city": "岳阳", 1722 | "id": 430600 1723 | }, 1724 | { 1725 | "city": "益阳", 1726 | "id": 430900 1727 | }, 1728 | { 1729 | "city": "永州", 1730 | "id": 431100 1731 | }, 1732 | { 1733 | "city": "阳江", 1734 | "id": 441700 1735 | }, 1736 | { 1737 | "city": "云浮", 1738 | "id": 445300 1739 | }, 1740 | { 1741 | "city": "玉林", 1742 | "id": 450900 1743 | }, 1744 | { 1745 | "city": "宜宾", 1746 | "id": 511500 1747 | }, 1748 | { 1749 | "city": "雅安", 1750 | "id": 511800 1751 | }, 1752 | { 1753 | "city": "玉溪", 1754 | "id": 530400 1755 | }, 1756 | { 1757 | "city": "延安", 1758 | "id": 610600 1759 | }, 1760 | { 1761 | "city": "榆林", 1762 | "id": 610800 1763 | }, 1764 | { 1765 | "city": "玉树", 1766 | "id": 632700 1767 | }, 1768 | { 1769 | "city": "银川", 1770 | "id": 640100 1771 | }, 1772 | { 1773 | "city": "伊犁", 1774 | "id": 654000 1775 | }, 1776 | { 1777 | "city": "宜兰", 1778 | "id": 711200 1779 | }, 1780 | { 1781 | "city": "云林", 1782 | "id": 712100 1783 | } 1784 | ] 1785 | }] 1786 | }, 1787 | { 1788 | "key": "Z", 1789 | "data": [{ 1790 | "citys": [ 1791 | { 1792 | "city": "张家口", 1793 | "id": 130700 1794 | }, 1795 | { 1796 | "city": "镇江", 1797 | "id": 321100 1798 | }, 1799 | { 1800 | "city": "舟山", 1801 | "id": 330900 1802 | }, 1803 | { 1804 | "city": "漳州", 1805 | "id": 350600 1806 | }, 1807 | { 1808 | "city": "淄博", 1809 | "id": 370300 1810 | }, 1811 | { 1812 | "city": "枣庄", 1813 | "id": 370400 1814 | }, 1815 | { 1816 | "city": "郑州", 1817 | "id": 410100 1818 | }, 1819 | { 1820 | "city": "周口", 1821 | "id": 411600 1822 | }, 1823 | { 1824 | "city": "驻马店", 1825 | "id": 411700 1826 | }, 1827 | { 1828 | "city": "株洲", 1829 | "id": 430200 1830 | }, 1831 | { 1832 | "city": "张家界", 1833 | "id": 430800 1834 | }, 1835 | { 1836 | "city": "珠海", 1837 | "id": 440400 1838 | }, 1839 | { 1840 | "city": "湛江", 1841 | "id": 440800 1842 | }, 1843 | { 1844 | "city": "肇庆", 1845 | "id": 441200 1846 | }, 1847 | { 1848 | "city": "中山", 1849 | "id": 442000 1850 | }, 1851 | { 1852 | "city": "自贡", 1853 | "id": 510300 1854 | }, 1855 | { 1856 | "city": "资阳", 1857 | "id": 512000 1858 | }, 1859 | { 1860 | "city": "遵义", 1861 | "id": 520300 1862 | }, 1863 | { 1864 | "city": "昭通", 1865 | "id": 530600 1866 | }, 1867 | { 1868 | "city": "张掖", 1869 | "id": 620700 1870 | }, 1871 | { 1872 | "city": "中卫", 1873 | "id": 640500 1874 | }, 1875 | { 1876 | "city": "彰化", 1877 | "id": 711700 1878 | } 1879 | ] 1880 | }] 1881 | } 1882 | 1883 | ] 1884 | 1885 | 1886 | -------------------------------------------------------------------------------- /city.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import { 3 | View, 4 | Text, 5 | StyleSheet, 6 | Image, 7 | TouchableOpacity, 8 | SectionList, 9 | Dimensions, 10 | FlatList, 11 | StatusBar, 12 | ScrollView, 13 | } from "react-native" 14 | import cityData from './city-data' 15 | 16 | 17 | const {width, height} = Dimensions.get('window'); 18 | const touchDownBGColor = '#999999'; 19 | const touchUpBGColor = 'transparent'; 20 | const statusHeight = StatusBar.currentHeight; 21 | const headerHeight = 40;//标题栏高度 22 | const sectionWidth = 24;//右边导航栏宽度 23 | const sectionTopBottomHeight = 50;//上下边距 24 | const selectWidth = 80;//中间的字母的背景宽高 25 | //每个索引的高度 26 | const sectionItemHeight = (height - statusHeight - sectionTopBottomHeight * 2 - headerHeight) / 25; 27 | 28 | class CitySelect extends Component { 29 | constructor(props) { 30 | super(props); 31 | this.state = { 32 | sections: [], 33 | isTouchDown: false,//触摸事件开始,类型android的onTouchDown 34 | canTouch: false,//等待界面渲染完,不然会报错 35 | selectText: ''//当前选择的字母 36 | }; 37 | this.responderGrant = this.responderGrant.bind(this); 38 | this.responderMove = this.responderMove.bind(this); 39 | this.responderRelease = this.responderRelease.bind(this); 40 | this.scrollSectionList = this.scrollSectionList.bind(this); 41 | 42 | } 43 | 44 | componentDidMount() { 45 | this.setCurrentLocation('深圳'); 46 | setTimeout(() => { 47 | this.setState({ 48 | sections: cityData, 49 | }); 50 | }, 100); 51 | setTimeout(() => { 52 | this.setState({ 53 | canTouch: true 54 | }) 55 | }, 1600) 56 | } 57 | 58 | /** 59 | * 设置当前位置 60 | */ 61 | setCurrentLocation(city) { 62 | cityData[0].data[0].citys[0].city = city; 63 | } 64 | 65 | render() { 66 | let sectionView = null 67 | if (this.state.canTouch) { 68 | sectionView = this.sectionItemView() 69 | } 70 | let sectionTextView = null 71 | if (this.state.isTouchDown) { 72 | sectionTextView = 73 | 74 | {this.state.selectText} 75 | 76 | } 77 | return ( 78 | 79 | 80 | { 82 | this.props.navigation.pop() 83 | }}> 84 | 86 | 87 | 城市选择 88 | 89 | 90 | 91 | 100 | {sectionView} 101 | {sectionTextView} 102 | 103 | 104 | ); 105 | } 106 | 107 | /*用户手指开始触摸*/ 108 | responderGrant(event) { 109 | this.scrollSectionList(event); 110 | this.setState({ 111 | isTouchDown: true, 112 | }) 113 | } 114 | 115 | /*用户手指在屏幕上移动手指,没有停下也没有离开*/ 116 | responderMove(event) { 117 | console.log("responderMove") 118 | this.scrollSectionList(event); 119 | this.setState({ 120 | isTouchDown: true, 121 | }) 122 | } 123 | 124 | /*用户手指离开屏幕*/ 125 | responderRelease(event) { 126 | console.log("onTouchUp") 127 | this.setState({ 128 | isTouchDown: false, 129 | }) 130 | } 131 | 132 | /*手指滑动,触发事件*/ 133 | scrollSectionList(event) { 134 | const touch = event.nativeEvent.touches[0]; 135 | // 手指滑动范围 从 A-Q 范围从50 到 50 + sectionItemHeight * cities.length 136 | if (touch.pageY >= sectionTopBottomHeight+headerHeight+statusHeight 137 | && touch.pageY <= statusHeight +headerHeight+sectionTopBottomHeight + sectionItemHeight * 25 138 | && touch.pageX >= width - sectionWidth 139 | && touch.pageX <= width 140 | ) { 141 | console.log("touchx" + touch.pageX + '.=======touchY' + touch.pageY) 142 | const index = (touch.pageY - sectionTopBottomHeight - headerHeight) / sectionItemHeight; 143 | console.log("index" + index); 144 | if (Math.round(index)>=0&&Math.round(index)<=25){ 145 | this.setState({ 146 | selectText: this.state.sections[Math.round(index)].key 147 | }) 148 | //默认跳转到 第 index 个section 的第 1 个 item 149 | this.refs.sectionList.scrollToLocation({ 150 | animated: true, 151 | sectionIndex: Math.round(index), 152 | itemIndex: 0, 153 | viewOffset: headerHeight 154 | }); 155 | } 156 | 157 | } 158 | } 159 | 160 | /*右侧索引*/ 161 | sectionItemView() { 162 | const sectionItem = this.state.sections.map((item, index) => { 163 | if (index === 0) { 164 | return null 165 | } 166 | return 171 | {item.key} 172 | 173 | }); 174 | 175 | return ( 176 | true} // 在用户开始触摸的时候(手指刚刚接触屏幕的瞬间),是否愿意成为响应者? 179 | onMoveShouldSetResponder={() => true} // :如果View不是响应者,那么在每一个触摸点开始移动(没有停下也没有离开屏幕)时再询问一次:是否愿意响应触摸交互呢? 180 | onResponderTerminationRequest={() => true} 181 | onResponderGrant={this.responderGrant} // View现在要开始响应触摸事件了。这也是需要做高亮的时候,使用户知道他到底点到了哪里 182 | onResponderMove={this.responderMove} // 用户正在屏幕上移动手指时(没有停下也没有离开屏幕) 183 | onResponderRelease={this.responderRelease} // 触摸操作结束时触发,比如"touchUp"(手指抬起离开屏幕) 184 | > 185 | {sectionItem} 186 | 187 | 188 | ); 189 | } 190 | 191 | _extraUniqueKey(item, index) { 192 | return "index" + index + item; 193 | } 194 | 195 | _extraUniqueKey2(item, index) { 196 | return "index2" + index + item; 197 | } 198 | 199 | renderSectionHeader = (info) => { 200 | let section = info.section.key; 201 | if (section === '热') { 202 | section = "热门城市" 203 | } 204 | return ({section} 206 | ) 207 | }; 208 | 209 | renderItem = (info) => { 210 | return ( 211 | 212 | this._createItem(item)} 218 | keyExtractor={this._extraUniqueKey2} 219 | /> 220 | 221 | 222 | ) 223 | }; 224 | 225 | /** 226 | * 创建布局 227 | */ 228 | _createItem(item) { 229 | return ( 230 | 231 | {item.city} 232 | 233 | ); 234 | } 235 | 236 | /** 237 | * 每个城市的点击 238 | * @param item 239 | */ 240 | _itemClick(item) { 241 | console.log(item.city) 242 | } 243 | 244 | } 245 | 246 | export default CitySelect 247 | 248 | export const cityStyle = StyleSheet.create({ 249 | backIcon: { 250 | width: 25, 251 | height: 25, 252 | padding: 5, 253 | marginLeft: 10 254 | }, 255 | title: { 256 | padding: 5, 257 | flexDirection: 'row', 258 | height: headerHeight 259 | }, 260 | title_text: { 261 | flex: 1, 262 | textAlign: 'center', 263 | color: 'black', 264 | fontSize: 20, 265 | fontWeight: 'bold' 266 | }, 267 | itemStyle: { 268 | height: 60, 269 | textAlignVertical: 'center', 270 | backgroundColor: "#ffffff", 271 | color: '#5C5C5C', 272 | fontSize: 15 273 | }, 274 | sectionStyle: { 275 | height: 50, 276 | textAlignVertical: 'center', 277 | backgroundColor: '#F8F8F8', 278 | paddingLeft: 20, 279 | color: '#5C5C5C', 280 | fontSize: 16 281 | }, 282 | sectionItemViewStyle: { 283 | position: 'absolute', 284 | width: sectionWidth, 285 | height: height - statusHeight, 286 | right: 0, 287 | top: 0, 288 | paddingTop: sectionTopBottomHeight, 289 | paddingBottom: sectionTopBottomHeight, 290 | }, 291 | selectView: { 292 | position: 'absolute', 293 | width: selectWidth, 294 | height: selectWidth, 295 | right: width / 2 - selectWidth / 2, 296 | top: (height - headerHeight - statusHeight) / 2 - selectWidth / 2, 297 | backgroundColor: 'rgba(0,0,0,0.2)', 298 | alignItems: "center", 299 | justifyContent: 'center', 300 | borderRadius: 5 301 | }, 302 | selectTv: { 303 | fontSize: 32, 304 | color: '#FFFFFF' 305 | }, 306 | sectionItemStyle: { 307 | textAlign: 'center', 308 | alignItems: 'center', 309 | height: sectionItemHeight, 310 | lineHeight: sectionItemHeight 311 | }, 312 | cityItemTv: { 313 | color: 'black', 314 | fontSize: 14, 315 | width: width / 4, 316 | textAlign: 'center', 317 | padding: 10 318 | } 319 | } 320 | ); 321 | 322 | -------------------------------------------------------------------------------- /images/aa.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/images/aa.gif -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import {name as appName} from './app.json'; 7 | import CitySelect from "./city"; 8 | 9 | AppRegistry.registerComponent(appName, () => CitySelect); 10 | -------------------------------------------------------------------------------- /ios/CitySectionList-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/CitySectionList-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/CitySectionList.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 /* CitySectionListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CitySectionListTests.m */; }; 16 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 36 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 37 | 2DCD954D1E0B4F2C00145EB5 /* CitySectionListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CitySectionListTests.m */; }; 38 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 39 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 41 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; }; 42 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; }; 43 | /* End PBXBuildFile section */ 44 | 45 | /* Begin PBXContainerItemProxy section */ 46 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 47 | isa = PBXContainerItemProxy; 48 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 49 | proxyType = 2; 50 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 51 | remoteInfo = RCTActionSheet; 52 | }; 53 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 54 | isa = PBXContainerItemProxy; 55 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 56 | proxyType = 2; 57 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 58 | remoteInfo = RCTGeolocation; 59 | }; 60 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 61 | isa = PBXContainerItemProxy; 62 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 63 | proxyType = 2; 64 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 65 | remoteInfo = RCTImage; 66 | }; 67 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 68 | isa = PBXContainerItemProxy; 69 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 70 | proxyType = 2; 71 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 72 | remoteInfo = RCTNetwork; 73 | }; 74 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 75 | isa = PBXContainerItemProxy; 76 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 77 | proxyType = 2; 78 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 79 | remoteInfo = RCTVibration; 80 | }; 81 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 82 | isa = PBXContainerItemProxy; 83 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 84 | proxyType = 1; 85 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 86 | remoteInfo = CitySectionList; 87 | }; 88 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 89 | isa = PBXContainerItemProxy; 90 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 91 | proxyType = 2; 92 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 93 | remoteInfo = RCTSettings; 94 | }; 95 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 96 | isa = PBXContainerItemProxy; 97 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 98 | proxyType = 2; 99 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 100 | remoteInfo = RCTWebSocket; 101 | }; 102 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 103 | isa = PBXContainerItemProxy; 104 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 105 | proxyType = 2; 106 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 107 | remoteInfo = React; 108 | }; 109 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 110 | isa = PBXContainerItemProxy; 111 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 112 | proxyType = 1; 113 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 114 | remoteInfo = "CitySectionList-tvOS"; 115 | }; 116 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 117 | isa = PBXContainerItemProxy; 118 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 119 | proxyType = 2; 120 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 121 | remoteInfo = "RCTBlob-tvOS"; 122 | }; 123 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 124 | isa = PBXContainerItemProxy; 125 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 126 | proxyType = 2; 127 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 128 | remoteInfo = fishhook; 129 | }; 130 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 131 | isa = PBXContainerItemProxy; 132 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 133 | proxyType = 2; 134 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 135 | remoteInfo = "fishhook-tvOS"; 136 | }; 137 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 138 | isa = PBXContainerItemProxy; 139 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 140 | proxyType = 2; 141 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 142 | remoteInfo = jsinspector; 143 | }; 144 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 145 | isa = PBXContainerItemProxy; 146 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 147 | proxyType = 2; 148 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 149 | remoteInfo = "jsinspector-tvOS"; 150 | }; 151 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 152 | isa = PBXContainerItemProxy; 153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 154 | proxyType = 2; 155 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 156 | remoteInfo = "third-party"; 157 | }; 158 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 159 | isa = PBXContainerItemProxy; 160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 161 | proxyType = 2; 162 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 163 | remoteInfo = "third-party-tvOS"; 164 | }; 165 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 166 | isa = PBXContainerItemProxy; 167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 168 | proxyType = 2; 169 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 170 | remoteInfo = "double-conversion"; 171 | }; 172 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 173 | isa = PBXContainerItemProxy; 174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 175 | proxyType = 2; 176 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 177 | remoteInfo = "double-conversion-tvOS"; 178 | }; 179 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = { 180 | isa = PBXContainerItemProxy; 181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 182 | proxyType = 2; 183 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 184 | remoteInfo = privatedata; 185 | }; 186 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = { 187 | isa = PBXContainerItemProxy; 188 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 189 | proxyType = 2; 190 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 191 | remoteInfo = "privatedata-tvOS"; 192 | }; 193 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 194 | isa = PBXContainerItemProxy; 195 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 196 | proxyType = 2; 197 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 198 | remoteInfo = "RCTImage-tvOS"; 199 | }; 200 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 201 | isa = PBXContainerItemProxy; 202 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 203 | proxyType = 2; 204 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 205 | remoteInfo = "RCTLinking-tvOS"; 206 | }; 207 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 208 | isa = PBXContainerItemProxy; 209 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 210 | proxyType = 2; 211 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 212 | remoteInfo = "RCTNetwork-tvOS"; 213 | }; 214 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 215 | isa = PBXContainerItemProxy; 216 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 217 | proxyType = 2; 218 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 219 | remoteInfo = "RCTSettings-tvOS"; 220 | }; 221 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 222 | isa = PBXContainerItemProxy; 223 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 224 | proxyType = 2; 225 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 226 | remoteInfo = "RCTText-tvOS"; 227 | }; 228 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 229 | isa = PBXContainerItemProxy; 230 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 231 | proxyType = 2; 232 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 233 | remoteInfo = "RCTWebSocket-tvOS"; 234 | }; 235 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 236 | isa = PBXContainerItemProxy; 237 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 238 | proxyType = 2; 239 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 240 | remoteInfo = "React-tvOS"; 241 | }; 242 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 243 | isa = PBXContainerItemProxy; 244 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 245 | proxyType = 2; 246 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 247 | remoteInfo = yoga; 248 | }; 249 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 250 | isa = PBXContainerItemProxy; 251 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 252 | proxyType = 2; 253 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 254 | remoteInfo = "yoga-tvOS"; 255 | }; 256 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 257 | isa = PBXContainerItemProxy; 258 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 259 | proxyType = 2; 260 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 261 | remoteInfo = cxxreact; 262 | }; 263 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 264 | isa = PBXContainerItemProxy; 265 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 266 | proxyType = 2; 267 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 268 | remoteInfo = "cxxreact-tvOS"; 269 | }; 270 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 271 | isa = PBXContainerItemProxy; 272 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 273 | proxyType = 2; 274 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 275 | remoteInfo = jschelpers; 276 | }; 277 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 278 | isa = PBXContainerItemProxy; 279 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 280 | proxyType = 2; 281 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 282 | remoteInfo = "jschelpers-tvOS"; 283 | }; 284 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 285 | isa = PBXContainerItemProxy; 286 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 287 | proxyType = 2; 288 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 289 | remoteInfo = RCTAnimation; 290 | }; 291 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 292 | isa = PBXContainerItemProxy; 293 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 294 | proxyType = 2; 295 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 296 | remoteInfo = "RCTAnimation-tvOS"; 297 | }; 298 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 299 | isa = PBXContainerItemProxy; 300 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 301 | proxyType = 2; 302 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 303 | remoteInfo = RCTLinking; 304 | }; 305 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 306 | isa = PBXContainerItemProxy; 307 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 308 | proxyType = 2; 309 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 310 | remoteInfo = RCTText; 311 | }; 312 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 313 | isa = PBXContainerItemProxy; 314 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 315 | proxyType = 2; 316 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 317 | remoteInfo = RCTBlob; 318 | }; 319 | /* End PBXContainerItemProxy section */ 320 | 321 | /* Begin PBXFileReference section */ 322 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 323 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 324 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 325 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 326 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 327 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 328 | 00E356EE1AD99517003FC87E /* CitySectionListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CitySectionListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 329 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 330 | 00E356F21AD99517003FC87E /* CitySectionListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CitySectionListTests.m; sourceTree = ""; }; 331 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 332 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 333 | 13B07F961A680F5B00A75B9A /* CitySectionList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CitySectionList.app; sourceTree = BUILT_PRODUCTS_DIR; }; 334 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = CitySectionList/AppDelegate.h; sourceTree = ""; }; 335 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = CitySectionList/AppDelegate.m; sourceTree = ""; }; 336 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 337 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = CitySectionList/Images.xcassets; sourceTree = ""; }; 338 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = CitySectionList/Info.plist; sourceTree = ""; }; 339 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = CitySectionList/main.m; sourceTree = ""; }; 340 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 341 | 2D02E47B1E0B4A5D006451C7 /* CitySectionList-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CitySectionList-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 342 | 2D02E4901E0B4A5D006451C7 /* CitySectionList-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "CitySectionList-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 343 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 344 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 345 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 346 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 347 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 348 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 349 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 350 | /* End PBXFileReference section */ 351 | 352 | /* Begin PBXFrameworksBuildPhase section */ 353 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 354 | isa = PBXFrameworksBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | }; 361 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 362 | isa = PBXFrameworksBuildPhase; 363 | buildActionMask = 2147483647; 364 | files = ( 365 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */, 366 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 367 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 368 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 369 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 370 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 371 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 372 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 373 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 374 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 375 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 376 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 377 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 382 | isa = PBXFrameworksBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */, 386 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 387 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 388 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 389 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 390 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 391 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 392 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 393 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 394 | ); 395 | runOnlyForDeploymentPostprocessing = 0; 396 | }; 397 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 398 | isa = PBXFrameworksBuildPhase; 399 | buildActionMask = 2147483647; 400 | files = ( 401 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 402 | ); 403 | runOnlyForDeploymentPostprocessing = 0; 404 | }; 405 | /* End PBXFrameworksBuildPhase section */ 406 | 407 | /* Begin PBXGroup section */ 408 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 409 | isa = PBXGroup; 410 | children = ( 411 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 412 | ); 413 | name = Products; 414 | sourceTree = ""; 415 | }; 416 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 417 | isa = PBXGroup; 418 | children = ( 419 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 420 | ); 421 | name = Products; 422 | sourceTree = ""; 423 | }; 424 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 425 | isa = PBXGroup; 426 | children = ( 427 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 428 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 429 | ); 430 | name = Products; 431 | sourceTree = ""; 432 | }; 433 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 434 | isa = PBXGroup; 435 | children = ( 436 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 437 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 438 | ); 439 | name = Products; 440 | sourceTree = ""; 441 | }; 442 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 443 | isa = PBXGroup; 444 | children = ( 445 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 446 | ); 447 | name = Products; 448 | sourceTree = ""; 449 | }; 450 | 00E356EF1AD99517003FC87E /* CitySectionListTests */ = { 451 | isa = PBXGroup; 452 | children = ( 453 | 00E356F21AD99517003FC87E /* CitySectionListTests.m */, 454 | 00E356F01AD99517003FC87E /* Supporting Files */, 455 | ); 456 | path = CitySectionListTests; 457 | sourceTree = ""; 458 | }; 459 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 460 | isa = PBXGroup; 461 | children = ( 462 | 00E356F11AD99517003FC87E /* Info.plist */, 463 | ); 464 | name = "Supporting Files"; 465 | sourceTree = ""; 466 | }; 467 | 139105B71AF99BAD00B5F7CC /* Products */ = { 468 | isa = PBXGroup; 469 | children = ( 470 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 471 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 472 | ); 473 | name = Products; 474 | sourceTree = ""; 475 | }; 476 | 139FDEE71B06529A00C62182 /* Products */ = { 477 | isa = PBXGroup; 478 | children = ( 479 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 480 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 481 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 482 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 483 | ); 484 | name = Products; 485 | sourceTree = ""; 486 | }; 487 | 13B07FAE1A68108700A75B9A /* CitySectionList */ = { 488 | isa = PBXGroup; 489 | children = ( 490 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 491 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 492 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 493 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 494 | 13B07FB61A68108700A75B9A /* Info.plist */, 495 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 496 | 13B07FB71A68108700A75B9A /* main.m */, 497 | ); 498 | name = CitySectionList; 499 | sourceTree = ""; 500 | }; 501 | 146834001AC3E56700842450 /* Products */ = { 502 | isa = PBXGroup; 503 | children = ( 504 | 146834041AC3E56700842450 /* libReact.a */, 505 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 506 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 507 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 508 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 509 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 510 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 511 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 512 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 513 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 514 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 515 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 516 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 517 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 518 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */, 519 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */, 520 | ); 521 | name = Products; 522 | sourceTree = ""; 523 | }; 524 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 525 | isa = PBXGroup; 526 | children = ( 527 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 528 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 529 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 530 | ); 531 | name = Frameworks; 532 | sourceTree = ""; 533 | }; 534 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 535 | isa = PBXGroup; 536 | children = ( 537 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 538 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 539 | ); 540 | name = Products; 541 | sourceTree = ""; 542 | }; 543 | 78C398B11ACF4ADC00677621 /* Products */ = { 544 | isa = PBXGroup; 545 | children = ( 546 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 547 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 548 | ); 549 | name = Products; 550 | sourceTree = ""; 551 | }; 552 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 553 | isa = PBXGroup; 554 | children = ( 555 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 556 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 557 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 558 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 559 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 560 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 561 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 562 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 563 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 564 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 565 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 566 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 567 | ); 568 | name = Libraries; 569 | sourceTree = ""; 570 | }; 571 | 832341B11AAA6A8300B99B32 /* Products */ = { 572 | isa = PBXGroup; 573 | children = ( 574 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 575 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 576 | ); 577 | name = Products; 578 | sourceTree = ""; 579 | }; 580 | 83CBB9F61A601CBA00E9B192 = { 581 | isa = PBXGroup; 582 | children = ( 583 | 13B07FAE1A68108700A75B9A /* CitySectionList */, 584 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 585 | 00E356EF1AD99517003FC87E /* CitySectionListTests */, 586 | 83CBBA001A601CBA00E9B192 /* Products */, 587 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 588 | ); 589 | indentWidth = 2; 590 | sourceTree = ""; 591 | tabWidth = 2; 592 | usesTabs = 0; 593 | }; 594 | 83CBBA001A601CBA00E9B192 /* Products */ = { 595 | isa = PBXGroup; 596 | children = ( 597 | 13B07F961A680F5B00A75B9A /* CitySectionList.app */, 598 | 00E356EE1AD99517003FC87E /* CitySectionListTests.xctest */, 599 | 2D02E47B1E0B4A5D006451C7 /* CitySectionList-tvOS.app */, 600 | 2D02E4901E0B4A5D006451C7 /* CitySectionList-tvOSTests.xctest */, 601 | ); 602 | name = Products; 603 | sourceTree = ""; 604 | }; 605 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 606 | isa = PBXGroup; 607 | children = ( 608 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 609 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 610 | ); 611 | name = Products; 612 | sourceTree = ""; 613 | }; 614 | /* End PBXGroup section */ 615 | 616 | /* Begin PBXNativeTarget section */ 617 | 00E356ED1AD99517003FC87E /* CitySectionListTests */ = { 618 | isa = PBXNativeTarget; 619 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CitySectionListTests" */; 620 | buildPhases = ( 621 | 00E356EA1AD99517003FC87E /* Sources */, 622 | 00E356EB1AD99517003FC87E /* Frameworks */, 623 | 00E356EC1AD99517003FC87E /* Resources */, 624 | ); 625 | buildRules = ( 626 | ); 627 | dependencies = ( 628 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 629 | ); 630 | name = CitySectionListTests; 631 | productName = CitySectionListTests; 632 | productReference = 00E356EE1AD99517003FC87E /* CitySectionListTests.xctest */; 633 | productType = "com.apple.product-type.bundle.unit-test"; 634 | }; 635 | 13B07F861A680F5B00A75B9A /* CitySectionList */ = { 636 | isa = PBXNativeTarget; 637 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CitySectionList" */; 638 | buildPhases = ( 639 | 13B07F871A680F5B00A75B9A /* Sources */, 640 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 641 | 13B07F8E1A680F5B00A75B9A /* Resources */, 642 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 643 | ); 644 | buildRules = ( 645 | ); 646 | dependencies = ( 647 | ); 648 | name = CitySectionList; 649 | productName = "Hello World"; 650 | productReference = 13B07F961A680F5B00A75B9A /* CitySectionList.app */; 651 | productType = "com.apple.product-type.application"; 652 | }; 653 | 2D02E47A1E0B4A5D006451C7 /* CitySectionList-tvOS */ = { 654 | isa = PBXNativeTarget; 655 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CitySectionList-tvOS" */; 656 | buildPhases = ( 657 | 2D02E4771E0B4A5D006451C7 /* Sources */, 658 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 659 | 2D02E4791E0B4A5D006451C7 /* Resources */, 660 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 661 | ); 662 | buildRules = ( 663 | ); 664 | dependencies = ( 665 | ); 666 | name = "CitySectionList-tvOS"; 667 | productName = "CitySectionList-tvOS"; 668 | productReference = 2D02E47B1E0B4A5D006451C7 /* CitySectionList-tvOS.app */; 669 | productType = "com.apple.product-type.application"; 670 | }; 671 | 2D02E48F1E0B4A5D006451C7 /* CitySectionList-tvOSTests */ = { 672 | isa = PBXNativeTarget; 673 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CitySectionList-tvOSTests" */; 674 | buildPhases = ( 675 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 676 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 677 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 678 | ); 679 | buildRules = ( 680 | ); 681 | dependencies = ( 682 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 683 | ); 684 | name = "CitySectionList-tvOSTests"; 685 | productName = "CitySectionList-tvOSTests"; 686 | productReference = 2D02E4901E0B4A5D006451C7 /* CitySectionList-tvOSTests.xctest */; 687 | productType = "com.apple.product-type.bundle.unit-test"; 688 | }; 689 | /* End PBXNativeTarget section */ 690 | 691 | /* Begin PBXProject section */ 692 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 693 | isa = PBXProject; 694 | attributes = { 695 | LastUpgradeCheck = 0940; 696 | ORGANIZATIONNAME = Facebook; 697 | TargetAttributes = { 698 | 00E356ED1AD99517003FC87E = { 699 | CreatedOnToolsVersion = 6.2; 700 | TestTargetID = 13B07F861A680F5B00A75B9A; 701 | }; 702 | 2D02E47A1E0B4A5D006451C7 = { 703 | CreatedOnToolsVersion = 8.2.1; 704 | ProvisioningStyle = Automatic; 705 | }; 706 | 2D02E48F1E0B4A5D006451C7 = { 707 | CreatedOnToolsVersion = 8.2.1; 708 | ProvisioningStyle = Automatic; 709 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 710 | }; 711 | }; 712 | }; 713 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CitySectionList" */; 714 | compatibilityVersion = "Xcode 3.2"; 715 | developmentRegion = English; 716 | hasScannedForEncodings = 0; 717 | knownRegions = ( 718 | en, 719 | Base, 720 | ); 721 | mainGroup = 83CBB9F61A601CBA00E9B192; 722 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 723 | projectDirPath = ""; 724 | projectReferences = ( 725 | { 726 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 727 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 728 | }, 729 | { 730 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 731 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 732 | }, 733 | { 734 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 735 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 736 | }, 737 | { 738 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 739 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 740 | }, 741 | { 742 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 743 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 744 | }, 745 | { 746 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 747 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 748 | }, 749 | { 750 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 751 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 752 | }, 753 | { 754 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 755 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 756 | }, 757 | { 758 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 759 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 760 | }, 761 | { 762 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 763 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 764 | }, 765 | { 766 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 767 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 768 | }, 769 | { 770 | ProductGroup = 146834001AC3E56700842450 /* Products */; 771 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 772 | }, 773 | ); 774 | projectRoot = ""; 775 | targets = ( 776 | 13B07F861A680F5B00A75B9A /* CitySectionList */, 777 | 00E356ED1AD99517003FC87E /* CitySectionListTests */, 778 | 2D02E47A1E0B4A5D006451C7 /* CitySectionList-tvOS */, 779 | 2D02E48F1E0B4A5D006451C7 /* CitySectionList-tvOSTests */, 780 | ); 781 | }; 782 | /* End PBXProject section */ 783 | 784 | /* Begin PBXReferenceProxy section */ 785 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 786 | isa = PBXReferenceProxy; 787 | fileType = archive.ar; 788 | path = libRCTActionSheet.a; 789 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 790 | sourceTree = BUILT_PRODUCTS_DIR; 791 | }; 792 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 793 | isa = PBXReferenceProxy; 794 | fileType = archive.ar; 795 | path = libRCTGeolocation.a; 796 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 797 | sourceTree = BUILT_PRODUCTS_DIR; 798 | }; 799 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 800 | isa = PBXReferenceProxy; 801 | fileType = archive.ar; 802 | path = libRCTImage.a; 803 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 804 | sourceTree = BUILT_PRODUCTS_DIR; 805 | }; 806 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 807 | isa = PBXReferenceProxy; 808 | fileType = archive.ar; 809 | path = libRCTNetwork.a; 810 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 811 | sourceTree = BUILT_PRODUCTS_DIR; 812 | }; 813 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 814 | isa = PBXReferenceProxy; 815 | fileType = archive.ar; 816 | path = libRCTVibration.a; 817 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 818 | sourceTree = BUILT_PRODUCTS_DIR; 819 | }; 820 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 821 | isa = PBXReferenceProxy; 822 | fileType = archive.ar; 823 | path = libRCTSettings.a; 824 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 825 | sourceTree = BUILT_PRODUCTS_DIR; 826 | }; 827 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 828 | isa = PBXReferenceProxy; 829 | fileType = archive.ar; 830 | path = libRCTWebSocket.a; 831 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 832 | sourceTree = BUILT_PRODUCTS_DIR; 833 | }; 834 | 146834041AC3E56700842450 /* libReact.a */ = { 835 | isa = PBXReferenceProxy; 836 | fileType = archive.ar; 837 | path = libReact.a; 838 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 839 | sourceTree = BUILT_PRODUCTS_DIR; 840 | }; 841 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 842 | isa = PBXReferenceProxy; 843 | fileType = archive.ar; 844 | path = "libRCTBlob-tvOS.a"; 845 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 846 | sourceTree = BUILT_PRODUCTS_DIR; 847 | }; 848 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 849 | isa = PBXReferenceProxy; 850 | fileType = archive.ar; 851 | path = libfishhook.a; 852 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 853 | sourceTree = BUILT_PRODUCTS_DIR; 854 | }; 855 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 856 | isa = PBXReferenceProxy; 857 | fileType = archive.ar; 858 | path = "libfishhook-tvOS.a"; 859 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 860 | sourceTree = BUILT_PRODUCTS_DIR; 861 | }; 862 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 863 | isa = PBXReferenceProxy; 864 | fileType = archive.ar; 865 | path = libjsinspector.a; 866 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 867 | sourceTree = BUILT_PRODUCTS_DIR; 868 | }; 869 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 870 | isa = PBXReferenceProxy; 871 | fileType = archive.ar; 872 | path = "libjsinspector-tvOS.a"; 873 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 874 | sourceTree = BUILT_PRODUCTS_DIR; 875 | }; 876 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 877 | isa = PBXReferenceProxy; 878 | fileType = archive.ar; 879 | path = "libthird-party.a"; 880 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 881 | sourceTree = BUILT_PRODUCTS_DIR; 882 | }; 883 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 884 | isa = PBXReferenceProxy; 885 | fileType = archive.ar; 886 | path = "libthird-party.a"; 887 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 888 | sourceTree = BUILT_PRODUCTS_DIR; 889 | }; 890 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 891 | isa = PBXReferenceProxy; 892 | fileType = archive.ar; 893 | path = "libdouble-conversion.a"; 894 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 895 | sourceTree = BUILT_PRODUCTS_DIR; 896 | }; 897 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 898 | isa = PBXReferenceProxy; 899 | fileType = archive.ar; 900 | path = "libdouble-conversion.a"; 901 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 902 | sourceTree = BUILT_PRODUCTS_DIR; 903 | }; 904 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = { 905 | isa = PBXReferenceProxy; 906 | fileType = archive.ar; 907 | path = libprivatedata.a; 908 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */; 909 | sourceTree = BUILT_PRODUCTS_DIR; 910 | }; 911 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = { 912 | isa = PBXReferenceProxy; 913 | fileType = archive.ar; 914 | path = "libprivatedata-tvOS.a"; 915 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */; 916 | sourceTree = BUILT_PRODUCTS_DIR; 917 | }; 918 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 919 | isa = PBXReferenceProxy; 920 | fileType = archive.ar; 921 | path = "libRCTImage-tvOS.a"; 922 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 923 | sourceTree = BUILT_PRODUCTS_DIR; 924 | }; 925 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 926 | isa = PBXReferenceProxy; 927 | fileType = archive.ar; 928 | path = "libRCTLinking-tvOS.a"; 929 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 930 | sourceTree = BUILT_PRODUCTS_DIR; 931 | }; 932 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 933 | isa = PBXReferenceProxy; 934 | fileType = archive.ar; 935 | path = "libRCTNetwork-tvOS.a"; 936 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 937 | sourceTree = BUILT_PRODUCTS_DIR; 938 | }; 939 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 940 | isa = PBXReferenceProxy; 941 | fileType = archive.ar; 942 | path = "libRCTSettings-tvOS.a"; 943 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 944 | sourceTree = BUILT_PRODUCTS_DIR; 945 | }; 946 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 947 | isa = PBXReferenceProxy; 948 | fileType = archive.ar; 949 | path = "libRCTText-tvOS.a"; 950 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 951 | sourceTree = BUILT_PRODUCTS_DIR; 952 | }; 953 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 954 | isa = PBXReferenceProxy; 955 | fileType = archive.ar; 956 | path = "libRCTWebSocket-tvOS.a"; 957 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 958 | sourceTree = BUILT_PRODUCTS_DIR; 959 | }; 960 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 961 | isa = PBXReferenceProxy; 962 | fileType = archive.ar; 963 | path = libReact.a; 964 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 965 | sourceTree = BUILT_PRODUCTS_DIR; 966 | }; 967 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 968 | isa = PBXReferenceProxy; 969 | fileType = archive.ar; 970 | path = libyoga.a; 971 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 972 | sourceTree = BUILT_PRODUCTS_DIR; 973 | }; 974 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 975 | isa = PBXReferenceProxy; 976 | fileType = archive.ar; 977 | path = libyoga.a; 978 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 979 | sourceTree = BUILT_PRODUCTS_DIR; 980 | }; 981 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 982 | isa = PBXReferenceProxy; 983 | fileType = archive.ar; 984 | path = libcxxreact.a; 985 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 986 | sourceTree = BUILT_PRODUCTS_DIR; 987 | }; 988 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 989 | isa = PBXReferenceProxy; 990 | fileType = archive.ar; 991 | path = libcxxreact.a; 992 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 993 | sourceTree = BUILT_PRODUCTS_DIR; 994 | }; 995 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 996 | isa = PBXReferenceProxy; 997 | fileType = archive.ar; 998 | path = libjschelpers.a; 999 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 1000 | sourceTree = BUILT_PRODUCTS_DIR; 1001 | }; 1002 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 1003 | isa = PBXReferenceProxy; 1004 | fileType = archive.ar; 1005 | path = libjschelpers.a; 1006 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 1007 | sourceTree = BUILT_PRODUCTS_DIR; 1008 | }; 1009 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1010 | isa = PBXReferenceProxy; 1011 | fileType = archive.ar; 1012 | path = libRCTAnimation.a; 1013 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1014 | sourceTree = BUILT_PRODUCTS_DIR; 1015 | }; 1016 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1017 | isa = PBXReferenceProxy; 1018 | fileType = archive.ar; 1019 | path = libRCTAnimation.a; 1020 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1021 | sourceTree = BUILT_PRODUCTS_DIR; 1022 | }; 1023 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1024 | isa = PBXReferenceProxy; 1025 | fileType = archive.ar; 1026 | path = libRCTLinking.a; 1027 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1028 | sourceTree = BUILT_PRODUCTS_DIR; 1029 | }; 1030 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1031 | isa = PBXReferenceProxy; 1032 | fileType = archive.ar; 1033 | path = libRCTText.a; 1034 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1035 | sourceTree = BUILT_PRODUCTS_DIR; 1036 | }; 1037 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1038 | isa = PBXReferenceProxy; 1039 | fileType = archive.ar; 1040 | path = libRCTBlob.a; 1041 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1042 | sourceTree = BUILT_PRODUCTS_DIR; 1043 | }; 1044 | /* End PBXReferenceProxy section */ 1045 | 1046 | /* Begin PBXResourcesBuildPhase section */ 1047 | 00E356EC1AD99517003FC87E /* Resources */ = { 1048 | isa = PBXResourcesBuildPhase; 1049 | buildActionMask = 2147483647; 1050 | files = ( 1051 | ); 1052 | runOnlyForDeploymentPostprocessing = 0; 1053 | }; 1054 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1055 | isa = PBXResourcesBuildPhase; 1056 | buildActionMask = 2147483647; 1057 | files = ( 1058 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1059 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1060 | ); 1061 | runOnlyForDeploymentPostprocessing = 0; 1062 | }; 1063 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1064 | isa = PBXResourcesBuildPhase; 1065 | buildActionMask = 2147483647; 1066 | files = ( 1067 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1068 | ); 1069 | runOnlyForDeploymentPostprocessing = 0; 1070 | }; 1071 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1072 | isa = PBXResourcesBuildPhase; 1073 | buildActionMask = 2147483647; 1074 | files = ( 1075 | ); 1076 | runOnlyForDeploymentPostprocessing = 0; 1077 | }; 1078 | /* End PBXResourcesBuildPhase section */ 1079 | 1080 | /* Begin PBXShellScriptBuildPhase section */ 1081 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1082 | isa = PBXShellScriptBuildPhase; 1083 | buildActionMask = 2147483647; 1084 | files = ( 1085 | ); 1086 | inputPaths = ( 1087 | ); 1088 | name = "Bundle React Native code and images"; 1089 | outputPaths = ( 1090 | ); 1091 | runOnlyForDeploymentPostprocessing = 0; 1092 | shellPath = /bin/sh; 1093 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1094 | }; 1095 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1096 | isa = PBXShellScriptBuildPhase; 1097 | buildActionMask = 2147483647; 1098 | files = ( 1099 | ); 1100 | inputPaths = ( 1101 | ); 1102 | name = "Bundle React Native Code And Images"; 1103 | outputPaths = ( 1104 | ); 1105 | runOnlyForDeploymentPostprocessing = 0; 1106 | shellPath = /bin/sh; 1107 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1108 | }; 1109 | /* End PBXShellScriptBuildPhase section */ 1110 | 1111 | /* Begin PBXSourcesBuildPhase section */ 1112 | 00E356EA1AD99517003FC87E /* Sources */ = { 1113 | isa = PBXSourcesBuildPhase; 1114 | buildActionMask = 2147483647; 1115 | files = ( 1116 | 00E356F31AD99517003FC87E /* CitySectionListTests.m in Sources */, 1117 | ); 1118 | runOnlyForDeploymentPostprocessing = 0; 1119 | }; 1120 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1121 | isa = PBXSourcesBuildPhase; 1122 | buildActionMask = 2147483647; 1123 | files = ( 1124 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1125 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1126 | ); 1127 | runOnlyForDeploymentPostprocessing = 0; 1128 | }; 1129 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1130 | isa = PBXSourcesBuildPhase; 1131 | buildActionMask = 2147483647; 1132 | files = ( 1133 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1134 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1135 | ); 1136 | runOnlyForDeploymentPostprocessing = 0; 1137 | }; 1138 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1139 | isa = PBXSourcesBuildPhase; 1140 | buildActionMask = 2147483647; 1141 | files = ( 1142 | 2DCD954D1E0B4F2C00145EB5 /* CitySectionListTests.m in Sources */, 1143 | ); 1144 | runOnlyForDeploymentPostprocessing = 0; 1145 | }; 1146 | /* End PBXSourcesBuildPhase section */ 1147 | 1148 | /* Begin PBXTargetDependency section */ 1149 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1150 | isa = PBXTargetDependency; 1151 | target = 13B07F861A680F5B00A75B9A /* CitySectionList */; 1152 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1153 | }; 1154 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1155 | isa = PBXTargetDependency; 1156 | target = 2D02E47A1E0B4A5D006451C7 /* CitySectionList-tvOS */; 1157 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1158 | }; 1159 | /* End PBXTargetDependency section */ 1160 | 1161 | /* Begin PBXVariantGroup section */ 1162 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1163 | isa = PBXVariantGroup; 1164 | children = ( 1165 | 13B07FB21A68108700A75B9A /* Base */, 1166 | ); 1167 | name = LaunchScreen.xib; 1168 | path = CitySectionList; 1169 | sourceTree = ""; 1170 | }; 1171 | /* End PBXVariantGroup section */ 1172 | 1173 | /* Begin XCBuildConfiguration section */ 1174 | 00E356F61AD99517003FC87E /* Debug */ = { 1175 | isa = XCBuildConfiguration; 1176 | buildSettings = { 1177 | BUNDLE_LOADER = "$(TEST_HOST)"; 1178 | GCC_PREPROCESSOR_DEFINITIONS = ( 1179 | "DEBUG=1", 1180 | "$(inherited)", 1181 | ); 1182 | INFOPLIST_FILE = CitySectionListTests/Info.plist; 1183 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1184 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1185 | OTHER_LDFLAGS = ( 1186 | "-ObjC", 1187 | "-lc++", 1188 | ); 1189 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1190 | PRODUCT_NAME = "$(TARGET_NAME)"; 1191 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CitySectionList.app/CitySectionList"; 1192 | }; 1193 | name = Debug; 1194 | }; 1195 | 00E356F71AD99517003FC87E /* Release */ = { 1196 | isa = XCBuildConfiguration; 1197 | buildSettings = { 1198 | BUNDLE_LOADER = "$(TEST_HOST)"; 1199 | COPY_PHASE_STRIP = NO; 1200 | INFOPLIST_FILE = CitySectionListTests/Info.plist; 1201 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1202 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1203 | OTHER_LDFLAGS = ( 1204 | "-ObjC", 1205 | "-lc++", 1206 | ); 1207 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1208 | PRODUCT_NAME = "$(TARGET_NAME)"; 1209 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CitySectionList.app/CitySectionList"; 1210 | }; 1211 | name = Release; 1212 | }; 1213 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1214 | isa = XCBuildConfiguration; 1215 | buildSettings = { 1216 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1217 | CURRENT_PROJECT_VERSION = 1; 1218 | DEAD_CODE_STRIPPING = NO; 1219 | INFOPLIST_FILE = CitySectionList/Info.plist; 1220 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1221 | OTHER_LDFLAGS = ( 1222 | "$(inherited)", 1223 | "-ObjC", 1224 | "-lc++", 1225 | ); 1226 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1227 | PRODUCT_NAME = CitySectionList; 1228 | VERSIONING_SYSTEM = "apple-generic"; 1229 | }; 1230 | name = Debug; 1231 | }; 1232 | 13B07F951A680F5B00A75B9A /* Release */ = { 1233 | isa = XCBuildConfiguration; 1234 | buildSettings = { 1235 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1236 | CURRENT_PROJECT_VERSION = 1; 1237 | INFOPLIST_FILE = CitySectionList/Info.plist; 1238 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1239 | OTHER_LDFLAGS = ( 1240 | "$(inherited)", 1241 | "-ObjC", 1242 | "-lc++", 1243 | ); 1244 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1245 | PRODUCT_NAME = CitySectionList; 1246 | VERSIONING_SYSTEM = "apple-generic"; 1247 | }; 1248 | name = Release; 1249 | }; 1250 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1251 | isa = XCBuildConfiguration; 1252 | buildSettings = { 1253 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1254 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1255 | CLANG_ANALYZER_NONNULL = YES; 1256 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1257 | CLANG_WARN_INFINITE_RECURSION = YES; 1258 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1259 | DEBUG_INFORMATION_FORMAT = dwarf; 1260 | ENABLE_TESTABILITY = YES; 1261 | GCC_NO_COMMON_BLOCKS = YES; 1262 | INFOPLIST_FILE = "CitySectionList-tvOS/Info.plist"; 1263 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1264 | OTHER_LDFLAGS = ( 1265 | "-ObjC", 1266 | "-lc++", 1267 | ); 1268 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CitySectionList-tvOS"; 1269 | PRODUCT_NAME = "$(TARGET_NAME)"; 1270 | SDKROOT = appletvos; 1271 | TARGETED_DEVICE_FAMILY = 3; 1272 | TVOS_DEPLOYMENT_TARGET = 9.2; 1273 | }; 1274 | name = Debug; 1275 | }; 1276 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1277 | isa = XCBuildConfiguration; 1278 | buildSettings = { 1279 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1280 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1281 | CLANG_ANALYZER_NONNULL = YES; 1282 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1283 | CLANG_WARN_INFINITE_RECURSION = YES; 1284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1285 | COPY_PHASE_STRIP = NO; 1286 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1287 | GCC_NO_COMMON_BLOCKS = YES; 1288 | INFOPLIST_FILE = "CitySectionList-tvOS/Info.plist"; 1289 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1290 | OTHER_LDFLAGS = ( 1291 | "-ObjC", 1292 | "-lc++", 1293 | ); 1294 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CitySectionList-tvOS"; 1295 | PRODUCT_NAME = "$(TARGET_NAME)"; 1296 | SDKROOT = appletvos; 1297 | TARGETED_DEVICE_FAMILY = 3; 1298 | TVOS_DEPLOYMENT_TARGET = 9.2; 1299 | }; 1300 | name = Release; 1301 | }; 1302 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1303 | isa = XCBuildConfiguration; 1304 | buildSettings = { 1305 | BUNDLE_LOADER = "$(TEST_HOST)"; 1306 | CLANG_ANALYZER_NONNULL = YES; 1307 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1308 | CLANG_WARN_INFINITE_RECURSION = YES; 1309 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1310 | DEBUG_INFORMATION_FORMAT = dwarf; 1311 | ENABLE_TESTABILITY = YES; 1312 | GCC_NO_COMMON_BLOCKS = YES; 1313 | INFOPLIST_FILE = "CitySectionList-tvOSTests/Info.plist"; 1314 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1315 | OTHER_LDFLAGS = ( 1316 | "-ObjC", 1317 | "-lc++", 1318 | ); 1319 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CitySectionList-tvOSTests"; 1320 | PRODUCT_NAME = "$(TARGET_NAME)"; 1321 | SDKROOT = appletvos; 1322 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CitySectionList-tvOS.app/CitySectionList-tvOS"; 1323 | TVOS_DEPLOYMENT_TARGET = 10.1; 1324 | }; 1325 | name = Debug; 1326 | }; 1327 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1328 | isa = XCBuildConfiguration; 1329 | buildSettings = { 1330 | BUNDLE_LOADER = "$(TEST_HOST)"; 1331 | CLANG_ANALYZER_NONNULL = YES; 1332 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1333 | CLANG_WARN_INFINITE_RECURSION = YES; 1334 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1335 | COPY_PHASE_STRIP = NO; 1336 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1337 | GCC_NO_COMMON_BLOCKS = YES; 1338 | INFOPLIST_FILE = "CitySectionList-tvOSTests/Info.plist"; 1339 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1340 | OTHER_LDFLAGS = ( 1341 | "-ObjC", 1342 | "-lc++", 1343 | ); 1344 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CitySectionList-tvOSTests"; 1345 | PRODUCT_NAME = "$(TARGET_NAME)"; 1346 | SDKROOT = appletvos; 1347 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CitySectionList-tvOS.app/CitySectionList-tvOS"; 1348 | TVOS_DEPLOYMENT_TARGET = 10.1; 1349 | }; 1350 | name = Release; 1351 | }; 1352 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1353 | isa = XCBuildConfiguration; 1354 | buildSettings = { 1355 | ALWAYS_SEARCH_USER_PATHS = NO; 1356 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1357 | CLANG_CXX_LIBRARY = "libc++"; 1358 | CLANG_ENABLE_MODULES = YES; 1359 | CLANG_ENABLE_OBJC_ARC = YES; 1360 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1361 | CLANG_WARN_BOOL_CONVERSION = YES; 1362 | CLANG_WARN_COMMA = YES; 1363 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1364 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1365 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1366 | CLANG_WARN_EMPTY_BODY = YES; 1367 | CLANG_WARN_ENUM_CONVERSION = YES; 1368 | CLANG_WARN_INFINITE_RECURSION = YES; 1369 | CLANG_WARN_INT_CONVERSION = YES; 1370 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1371 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1372 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1373 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1374 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1375 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1376 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1377 | CLANG_WARN_UNREACHABLE_CODE = YES; 1378 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1379 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1380 | COPY_PHASE_STRIP = NO; 1381 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1382 | ENABLE_TESTABILITY = YES; 1383 | GCC_C_LANGUAGE_STANDARD = gnu99; 1384 | GCC_DYNAMIC_NO_PIC = NO; 1385 | GCC_NO_COMMON_BLOCKS = YES; 1386 | GCC_OPTIMIZATION_LEVEL = 0; 1387 | GCC_PREPROCESSOR_DEFINITIONS = ( 1388 | "DEBUG=1", 1389 | "$(inherited)", 1390 | ); 1391 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1396 | GCC_WARN_UNUSED_FUNCTION = YES; 1397 | GCC_WARN_UNUSED_VARIABLE = YES; 1398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1399 | MTL_ENABLE_DEBUG_INFO = YES; 1400 | ONLY_ACTIVE_ARCH = YES; 1401 | SDKROOT = iphoneos; 1402 | }; 1403 | name = Debug; 1404 | }; 1405 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1406 | isa = XCBuildConfiguration; 1407 | buildSettings = { 1408 | ALWAYS_SEARCH_USER_PATHS = NO; 1409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1410 | CLANG_CXX_LIBRARY = "libc++"; 1411 | CLANG_ENABLE_MODULES = YES; 1412 | CLANG_ENABLE_OBJC_ARC = YES; 1413 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1414 | CLANG_WARN_BOOL_CONVERSION = YES; 1415 | CLANG_WARN_COMMA = YES; 1416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1417 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1418 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1419 | CLANG_WARN_EMPTY_BODY = YES; 1420 | CLANG_WARN_ENUM_CONVERSION = YES; 1421 | CLANG_WARN_INFINITE_RECURSION = YES; 1422 | CLANG_WARN_INT_CONVERSION = YES; 1423 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1424 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1425 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1426 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1427 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1428 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1429 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1430 | CLANG_WARN_UNREACHABLE_CODE = YES; 1431 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1432 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1433 | COPY_PHASE_STRIP = YES; 1434 | ENABLE_NS_ASSERTIONS = NO; 1435 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1436 | GCC_C_LANGUAGE_STANDARD = gnu99; 1437 | GCC_NO_COMMON_BLOCKS = YES; 1438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1440 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1442 | GCC_WARN_UNUSED_FUNCTION = YES; 1443 | GCC_WARN_UNUSED_VARIABLE = YES; 1444 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1445 | MTL_ENABLE_DEBUG_INFO = NO; 1446 | SDKROOT = iphoneos; 1447 | VALIDATE_PRODUCT = YES; 1448 | }; 1449 | name = Release; 1450 | }; 1451 | /* End XCBuildConfiguration section */ 1452 | 1453 | /* Begin XCConfigurationList section */ 1454 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CitySectionListTests" */ = { 1455 | isa = XCConfigurationList; 1456 | buildConfigurations = ( 1457 | 00E356F61AD99517003FC87E /* Debug */, 1458 | 00E356F71AD99517003FC87E /* Release */, 1459 | ); 1460 | defaultConfigurationIsVisible = 0; 1461 | defaultConfigurationName = Release; 1462 | }; 1463 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CitySectionList" */ = { 1464 | isa = XCConfigurationList; 1465 | buildConfigurations = ( 1466 | 13B07F941A680F5B00A75B9A /* Debug */, 1467 | 13B07F951A680F5B00A75B9A /* Release */, 1468 | ); 1469 | defaultConfigurationIsVisible = 0; 1470 | defaultConfigurationName = Release; 1471 | }; 1472 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CitySectionList-tvOS" */ = { 1473 | isa = XCConfigurationList; 1474 | buildConfigurations = ( 1475 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1476 | 2D02E4981E0B4A5E006451C7 /* Release */, 1477 | ); 1478 | defaultConfigurationIsVisible = 0; 1479 | defaultConfigurationName = Release; 1480 | }; 1481 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CitySectionList-tvOSTests" */ = { 1482 | isa = XCConfigurationList; 1483 | buildConfigurations = ( 1484 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1485 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1486 | ); 1487 | defaultConfigurationIsVisible = 0; 1488 | defaultConfigurationName = Release; 1489 | }; 1490 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CitySectionList" */ = { 1491 | isa = XCConfigurationList; 1492 | buildConfigurations = ( 1493 | 83CBBA201A601CBA00E9B192 /* Debug */, 1494 | 83CBBA211A601CBA00E9B192 /* Release */, 1495 | ); 1496 | defaultConfigurationIsVisible = 0; 1497 | defaultConfigurationName = Release; 1498 | }; 1499 | /* End XCConfigurationList section */ 1500 | }; 1501 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1502 | } 1503 | -------------------------------------------------------------------------------- /ios/CitySectionList.xcodeproj/xcshareddata/xcschemes/CitySectionList-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/CitySectionList.xcodeproj/xcshareddata/xcschemes/CitySectionList.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/CitySectionList/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/CitySectionList/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"CitySectionList" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/CitySectionList/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/CitySectionList/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/CitySectionList/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/CitySectionList/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | CitySectionList 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSLocationWhenInUseUsageDescription 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | NSLocationWhenInUseUsageDescription 44 | 45 | NSAppTransportSecurity 46 | 47 | 48 | NSAllowsArbitraryLoads 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/CitySectionList/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/CitySectionListTests/CitySectionListTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface CitySectionListTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation CitySectionListTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /ios/CitySectionListTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CitySectionList", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.8.3", 11 | "react-native-gesture-handler": "^1.2.1", 12 | "react-native": "0.59.9" 13 | }, 14 | "devDependencies": { 15 | "@babel/core": "^7.4.5", 16 | "@babel/runtime": "^7.4.5", 17 | "babel-jest": "^24.8.0", 18 | "jest": "^24.8.0", 19 | "metro-react-native-babel-preset": "^0.54.1", 20 | "react-test-renderer": "16.8.3" 21 | }, 22 | "jest": { 23 | "preset": "react-native" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /public_close_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mouxuefei/RN-CitySectionList/28d8411be6470ed48df34b4d94ea863fe4bf1523/public_close_icon@2x.png --------------------------------------------------------------------------------