├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .vscode ├── launch.json └── launchReactNative.js ├── .watchmanconfig ├── README.md ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── SimpleLineIcons.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── jackban │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── index.android.js ├── index.ios.js ├── ios ├── JackBan.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── JackBan.xcscheme ├── JackBan │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── JackBanTests │ ├── Info.plist │ └── JackBanTests.m ├── js ├── image │ ├── 100.png │ ├── app_header.gif │ ├── back.png │ ├── grid.png │ ├── imageload.png │ ├── loading.gif │ ├── meizi_back.png │ └── starting.gif ├── main │ ├── Book.js │ ├── BookMessage.js │ ├── Details.js │ ├── DrawerLayout.js │ ├── Loading.js │ ├── MainPage.js │ ├── MainView.js │ ├── Meizi.js │ ├── MeiziDetail.js │ ├── Movie.js │ ├── MovieComing.js │ ├── MovieHotSearch.js │ ├── MovieMessage.js │ ├── MovieTop250.js │ ├── Music.js │ ├── MusicMessage.js │ └── StartView.js └── util │ └── px2dp.js ├── jsconfig.json ├── package.json ├── temp └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.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 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | module.system=haste 26 | 27 | experimental.strict_type_args=true 28 | 29 | munge_underscores=true 30 | 31 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 32 | 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' 33 | 34 | suppress_type=$FlowIssue 35 | suppress_type=$FlowFixMe 36 | suppress_type=$FixMe 37 | 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-5]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-5]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 41 | 42 | unsafe.enable_getters_and_setters=true 43 | 44 | [version] 45 | ^0.35.0 46 | -------------------------------------------------------------------------------- /.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 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | android/app/libs 42 | *.keystore 43 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Debug Android", 6 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", 7 | "type": "reactnative", 8 | "request": "launch", 9 | "platform": "android", 10 | "internalDebuggerPort": 9090, 11 | "sourceMaps": true, 12 | "outDir": "${workspaceRoot}/.vscode/.react" 13 | }, 14 | { 15 | "name": "Debug iOS", 16 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", 17 | "type": "reactnative", 18 | "request": "launch", 19 | "platform": "ios", 20 | "target": "iPhone 5s", 21 | "internalDebuggerPort": 9090, 22 | "sourceMaps": true, 23 | "outDir": "${workspaceRoot}/.vscode/.react" 24 | }, 25 | { 26 | "name": "Attach to packager", 27 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", 28 | "type": "reactnative", 29 | "request": "attach", 30 | "internalDebuggerPort": 9090, 31 | "sourceMaps": true, 32 | "outDir": "${workspaceRoot}/.vscode/.react" 33 | }, 34 | { 35 | "name": "Debug in Exponent", 36 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", 37 | "type": "reactnative", 38 | "request": "launch", 39 | "platform": "exponent", 40 | "internalDebuggerPort": 9090, 41 | "sourceMaps": true, 42 | "outDir": "${workspaceRoot}/.vscode/.react" 43 | } 44 | ] 45 | } -------------------------------------------------------------------------------- /.vscode/launchReactNative.js: -------------------------------------------------------------------------------- 1 | // This file is automatically generated by vscode-react-native@0.2.5 2 | // Please do not modify it manually. All changes will be lost. 3 | try { 4 | var path = require("path"); 5 | var Launcher = require("C:\\Users\\Jack\\.vscode\\extensions\\vsmobile.vscode-react-native-0.2.5\\out\\debugger\\launcher.js").Launcher; 6 | new Launcher("e:\\ProgramFiles2\\androidstudio_work\\ReactNative\\JackBan", "e:\\ProgramFiles2\\androidstudio_work\\ReactNative\\JackBan").launch(); 7 | } catch (e) { 8 | throw new Error("Unable to launch application. Try deleting .vscode/launchReactNative.js and restarting vscode."); 9 | } -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 最近一直在学React Naitve,可以说React Native的确有他自身强大的地方,不管是运行效率还是热更新都和一般的h5有的一比,当然以为面世的时间还不算太久,版本更新又十分的快,所以坑也多,对于一般的移动开发者来说学习成本也蛮大的, 个人觉得用React Naitve做混合开发,把一些需要经常变化的模块用react native开发还是一个不错的选择。 2 | 3 | 1. demo就是已React Naitve的官方文档和学习过程中踩过的这种坑写出来仅供学习demo级东西,因为没有苹果电脑,只试运行android. 4 | 2. 数据方面是用豆瓣的Gank的妹子api 5 | 3. 所用到的第三方控件如下: 6 | - React-native-vector-icons(一个可以用的网上图标库,不用自己设计), 7 | - React-native-scrollable-tab-view(通用的Tab控制器),这上面两个的开源的结合可以参考[http://www.jianshu.com/p/b0cfe7f11ee7](http://www.jianshu.com/p/b0cfe7f11ee7)这篇博客, 8 | - React-native-tab-navigator(底部的tab控制器) 9 | 10 | 剩下的用到的React Native的原生控件有: 11 | - ScorllView 12 | - WebView 13 | - TouchableOpacity 14 | - Navigator 15 | - Text 16 | - Image 17 | - ListView 18 | - BackAndroid 19 | - Button 20 | - DrawerLayoutAndroid 21 | - ActivityIndicator 22 | - ToastAndroid 23 | - ... 24 | 25 | 效果图如下: 26 | 27 | ![demo_img1.jpg](http://upload-images.jianshu.io/upload_images/925576-a2ecb0e32ef034a8.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 28 | 29 | ![ 30 | ![demo_img2.jpg](http://upload-images.jianshu.io/upload_images/925576-f7bfb21db961d4dd.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 31 | ](http://upload-images.jianshu.io/upload_images/925576-c441daf9615d0f6f.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 32 | 33 | ![demo_img3.jpg](http://upload-images.jianshu.io/upload_images/925576-96cb8eab949aeed7.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 34 | 35 | ![demo_img4.jpg](http://upload-images.jianshu.io/upload_images/925576-6369f8477f0414c0.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 36 | 37 | 38 | 最后github地址[https://github.com/jack921/JackBan-ReactNative](https://github.com/jack921/JackBan-ReactNative) 39 | -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.jackban', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.jackban', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /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 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.jackban" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':react-native-vector-icons') 130 | compile fileTree(dir: "libs", include: ["*.jar"]) 131 | compile "com.android.support:appcompat-v7:23.0.1" 132 | compile "com.facebook.react:react-native:+" // From node_modules 133 | compile 'com.facebook.fresco:animated-gif:0.11.0' //GIFsupport 134 | } 135 | 136 | // Run this once to be able to run the application with BUCK 137 | // puts all compile dependencies into folder libs for BUCK to use 138 | task copyDownloadableDepsToLibs(type: Copy) { 139 | from configurations.compile 140 | into 'libs' 141 | } 142 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/jackban/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.jackban; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.oblador.vectoricons.VectorIconsPackage; 5 | import com.oblador.vectoricons.VectorIconsPackage; 6 | 7 | public class MainActivity extends ReactActivity { 8 | 9 | /** 10 | * Returns the name of the main component registered from JavaScript. 11 | * This is used to schedule rendering of the component. 12 | */ 13 | @Override 14 | protected String getMainComponentName() { 15 | return "JackBan"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/jackban/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.jackban; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | import com.oblador.vectoricons.VectorIconsPackage; 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | protected boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage(),new VectorIconsPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | JackBan 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 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 = 'JackBan' 2 | 3 | include ':app' 4 | include ':react-native-vector-icons' 5 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 6 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | AppRegistry, 4 | StyleSheet, 5 | Navigator, 6 | View, 7 | Text 8 | } from 'react-native'; 9 | 10 | import MainView from './js/main/MainView.js'; 11 | 12 | export default class JackBan extends Component { 13 | 14 | render() { 15 | return( 16 | { 19 | return 20 | } 21 | }/> 22 | ); 23 | } 24 | 25 | } 26 | 27 | 28 | const styles = StyleSheet.create({ 29 | container: { 30 | flex: 1, 31 | justifyContent: 'center', 32 | alignItems: 'center', 33 | backgroundColor: '#F5FCFF', 34 | }, 35 | }); 36 | 37 | AppRegistry.registerComponent('JackBan', () => JackBan); 38 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | export default class JackBan extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | Welcome to React Native! 21 | 22 | 23 | To get started, edit index.ios.js 24 | 25 | 26 | Press Cmd+R to reload,{'\n'} 27 | Cmd+D or shake for dev menu 28 | 29 | 30 | ); 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | container: { 36 | flex: 1, 37 | justifyContent: 'center', 38 | alignItems: 'center', 39 | backgroundColor: '#F5FCFF', 40 | }, 41 | welcome: { 42 | fontSize: 20, 43 | textAlign: 'center', 44 | margin: 10, 45 | }, 46 | instructions: { 47 | textAlign: 'center', 48 | color: '#333333', 49 | marginBottom: 5, 50 | }, 51 | }); 52 | 53 | AppRegistry.registerComponent('JackBan', () => JackBan); 54 | -------------------------------------------------------------------------------- /ios/JackBan.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* JackBanTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* JackBanTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 25 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 26 | B620E5E38A3E4221B81B0C55 /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EF907148F33C427098F15D84 /* libRNVectorIcons.a */; }; 27 | 18383100F34245EDAADBB530 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 039557B667B641E6B0BD9CE8 /* Entypo.ttf */; }; 28 | DE4EA7BA29E24EE291B1D55D /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6849B71A74FC44E288D118EF /* EvilIcons.ttf */; }; 29 | 8FF15896DF9740818F6AEAFC /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 44FA4CECE7E94783BD18A124 /* FontAwesome.ttf */; }; 30 | 62136E389B4546BEA164B35D /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 339C7BCA683A492F84771427 /* Foundation.ttf */; }; 31 | 5ADCBD48CCCF4B3C8EEF40CA /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E4892C886491488CA6B630FA /* Ionicons.ttf */; }; 32 | 3504672712374565AC464B05 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 72418A46DA20454DB24BB3F4 /* MaterialCommunityIcons.ttf */; }; 33 | 0279FE369A5C4E81B28D2375 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9013A552894449E3BD268ACA /* MaterialIcons.ttf */; }; 34 | 1FD57940B3B1400186051A6B /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A8DF45BA6BFA47D3A5DAB1EF /* Octicons.ttf */; }; 35 | BE81E3698C6F4BEA83D38EF1 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BB61951EDA944079A716A644 /* SimpleLineIcons.ttf */; }; 36 | C17225EC44294B4C991A9C10 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CFA1B23493F1439ABD72E1CE /* Zocial.ttf */; }; 37 | /* End PBXBuildFile section */ 38 | 39 | /* Begin PBXContainerItemProxy section */ 40 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 43 | proxyType = 2; 44 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 45 | remoteInfo = RCTActionSheet; 46 | }; 47 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 50 | proxyType = 2; 51 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 52 | remoteInfo = RCTGeolocation; 53 | }; 54 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 59 | remoteInfo = RCTImage; 60 | }; 61 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 66 | remoteInfo = RCTNetwork; 67 | }; 68 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 73 | remoteInfo = RCTVibration; 74 | }; 75 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 78 | proxyType = 1; 79 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 80 | remoteInfo = JackBan; 81 | }; 82 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 85 | proxyType = 2; 86 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 87 | remoteInfo = RCTSettings; 88 | }; 89 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 92 | proxyType = 2; 93 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 94 | remoteInfo = RCTWebSocket; 95 | }; 96 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 99 | proxyType = 2; 100 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 101 | remoteInfo = React; 102 | }; 103 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 106 | proxyType = 2; 107 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 108 | remoteInfo = RCTAnimation; 109 | }; 110 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 111 | isa = PBXContainerItemProxy; 112 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 113 | proxyType = 2; 114 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 115 | remoteInfo = "RCTAnimation-tvOS"; 116 | }; 117 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 118 | isa = PBXContainerItemProxy; 119 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 120 | proxyType = 2; 121 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 122 | remoteInfo = RCTLinking; 123 | }; 124 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 125 | isa = PBXContainerItemProxy; 126 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 127 | proxyType = 2; 128 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 129 | remoteInfo = RCTText; 130 | }; 131 | /* End PBXContainerItemProxy section */ 132 | 133 | /* Begin PBXFileReference section */ 134 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 135 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 136 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 137 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 138 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 139 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 140 | 00E356EE1AD99517003FC87E /* JackBanTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JackBanTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 141 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 142 | 00E356F21AD99517003FC87E /* JackBanTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JackBanTests.m; sourceTree = ""; }; 143 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 144 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 145 | 13B07F961A680F5B00A75B9A /* JackBan.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JackBan.app; sourceTree = BUILT_PRODUCTS_DIR; }; 146 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = JackBan/AppDelegate.h; sourceTree = ""; }; 147 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = JackBan/AppDelegate.m; sourceTree = ""; }; 148 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 149 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = JackBan/Images.xcassets; sourceTree = ""; }; 150 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = JackBan/Info.plist; sourceTree = ""; }; 151 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = JackBan/main.m; sourceTree = ""; }; 152 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 153 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 154 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 155 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 156 | 9D8943A932064904BEF8EC21 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; name = "RNVectorIcons.xcodeproj"; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 157 | EF907148F33C427098F15D84 /* libRNVectorIcons.a */ = {isa = PBXFileReference; name = "libRNVectorIcons.a"; path = "libRNVectorIcons.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 158 | 039557B667B641E6B0BD9CE8 /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 159 | 6849B71A74FC44E288D118EF /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 160 | 44FA4CECE7E94783BD18A124 /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 161 | 339C7BCA683A492F84771427 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 162 | E4892C886491488CA6B630FA /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 163 | 72418A46DA20454DB24BB3F4 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 164 | 9013A552894449E3BD268ACA /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 165 | A8DF45BA6BFA47D3A5DAB1EF /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 166 | BB61951EDA944079A716A644 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 167 | CFA1B23493F1439ABD72E1CE /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 168 | /* End PBXFileReference section */ 169 | 170 | /* Begin PBXFrameworksBuildPhase section */ 171 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 172 | isa = PBXFrameworksBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 176 | ); 177 | runOnlyForDeploymentPostprocessing = 0; 178 | }; 179 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 180 | isa = PBXFrameworksBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 184 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 185 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 186 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 187 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 188 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 189 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 190 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 191 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 192 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 193 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 194 | B620E5E38A3E4221B81B0C55 /* libRNVectorIcons.a in Frameworks */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXFrameworksBuildPhase section */ 199 | 200 | /* Begin PBXGroup section */ 201 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 205 | ); 206 | name = Products; 207 | sourceTree = ""; 208 | }; 209 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 213 | ); 214 | name = Products; 215 | sourceTree = ""; 216 | }; 217 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 221 | ); 222 | name = Products; 223 | sourceTree = ""; 224 | }; 225 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 226 | isa = PBXGroup; 227 | children = ( 228 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 229 | ); 230 | name = Products; 231 | sourceTree = ""; 232 | }; 233 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 234 | isa = PBXGroup; 235 | children = ( 236 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 237 | ); 238 | name = Products; 239 | sourceTree = ""; 240 | }; 241 | 00E356EF1AD99517003FC87E /* JackBanTests */ = { 242 | isa = PBXGroup; 243 | children = ( 244 | 00E356F21AD99517003FC87E /* JackBanTests.m */, 245 | 00E356F01AD99517003FC87E /* Supporting Files */, 246 | ); 247 | path = JackBanTests; 248 | sourceTree = ""; 249 | }; 250 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 251 | isa = PBXGroup; 252 | children = ( 253 | 00E356F11AD99517003FC87E /* Info.plist */, 254 | ); 255 | name = "Supporting Files"; 256 | sourceTree = ""; 257 | }; 258 | 139105B71AF99BAD00B5F7CC /* Products */ = { 259 | isa = PBXGroup; 260 | children = ( 261 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 262 | ); 263 | name = Products; 264 | sourceTree = ""; 265 | }; 266 | 139FDEE71B06529A00C62182 /* Products */ = { 267 | isa = PBXGroup; 268 | children = ( 269 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 270 | ); 271 | name = Products; 272 | sourceTree = ""; 273 | }; 274 | 13B07FAE1A68108700A75B9A /* JackBan */ = { 275 | isa = PBXGroup; 276 | children = ( 277 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 278 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 279 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 280 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 281 | 13B07FB61A68108700A75B9A /* Info.plist */, 282 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 283 | 13B07FB71A68108700A75B9A /* main.m */, 284 | ); 285 | name = JackBan; 286 | sourceTree = ""; 287 | }; 288 | 146834001AC3E56700842450 /* Products */ = { 289 | isa = PBXGroup; 290 | children = ( 291 | 146834041AC3E56700842450 /* libReact.a */, 292 | ); 293 | name = Products; 294 | sourceTree = ""; 295 | }; 296 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 297 | isa = PBXGroup; 298 | children = ( 299 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 300 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 301 | ); 302 | name = Products; 303 | sourceTree = ""; 304 | }; 305 | 78C398B11ACF4ADC00677621 /* Products */ = { 306 | isa = PBXGroup; 307 | children = ( 308 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 309 | ); 310 | name = Products; 311 | sourceTree = ""; 312 | }; 313 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 314 | isa = PBXGroup; 315 | children = ( 316 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 317 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 318 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 319 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 320 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 321 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 322 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 323 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 324 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 325 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 326 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 327 | 9D8943A932064904BEF8EC21 /* RNVectorIcons.xcodeproj */, 328 | ); 329 | name = Libraries; 330 | sourceTree = ""; 331 | }; 332 | 832341B11AAA6A8300B99B32 /* Products */ = { 333 | isa = PBXGroup; 334 | children = ( 335 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 336 | ); 337 | name = Products; 338 | sourceTree = ""; 339 | }; 340 | 83CBB9F61A601CBA00E9B192 = { 341 | isa = PBXGroup; 342 | children = ( 343 | 13B07FAE1A68108700A75B9A /* JackBan */, 344 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 345 | 00E356EF1AD99517003FC87E /* JackBanTests */, 346 | 83CBBA001A601CBA00E9B192 /* Products */, 347 | EFD192F64A704CF2828EC59A /* Resources */, 348 | ); 349 | indentWidth = 2; 350 | sourceTree = ""; 351 | tabWidth = 2; 352 | }; 353 | 83CBBA001A601CBA00E9B192 /* Products */ = { 354 | isa = PBXGroup; 355 | children = ( 356 | 13B07F961A680F5B00A75B9A /* JackBan.app */, 357 | 00E356EE1AD99517003FC87E /* JackBanTests.xctest */, 358 | ); 359 | name = Products; 360 | sourceTree = ""; 361 | }; 362 | EFD192F64A704CF2828EC59A /* Resources */ = { 363 | isa = PBXGroup; 364 | children = ( 365 | 039557B667B641E6B0BD9CE8 /* Entypo.ttf */, 366 | 6849B71A74FC44E288D118EF /* EvilIcons.ttf */, 367 | 44FA4CECE7E94783BD18A124 /* FontAwesome.ttf */, 368 | 339C7BCA683A492F84771427 /* Foundation.ttf */, 369 | E4892C886491488CA6B630FA /* Ionicons.ttf */, 370 | 72418A46DA20454DB24BB3F4 /* MaterialCommunityIcons.ttf */, 371 | 9013A552894449E3BD268ACA /* MaterialIcons.ttf */, 372 | A8DF45BA6BFA47D3A5DAB1EF /* Octicons.ttf */, 373 | BB61951EDA944079A716A644 /* SimpleLineIcons.ttf */, 374 | CFA1B23493F1439ABD72E1CE /* Zocial.ttf */, 375 | ); 376 | name = Resources; 377 | path = ""; 378 | sourceTree = ""; 379 | }; 380 | /* End PBXGroup section */ 381 | 382 | /* Begin PBXNativeTarget section */ 383 | 00E356ED1AD99517003FC87E /* JackBanTests */ = { 384 | isa = PBXNativeTarget; 385 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "JackBanTests" */; 386 | buildPhases = ( 387 | 00E356EA1AD99517003FC87E /* Sources */, 388 | 00E356EB1AD99517003FC87E /* Frameworks */, 389 | 00E356EC1AD99517003FC87E /* Resources */, 390 | ); 391 | buildRules = ( 392 | ); 393 | dependencies = ( 394 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 395 | ); 396 | name = JackBanTests; 397 | productName = JackBanTests; 398 | productReference = 00E356EE1AD99517003FC87E /* JackBanTests.xctest */; 399 | productType = "com.apple.product-type.bundle.unit-test"; 400 | }; 401 | 13B07F861A680F5B00A75B9A /* JackBan */ = { 402 | isa = PBXNativeTarget; 403 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "JackBan" */; 404 | buildPhases = ( 405 | 13B07F871A680F5B00A75B9A /* Sources */, 406 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 407 | 13B07F8E1A680F5B00A75B9A /* Resources */, 408 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 409 | ); 410 | buildRules = ( 411 | ); 412 | dependencies = ( 413 | ); 414 | name = JackBan; 415 | productName = "Hello World"; 416 | productReference = 13B07F961A680F5B00A75B9A /* JackBan.app */; 417 | productType = "com.apple.product-type.application"; 418 | }; 419 | /* End PBXNativeTarget section */ 420 | 421 | /* Begin PBXProject section */ 422 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 423 | isa = PBXProject; 424 | attributes = { 425 | LastUpgradeCheck = 610; 426 | ORGANIZATIONNAME = Facebook; 427 | TargetAttributes = { 428 | 00E356ED1AD99517003FC87E = { 429 | CreatedOnToolsVersion = 6.2; 430 | TestTargetID = 13B07F861A680F5B00A75B9A; 431 | }; 432 | }; 433 | }; 434 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "JackBan" */; 435 | compatibilityVersion = "Xcode 3.2"; 436 | developmentRegion = English; 437 | hasScannedForEncodings = 0; 438 | knownRegions = ( 439 | en, 440 | Base, 441 | ); 442 | mainGroup = 83CBB9F61A601CBA00E9B192; 443 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 444 | projectDirPath = ""; 445 | projectReferences = ( 446 | { 447 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 448 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 449 | }, 450 | { 451 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 452 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 453 | }, 454 | { 455 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 456 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 457 | }, 458 | { 459 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 460 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 461 | }, 462 | { 463 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 464 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 465 | }, 466 | { 467 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 468 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 469 | }, 470 | { 471 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 472 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 473 | }, 474 | { 475 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 476 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 477 | }, 478 | { 479 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 480 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 481 | }, 482 | { 483 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 484 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 485 | }, 486 | { 487 | ProductGroup = 146834001AC3E56700842450 /* Products */; 488 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 489 | }, 490 | ); 491 | projectRoot = ""; 492 | targets = ( 493 | 13B07F861A680F5B00A75B9A /* JackBan */, 494 | 00E356ED1AD99517003FC87E /* JackBanTests */, 495 | ); 496 | }; 497 | /* End PBXProject section */ 498 | 499 | /* Begin PBXReferenceProxy section */ 500 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 501 | isa = PBXReferenceProxy; 502 | fileType = archive.ar; 503 | path = libRCTActionSheet.a; 504 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 505 | sourceTree = BUILT_PRODUCTS_DIR; 506 | }; 507 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 508 | isa = PBXReferenceProxy; 509 | fileType = archive.ar; 510 | path = libRCTGeolocation.a; 511 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 512 | sourceTree = BUILT_PRODUCTS_DIR; 513 | }; 514 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 515 | isa = PBXReferenceProxy; 516 | fileType = archive.ar; 517 | path = libRCTImage.a; 518 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 519 | sourceTree = BUILT_PRODUCTS_DIR; 520 | }; 521 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 522 | isa = PBXReferenceProxy; 523 | fileType = archive.ar; 524 | path = libRCTNetwork.a; 525 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 526 | sourceTree = BUILT_PRODUCTS_DIR; 527 | }; 528 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 529 | isa = PBXReferenceProxy; 530 | fileType = archive.ar; 531 | path = libRCTVibration.a; 532 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 533 | sourceTree = BUILT_PRODUCTS_DIR; 534 | }; 535 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 536 | isa = PBXReferenceProxy; 537 | fileType = archive.ar; 538 | path = libRCTSettings.a; 539 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 540 | sourceTree = BUILT_PRODUCTS_DIR; 541 | }; 542 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 543 | isa = PBXReferenceProxy; 544 | fileType = archive.ar; 545 | path = libRCTWebSocket.a; 546 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 547 | sourceTree = BUILT_PRODUCTS_DIR; 548 | }; 549 | 146834041AC3E56700842450 /* libReact.a */ = { 550 | isa = PBXReferenceProxy; 551 | fileType = archive.ar; 552 | path = libReact.a; 553 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 554 | sourceTree = BUILT_PRODUCTS_DIR; 555 | }; 556 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 557 | isa = PBXReferenceProxy; 558 | fileType = archive.ar; 559 | path = libRCTAnimation.a; 560 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 561 | sourceTree = BUILT_PRODUCTS_DIR; 562 | }; 563 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 564 | isa = PBXReferenceProxy; 565 | fileType = archive.ar; 566 | path = "libRCTAnimation-tvOS.a"; 567 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 568 | sourceTree = BUILT_PRODUCTS_DIR; 569 | }; 570 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 571 | isa = PBXReferenceProxy; 572 | fileType = archive.ar; 573 | path = libRCTLinking.a; 574 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 575 | sourceTree = BUILT_PRODUCTS_DIR; 576 | }; 577 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 578 | isa = PBXReferenceProxy; 579 | fileType = archive.ar; 580 | path = libRCTText.a; 581 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 582 | sourceTree = BUILT_PRODUCTS_DIR; 583 | }; 584 | /* End PBXReferenceProxy section */ 585 | 586 | /* Begin PBXResourcesBuildPhase section */ 587 | 00E356EC1AD99517003FC87E /* Resources */ = { 588 | isa = PBXResourcesBuildPhase; 589 | buildActionMask = 2147483647; 590 | files = ( 591 | ); 592 | runOnlyForDeploymentPostprocessing = 0; 593 | }; 594 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 595 | isa = PBXResourcesBuildPhase; 596 | buildActionMask = 2147483647; 597 | files = ( 598 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 599 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 600 | 18383100F34245EDAADBB530 /* Entypo.ttf in Resources */, 601 | DE4EA7BA29E24EE291B1D55D /* EvilIcons.ttf in Resources */, 602 | 8FF15896DF9740818F6AEAFC /* FontAwesome.ttf in Resources */, 603 | 62136E389B4546BEA164B35D /* Foundation.ttf in Resources */, 604 | 5ADCBD48CCCF4B3C8EEF40CA /* Ionicons.ttf in Resources */, 605 | 3504672712374565AC464B05 /* MaterialCommunityIcons.ttf in Resources */, 606 | 0279FE369A5C4E81B28D2375 /* MaterialIcons.ttf in Resources */, 607 | 1FD57940B3B1400186051A6B /* Octicons.ttf in Resources */, 608 | BE81E3698C6F4BEA83D38EF1 /* SimpleLineIcons.ttf in Resources */, 609 | C17225EC44294B4C991A9C10 /* Zocial.ttf in Resources */, 610 | ); 611 | runOnlyForDeploymentPostprocessing = 0; 612 | }; 613 | /* End PBXResourcesBuildPhase section */ 614 | 615 | /* Begin PBXShellScriptBuildPhase section */ 616 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 617 | isa = PBXShellScriptBuildPhase; 618 | buildActionMask = 2147483647; 619 | files = ( 620 | ); 621 | inputPaths = ( 622 | ); 623 | name = "Bundle React Native code and images"; 624 | outputPaths = ( 625 | ); 626 | runOnlyForDeploymentPostprocessing = 0; 627 | shellPath = /bin/sh; 628 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 629 | }; 630 | /* End PBXShellScriptBuildPhase section */ 631 | 632 | /* Begin PBXSourcesBuildPhase section */ 633 | 00E356EA1AD99517003FC87E /* Sources */ = { 634 | isa = PBXSourcesBuildPhase; 635 | buildActionMask = 2147483647; 636 | files = ( 637 | 00E356F31AD99517003FC87E /* JackBanTests.m in Sources */, 638 | ); 639 | runOnlyForDeploymentPostprocessing = 0; 640 | }; 641 | 13B07F871A680F5B00A75B9A /* Sources */ = { 642 | isa = PBXSourcesBuildPhase; 643 | buildActionMask = 2147483647; 644 | files = ( 645 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 646 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 647 | ); 648 | runOnlyForDeploymentPostprocessing = 0; 649 | }; 650 | /* End PBXSourcesBuildPhase section */ 651 | 652 | /* Begin PBXTargetDependency section */ 653 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 654 | isa = PBXTargetDependency; 655 | target = 13B07F861A680F5B00A75B9A /* JackBan */; 656 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 657 | }; 658 | /* End PBXTargetDependency section */ 659 | 660 | /* Begin PBXVariantGroup section */ 661 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 662 | isa = PBXVariantGroup; 663 | children = ( 664 | 13B07FB21A68108700A75B9A /* Base */, 665 | ); 666 | name = LaunchScreen.xib; 667 | path = JackBan; 668 | sourceTree = ""; 669 | }; 670 | /* End PBXVariantGroup section */ 671 | 672 | /* Begin XCBuildConfiguration section */ 673 | 00E356F61AD99517003FC87E /* Debug */ = { 674 | isa = XCBuildConfiguration; 675 | buildSettings = { 676 | BUNDLE_LOADER = "$(TEST_HOST)"; 677 | GCC_PREPROCESSOR_DEFINITIONS = ( 678 | "DEBUG=1", 679 | "$(inherited)", 680 | ); 681 | INFOPLIST_FILE = JackBanTests/Info.plist; 682 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 683 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 684 | PRODUCT_NAME = "$(TARGET_NAME)"; 685 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JackBan.app/JackBan"; 686 | LIBRARY_SEARCH_PATHS = ( 687 | "$(inherited)", 688 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 689 | ); 690 | }; 691 | name = Debug; 692 | }; 693 | 00E356F71AD99517003FC87E /* Release */ = { 694 | isa = XCBuildConfiguration; 695 | buildSettings = { 696 | BUNDLE_LOADER = "$(TEST_HOST)"; 697 | COPY_PHASE_STRIP = NO; 698 | INFOPLIST_FILE = JackBanTests/Info.plist; 699 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 700 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 701 | PRODUCT_NAME = "$(TARGET_NAME)"; 702 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JackBan.app/JackBan"; 703 | LIBRARY_SEARCH_PATHS = ( 704 | "$(inherited)", 705 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 706 | ); 707 | }; 708 | name = Release; 709 | }; 710 | 13B07F941A680F5B00A75B9A /* Debug */ = { 711 | isa = XCBuildConfiguration; 712 | buildSettings = { 713 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 714 | CURRENT_PROJECT_VERSION = 1; 715 | DEAD_CODE_STRIPPING = NO; 716 | INFOPLIST_FILE = JackBan/Info.plist; 717 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 718 | OTHER_LDFLAGS = ( 719 | "$(inherited)", 720 | "-ObjC", 721 | "-lc++", 722 | ); 723 | PRODUCT_NAME = JackBan; 724 | VERSIONING_SYSTEM = "apple-generic"; 725 | }; 726 | name = Debug; 727 | }; 728 | 13B07F951A680F5B00A75B9A /* Release */ = { 729 | isa = XCBuildConfiguration; 730 | buildSettings = { 731 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 732 | CURRENT_PROJECT_VERSION = 1; 733 | INFOPLIST_FILE = JackBan/Info.plist; 734 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 735 | OTHER_LDFLAGS = ( 736 | "$(inherited)", 737 | "-ObjC", 738 | "-lc++", 739 | ); 740 | PRODUCT_NAME = JackBan; 741 | VERSIONING_SYSTEM = "apple-generic"; 742 | }; 743 | name = Release; 744 | }; 745 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 746 | isa = XCBuildConfiguration; 747 | buildSettings = { 748 | ALWAYS_SEARCH_USER_PATHS = NO; 749 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 750 | CLANG_CXX_LIBRARY = "libc++"; 751 | CLANG_ENABLE_MODULES = YES; 752 | CLANG_ENABLE_OBJC_ARC = YES; 753 | CLANG_WARN_BOOL_CONVERSION = YES; 754 | CLANG_WARN_CONSTANT_CONVERSION = YES; 755 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 756 | CLANG_WARN_EMPTY_BODY = YES; 757 | CLANG_WARN_ENUM_CONVERSION = YES; 758 | CLANG_WARN_INT_CONVERSION = YES; 759 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 760 | CLANG_WARN_UNREACHABLE_CODE = YES; 761 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 762 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 763 | COPY_PHASE_STRIP = NO; 764 | ENABLE_STRICT_OBJC_MSGSEND = YES; 765 | GCC_C_LANGUAGE_STANDARD = gnu99; 766 | GCC_DYNAMIC_NO_PIC = NO; 767 | GCC_OPTIMIZATION_LEVEL = 0; 768 | GCC_PREPROCESSOR_DEFINITIONS = ( 769 | "DEBUG=1", 770 | "$(inherited)", 771 | ); 772 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 773 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 774 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 775 | GCC_WARN_UNDECLARED_SELECTOR = YES; 776 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 777 | GCC_WARN_UNUSED_FUNCTION = YES; 778 | GCC_WARN_UNUSED_VARIABLE = YES; 779 | HEADER_SEARCH_PATHS = ( 780 | "$(inherited)", 781 | "$(SRCROOT)/../node_modules/react-native/React/**", 782 | "$(SRCROOT)/../node_modules/react-native/ReactCommon/**", 783 | "$(SRCROOT)\..\node_modules\react-native-vector-icons\RNVectorIconsManager", 784 | ); 785 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 786 | MTL_ENABLE_DEBUG_INFO = YES; 787 | ONLY_ACTIVE_ARCH = YES; 788 | SDKROOT = iphoneos; 789 | }; 790 | name = Debug; 791 | }; 792 | 83CBBA211A601CBA00E9B192 /* Release */ = { 793 | isa = XCBuildConfiguration; 794 | buildSettings = { 795 | ALWAYS_SEARCH_USER_PATHS = NO; 796 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 797 | CLANG_CXX_LIBRARY = "libc++"; 798 | CLANG_ENABLE_MODULES = YES; 799 | CLANG_ENABLE_OBJC_ARC = YES; 800 | CLANG_WARN_BOOL_CONVERSION = YES; 801 | CLANG_WARN_CONSTANT_CONVERSION = YES; 802 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 803 | CLANG_WARN_EMPTY_BODY = YES; 804 | CLANG_WARN_ENUM_CONVERSION = YES; 805 | CLANG_WARN_INT_CONVERSION = YES; 806 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 807 | CLANG_WARN_UNREACHABLE_CODE = YES; 808 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 809 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 810 | COPY_PHASE_STRIP = YES; 811 | ENABLE_NS_ASSERTIONS = NO; 812 | ENABLE_STRICT_OBJC_MSGSEND = YES; 813 | GCC_C_LANGUAGE_STANDARD = gnu99; 814 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 815 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 816 | GCC_WARN_UNDECLARED_SELECTOR = YES; 817 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 818 | GCC_WARN_UNUSED_FUNCTION = YES; 819 | GCC_WARN_UNUSED_VARIABLE = YES; 820 | HEADER_SEARCH_PATHS = ( 821 | "$(inherited)", 822 | "$(SRCROOT)/../node_modules/react-native/React/**", 823 | "$(SRCROOT)/../node_modules/react-native/ReactCommon/**", 824 | "$(SRCROOT)\..\node_modules\react-native-vector-icons\RNVectorIconsManager", 825 | ); 826 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 827 | MTL_ENABLE_DEBUG_INFO = NO; 828 | SDKROOT = iphoneos; 829 | VALIDATE_PRODUCT = YES; 830 | }; 831 | name = Release; 832 | }; 833 | /* End XCBuildConfiguration section */ 834 | 835 | /* Begin XCConfigurationList section */ 836 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "JackBanTests" */ = { 837 | isa = XCConfigurationList; 838 | buildConfigurations = ( 839 | 00E356F61AD99517003FC87E /* Debug */, 840 | 00E356F71AD99517003FC87E /* Release */, 841 | ); 842 | defaultConfigurationIsVisible = 0; 843 | defaultConfigurationName = Release; 844 | }; 845 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "JackBan" */ = { 846 | isa = XCConfigurationList; 847 | buildConfigurations = ( 848 | 13B07F941A680F5B00A75B9A /* Debug */, 849 | 13B07F951A680F5B00A75B9A /* Release */, 850 | ); 851 | defaultConfigurationIsVisible = 0; 852 | defaultConfigurationName = Release; 853 | }; 854 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "JackBan" */ = { 855 | isa = XCConfigurationList; 856 | buildConfigurations = ( 857 | 83CBBA201A601CBA00E9B192 /* Debug */, 858 | 83CBBA211A601CBA00E9B192 /* Release */, 859 | ); 860 | defaultConfigurationIsVisible = 0; 861 | defaultConfigurationName = Release; 862 | }; 863 | /* End XCConfigurationList section */ 864 | }; 865 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 866 | } 867 | -------------------------------------------------------------------------------- /ios/JackBan.xcodeproj/xcshareddata/xcschemes/JackBan.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ios/JackBan/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/JackBan/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTBundleURLProvider.h" 13 | #import "RCTRootView.h" 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"JackBan" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/JackBan/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/JackBan/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/JackBan/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 | NSExceptionDomains 44 | 45 | localhost 46 | 47 | NSExceptionAllowsInsecureHTTPLoads 48 | 49 | 50 | 51 | 52 | UIAppFonts 53 | 54 | Entypo.ttf 55 | EvilIcons.ttf 56 | FontAwesome.ttf 57 | Foundation.ttf 58 | Ionicons.ttf 59 | MaterialCommunityIcons.ttf 60 | MaterialIcons.ttf 61 | Octicons.ttf 62 | SimpleLineIcons.ttf 63 | Zocial.ttf 64 | 65 | 66 | -------------------------------------------------------------------------------- /ios/JackBan/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/JackBanTests/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/JackBanTests/JackBanTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import "RCTLog.h" 14 | #import "RCTRootView.h" 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface JackBanTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation JackBanTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /js/image/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/100.png -------------------------------------------------------------------------------- /js/image/app_header.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/app_header.gif -------------------------------------------------------------------------------- /js/image/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/back.png -------------------------------------------------------------------------------- /js/image/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/grid.png -------------------------------------------------------------------------------- /js/image/imageload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/imageload.png -------------------------------------------------------------------------------- /js/image/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/loading.gif -------------------------------------------------------------------------------- /js/image/meizi_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/meizi_back.png -------------------------------------------------------------------------------- /js/image/starting.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jack921/JackBan-ReactNative/593b3bd3ba474e780d61ec5c24f06ea32c711ebc/js/image/starting.gif -------------------------------------------------------------------------------- /js/main/Book.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | ToastAndroid, 14 | Navigator 15 | }from 'react-native'; 16 | 17 | import BookMessage from './BookMessage.js'; 18 | import Loading from './Loading'; 19 | import Details from './Details.js'; 20 | var BaseUrl='https://api.douban.com/v2/book/search?tag='; 21 | var Home=["综合","文学"]; 22 | var sometest=["综合","文学","流行","文化","生活","中国文学","爱情","社会学","艺术","政治","社会"]; 23 | var position=0; 24 | var isMore=false; 25 | var data=[]; 26 | 27 | var Dimensions = require('Dimensions'); 28 | var MyWidth = Dimensions.get('window').width; 29 | 30 | class Book extends Component{ 31 | 32 | constructor(props){ 33 | super(props); 34 | this.state={ 35 | isLoad:true, 36 | dataSource: new ListView.DataSource({ 37 | rowHasChanged: (row1, row2) => row1 !== row2 38 | }), 39 | } 40 | } 41 | 42 | render(){ 43 | if(this.state.isLoad){ 44 | return this.renderLoadingView(); 45 | } 46 | return( 47 | 48 | 56 | 57 | ); 58 | } 59 | 60 | renderListViewItem(book){ 61 | return( 62 | {this.onMovieClick(book)}}> 65 | 66 | 67 | {book.title} 68 | {book.publisher} 69 | 70 | 71 | ); 72 | } 73 | 74 | onMovieClick(book){ 75 | this.props.navigator.push({ 76 | id:'details', 77 | args: {bookData:book}, 78 | component: BookMessage, 79 | sceneConfig: Navigator.SceneConfigs.PushFromRight 80 | }); 81 | } 82 | 83 | componentDidMount(){ 84 | this.FetchMovieData(); 85 | } 86 | 87 | FetchMovieData(){ 88 | fetch(BaseUrl+Home[position]) 89 | .then((response)=>response.json()) 90 | .then((responseData)=>{ 91 | for(i=0;i 116 | ) 117 | } 118 | 119 | renderLoadingView(){ 120 | return( 121 | 122 | 124 | 125 | ); 126 | } 127 | 128 | 129 | } 130 | 131 | const styles =StyleSheet.create({ 132 | loading:{ 133 | flex:1, 134 | flexDirection:'row', 135 | alignItems:'center', 136 | justifyContent: 'center', 137 | backgroundColor: '#ffffff' 138 | },container:{ 139 | flex:1, 140 | backgroundColor:'#ffffff' 141 | },listStyle:{ 142 | flexDirection:'row', 143 | flexWrap:'wrap' 144 | },listitem:{ 145 | width:MyWidth/3, 146 | height:190, 147 | flexDirection:'column', 148 | justifyContent:'center', 149 | alignItems:'center', 150 | backgroundColor:'#ffffff', 151 | marginTop:2, 152 | marginBottom:2 153 | },itemimage:{ 154 | width:100, 155 | height:150, 156 | marginTop:3 157 | },itemtitle:{ 158 | fontSize:17, 159 | textAlign:'left', 160 | justifyContent:'flex-start' 161 | },itemtext:{ 162 | fontSize:12, 163 | marginBottom:12, 164 | textAlign:'left', 165 | justifyContent:'flex-start' 166 | } 167 | 168 | }); 169 | 170 | 171 | export default Book; -------------------------------------------------------------------------------- /js/main/BookMessage.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | ToastAndroid, 14 | Navigator, 15 | ScrollView, 16 | Button, 17 | BackAndroid 18 | }from 'react-native'; 19 | 20 | var Dimensions = require('Dimensions'); 21 | var MyWidth = Dimensions.get('window').width; 22 | import Details from './Details.js'; 23 | 24 | class BookMessage extends Component{ 25 | 26 | componentDidMount() { 27 | BackAndroid.addEventListener('hardwareBackPress', this._back.bind(this)) 28 | } 29 | 30 | _back(){ 31 | if (this.props.navigator) { 32 | this.props.navigator.pop(); 33 | return true; 34 | } 35 | return false; 36 | } 37 | 38 | render(){ 39 | return( 40 | 41 | 42 | 43 | 44 | 45 | {this.back()}}> 46 | 48 | 49 | 50 | 51 | 52 | {this.props.bookData.title} 53 | 54 | {this.props.bookData.rating.average+'分'} 55 | 56 | {this.props.bookData.author[0]} 57 | 58 | {"出版时间:"+this.props.bookData.pubdate} 59 | 60 | {"出版社:"+this.props.bookData.publisher} 61 | 62 | {this.props.bookData.price} 63 | 64 | 65 | 66 | 68 | 69 | 70 | 71 | {'简介'} 72 | 73 | {this.props.bookData.summary} 74 | 75 | {'作者简介'} 76 | 77 | {this.props.bookData.author_intro} 78 | 79 | 80 | 81 | ); 82 | } 83 | 84 | onLookButton(book){ 85 | this.props.navigator.push({ 86 | id:'details', 87 | args: {data:book}, 88 | component: Details, 89 | sceneConfig: Navigator.SceneConfigs.PushFromRight 90 | }); 91 | } 92 | 93 | back(){ 94 | if (this.props.navigator) { 95 | this.props.navigator.pop(); 96 | return true; 97 | } 98 | return false; 99 | } 100 | 101 | } 102 | 103 | const styles=StyleSheet.create({ 104 | container:{ 105 | flex:1, 106 | flexDirection:'column' 107 | },imageviewbg:{ 108 | height:300, 109 | backgroundColor:'#000000', 110 | justifyContent:'center', 111 | alignItems:'center' 112 | },bookimg:{ 113 | width:150, 114 | height:200 115 | },infotitle:{ 116 | fontSize:18, 117 | fontWeight:'bold', 118 | marginLeft:15, 119 | marginTop:5 120 | },infotext:{ 121 | fontSize:12, 122 | marginLeft:15, 123 | marginTop:4 124 | },buttonview:{ 125 | width:100, 126 | marginLeft:30, 127 | marginTop:15 128 | },infotip:{ 129 | marginLeft:15, 130 | marginTop:15, 131 | marginBottom:10 132 | },infocontent:{ 133 | width:MyWidth, 134 | marginLeft:10, 135 | marginRight:10 136 | } 137 | }); 138 | 139 | export default BookMessage; 140 | 141 | -------------------------------------------------------------------------------- /js/main/Details.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | BackAndroid, 11 | WebView, 12 | ToastAndroid 13 | }from 'react-native'; 14 | 15 | var Dimensions = require('Dimensions'); 16 | var MyWidth = Dimensions.get('window').width; 17 | var MyHeight = Dimensions.get('window').height; 18 | 19 | class Details extends Component{ 20 | 21 | constructor(props){ 22 | super(props); 23 | } 24 | 25 | componentDidMount() { 26 | BackAndroid.addEventListener('hardwareBackPress', this._back.bind(this)) 27 | } 28 | 29 | _back() { 30 | if (this.props.navigator) { 31 | this.props.navigator.pop(); 32 | return true; 33 | } 34 | return false; 35 | } 36 | 37 | render(){ 38 | return( 39 | 40 | 47 | 48 | 49 | ); 50 | } 51 | 52 | } 53 | 54 | const styles=StyleSheet.create({ 55 | container:{ 56 | flex:1 57 | },webview:{ 58 | width:MyWidth, 59 | height:MyHeight, 60 | backgroundColor:'#E8E8E8' 61 | } 62 | }); 63 | 64 | export default Details; 65 | -------------------------------------------------------------------------------- /js/main/DrawerLayout.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | AppRegistry, 4 | StyleSheet, 5 | View, 6 | Text, 7 | Image, 8 | DrawerLayoutAndroid, 9 | TouchableOpacity, 10 | ToastAndroid, 11 | Navigator, 12 | ScrollView 13 | } from 'react-native'; 14 | 15 | import Meizi from './Meizi.js'; 16 | 17 | class DrawerLayout extends Component{ 18 | 19 | constructor(props){ 20 | super(props); 21 | } 22 | 23 | render(){ 24 | return( 25 | 26 | 27 | 28 | {this.drawItemView('妹子',1)} 29 | 30 | 31 | ); 32 | } 33 | 34 | drawItemView(name,action){ 35 | return( 36 | {this.meiziitem(action)}}> 38 | 39 | 40 | {name} 41 | 42 | 43 | ); 44 | } 45 | 46 | meiziitem(action){ 47 | if(action===1){ 48 | this.props.navigator.push({ 49 | id:'meizi', 50 | component:Meizi, 51 | sceneConfig:Navigator.SceneConfigs.PushFromRight 52 | }); 53 | } 54 | } 55 | 56 | } 57 | 58 | const styles=StyleSheet.create({ 59 | container:{ 60 | flex:1 61 | },itemview:{ 62 | height:50, 63 | justifyContent:'center', 64 | alignItems:'center', 65 | flexDirection:'row', 66 | backgroundColor:'#34CA70' 67 | },drawerheaderimage:{ 68 | width:250, 69 | height:180 70 | },drawimage:{ 71 | width:30, 72 | height:30 73 | },drawitemtext:{ 74 | marginLeft:5, 75 | fontSize:18 76 | } 77 | }); 78 | 79 | export default DrawerLayout; 80 | -------------------------------------------------------------------------------- /js/main/Loading.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ActivityIndicator 12 | }from 'react-native'; 13 | 14 | var ProgressBar = require('ProgressBarAndroid'); 15 | 16 | class Loading extends Component{ 17 | 18 | constructor(props){ 19 | super(props); 20 | } 21 | 22 | render(){ 23 | return( 24 | 25 | 29 | {'加载中...'} 30 | 31 | ); 32 | } 33 | 34 | } 35 | 36 | const styles=StyleSheet.create({ 37 | loading:{ 38 | flex:1, 39 | flexDirection:'row', 40 | justifyContent:'center', 41 | alignItems:'center' 42 | },centering: { 43 | alignItems: 'center', 44 | justifyContent: 'center', 45 | padding: 8, 46 | } 47 | }); 48 | 49 | export default Loading; 50 | -------------------------------------------------------------------------------- /js/main/MainPage.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | DrawerLayoutAndroid 12 | }from 'react-native'; 13 | 14 | import px2pd from '../util/px2dp.js'; 15 | import Icon from 'react-native-vector-icons/Ionicons'; 16 | import TabNavigator from 'react-native-tab-navigator'; 17 | import DrawerLayout from './DrawerLayout.js'; 18 | import MovieView from './Movie.js'; 19 | import BookView from './Book.js'; 20 | import MusicView from './Music.js'; 21 | 22 | 23 | class MainPages extends Component{ 24 | 25 | static defaultProps = { 26 | selectedColor: 'rgb(22,131,251)', 27 | normalColor: '#a9a9a9' 28 | }; 29 | constructor(props) { 30 | super(props); 31 | this.state={ 32 | selectedTab: '电影', 33 | }; 34 | this.navigationView=( 35 | 37 | ); 38 | } 39 | 40 | render() { 41 | const {selectedColor,tabName} = this.props; 42 | return ( 43 | this.navigationView}> 47 | 49 | {this.renderTabItem('电影',this.state.homeNormal,this.state.homeSelected,this.createMovieChildView('电影'))} 50 | {this.renderTabItem('文学',this.state.meNormal,this.state.meSelected,this.createBookChildView('文学'))} 51 | {this.renderTabItem('音乐',this.state.compassNormal,this.state.compassSelected,this.createMusicChildView('音乐'))} 52 | 53 | 54 | 55 | ); 56 | } 57 | 58 | renderTabItem(title,image,slectImage,childview){ 59 | const {selectedColor} = this.props; 60 | return( 61 | } 67 | renderSelectedIcon={() => } 68 | onPress={() => this.setState({ selectedTab: title })}> 69 | {childview} 70 | 71 | ) 72 | } 73 | 74 | createMovieChildView(tag) { 75 | return ( 76 | 77 | ) 78 | } 79 | 80 | createBookChildView(tag){ 81 | return ( 82 | 83 | ) 84 | } 85 | 86 | createMusicChildView(tag){ 87 | return( 88 | 89 | ) 90 | } 91 | 92 | componentWillMount() { 93 | const {selectedColor, normalColor} = this.props; 94 | Icon.getImageSource('md-videocam', 50, normalColor).then((source) => this.setState({ homeNormal: source })); 95 | Icon.getImageSource('md-videocam', 50, selectedColor).then((source) => this.setState({ homeSelected: source })); 96 | Icon.getImageSource('md-book', 50, normalColor).then((source) => this.setState({ meNormal: source })); 97 | Icon.getImageSource('md-book', 50, selectedColor).then((source) => this.setState({ meSelected: source })); 98 | Icon.getImageSource('md-musical-notes', 50, normalColor).then((source) => this.setState({ compassNormal: source })); 99 | Icon.getImageSource('md-musical-notes', 50, selectedColor).then((source) => this.setState({ compassSelected: source })); 100 | } 101 | 102 | 103 | } 104 | 105 | const styles = StyleSheet.create({ 106 | tabbar: { 107 | height: 56, 108 | alignItems:'center', 109 | justifyContent: 'center', 110 | backgroundColor: '#fff' 111 | }, 112 | tabStyle:{ 113 | alignItems:'center', 114 | justifyContent: 'center', 115 | padding: 5 116 | }, 117 | tab: { 118 | width: 21, 119 | height: 21 120 | }, 121 | avigationView:{ 122 | flex:1, 123 | flexDirection:'column', 124 | justifyContent:'center' 125 | } 126 | }); 127 | 128 | export default MainPages; 129 | 130 | -------------------------------------------------------------------------------- /js/main/MainView.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | Navigator 12 | }from 'react-native'; 13 | 14 | import StartView from './StartView.js'; 15 | import MainPage from './MainPage.js'; 16 | 17 | class MainView extends Component{ 18 | 19 | constructor(props){ 20 | super(props); 21 | this.state={ 22 | isLoad:false, 23 | }; 24 | } 25 | 26 | render(){ 27 | if(this.state.isLoad){ 28 | return this.showLoadingView(); 29 | } 30 | return( 31 | { 34 | return 35 | } 36 | } 37 | configureScene={(route) => { 38 | return Navigator.SceneConfigs.HorizontalSwipeJump; 39 | }}/> 40 | ); 41 | } 42 | 43 | showLoadingView(){ 44 | return( 45 | 46 | 47 | 48 | ); 49 | } 50 | } 51 | 52 | 53 | var styles=StyleSheet.create({ 54 | container:{ 55 | flex:1, 56 | flexDirection:'row', 57 | alignItems: 'center', 58 | justifyContent:'center', 59 | backgroundColor: '#F5FCFF', 60 | }, 61 | startview:{ 62 | flex: 1, 63 | flexDirection: 'row', 64 | alignItems: 'center', 65 | backgroundColor: '#FFE439', 66 | }, 67 | loading:{ 68 | flex:1, 69 | flexDirection:'row', 70 | alignItems:'center', 71 | backgroundColor:'#FFE439', 72 | }, 73 | testText:{ 74 | flexDirection:'row', 75 | justifyContent:'center', 76 | }, 77 | }); 78 | 79 | export default MainView; -------------------------------------------------------------------------------- /js/main/Meizi.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | AppRegistry, 4 | StyleSheet, 5 | View, 6 | Text, 7 | Image, 8 | TouchableOpacity, 9 | ToastAndroid, 10 | ToolbarAndroid, 11 | ListView, 12 | Navigator, 13 | BackAndroid 14 | } from 'react-native'; 15 | 16 | var GANKBASE='http://gank.io/api/data/福利/14/'; 17 | var page=1; 18 | var Dimensions = require('Dimensions'); 19 | var MyWidth = Dimensions.get('window').width; 20 | 21 | import Loading from './Loading'; 22 | import MeiziDetail from './MeiziDetail.js'; 23 | var data=[]; 24 | 25 | class Meizi extends Component{ 26 | constructor(props){ 27 | super(props); 28 | this.state={ 29 | isLoad:true, 30 | dataSource:new ListView.DataSource({ 31 | rowHasChanged: (row1, row2) => row1 !== row2 32 | }), 33 | } 34 | } 35 | 36 | componentDidMount(){ 37 | BackAndroid.addEventListener('hardwareBackPress', this._back.bind(this)) 38 | this.fetchMovieData(); 39 | } 40 | 41 | _back() { 42 | if (this.props.navigator) { 43 | this.props.navigator.pop(); 44 | return true; 45 | } 46 | return false; 47 | } 48 | 49 | render(){ 50 | if(this.state.isLoad){ 51 | return this.renderLoadingView(); 52 | } 53 | return( 54 | 55 | {this.onBackButton()}}/> 59 | 67 | 68 | 69 | ); 70 | } 71 | 72 | fetchMovieData(){ 73 | fetch(GANKBASE+page) 74 | .then((response)=>response.json()) 75 | .then((responseData)=>{ 76 | for(i=0;i{this.onMeiziClick(gank)}}> 93 | 95 | 96 | ); 97 | } 98 | 99 | renderLoadingView(){ 100 | return( 101 | 102 | 104 | 105 | ); 106 | } 107 | 108 | onMeiziClick(meizi){ 109 | this.props.navigator.push({ 110 | id: 'MeiziDetail', 111 | args: {meizilist:data}, 112 | component: MeiziDetail, 113 | sceneConfig: Navigator.SceneConfigs.PushFromRight 114 | }); 115 | } 116 | 117 | toEnd(gank){ 118 | if(!this.state.isMore){ 119 | this.isMore=true; 120 | this.fetchMovieData(); 121 | } 122 | } 123 | 124 | renderFooter(gank){ 125 | return( 126 | 127 | ) 128 | } 129 | 130 | onBackButton(){ 131 | if (this.props.navigator) { 132 | this.props.navigator.pop(); 133 | return true; 134 | } 135 | return false; 136 | } 137 | 138 | } 139 | 140 | const styles=StyleSheet.create({ 141 | container:{ 142 | flex:1, 143 | },loading: { 144 | flex:1, 145 | flexDirection:'row', 146 | alignItems:'center', 147 | justifyContent: 'center', 148 | backgroundColor: '#ffffff' 149 | },toolbar:{ 150 | height:50, 151 | backgroundColor:'#DDDDDD' 152 | },listStyle:{ 153 | flexDirection:'row', 154 | flexWrap:'wrap' 155 | },listimage:{ 156 | width:(MyWidth/2)-6, 157 | height:250, 158 | borderRadius:8, 159 | marginTop:3, 160 | marginBottom:3, 161 | marginLeft:3, 162 | marginRight:3 163 | },touchView:{ 164 | width:MyWidth/2, 165 | height:256, 166 | } 167 | }); 168 | 169 | export default Meizi; 170 | 171 | -------------------------------------------------------------------------------- /js/main/MeiziDetail.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | AppRegistry, 4 | StyleSheet, 5 | View, 6 | Text, 7 | Image, 8 | TouchableOpacity, 9 | ToastAndroid, 10 | ToolbarAndroid, 11 | BackAndroid, 12 | Platform, 13 | ViewPagerAndroid 14 | } from 'react-native'; 15 | 16 | var MyWidth = require('Dimensions').get('window').width; 17 | var MyHeight = require('Dimensions').get('window').height; 18 | 19 | class MeiziDetail extends Component{ 20 | 21 | constructor(props){ 22 | super(props); 23 | } 24 | 25 | componentDidMount() { 26 | BackAndroid.addEventListener('hardwareBackPress', this._back.bind(this)) 27 | } 28 | 29 | _back() { 30 | if (this.props.navigator) { 31 | this.props.navigator.pop(); 32 | return true; 33 | } 34 | return false; 35 | } 36 | 37 | render(){ 38 | if(Platform.OS === 'ios'){ 39 | return this.iosImageView(); 40 | }else{ 41 | return this.androidImageView(); 42 | } 43 | } 44 | 45 | iosImageView(){ 46 | return( 47 | 48 | 51 | 52 | ); 53 | } 54 | 55 | androidImageView(){ 56 | var pages = []; 57 | for (i = 0; i < this.props.meizilist.length;i++) { 58 | pages.push( 59 | 60 | 63 | 64 | ); 65 | } 66 | return( 67 | 71 | {pages} 72 | 73 | ); 74 | } 75 | 76 | } 77 | 78 | const styles=StyleSheet.create({ 79 | container:{ 80 | flex:1, 81 | flexDirection:'column', 82 | justifyContent:'center', 83 | alignItems:'center' 84 | },image:{ 85 | width:MyWidth, 86 | height:MyHeight 87 | },viewPager:{ 88 | flex:1 89 | },viewPagerItem:{ 90 | backgroundColor:'#CCCCCC', 91 | alignItems: 'center', 92 | padding: 20 93 | } 94 | }); 95 | 96 | export default MeiziDetail; 97 | 98 | -------------------------------------------------------------------------------- /js/main/Movie.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image 11 | }from 'react-native'; 12 | 13 | import ScrollableTabView,{DefaultTabBar,} from 'react-native-scrollable-tab-view'; 14 | import MovieHotSearch from './MovieHotSearch.js'; 15 | import MovieTop250 from './MovieTop250.js'; 16 | import MovieComing from './MovieComing.js'; 17 | 18 | class Movie extends Component{ 19 | 20 | constructor(props){ 21 | super(props); 22 | } 23 | render(){ 24 | return( 25 | } 27 | tabBarUnderlineStyle={{backgroundColor: '#1683FB'}} 28 | tabBarActiveTextColor='#1683FB'> 29 | 30 | 31 | 32 | 33 | ); 34 | } 35 | } 36 | 37 | export default Movie; -------------------------------------------------------------------------------- /js/main/MovieComing.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | ToastAndroid, 14 | Navigator 15 | }from 'react-native'; 16 | 17 | import MovieMessage from './MovieMessage.js'; 18 | var MOVIECOMING='https://api.douban.com/v2/movie/coming_soon'; 19 | 20 | class MovieComing extends Component{ 21 | constructor(props){ 22 | super(props); 23 | this.state={ 24 | isLoad:true, 25 | dataSource: new ListView.DataSource({ 26 | rowHasChanged: (row1, row2) => row1 !== row2 27 | }), 28 | } 29 | } 30 | 31 | render(){ 32 | if(this.state.isLoad){ 33 | return this.renderLoadingView(); 34 | } 35 | return( 36 | 37 | 42 | 43 | ); 44 | } 45 | 46 | renderListViewItem(movie){ 47 | var directors='无'; 48 | if(movie.directors[0]!=null){ 49 | directors=movie.directors[0].name; 50 | } 51 | var casts=''; 52 | var i=0; 53 | for(var cast in movie.casts){ 54 | if(i===0){ 55 | casts=movie.casts[0].name; 56 | }else{ 57 | casts+=","+movie.casts[i].name; 58 | } 59 | i++; 60 | } 61 | 62 | return( 63 | {this.onMovieClick(movie)}}> 65 | 66 | 67 | 68 | {movie.title} 69 | {'评分:'+movie.rating.average} 70 | {'类型:'+movie.genres} 71 | {'导演:'+directors} 72 | {'演员:'+casts} 73 | 74 | 75 | 76 | ); 77 | } 78 | 79 | onMovieClick(movie){ 80 | this.props.navigator.push({ 81 | id:'MovieMessage', 82 | args: {data:movie}, 83 | component: MovieMessage, 84 | sceneConfig: Navigator.SceneConfigs.PushFromRight 85 | }); 86 | } 87 | 88 | componentDidMount(){ 89 | this.FetchMovieData(); 90 | } 91 | 92 | FetchMovieData(){ 93 | fetch(MOVIECOMING) 94 | .then((response)=>response.json()) 95 | .then((responseData)=>{ 96 | this.setState({ 97 | dataSource:this.state.dataSource.cloneWithRows(responseData.subjects), 98 | isLoad:false, 99 | }); 100 | } 101 | ); 102 | } 103 | 104 | renderLoadingView(){ 105 | return( 106 | 107 | 110 | 111 | ); 112 | } 113 | 114 | 115 | } 116 | 117 | const styles =StyleSheet.create({ 118 | loading:{ 119 | flex:1, 120 | flexDirection:'row', 121 | alignItems:'center', 122 | justifyContent: 'center', 123 | backgroundColor: '#ffffff' 124 | },container:{ 125 | flex:1, 126 | backgroundColor:'#ffffff' 127 | },listStyle:{ 128 | flex:1 129 | },listitem:{ 130 | flex:1, 131 | flexDirection:'row', 132 | backgroundColor:'#ffffff', 133 | marginTop:2, 134 | marginBottom:2, 135 | marginLeft:3 136 | },itemimage:{ 137 | width:110, 138 | height:150 139 | },itemview:{ 140 | flex:1, 141 | flexDirection:'column', 142 | alignItems:'flex-start', 143 | marginLeft:10 144 | },itemtitle:{ 145 | fontSize: 22, 146 | fontWeight:'bold', 147 | textAlign:'left' 148 | },itemtext:{ 149 | fontSize:17, 150 | marginTop:5 151 | } 152 | 153 | }); 154 | 155 | export default MovieComing; -------------------------------------------------------------------------------- /js/main/MovieHotSearch.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | ToastAndroid, 14 | Navigator 15 | }from 'react-native'; 16 | 17 | import MovieMessage from './MovieMessage.js'; 18 | var MOVIEHOT='https://api.douban.com/v2/movie/in_theaters'; 19 | var Dimensions = require('Dimensions'); 20 | var MyWidth = Dimensions.get('window').width; 21 | var MyHeight = Dimensions.get('window').height; 22 | 23 | class MovieHotSearch extends Component{ 24 | 25 | constructor(props){ 26 | super(props); 27 | this.state={ 28 | isLoad:true, 29 | dataSource: new ListView.DataSource({ 30 | rowHasChanged: (row1, row2) => row1 !== row2 31 | }), 32 | }; 33 | } 34 | 35 | render(){ 36 | if(this.state.isLoad){ 37 | return this.renderLoadingView(); 38 | } 39 | return( 40 | 41 | 47 | 48 | ); 49 | } 50 | 51 | componentDidMount(){ 52 | this.FetchMovieData(); 53 | } 54 | 55 | FetchMovieData(){ 56 | fetch(MOVIEHOT) 57 | .then((response)=>response.json()) 58 | .then((responseData)=>{ 59 | this.setState({ 60 | dataSource:this.state.dataSource.cloneWithRows(responseData.subjects), 61 | isLoad:false, 62 | }); 63 | } 64 | ); 65 | } 66 | 67 | renderListViewItem(movie){ 68 | return( 69 | {this.onMovieClick(movie)}}> 71 | 72 | 73 | {movie.title} 74 | {'评分:'+movie.rating.average} 75 | 76 | 77 | ); 78 | } 79 | 80 | onMovieClick(movie){ 81 | this.props.navigator.push({ 82 | id: 'moviemessage', 83 | args: {data:movie}, 84 | component: MovieMessage, 85 | sceneConfig: Navigator.SceneConfigs.PushFromRight 86 | }); 87 | } 88 | 89 | renderLoadingView(){ 90 | return( 91 | 92 | 95 | 96 | ); 97 | } 98 | 99 | } 100 | 101 | 102 | const styles = StyleSheet.create({ 103 | loading: { 104 | flex:1, 105 | flexDirection:'row', 106 | alignItems:'center', 107 | justifyContent: 'center', 108 | backgroundColor: '#ffffff' 109 | },container:{ 110 | flex:1, 111 | backgroundColor:'#ffffff' 112 | },listStyle:{ 113 | flexDirection:'row', 114 | flexWrap:'wrap', 115 | },itemViewStyle:{ 116 | flexDirection:'column', 117 | justifyContent:'center', 118 | alignItems:'center', 119 | width:MyWidth/3, 120 | height:190, 121 | marginTop:3, 122 | marginBottom:3 123 | },itemIconStyle:{ 124 | width:110, 125 | height:140 126 | },itemTitleStyle:{ 127 | textAlign:'center', 128 | fontWeight:'bold', 129 | width:80 130 | } 131 | }); 132 | 133 | export default MovieHotSearch; 134 | -------------------------------------------------------------------------------- /js/main/MovieMessage.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | ToastAndroid, 14 | Navigator, 15 | ScrollView, 16 | BackAndroid 17 | }from 'react-native'; 18 | 19 | var MOVIEBASE='https://api.douban.com/v2/movie/subject/'; 20 | import Details from './Details.js'; 21 | 22 | class MovieMessage extends Component{ 23 | 24 | constructor(props){ 25 | super(props); 26 | const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); 27 | this.state={ 28 | dataSource:ds.cloneWithRows(this.props.data.casts), 29 | content:'' 30 | }; 31 | } 32 | 33 | componentDidMount() { 34 | this.FetchMovieData(); 35 | BackAndroid.addEventListener('hardwareBackPress', this._back.bind(this)) 36 | } 37 | 38 | _back(){ 39 | if (this.props.navigator) { 40 | this.props.navigator.pop(); 41 | return true; 42 | } 43 | return false; 44 | } 45 | 46 | FetchMovieData(){ 47 | fetch(MOVIEBASE+this.props.data.id) 48 | .then((response)=>response.json()) 49 | .then((responseData)=>{ 50 | this.setState({ 51 | content:responseData.summary, 52 | countries:responseData.countries[0] 53 | }); 54 | } 55 | ); 56 | } 57 | 58 | render(){ 59 | var type=''; 60 | for(i=0;i 70 | 71 | 72 | 73 | 74 | {this.back()}}> 75 | 77 | 78 | 79 | {'电影详情'} 80 | 81 | 82 | 83 | 84 | 85 | 86 | {this.props.data.title} 87 | {this.props.data.original_title+'[原名]'} 88 | {'评分:'+this.props.data.rating.average} 89 | {this.props.data.year+'年 出品'} 90 | {type} 91 | {"国家:"+this.state.countries} 92 | 93 | 94 | 95 | {'简介'} 96 | 97 | {this.state.content} 98 | 99 | 100 | 101 | 102 | 103 | {this.props.data.directors[0].name} 104 | {'[导演]'} 105 | 106 | 107 | 108 | 109 | 114 | 115 | {this.onMoreButton(this.props.data)}}> 116 | 117 | {'更多'} 118 | 119 | 120 | 121 | 122 | 123 | ); 124 | } 125 | 126 | onMoreButton(movie){ 127 | this.props.navigator.push({ 128 | id: 'details', 129 | args: {data:movie}, 130 | component: Details, 131 | sceneConfig: Navigator.SceneConfigs.PushFromRight 132 | }); 133 | } 134 | 135 | back(){ 136 | if (this.props.navigator) { 137 | this.props.navigator.pop(); 138 | return true; 139 | } 140 | return false; 141 | } 142 | 143 | renderListViewItem(casts){ 144 | return( 145 | 146 | 147 | 148 | 149 | {casts.name} 150 | {'[演员]'} 151 | 152 | 153 | 154 | ); 155 | } 156 | 157 | } 158 | 159 | const styles=StyleSheet.create({ 160 | container:{ 161 | flex:1, 162 | flexDirection:'column' 163 | },messageview:{ 164 | flexDirection:'row' 165 | },infoImage:{ 166 | width:150, 167 | height:200, 168 | marginTop:10, 169 | marginLeft:10 170 | },infoMessage:{ 171 | flexDirection:'column', 172 | marginTop:10, 173 | marginLeft:10 174 | },infotxt:{ 175 | marginTop:5, 176 | fontSize:15 177 | },infomessagebg:{ 178 | padding:2, 179 | backgroundColor:'#F2F2F2', 180 | width:50, 181 | marginTop:15, 182 | marginBottom:10, 183 | marginLeft:15, 184 | textAlign:'center', 185 | borderRadius:5 186 | },infomsgcontent:{ 187 | backgroundColor:'#F2F2F2', 188 | marginLeft:15, 189 | marginRight:15, 190 | marginBottom:20, 191 | padding:3, 192 | borderRadius:5 193 | },infopeopleimg:{ 194 | width:50, 195 | height:50, 196 | marginTop:10, 197 | marginBottom:10, 198 | marginLeft:15 199 | },infopeoplemsg:{ 200 | flexDirection:'column', 201 | marginLeft:5 202 | },infopeopleview:{ 203 | flexDirection:'row', 204 | backgroundColor:'#F2F2F2', 205 | marginLeft:15, 206 | marginRight:15, 207 | marginBottom:15 208 | },more:{ 209 | height:50, 210 | marginLeft:15, 211 | marginRight:15, 212 | marginTop:10, 213 | marginBottom:20, 214 | backgroundColor:'#F2F2F2', 215 | flexDirection:'column', 216 | justifyContent:'center', 217 | alignItems:'center' 218 | } 219 | }); 220 | 221 | export default MovieMessage; 222 | -------------------------------------------------------------------------------- /js/main/MovieTop250.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | ToastAndroid, 14 | Navigator 15 | }from 'react-native'; 16 | 17 | import MovieMessage from './MovieMessage.js'; 18 | var MOVIECOMING='https://api.douban.com/v2/movie/top250'; 19 | var ranking=0; 20 | 21 | 22 | class MovieTop250 extends Component{ 23 | 24 | constructor(props){ 25 | super(props); 26 | this.state={ 27 | isLoad:true, 28 | dataSource: new ListView.DataSource({ 29 | rowHasChanged: (row1, row2) => row1 !== row2 30 | }), 31 | } 32 | } 33 | 34 | render(){ 35 | if(this.state.isLoad){ 36 | return this.renderLoadingView(); 37 | } 38 | return( 39 | 40 | 45 | 46 | ); 47 | } 48 | 49 | renderListViewItem(movie){ 50 | 51 | ranking++; 52 | 53 | return( 54 | {this.onMovieClick(movie)}}> 56 | 57 | 58 | {ranking+""} 59 | 60 | 61 | 62 | 63 | {movie.title} 64 | {'评分:'+movie.rating.average} 65 | {'类型:'+movie.genres} 66 | 67 | 68 | 69 | 70 | ); 71 | } 72 | 73 | onMovieClick(movie){ 74 | this.props.navigator.push({ 75 | id:'MovieMessage', 76 | args: {data:movie}, 77 | component: MovieMessage, 78 | sceneConfig: Navigator.SceneConfigs.PushFromRight 79 | }); 80 | } 81 | 82 | componentDidMount(){ 83 | this.FetchMovieData(); 84 | } 85 | 86 | FetchMovieData(){ 87 | fetch(MOVIECOMING) 88 | .then((response)=>response.json()) 89 | .then((responseData)=>{ 90 | this.setState({ 91 | dataSource:this.state.dataSource.cloneWithRows(responseData.subjects), 92 | isLoad:false, 93 | }); 94 | } 95 | ); 96 | } 97 | 98 | renderLoadingView(){ 99 | return( 100 | 101 | 104 | 105 | ); 106 | } 107 | 108 | 109 | } 110 | 111 | const styles =StyleSheet.create({ 112 | loading:{ 113 | flex:1, 114 | flexDirection:'row', 115 | alignItems:'center', 116 | justifyContent: 'center', 117 | backgroundColor: '#ffffff' 118 | },container:{ 119 | flex:1, 120 | backgroundColor:'#ffffff' 121 | },listStyle:{ 122 | flex:1 123 | },listitem:{ 124 | flex:1, 125 | flexDirection:'row', 126 | backgroundColor:'#ffffff' 127 | },itemimage:{ 128 | width:110, 129 | height:155, 130 | marginLeft:3, 131 | marginTop:3 132 | },itemview:{ 133 | flex:1, 134 | flexDirection:'column', 135 | alignItems:'flex-start', 136 | backgroundColor:'#ffffff', 137 | marginLeft:10 138 | },itemtitle:{ 139 | fontSize: 22, 140 | fontWeight:'bold', 141 | textAlign:'left' 142 | },itemtext:{ 143 | fontSize:17, 144 | marginTop:10 145 | },rankbg:{ 146 | backgroundColor:'#f1f1f1', 147 | justifyContent:'center' 148 | },listitembg:{ 149 | flex:1, 150 | flexDirection:'column', 151 | backgroundColor:'#ffffff', 152 | marginTop:2, 153 | marginBottom:2, 154 | marginLeft:3 155 | },rankitemtext:{ 156 | fontSize:17, 157 | marginTop:10, 158 | marginLeft:15 159 | } 160 | 161 | }); 162 | 163 | export default MovieTop250; -------------------------------------------------------------------------------- /js/main/Music.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity, 13 | Navigator, 14 | ToastAndroid 15 | }from 'react-native'; 16 | 17 | import Loading from './Loading'; 18 | import Details from './Details.js'; 19 | import MusicMessage from './MusicMessage.js'; 20 | var MUSICTAG=["流行","经典","韩系","欧美"]; 21 | var MUSICURL="https://api.douban.com/v2/music/search?tag="; 22 | var position=0; 23 | var data=[]; 24 | var isMore=false; 25 | 26 | var Dimensions = require('Dimensions'); 27 | var MyWidth = Dimensions.get('window').width; 28 | 29 | class Music extends Component{ 30 | 31 | constructor(props){ 32 | super(props) 33 | this.state={ 34 | isLoad:true, 35 | dataSource: new ListView.DataSource({ 36 | rowHasChanged: (row1, row2) => row1 !== row2 37 | }), 38 | } 39 | } 40 | 41 | render(){ 42 | if(this.state.isLoad){ 43 | return this.renderLoadingView(); 44 | } 45 | return( 46 | 47 | 54 | 55 | ); 56 | } 57 | 58 | componentDidMount(){ 59 | this.FetchMusicData(); 60 | } 61 | 62 | FetchMusicData(){ 63 | fetch(MUSICURL+MUSICTAG[position]) 64 | .then((response)=>response.json()) 65 | .then((responseData)=>{ 66 | for(i=0;i 81 | 86 | 87 | ); 88 | } 89 | 90 | renderListViewItem(music){ 91 | return( 92 | {this.onMovieClick(music)}}> 95 | 96 | 97 | 98 | {music.title} 99 | {'评分:'+music.rating.average} 100 | {music.author[0].name} 101 | 102 | 103 | 104 | ); 105 | } 106 | 107 | onMovieClick(music){ 108 | this.props.navigator.push({ 109 | id:'MusicMessage', 110 | args: {musicData:music}, 111 | component: MusicMessage, 112 | sceneConfig: Navigator.SceneConfigs.PushFromRight 113 | }); 114 | } 115 | 116 | renderFooter(movie){ 117 | return( 118 | 119 | ) 120 | } 121 | 122 | toEnd(movie){ 123 | if(!this.state.isMore){ 124 | this.isMore=true; 125 | this.FetchMusicData(); 126 | } 127 | } 128 | 129 | } 130 | 131 | const styles=StyleSheet.create({ 132 | container:{ 133 | flex:1, 134 | backgroundColor:'#ffffff' 135 | },loading:{ 136 | flex:1, 137 | flexDirection:'row', 138 | alignItems:'center', 139 | justifyContent: 'center', 140 | backgroundColor: '#ffffff' 141 | },listitem:{ 142 | flex:1, 143 | flexDirection:'row', 144 | backgroundColor:'#ffffff', 145 | marginLeft:3, 146 | borderBottomWidth:1, 147 | borderBottomColor:'gray' 148 | },itemimage:{ 149 | width:110, 150 | height:150, 151 | marginBottom:8, 152 | marginTop:8 153 | },itemview:{ 154 | flex:1, 155 | flexDirection:'column', 156 | alignItems:'flex-start', 157 | marginLeft:10 158 | },itemtitle:{ 159 | fontSize: 22, 160 | fontWeight:'bold', 161 | textAlign:'left' 162 | },itemtext:{ 163 | fontSize:17, 164 | marginTop:5 165 | } 166 | }); 167 | 168 | export default Music; -------------------------------------------------------------------------------- /js/main/MusicMessage.js: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | TouchableOpacity, 12 | Navigator, 13 | ToastAndroid, 14 | ScrollView, 15 | Button, 16 | BackAndroid 17 | }from 'react-native'; 18 | 19 | var MUSICBASE="https://api.douban.com/v2/music/"; 20 | var Dimensions = require('Dimensions'); 21 | var MyWidth = Dimensions.get('window').width; 22 | import Details from './Details.js'; 23 | 24 | class MusicMessage extends Component{ 25 | 26 | constructor(props){ 27 | super(props); 28 | this.state={ 29 | pubdate:'', 30 | publisher:'', 31 | summary:'', 32 | tracks:'' 33 | }; 34 | 35 | } 36 | 37 | componentDidMount() { 38 | BackAndroid.addEventListener('hardwareBackPress', this._back.bind(this)); 39 | this.FetchMusicData(); 40 | } 41 | 42 | _back(){ 43 | if (this.props.navigator) { 44 | this.props.navigator.pop(); 45 | return true; 46 | } 47 | return false; 48 | } 49 | 50 | FetchMusicData(){ 51 | fetch(MUSICBASE+this.props.musicData.id) 52 | .then((response)=>response.json()) 53 | .then((responseData)=>{ 54 | this.setState({ 55 | pubdate:responseData.attrs.pubdate[0], 56 | publisher:responseData.attrs.publisher[0], 57 | summary:responseData.summary, 58 | tracks:responseData.attrs.tracks[0] 59 | }); 60 | } 61 | ); 62 | } 63 | 64 | render(){ 65 | return( 66 | 67 | 68 | 69 | 70 | 71 | {this.back()}}> 72 | 74 | 75 | 76 | 77 | 78 | {this.props.musicData.title} 79 | 80 | {this.props.musicData.rating.average+'分'} 81 | 82 | {this.props.musicData.author[0].name} 83 | 84 | {"出版时间:"+this.state.pubdate} 85 | 86 | {"出版社:"+this.state.publisher} 87 | 88 | 89 | 91 | 92 | 93 | {'简介'} 94 | 95 | {this.state.summary} 96 | 97 | {'曲目'} 98 | 99 | {this.state.tracks} 100 | 101 | 102 | 103 | ); 104 | } 105 | 106 | onMusicButton(music){ 107 | this.props.navigator.push({ 108 | id:'details', 109 | args: {data:music}, 110 | component: Details, 111 | sceneConfig: Navigator.SceneConfigs.PushFromRight 112 | }); 113 | } 114 | 115 | back(){ 116 | if (this.props.navigator) { 117 | this.props.navigator.pop(); 118 | return true; 119 | } 120 | return false; 121 | } 122 | 123 | } 124 | 125 | const styles=StyleSheet.create({ 126 | container:{ 127 | flex:1, 128 | flexDirection:'column' 129 | },imageviewbg:{ 130 | height:300, 131 | backgroundColor:'#000000', 132 | justifyContent:'center', 133 | alignItems:'center' 134 | },bookimg:{ 135 | width:150, 136 | height:200 137 | },infotitle:{ 138 | fontSize:18, 139 | fontWeight:'bold', 140 | marginLeft:15, 141 | marginTop:5 142 | },infotext:{ 143 | fontSize:12, 144 | marginLeft:15, 145 | marginTop:4 146 | },buttonview:{ 147 | width:100, 148 | marginLeft:30, 149 | marginTop:15 150 | },infotip:{ 151 | marginLeft:15, 152 | marginTop:15, 153 | marginBottom:10 154 | },infocontent:{ 155 | width:MyWidth, 156 | marginLeft:10, 157 | marginRight:10 158 | } 159 | }); 160 | 161 | export default MusicMessage; 162 | 163 | -------------------------------------------------------------------------------- /js/main/StartView.js: -------------------------------------------------------------------------------- 1 | import React, { 2 | Component, 3 | } from 'react'; 4 | 5 | import{ 6 | AppRegistry, 7 | StyleSheet, 8 | Image, 9 | View 10 | }from 'react-native'; 11 | 12 | class StartView extends Component{ 13 | render(){ 14 | return( 15 | 16 | 19 | 20 | 21 | ); 22 | } 23 | 24 | } 25 | 26 | const styles=StyleSheet.create({ 27 | container:{ 28 | flex:1, 29 | flexDirection:'row', 30 | alignItems:'center', 31 | justifyContent:'center', 32 | backgroundColor:'#FFE439', 33 | }, 34 | }); 35 | 36 | export default StartView; 37 | -------------------------------------------------------------------------------- /js/util/px2dp.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import {Dimensions} from 'react-native'; 4 | 5 | // device width/height 6 | //const deviceWidthDp = Dimensions.get('window').width; 7 | const deviceHeightDp = Dimensions.get('window').height; 8 | // design width/height 9 | const uiHeightPx = 640; 10 | 11 | export default function px2dp(uiElementPx) { 12 | //console.log(deviceWidthDp); 13 | //console.log(deviceHeightDp); 14 | return uiElementPx * deviceHeightDp / uiHeightPx; 15 | } -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true 5 | }, 6 | "exclude": [ 7 | "node_modules" 8 | ] 9 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JackBan", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "bundle-android": "react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output app/src/main/assets/index.android.bundle --sourcemap-output app/src/main/assets/index.android.map --assets-dest android/app/src/main/res/", 8 | "test": "jest" 9 | }, 10 | "dependencies": { 11 | "react": "15.4.1", 12 | "react-native": "0.39.2", 13 | "react-native-drawer-layout": "^1.1.0", 14 | "react-native-scrollable-tab-view": "^0.7.0", 15 | "react-native-tab-navigator": "^0.3.3", 16 | "react-native-vector-icons": "^4.0.0" 17 | }, 18 | "devDependencies": { 19 | "babel-jest": "18.0.0", 20 | "babel-preset-react-native": "1.9.1", 21 | "jest": "18.1.0", 22 | "react-test-renderer": "15.4.1" 23 | }, 24 | "jest": { 25 | "preset": "react-native" 26 | }, 27 | "contributes": { 28 | "commands": [ 29 | { 30 | "command": "extension.showStorybookPreview", 31 | "title": "Show Storybooks" 32 | } 33 | ], 34 | "menus": { 35 | "editor/title": [ 36 | { 37 | "command": "extension.showStorybookPreview", 38 | "when": "resourceLangId == javascript" 39 | } 40 | ] 41 | }, 42 | "configuration": { 43 | "type": "object", 44 | "title": "Configuration", 45 | "properties": { 46 | "react-native-storybooks.port": { 47 | "type": "number", 48 | "default": 8081, 49 | "description": "Port number" 50 | } 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /temp: -------------------------------------------------------------------------------- 1 | import React,{ 2 | Component, 3 | }from 'react'; 4 | 5 | import { 6 | AppRegistry, 7 | StyleSheet, 8 | View, 9 | Text, 10 | Image, 11 | ListView, 12 | TouchableOpacity 13 | }from 'react-native'; 14 | 15 | var MOVIEHOT='https://api.douban.com/v2/movie/in_theaters'; 16 | var Dimensions = require('Dimensions'); 17 | var {width} = Dimensions.get('window'); 18 | var {height} = Dimensions.get('window'); 19 | 20 | class MovieHotSearch extends Component{ 21 | 22 | constructor(props){ 23 | super(props); 24 | this.state={ 25 | data:'jack', 26 | isLoad:true, 27 | dataSource: new ListView.DataSource({ 28 | rowHasChanged: (row1, row2) => row1 !== row2 29 | }), 30 | }; 31 | } 32 | 33 | render(){ 34 | if(this.state.isLoad){ 35 | return this.renderLoadingView(); 36 | } 37 | return( 38 | 39 | 45 | 46 | ); 47 | } 48 | 49 | componentDidMount(){ 50 | this.FetchMovieData(); 51 | } 52 | 53 | FetchMovieData(){ 54 | fetch(MOVIEHOT) 55 | .then((response)=>response.json()) 56 | .then((responseData)=>{ 57 | this.setState({ 58 | dataSource:this.state.dataSource.cloneWithRows(responseData.subjects), 59 | isLoad:false, 60 | }); 61 | } 62 | ); 63 | } 64 | 65 | renderListViewItem(movie){ 66 | return( 67 | {this.onMovieClick(movie)}}> 69 | 70 | 71 | {movie.title} 72 | 73 | 74 | ); 75 | } 76 | 77 | onMovieClick(movie){ 78 | 79 | } 80 | 81 | renderLoadingView(){ 82 | return( 83 | 84 | 87 | 88 | ); 89 | } 90 | 91 | } 92 | 93 | const styles = StyleSheet.create({ 94 | loading: { 95 | flex:1, 96 | flexDirection:'row', 97 | alignItems:'center', 98 | justifyContent: 'center', 99 | backgroundColor: '#ffffff' 100 | },container:{ 101 | flex:1, 102 | backgroundColor: '#ffffff' 103 | },listview:{ 104 | backgroundColor: '#ffffff', 105 | flexDirection:'row', 106 | flexWrap:'wrap' 107 | },movieitem:{ 108 | alignItems:'center', 109 | width:width/3, 110 | height:100 111 | },rigthcontent:{ 112 | flex:1, 113 | flexDirection:'column' 114 | },title: { 115 | fontSize: 20, 116 | fontWeight: 'bold', 117 | marginLeft: 7, 118 | textAlign: 'left', 119 | },originaltitle: { 120 | fontSize: 13, 121 | fontStyle:'italic', 122 | marginTop: -2, 123 | marginLeft: 7, 124 | marginBottom: 4, 125 | },small: { 126 | margin: 7, 127 | marginLeft: 13, 128 | width: 64, 129 | height: 103, 130 | }, 131 | }); 132 | 133 | 134 | export default MovieHotSearch; --------------------------------------------------------------------------------