├── .flowconfig
├── .gitignore
├── .watchmanconfig
├── MainPage.js
├── README.md
├── RouteHome.js
├── RouteMe.js
├── Splash.js
├── android
├── app
│ ├── build.gradle
│ ├── proguard-rules.pro
│ ├── react.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── lagou
│ │ │ └── MainActivity.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.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── images
├── hello_page_bg.png
├── icon_back.png
├── icon_find_nor.png
├── icon_find_ok.png
├── icon_find_pre.png
├── icon_home_nor.png
├── icon_home_pre.png
├── icon_message_nor.png
├── icon_message_pre.png
├── icon_search.png
├── icon_user_nor.png
├── icon_user_pre.png
├── job1.jpg
├── job2.jpg
├── job3.jpg
├── job4.jpeg
├── user.jpeg
└── user_photo_bg.png
├── index.android.js
├── index.ios.js
├── ios
├── Fonts
│ ├── Entypo.ttf
│ ├── EvilIcons.ttf
│ ├── FontAwesome.ttf
│ ├── Foundation.ttf
│ ├── Ionicons.ttf
│ ├── MaterialIcons.ttf
│ ├── Octicons.ttf
│ └── Zocial.ttf
├── lagou.xcodeproj
│ ├── project.pbxproj
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── lagou.xcscheme
├── lagou
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ │ └── LaunchScreen.xib
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ ├── Contents.json
│ │ ├── icon_forget_password.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_forget_password.png
│ │ ├── icon_user_collect.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_collect.png
│ │ ├── icon_user_feedback.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_feedback.png
│ │ ├── icon_user_info_mail.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_info_mail.png
│ │ ├── icon_user_info_name.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_info_name.png
│ │ ├── icon_user_info_work.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_info_work.png
│ │ ├── icon_user_resume.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_resume.png
│ │ ├── icon_user_setting.imageset
│ │ │ ├── Contents.json
│ │ │ └── icon_user_setting.png
│ │ └── user_photo_bg.imageset
│ │ │ ├── Contents.json
│ │ │ └── user_photo_bg.png
│ ├── Info.plist
│ └── main.m
└── lagouTests
│ ├── Info.plist
│ └── lagouTests.m
├── package.json
├── pic.gif
└── views
├── Discover.js
├── Home.js
├── Me.js
├── Message.js
├── discover
├── DiscoverCell.js
├── DiscoverContent.js
└── DiscoverList.js
├── home
├── JobCell.js
├── JobDetail.js
└── JobList.js
└── me
└── Resume.js
/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 |
3 | # We fork some components by platform.
4 | .*/*.web.js
5 | .*/*.android.js
6 |
7 | # Some modules have their own node_modules with overlap
8 | .*/node_modules/node-haste/.*
9 |
10 | # Ugh
11 | .*/node_modules/babel.*
12 | .*/node_modules/babylon.*
13 | .*/node_modules/invariant.*
14 |
15 | # Ignore react and fbjs where there are overlaps, but don't ignore
16 | # anything that react-native relies on
17 | .*/node_modules/fbjs/lib/Map.js
18 | .*/node_modules/fbjs/lib/Promise.js
19 | .*/node_modules/fbjs/lib/fetch.js
20 | .*/node_modules/fbjs/lib/ExecutionEnvironment.js
21 | .*/node_modules/fbjs/lib/isEmpty.js
22 | .*/node_modules/fbjs/lib/crc32.js
23 | .*/node_modules/fbjs/lib/ErrorUtils.js
24 |
25 | # Flow has a built-in definition for the 'react' module which we prefer to use
26 | # over the currently-untyped source
27 | .*/node_modules/react/react.js
28 | .*/node_modules/react/lib/React.js
29 | .*/node_modules/react/lib/ReactDOM.js
30 |
31 | # Ignore commoner tests
32 | .*/node_modules/commoner/test/.*
33 |
34 | # See https://github.com/facebook/flow/issues/442
35 | .*/react-tools/node_modules/commoner/lib/reader.js
36 |
37 | # Ignore jest
38 | .*/node_modules/jest-cli/.*
39 |
40 | # Ignore Website
41 | .*/website/.*
42 |
43 | [include]
44 |
45 | [libs]
46 | node_modules/react-native/Libraries/react-native/react-native-interface.js
47 |
48 | [options]
49 | module.system=haste
50 |
51 | munge_underscores=true
52 |
53 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
54 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub'
55 |
56 | suppress_type=$FlowIssue
57 | suppress_type=$FlowFixMe
58 | suppress_type=$FixMe
59 |
60 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
61 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
62 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
63 |
64 | [version]
65 | 0.20.1
66 |
--------------------------------------------------------------------------------
/.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/IJ
26 | #
27 | .idea
28 | .gradle
29 | local.properties
30 |
31 | # node.js
32 | #
33 | node_modules/
34 | npm-debug.log
35 |
--------------------------------------------------------------------------------
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/MainPage.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | StyleSheet,
5 | TabBarIOS,
6 | Navigator,
7 | NavigatorIOS,
8 | Component,
9 | Text,
10 | View,
11 | } from 'react-native';
12 |
13 | import RouteHome from './RouteHome';
14 | import Message from './views/Message';
15 | import Discover from './views/Discover';
16 | import RouteMe from './RouteMe';
17 |
18 | const HOME_TAB = 'homeTab';
19 | const MESSAGE_TAB = 'messageTab';
20 | const DISCOVER_TAB = 'discoverTab';
21 | const ME_TAB = 'meTab';
22 |
23 | export default class TabBar extends Component {
24 | constructor() {
25 | super();
26 | this.state = {
27 | selectedTab: HOME_TAB,
28 | notifCount: 0,
29 | presses: 0,
30 | };
31 | }
32 | setTab(tabId){
33 | this.setState({selectedTab: tabId})
34 | }
35 |
36 | _addNavigator(component, title){
37 | var data = null;
38 | if(title === '首页'){
39 | data = this.state.data;
40 | }
41 | return ;
55 | }
56 |
57 | _renderContent(pageName: string, num?: number) {
58 | var renderView;
59 | if(pageName == HOME_TAB){
60 | renderView = ;
61 | } else if(pageName == MESSAGE_TAB){
62 | renderView =
63 | } else if(pageName == DISCOVER_TAB){
64 | renderView =
65 | } else if(pageName == ME_TAB){
66 | renderView =
67 | }
68 |
69 | return (
70 |
71 | {renderView}
72 |
73 | );
74 | }
75 |
76 | render() {
77 | return (
78 |
79 |
82 | this.setTab(HOME_TAB)}>
87 | {this._renderContent(HOME_TAB)}
88 |
89 | 0 ? this.state.notifCount : undefined}
93 | selected={this.state.selectedTab === MESSAGE_TAB}
94 | onPress={() => this.setTab(MESSAGE_TAB)}>
95 | {this._addNavigator(Message, '消息列表')}
96 |
97 | this.setTab(DISCOVER_TAB)}>
102 | {this._addNavigator(Discover, '发现')}
103 |
104 | this.setTab(ME_TAB)}>
109 | {this._renderContent(ME_TAB)}
110 |
111 |
112 |
113 | );
114 | }
115 | }
116 |
117 | var styles = StyleSheet.create({
118 | container: {
119 | flex: 1,
120 | },
121 | pageView: {
122 | flex: 1,
123 | },
124 | tabContent: {
125 | flex: 1,
126 | alignItems: 'center',
127 | },
128 | tabText: {
129 | margin: 50,
130 | }
131 | });
132 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-native-lagou
2 |
3 | 春节期间学习react native的第一个demo,基于es6语法,仿拉勾,目前暂时只支持ios,后期会再做一个Android版本
4 | 对flutter感兴趣的,可以看我另外一个仿boss直聘的开源项目[flutter_boss](https://github.com/heruijun/flutter_boss).
5 |
6 | ### 依赖组件
7 | "dependencies": {
8 | "react-native": "^0.19.0",
9 | "react-native-swiper": "^1.4.3",
10 | "react-native-tab-navigator": "^0.2.15",
11 | "react-native-vector-icons": "^1.1.1",
12 | "react-timer-mixin": "^0.13.3"
13 | }
14 |
15 | react-native-vector-icons有点特殊,里面要导入一个依赖工程,要看一下官网https://github.com/oblador/react-native-vector-icons
16 |
17 |
18 | ### 效果图
19 |
20 | 
21 |
22 |
23 |
--------------------------------------------------------------------------------
/RouteHome.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | Navigator,
8 | Text,
9 | View
10 | } from 'react-native';
11 |
12 | import Home from './views/Home';
13 |
14 | export default class RouteHome extends Component {
15 | render() {
16 | var defaultName = 'Home';
17 | var defaultComponent = Home;
18 | return (
19 | {
22 | return Navigator.SceneConfigs.HorizontalSwipeJump;
23 | }}
24 | renderScene={(route, navigator) => {
25 | let Component = route.component;
26 | return
27 | }} />
28 | );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/RouteMe.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | Navigator,
8 | Text,
9 | View
10 | } from 'react-native';
11 |
12 | import Me from './views/Me';
13 |
14 | class RouteMe extends Component {
15 | render() {
16 | var defaultName = 'Me';
17 | var defaultComponent = Me;
18 | return (
19 | {
22 | return Navigator.SceneConfigs.HorizontalSwipeJumpFromRight;
23 | }}
24 | renderScene={(route, navigator) => {
25 | let Component = route.component;
26 | return
27 | }} />
28 | );
29 | }
30 | }
31 |
32 | module.exports = RouteMe;
33 |
--------------------------------------------------------------------------------
/Splash.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | Component,
5 | View,
6 | StyleSheet,
7 | Image,
8 | Text,
9 | } from 'react-native';
10 |
11 | import MainPage from './MainPage';
12 |
13 | export default class SplashPage extends Component {
14 | componentWillMount() {
15 | var { navigator } = this.props;
16 | setTimeout(() => {
17 | navigator.replace({
18 | name: 'MainPage',
19 | component: MainPage,
20 | });
21 | }, 1000);
22 | }
23 | render() {
24 | return (
25 |
26 |
27 |
28 | );
29 | }
30 | }
31 |
32 | const styles = StyleSheet.create({
33 | container: {
34 | marginTop: 20,
35 | flex: 1,
36 | },
37 | backgroundImage: {
38 | flex: 1,
39 | justifyContent: 'center',
40 | alignItems: 'center',
41 | width: null,
42 | height: null,
43 | backgroundColor: 'transparent',
44 | resizeMode: 'cover',
45 | },
46 | });
47 |
--------------------------------------------------------------------------------
/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: "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 is in the format 'bundleIn${productFlavor}${buildType}'
30 | * // bundleInFreeDebug: true,
31 | * // bundleInPaidRelease: true,
32 | * // bundleInBeta: true,
33 | *
34 | * // the root of your project, i.e. where "package.json" lives
35 | * root: "../../",
36 | *
37 | * // where to put the JS bundle asset in debug mode
38 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
39 | *
40 | * // where to put the JS bundle asset in release mode
41 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
42 | *
43 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
44 | * // require('./image.png')), in debug mode
45 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
46 | *
47 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
48 | * // require('./image.png')), in release mode
49 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
50 | *
51 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
52 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
53 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
54 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
55 | * // for example, you might want to remove it from here.
56 | * inputExcludes: ["android/**", "ios/**"]
57 | * ]
58 | */
59 |
60 | apply from: "react.gradle"
61 |
62 | /**
63 | * Set this to true to create two separate APKs instead of one:
64 | * - An APK that only works on ARM devices
65 | * - An APK that only works on x86 devices
66 | * The advantage is the size of the APK is reduced by about 4MB.
67 | * Upload all the APKs to the Play Store and people will download
68 | * the correct one based on the CPU architecture of their device.
69 | */
70 | def enableSeparateBuildPerCPUArchitecture = false
71 |
72 | /**
73 | * Run Proguard to shrink the Java bytecode in release builds.
74 | */
75 | def enableProguardInReleaseBuilds = true
76 |
77 | android {
78 | compileSdkVersion 23
79 | buildToolsVersion "23.0.1"
80 |
81 | defaultConfig {
82 | applicationId "com.lagou"
83 | minSdkVersion 16
84 | targetSdkVersion 22
85 | versionCode 1
86 | versionName "1.0"
87 | ndk {
88 | abiFilters "armeabi-v7a", "x86"
89 | }
90 | }
91 | splits {
92 | abi {
93 | enable enableSeparateBuildPerCPUArchitecture
94 | universalApk false // Also generate an universal APK
95 | reset()
96 | include "armeabi-v7a", "x86"
97 | }
98 | }
99 | buildTypes {
100 | release {
101 | minifyEnabled enableProguardInReleaseBuilds
102 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
103 | }
104 | }
105 | // applicationVariants are e.g. debug, release
106 | applicationVariants.all { variant ->
107 | variant.outputs.each { output ->
108 | // For each separate APK per architecture, set a unique version code as described here:
109 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
110 | def versionCodes = ["armeabi-v7a":1, "x86":2]
111 | def abi = output.getFilter(OutputFile.ABI)
112 | if (abi != null) { // null for the universal-debug, universal-release variants
113 | output.versionCodeOverride =
114 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
115 | }
116 | }
117 | }
118 | }
119 |
120 | dependencies {
121 | compile fileTree(dir: "libs", include: ["*.jar"])
122 | compile "com.android.support:appcompat-v7:23.0.1"
123 | compile "com.facebook.react:react-native:0.19.+"
124 | }
125 |
--------------------------------------------------------------------------------
/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 |
30 | # Do not strip any method/class that is annotated with @DoNotStrip
31 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
32 | -keepclassmembers class * {
33 | @com.facebook.proguard.annotations.DoNotStrip *;
34 | }
35 |
36 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
37 | void set*(***);
38 | *** get*();
39 | }
40 |
41 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
42 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
43 | -keepclassmembers,includedescriptorclasses class * { native ; }
44 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
45 | -keepclassmembers class * { @com.facebook.react.uimanager.ReactProp ; }
46 | -keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup ; }
47 |
48 | -dontwarn com.facebook.react.**
49 |
50 | # okhttp
51 |
52 | -keepattributes Signature
53 | -keepattributes *Annotation*
54 | -keep class com.squareup.okhttp.** { *; }
55 | -keep interface com.squareup.okhttp.** { *; }
56 | -dontwarn com.squareup.okhttp.**
57 |
58 | # okio
59 |
60 | -keep class sun.misc.Unsafe { *; }
61 | -dontwarn java.nio.file.*
62 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
63 | -dontwarn okio.**
64 |
65 | # stetho
66 |
67 | -dontwarn com.facebook.stetho.**
68 |
--------------------------------------------------------------------------------
/android/app/react.gradle:
--------------------------------------------------------------------------------
1 | import org.apache.tools.ant.taskdefs.condition.Os
2 |
3 | def config = project.hasProperty("react") ? project.react : [];
4 |
5 | def bundleAssetName = config.bundleAssetName ?: "index.android.bundle"
6 | def entryFile = config.entryFile ?: "index.android.js"
7 |
8 | // because elvis operator
9 | def elvisFile(thing) {
10 | return thing ? file(thing) : null;
11 | }
12 |
13 | def reactRoot = elvisFile(config.root) ?: file("../../")
14 | def inputExcludes = config.inputExcludes ?: ["android/**", "ios/**"]
15 |
16 | void runBefore(String dependentTaskName, Task task) {
17 | Task dependentTask = tasks.findByPath(dependentTaskName);
18 | if (dependentTask != null) {
19 | dependentTask.dependsOn task
20 | }
21 | }
22 |
23 | gradle.projectsEvaluated {
24 | // Grab all build types and product flavors
25 | def buildTypes = android.buildTypes.collect { type -> type.name }
26 | def productFlavors = android.productFlavors.collect { flavor -> flavor.name }
27 |
28 | // When no product flavors defined, use empty
29 | if (!productFlavors) productFlavors.add('')
30 |
31 | productFlavors.each { productFlavorName ->
32 | buildTypes.each { buildTypeName ->
33 | // Create variant and source names
34 | def sourceName = "${buildTypeName}"
35 | def targetName = "${sourceName.capitalize()}"
36 | if (productFlavorName) {
37 | sourceName = "${productFlavorName}${targetName}"
38 | }
39 |
40 | // React js bundle directories
41 | def jsBundleDirConfigName = "jsBundleDir${targetName}"
42 | def jsBundleDir = elvisFile(config."$jsBundleDirConfigName") ?:
43 | file("$buildDir/intermediates/assets/${sourceName}")
44 |
45 | def resourcesDirConfigName = "jsBundleDir${targetName}"
46 | def resourcesDir = elvisFile(config."${resourcesDirConfigName}") ?:
47 | file("$buildDir/intermediates/res/merged/${sourceName}")
48 | def jsBundleFile = file("$jsBundleDir/$bundleAssetName")
49 |
50 | // Bundle task name for variant
51 | def bundleJsAndAssetsTaskName = "bundle${targetName}JsAndAssets"
52 |
53 | def currentBundleTask = tasks.create(
54 | name: bundleJsAndAssetsTaskName,
55 | type: Exec) {
56 | group = "react"
57 | description = "bundle JS and assets for ${targetName}."
58 |
59 | // Create dirs if they are not there (e.g. the "clean" task just ran)
60 | doFirst {
61 | jsBundleDir.mkdirs()
62 | resourcesDir.mkdirs()
63 | }
64 |
65 | // Set up inputs and outputs so gradle can cache the result
66 | inputs.files fileTree(dir: reactRoot, excludes: inputExcludes)
67 | outputs.dir jsBundleDir
68 | outputs.dir resourcesDir
69 |
70 | // Set up the call to the react-native cli
71 | workingDir reactRoot
72 |
73 | // Set up dev mode
74 | def devEnabled = !targetName.toLowerCase().contains("release")
75 | if (Os.isFamily(Os.FAMILY_WINDOWS)) {
76 | commandLine "cmd", "/c", "react-native", "bundle", "--platform", "android", "--dev", "${devEnabled}",
77 | "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir
78 | } else {
79 | commandLine "react-native", "bundle", "--platform", "android", "--dev", "${devEnabled}",
80 | "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir
81 | }
82 |
83 | enabled config."bundleIn${targetName}" ?: targetName.toLowerCase().contains("release")
84 | }
85 |
86 | // Hook bundle${productFlavor}${buildType}JsAndAssets into the android build process
87 | currentBundleTask.dependsOn("merge${targetName}Resources")
88 | currentBundleTask.dependsOn("merge${targetName}Assets")
89 |
90 | runBefore("processArmeabi-v7a${targetName}Resources", currentBundleTask)
91 | runBefore("processX86${targetName}Resources", currentBundleTask)
92 | runBefore("processUniversal${targetName}Resources", currentBundleTask)
93 | runBefore("process${targetName}Resources", currentBundleTask)
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/lagou/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.lagou;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.facebook.react.ReactPackage;
5 | import com.facebook.react.shell.MainReactPackage;
6 |
7 | import java.util.Arrays;
8 | import java.util.List;
9 |
10 | public class MainActivity extends ReactActivity {
11 |
12 | /**
13 | * Returns the name of the main component registered from JavaScript.
14 | * This is used to schedule rendering of the component.
15 | */
16 | @Override
17 | protected String getMainComponentName() {
18 | return "lagou";
19 | }
20 |
21 | /**
22 | * Returns whether dev mode should be enabled.
23 | * This enables e.g. the dev menu.
24 | */
25 | @Override
26 | protected boolean getUseDeveloperSupport() {
27 | return BuildConfig.DEBUG;
28 | }
29 |
30 | /**
31 | * A list of packages used by the app. If the app uses additional views
32 | * or modules besides the default ones, add more packages here.
33 | */
34 | @Override
35 | protected List getPackages() {
36 | return Arrays.asList(
37 | new MainReactPackage()
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | lagou
3 |
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle: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 | }
20 | }
21 |
--------------------------------------------------------------------------------
/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.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/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'lagou'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/images/hello_page_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/hello_page_bg.png
--------------------------------------------------------------------------------
/images/icon_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_back.png
--------------------------------------------------------------------------------
/images/icon_find_nor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_find_nor.png
--------------------------------------------------------------------------------
/images/icon_find_ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_find_ok.png
--------------------------------------------------------------------------------
/images/icon_find_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_find_pre.png
--------------------------------------------------------------------------------
/images/icon_home_nor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_home_nor.png
--------------------------------------------------------------------------------
/images/icon_home_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_home_pre.png
--------------------------------------------------------------------------------
/images/icon_message_nor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_message_nor.png
--------------------------------------------------------------------------------
/images/icon_message_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_message_pre.png
--------------------------------------------------------------------------------
/images/icon_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_search.png
--------------------------------------------------------------------------------
/images/icon_user_nor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_user_nor.png
--------------------------------------------------------------------------------
/images/icon_user_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/icon_user_pre.png
--------------------------------------------------------------------------------
/images/job1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/job1.jpg
--------------------------------------------------------------------------------
/images/job2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/job2.jpg
--------------------------------------------------------------------------------
/images/job3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/job3.jpg
--------------------------------------------------------------------------------
/images/job4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/job4.jpeg
--------------------------------------------------------------------------------
/images/user.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/user.jpeg
--------------------------------------------------------------------------------
/images/user_photo_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/images/user_photo_bg.png
--------------------------------------------------------------------------------
/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * 作者: 海运天
5 | * QQ: 113805738
6 | * Email: 13585546884@163.com
7 | */
8 | 'use strict';
9 | import React, {
10 | AppRegistry,
11 | Component,
12 | StyleSheet,
13 | Text,
14 | View
15 | } from 'react-native';
16 |
17 | class lagou extends Component {
18 | render() {
19 | return (
20 |
21 |
22 | Welcome to React Native!
23 |
24 |
25 | To get started, edit index.android.js
26 |
27 |
28 | Shake or press menu button for dev menu
29 |
30 |
31 | );
32 | }
33 | }
34 |
35 | const styles = StyleSheet.create({
36 | container: {
37 | flex: 1,
38 | justifyContent: 'center',
39 | alignItems: 'center',
40 | backgroundColor: '#F5FCFF',
41 | },
42 | welcome: {
43 | fontSize: 20,
44 | textAlign: 'center',
45 | margin: 10,
46 | },
47 | instructions: {
48 | textAlign: 'center',
49 | color: '#333333',
50 | marginBottom: 5,
51 | },
52 | });
53 |
54 | AppRegistry.registerComponent('lagou', () => lagou);
55 |
--------------------------------------------------------------------------------
/index.ios.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | Navigator,
8 | Text,
9 | View
10 | } from 'react-native';
11 |
12 | import SplashPage from './Splash';
13 | import MainPage from './MainPage';
14 |
15 | class Lagou extends Component {
16 | render() {
17 | var defaultName = 'Splash';
18 | var defaultComponent = SplashPage;
19 | return (
20 | {
23 | return Navigator.SceneConfigs.HorizontalSwipeJumpFromRight;
24 | }}
25 | renderScene={(route, navigator) => {
26 | let Component = route.component;
27 | return
28 | }} />
29 | );
30 | }
31 | }
32 |
33 | AppRegistry.registerComponent('lagou', () => Lagou);
34 |
--------------------------------------------------------------------------------
/ios/Fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/Entypo.ttf
--------------------------------------------------------------------------------
/ios/Fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/ios/Fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/ios/Fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/Foundation.ttf
--------------------------------------------------------------------------------
/ios/Fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/ios/Fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/ios/Fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/Octicons.ttf
--------------------------------------------------------------------------------
/ios/Fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/Fonts/Zocial.ttf
--------------------------------------------------------------------------------
/ios/lagou.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* lagouTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* lagouTests.m */; };
16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24 | 364B81831C6E205B000EB08D /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B817B1C6E205B000EB08D /* Entypo.ttf */; };
25 | 364B81841C6E205B000EB08D /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B817C1C6E205B000EB08D /* EvilIcons.ttf */; };
26 | 364B81851C6E205B000EB08D /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B817D1C6E205B000EB08D /* FontAwesome.ttf */; };
27 | 364B81861C6E205B000EB08D /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B817E1C6E205B000EB08D /* Foundation.ttf */; };
28 | 364B81871C6E205B000EB08D /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B817F1C6E205B000EB08D /* Ionicons.ttf */; };
29 | 364B81881C6E205B000EB08D /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B81801C6E205B000EB08D /* MaterialIcons.ttf */; };
30 | 364B81891C6E205B000EB08D /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B81811C6E205B000EB08D /* Octicons.ttf */; };
31 | 364B818A1C6E205B000EB08D /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 364B81821C6E205B000EB08D /* Zocial.ttf */; };
32 | 364B819B1C6E2AD0000EB08D /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 364B819A1C6E2AB9000EB08D /* libRNVectorIcons.a */; };
33 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
34 | /* End PBXBuildFile section */
35 |
36 | /* Begin PBXContainerItemProxy section */
37 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
38 | isa = PBXContainerItemProxy;
39 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
40 | proxyType = 2;
41 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
42 | remoteInfo = RCTActionSheet;
43 | };
44 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
45 | isa = PBXContainerItemProxy;
46 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
47 | proxyType = 2;
48 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
49 | remoteInfo = RCTGeolocation;
50 | };
51 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
52 | isa = PBXContainerItemProxy;
53 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
54 | proxyType = 2;
55 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
56 | remoteInfo = RCTImage;
57 | };
58 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
59 | isa = PBXContainerItemProxy;
60 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
61 | proxyType = 2;
62 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
63 | remoteInfo = RCTNetwork;
64 | };
65 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
66 | isa = PBXContainerItemProxy;
67 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
68 | proxyType = 2;
69 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
70 | remoteInfo = RCTVibration;
71 | };
72 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
73 | isa = PBXContainerItemProxy;
74 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
75 | proxyType = 1;
76 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
77 | remoteInfo = lagou;
78 | };
79 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
80 | isa = PBXContainerItemProxy;
81 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
82 | proxyType = 2;
83 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
84 | remoteInfo = RCTSettings;
85 | };
86 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
87 | isa = PBXContainerItemProxy;
88 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
89 | proxyType = 2;
90 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
91 | remoteInfo = RCTWebSocket;
92 | };
93 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
94 | isa = PBXContainerItemProxy;
95 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
96 | proxyType = 2;
97 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
98 | remoteInfo = React;
99 | };
100 | 364B81991C6E2AB9000EB08D /* PBXContainerItemProxy */ = {
101 | isa = PBXContainerItemProxy;
102 | containerPortal = 364B81951C6E2AB9000EB08D /* RNVectorIcons.xcodeproj */;
103 | proxyType = 2;
104 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395;
105 | remoteInfo = RNVectorIcons;
106 | };
107 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
108 | isa = PBXContainerItemProxy;
109 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
110 | proxyType = 2;
111 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
112 | remoteInfo = RCTLinking;
113 | };
114 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
115 | isa = PBXContainerItemProxy;
116 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
117 | proxyType = 2;
118 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
119 | remoteInfo = RCTText;
120 | };
121 | /* End PBXContainerItemProxy section */
122 |
123 | /* Begin PBXFileReference section */
124 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
125 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
126 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
127 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
128 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
129 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
130 | 00E356EE1AD99517003FC87E /* lagouTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = lagouTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
131 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
132 | 00E356F21AD99517003FC87E /* lagouTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = lagouTests.m; sourceTree = ""; };
133 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
134 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
135 | 13B07F961A680F5B00A75B9A /* lagou.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = lagou.app; sourceTree = BUILT_PRODUCTS_DIR; };
136 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = lagou/AppDelegate.h; sourceTree = ""; };
137 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = lagou/AppDelegate.m; sourceTree = ""; };
138 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
139 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = lagou/Images.xcassets; sourceTree = ""; };
140 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = lagou/Info.plist; sourceTree = ""; };
141 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = lagou/main.m; sourceTree = ""; };
142 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
143 | 364B817B1C6E205B000EB08D /* Entypo.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Entypo.ttf; sourceTree = ""; };
144 | 364B817C1C6E205B000EB08D /* EvilIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = EvilIcons.ttf; sourceTree = ""; };
145 | 364B817D1C6E205B000EB08D /* FontAwesome.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = FontAwesome.ttf; sourceTree = ""; };
146 | 364B817E1C6E205B000EB08D /* Foundation.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Foundation.ttf; sourceTree = ""; };
147 | 364B817F1C6E205B000EB08D /* Ionicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Ionicons.ttf; sourceTree = ""; };
148 | 364B81801C6E205B000EB08D /* MaterialIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = MaterialIcons.ttf; sourceTree = ""; };
149 | 364B81811C6E205B000EB08D /* Octicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Octicons.ttf; sourceTree = ""; };
150 | 364B81821C6E205B000EB08D /* Zocial.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Zocial.ttf; sourceTree = ""; };
151 | 364B81951C6E2AB9000EB08D /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; };
152 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
153 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
154 | /* End PBXFileReference section */
155 |
156 | /* Begin PBXFrameworksBuildPhase section */
157 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
158 | isa = PBXFrameworksBuildPhase;
159 | buildActionMask = 2147483647;
160 | files = (
161 | );
162 | runOnlyForDeploymentPostprocessing = 0;
163 | };
164 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
165 | isa = PBXFrameworksBuildPhase;
166 | buildActionMask = 2147483647;
167 | files = (
168 | 364B819B1C6E2AD0000EB08D /* libRNVectorIcons.a in Frameworks */,
169 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
170 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
171 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
172 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
173 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
174 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
175 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
176 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
177 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
178 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
179 | );
180 | runOnlyForDeploymentPostprocessing = 0;
181 | };
182 | /* End PBXFrameworksBuildPhase section */
183 |
184 | /* Begin PBXGroup section */
185 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
186 | isa = PBXGroup;
187 | children = (
188 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
189 | );
190 | name = Products;
191 | sourceTree = "";
192 | };
193 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
194 | isa = PBXGroup;
195 | children = (
196 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
197 | );
198 | name = Products;
199 | sourceTree = "";
200 | };
201 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
202 | isa = PBXGroup;
203 | children = (
204 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
205 | );
206 | name = Products;
207 | sourceTree = "";
208 | };
209 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
210 | isa = PBXGroup;
211 | children = (
212 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
213 | );
214 | name = Products;
215 | sourceTree = "";
216 | };
217 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
218 | isa = PBXGroup;
219 | children = (
220 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
221 | );
222 | name = Products;
223 | sourceTree = "";
224 | };
225 | 00E356EF1AD99517003FC87E /* lagouTests */ = {
226 | isa = PBXGroup;
227 | children = (
228 | 00E356F21AD99517003FC87E /* lagouTests.m */,
229 | 00E356F01AD99517003FC87E /* Supporting Files */,
230 | );
231 | path = lagouTests;
232 | sourceTree = "";
233 | };
234 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
235 | isa = PBXGroup;
236 | children = (
237 | 00E356F11AD99517003FC87E /* Info.plist */,
238 | );
239 | name = "Supporting Files";
240 | sourceTree = "";
241 | };
242 | 139105B71AF99BAD00B5F7CC /* Products */ = {
243 | isa = PBXGroup;
244 | children = (
245 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
246 | );
247 | name = Products;
248 | sourceTree = "";
249 | };
250 | 139FDEE71B06529A00C62182 /* Products */ = {
251 | isa = PBXGroup;
252 | children = (
253 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
254 | );
255 | name = Products;
256 | sourceTree = "";
257 | };
258 | 13B07FAE1A68108700A75B9A /* lagou */ = {
259 | isa = PBXGroup;
260 | children = (
261 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
262 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
263 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
264 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
265 | 13B07FB61A68108700A75B9A /* Info.plist */,
266 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
267 | 13B07FB71A68108700A75B9A /* main.m */,
268 | );
269 | name = lagou;
270 | sourceTree = "";
271 | };
272 | 146834001AC3E56700842450 /* Products */ = {
273 | isa = PBXGroup;
274 | children = (
275 | 146834041AC3E56700842450 /* libReact.a */,
276 | );
277 | name = Products;
278 | sourceTree = "";
279 | };
280 | 364B817A1C6E205A000EB08D /* Fonts */ = {
281 | isa = PBXGroup;
282 | children = (
283 | 364B817B1C6E205B000EB08D /* Entypo.ttf */,
284 | 364B817C1C6E205B000EB08D /* EvilIcons.ttf */,
285 | 364B817D1C6E205B000EB08D /* FontAwesome.ttf */,
286 | 364B817E1C6E205B000EB08D /* Foundation.ttf */,
287 | 364B817F1C6E205B000EB08D /* Ionicons.ttf */,
288 | 364B81801C6E205B000EB08D /* MaterialIcons.ttf */,
289 | 364B81811C6E205B000EB08D /* Octicons.ttf */,
290 | 364B81821C6E205B000EB08D /* Zocial.ttf */,
291 | );
292 | path = Fonts;
293 | sourceTree = "";
294 | };
295 | 364B81961C6E2AB9000EB08D /* Products */ = {
296 | isa = PBXGroup;
297 | children = (
298 | 364B819A1C6E2AB9000EB08D /* libRNVectorIcons.a */,
299 | );
300 | name = Products;
301 | sourceTree = "";
302 | };
303 | 78C398B11ACF4ADC00677621 /* Products */ = {
304 | isa = PBXGroup;
305 | children = (
306 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
307 | );
308 | name = Products;
309 | sourceTree = "";
310 | };
311 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
312 | isa = PBXGroup;
313 | children = (
314 | 364B81951C6E2AB9000EB08D /* RNVectorIcons.xcodeproj */,
315 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
316 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
317 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
318 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
319 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
320 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
321 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
322 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
323 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
324 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
325 | );
326 | name = Libraries;
327 | sourceTree = "";
328 | };
329 | 832341B11AAA6A8300B99B32 /* Products */ = {
330 | isa = PBXGroup;
331 | children = (
332 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
333 | );
334 | name = Products;
335 | sourceTree = "";
336 | };
337 | 83CBB9F61A601CBA00E9B192 = {
338 | isa = PBXGroup;
339 | children = (
340 | 364B817A1C6E205A000EB08D /* Fonts */,
341 | 13B07FAE1A68108700A75B9A /* lagou */,
342 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
343 | 00E356EF1AD99517003FC87E /* lagouTests */,
344 | 83CBBA001A601CBA00E9B192 /* Products */,
345 | );
346 | indentWidth = 2;
347 | sourceTree = "";
348 | tabWidth = 2;
349 | };
350 | 83CBBA001A601CBA00E9B192 /* Products */ = {
351 | isa = PBXGroup;
352 | children = (
353 | 13B07F961A680F5B00A75B9A /* lagou.app */,
354 | 00E356EE1AD99517003FC87E /* lagouTests.xctest */,
355 | );
356 | name = Products;
357 | sourceTree = "";
358 | };
359 | /* End PBXGroup section */
360 |
361 | /* Begin PBXNativeTarget section */
362 | 00E356ED1AD99517003FC87E /* lagouTests */ = {
363 | isa = PBXNativeTarget;
364 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "lagouTests" */;
365 | buildPhases = (
366 | 00E356EA1AD99517003FC87E /* Sources */,
367 | 00E356EB1AD99517003FC87E /* Frameworks */,
368 | 00E356EC1AD99517003FC87E /* Resources */,
369 | );
370 | buildRules = (
371 | );
372 | dependencies = (
373 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
374 | );
375 | name = lagouTests;
376 | productName = lagouTests;
377 | productReference = 00E356EE1AD99517003FC87E /* lagouTests.xctest */;
378 | productType = "com.apple.product-type.bundle.unit-test";
379 | };
380 | 13B07F861A680F5B00A75B9A /* lagou */ = {
381 | isa = PBXNativeTarget;
382 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "lagou" */;
383 | buildPhases = (
384 | 13B07F871A680F5B00A75B9A /* Sources */,
385 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
386 | 13B07F8E1A680F5B00A75B9A /* Resources */,
387 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
388 | );
389 | buildRules = (
390 | );
391 | dependencies = (
392 | );
393 | name = lagou;
394 | productName = "Hello World";
395 | productReference = 13B07F961A680F5B00A75B9A /* lagou.app */;
396 | productType = "com.apple.product-type.application";
397 | };
398 | /* End PBXNativeTarget section */
399 |
400 | /* Begin PBXProject section */
401 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
402 | isa = PBXProject;
403 | attributes = {
404 | LastUpgradeCheck = 0610;
405 | ORGANIZATIONNAME = Facebook;
406 | TargetAttributes = {
407 | 00E356ED1AD99517003FC87E = {
408 | CreatedOnToolsVersion = 6.2;
409 | TestTargetID = 13B07F861A680F5B00A75B9A;
410 | };
411 | 13B07F861A680F5B00A75B9A = {
412 | DevelopmentTeam = C8NM6NJL2S;
413 | };
414 | };
415 | };
416 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "lagou" */;
417 | compatibilityVersion = "Xcode 3.2";
418 | developmentRegion = English;
419 | hasScannedForEncodings = 0;
420 | knownRegions = (
421 | en,
422 | Base,
423 | );
424 | mainGroup = 83CBB9F61A601CBA00E9B192;
425 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
426 | projectDirPath = "";
427 | projectReferences = (
428 | {
429 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
430 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
431 | },
432 | {
433 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
434 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
435 | },
436 | {
437 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
438 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
439 | },
440 | {
441 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
442 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
443 | },
444 | {
445 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
446 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
447 | },
448 | {
449 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
450 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
451 | },
452 | {
453 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
454 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
455 | },
456 | {
457 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
458 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
459 | },
460 | {
461 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
462 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
463 | },
464 | {
465 | ProductGroup = 146834001AC3E56700842450 /* Products */;
466 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
467 | },
468 | {
469 | ProductGroup = 364B81961C6E2AB9000EB08D /* Products */;
470 | ProjectRef = 364B81951C6E2AB9000EB08D /* RNVectorIcons.xcodeproj */;
471 | },
472 | );
473 | projectRoot = "";
474 | targets = (
475 | 13B07F861A680F5B00A75B9A /* lagou */,
476 | 00E356ED1AD99517003FC87E /* lagouTests */,
477 | );
478 | };
479 | /* End PBXProject section */
480 |
481 | /* Begin PBXReferenceProxy section */
482 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
483 | isa = PBXReferenceProxy;
484 | fileType = archive.ar;
485 | path = libRCTActionSheet.a;
486 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
487 | sourceTree = BUILT_PRODUCTS_DIR;
488 | };
489 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
490 | isa = PBXReferenceProxy;
491 | fileType = archive.ar;
492 | path = libRCTGeolocation.a;
493 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
494 | sourceTree = BUILT_PRODUCTS_DIR;
495 | };
496 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
497 | isa = PBXReferenceProxy;
498 | fileType = archive.ar;
499 | path = libRCTImage.a;
500 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
501 | sourceTree = BUILT_PRODUCTS_DIR;
502 | };
503 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
504 | isa = PBXReferenceProxy;
505 | fileType = archive.ar;
506 | path = libRCTNetwork.a;
507 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
508 | sourceTree = BUILT_PRODUCTS_DIR;
509 | };
510 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
511 | isa = PBXReferenceProxy;
512 | fileType = archive.ar;
513 | path = libRCTVibration.a;
514 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
515 | sourceTree = BUILT_PRODUCTS_DIR;
516 | };
517 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
518 | isa = PBXReferenceProxy;
519 | fileType = archive.ar;
520 | path = libRCTSettings.a;
521 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
522 | sourceTree = BUILT_PRODUCTS_DIR;
523 | };
524 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
525 | isa = PBXReferenceProxy;
526 | fileType = archive.ar;
527 | path = libRCTWebSocket.a;
528 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
529 | sourceTree = BUILT_PRODUCTS_DIR;
530 | };
531 | 146834041AC3E56700842450 /* libReact.a */ = {
532 | isa = PBXReferenceProxy;
533 | fileType = archive.ar;
534 | path = libReact.a;
535 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
536 | sourceTree = BUILT_PRODUCTS_DIR;
537 | };
538 | 364B819A1C6E2AB9000EB08D /* libRNVectorIcons.a */ = {
539 | isa = PBXReferenceProxy;
540 | fileType = archive.ar;
541 | path = libRNVectorIcons.a;
542 | remoteRef = 364B81991C6E2AB9000EB08D /* PBXContainerItemProxy */;
543 | sourceTree = BUILT_PRODUCTS_DIR;
544 | };
545 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
546 | isa = PBXReferenceProxy;
547 | fileType = archive.ar;
548 | path = libRCTLinking.a;
549 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
550 | sourceTree = BUILT_PRODUCTS_DIR;
551 | };
552 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
553 | isa = PBXReferenceProxy;
554 | fileType = archive.ar;
555 | path = libRCTText.a;
556 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
557 | sourceTree = BUILT_PRODUCTS_DIR;
558 | };
559 | /* End PBXReferenceProxy section */
560 |
561 | /* Begin PBXResourcesBuildPhase section */
562 | 00E356EC1AD99517003FC87E /* Resources */ = {
563 | isa = PBXResourcesBuildPhase;
564 | buildActionMask = 2147483647;
565 | files = (
566 | );
567 | runOnlyForDeploymentPostprocessing = 0;
568 | };
569 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
570 | isa = PBXResourcesBuildPhase;
571 | buildActionMask = 2147483647;
572 | files = (
573 | 364B81881C6E205B000EB08D /* MaterialIcons.ttf in Resources */,
574 | 364B81891C6E205B000EB08D /* Octicons.ttf in Resources */,
575 | 364B818A1C6E205B000EB08D /* Zocial.ttf in Resources */,
576 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
577 | 364B81851C6E205B000EB08D /* FontAwesome.ttf in Resources */,
578 | 364B81841C6E205B000EB08D /* EvilIcons.ttf in Resources */,
579 | 364B81871C6E205B000EB08D /* Ionicons.ttf in Resources */,
580 | 364B81861C6E205B000EB08D /* Foundation.ttf in Resources */,
581 | 364B81831C6E205B000EB08D /* Entypo.ttf in Resources */,
582 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
583 | );
584 | runOnlyForDeploymentPostprocessing = 0;
585 | };
586 | /* End PBXResourcesBuildPhase section */
587 |
588 | /* Begin PBXShellScriptBuildPhase section */
589 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
590 | isa = PBXShellScriptBuildPhase;
591 | buildActionMask = 2147483647;
592 | files = (
593 | );
594 | inputPaths = (
595 | );
596 | name = "Bundle React Native code and images";
597 | outputPaths = (
598 | );
599 | runOnlyForDeploymentPostprocessing = 0;
600 | shellPath = /bin/sh;
601 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
602 | };
603 | /* End PBXShellScriptBuildPhase section */
604 |
605 | /* Begin PBXSourcesBuildPhase section */
606 | 00E356EA1AD99517003FC87E /* Sources */ = {
607 | isa = PBXSourcesBuildPhase;
608 | buildActionMask = 2147483647;
609 | files = (
610 | 00E356F31AD99517003FC87E /* lagouTests.m in Sources */,
611 | );
612 | runOnlyForDeploymentPostprocessing = 0;
613 | };
614 | 13B07F871A680F5B00A75B9A /* Sources */ = {
615 | isa = PBXSourcesBuildPhase;
616 | buildActionMask = 2147483647;
617 | files = (
618 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
619 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
620 | );
621 | runOnlyForDeploymentPostprocessing = 0;
622 | };
623 | /* End PBXSourcesBuildPhase section */
624 |
625 | /* Begin PBXTargetDependency section */
626 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
627 | isa = PBXTargetDependency;
628 | target = 13B07F861A680F5B00A75B9A /* lagou */;
629 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
630 | };
631 | /* End PBXTargetDependency section */
632 |
633 | /* Begin PBXVariantGroup section */
634 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
635 | isa = PBXVariantGroup;
636 | children = (
637 | 13B07FB21A68108700A75B9A /* Base */,
638 | );
639 | name = LaunchScreen.xib;
640 | path = lagou;
641 | sourceTree = "";
642 | };
643 | /* End PBXVariantGroup section */
644 |
645 | /* Begin XCBuildConfiguration section */
646 | 00E356F61AD99517003FC87E /* Debug */ = {
647 | isa = XCBuildConfiguration;
648 | buildSettings = {
649 | BUNDLE_LOADER = "$(TEST_HOST)";
650 | FRAMEWORK_SEARCH_PATHS = (
651 | "$(SDKROOT)/Developer/Library/Frameworks",
652 | "$(inherited)",
653 | );
654 | GCC_PREPROCESSOR_DEFINITIONS = (
655 | "DEBUG=1",
656 | "$(inherited)",
657 | );
658 | INFOPLIST_FILE = lagouTests/Info.plist;
659 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
660 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
661 | PRODUCT_NAME = "$(TARGET_NAME)";
662 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/lagou.app/lagou";
663 | };
664 | name = Debug;
665 | };
666 | 00E356F71AD99517003FC87E /* Release */ = {
667 | isa = XCBuildConfiguration;
668 | buildSettings = {
669 | BUNDLE_LOADER = "$(TEST_HOST)";
670 | COPY_PHASE_STRIP = NO;
671 | FRAMEWORK_SEARCH_PATHS = (
672 | "$(SDKROOT)/Developer/Library/Frameworks",
673 | "$(inherited)",
674 | );
675 | INFOPLIST_FILE = lagouTests/Info.plist;
676 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
678 | PRODUCT_NAME = "$(TARGET_NAME)";
679 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/lagou.app/lagou";
680 | };
681 | name = Release;
682 | };
683 | 13B07F941A680F5B00A75B9A /* Debug */ = {
684 | isa = XCBuildConfiguration;
685 | buildSettings = {
686 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
687 | CODE_SIGN_IDENTITY = "iPhone Developer";
688 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
689 | DEAD_CODE_STRIPPING = NO;
690 | HEADER_SEARCH_PATHS = (
691 | "$(inherited)",
692 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
693 | "$(SRCROOT)/../node_modules/react-native/React/**",
694 | );
695 | INFOPLIST_FILE = lagou/Info.plist;
696 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
697 | OTHER_LDFLAGS = "-ObjC";
698 | PRODUCT_NAME = lagou;
699 | PROVISIONING_PROFILE = "";
700 | };
701 | name = Debug;
702 | };
703 | 13B07F951A680F5B00A75B9A /* Release */ = {
704 | isa = XCBuildConfiguration;
705 | buildSettings = {
706 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
707 | CODE_SIGN_IDENTITY = "iPhone Developer";
708 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
709 | HEADER_SEARCH_PATHS = (
710 | "$(inherited)",
711 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
712 | "$(SRCROOT)/../node_modules/react-native/React/**",
713 | );
714 | INFOPLIST_FILE = lagou/Info.plist;
715 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
716 | OTHER_LDFLAGS = "-ObjC";
717 | PRODUCT_NAME = lagou;
718 | PROVISIONING_PROFILE = "";
719 | };
720 | name = Release;
721 | };
722 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
723 | isa = XCBuildConfiguration;
724 | buildSettings = {
725 | ALWAYS_SEARCH_USER_PATHS = NO;
726 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
727 | CLANG_CXX_LIBRARY = "libc++";
728 | CLANG_ENABLE_MODULES = YES;
729 | CLANG_ENABLE_OBJC_ARC = YES;
730 | CLANG_WARN_BOOL_CONVERSION = YES;
731 | CLANG_WARN_CONSTANT_CONVERSION = YES;
732 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
733 | CLANG_WARN_EMPTY_BODY = YES;
734 | CLANG_WARN_ENUM_CONVERSION = YES;
735 | CLANG_WARN_INT_CONVERSION = YES;
736 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
737 | CLANG_WARN_UNREACHABLE_CODE = YES;
738 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
739 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
740 | COPY_PHASE_STRIP = NO;
741 | ENABLE_STRICT_OBJC_MSGSEND = YES;
742 | GCC_C_LANGUAGE_STANDARD = gnu99;
743 | GCC_DYNAMIC_NO_PIC = NO;
744 | GCC_OPTIMIZATION_LEVEL = 0;
745 | GCC_PREPROCESSOR_DEFINITIONS = (
746 | "DEBUG=1",
747 | "$(inherited)",
748 | );
749 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
750 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
751 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
752 | GCC_WARN_UNDECLARED_SELECTOR = YES;
753 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
754 | GCC_WARN_UNUSED_FUNCTION = YES;
755 | GCC_WARN_UNUSED_VARIABLE = YES;
756 | HEADER_SEARCH_PATHS = (
757 | "$(inherited)",
758 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
759 | "$(SRCROOT)/../node_modules/react-native/React/**",
760 | );
761 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
762 | MTL_ENABLE_DEBUG_INFO = YES;
763 | ONLY_ACTIVE_ARCH = YES;
764 | SDKROOT = iphoneos;
765 | };
766 | name = Debug;
767 | };
768 | 83CBBA211A601CBA00E9B192 /* Release */ = {
769 | isa = XCBuildConfiguration;
770 | buildSettings = {
771 | ALWAYS_SEARCH_USER_PATHS = NO;
772 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
773 | CLANG_CXX_LIBRARY = "libc++";
774 | CLANG_ENABLE_MODULES = YES;
775 | CLANG_ENABLE_OBJC_ARC = YES;
776 | CLANG_WARN_BOOL_CONVERSION = YES;
777 | CLANG_WARN_CONSTANT_CONVERSION = YES;
778 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
779 | CLANG_WARN_EMPTY_BODY = YES;
780 | CLANG_WARN_ENUM_CONVERSION = YES;
781 | CLANG_WARN_INT_CONVERSION = YES;
782 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
783 | CLANG_WARN_UNREACHABLE_CODE = YES;
784 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
785 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
786 | COPY_PHASE_STRIP = YES;
787 | ENABLE_NS_ASSERTIONS = NO;
788 | ENABLE_STRICT_OBJC_MSGSEND = YES;
789 | GCC_C_LANGUAGE_STANDARD = gnu99;
790 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
791 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
792 | GCC_WARN_UNDECLARED_SELECTOR = YES;
793 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
794 | GCC_WARN_UNUSED_FUNCTION = YES;
795 | GCC_WARN_UNUSED_VARIABLE = YES;
796 | HEADER_SEARCH_PATHS = (
797 | "$(inherited)",
798 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
799 | "$(SRCROOT)/../node_modules/react-native/React/**",
800 | );
801 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
802 | MTL_ENABLE_DEBUG_INFO = NO;
803 | SDKROOT = iphoneos;
804 | VALIDATE_PRODUCT = YES;
805 | };
806 | name = Release;
807 | };
808 | /* End XCBuildConfiguration section */
809 |
810 | /* Begin XCConfigurationList section */
811 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "lagouTests" */ = {
812 | isa = XCConfigurationList;
813 | buildConfigurations = (
814 | 00E356F61AD99517003FC87E /* Debug */,
815 | 00E356F71AD99517003FC87E /* Release */,
816 | );
817 | defaultConfigurationIsVisible = 0;
818 | defaultConfigurationName = Release;
819 | };
820 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "lagou" */ = {
821 | isa = XCConfigurationList;
822 | buildConfigurations = (
823 | 13B07F941A680F5B00A75B9A /* Debug */,
824 | 13B07F951A680F5B00A75B9A /* Release */,
825 | );
826 | defaultConfigurationIsVisible = 0;
827 | defaultConfigurationName = Release;
828 | };
829 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "lagou" */ = {
830 | isa = XCConfigurationList;
831 | buildConfigurations = (
832 | 83CBBA201A601CBA00E9B192 /* Debug */,
833 | 83CBBA211A601CBA00E9B192 /* Release */,
834 | );
835 | defaultConfigurationIsVisible = 0;
836 | defaultConfigurationName = Release;
837 | };
838 | /* End XCConfigurationList section */
839 | };
840 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
841 | }
842 |
--------------------------------------------------------------------------------
/ios/lagou.xcodeproj/xcshareddata/xcschemes/lagou.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/lagou/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/lagou/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 "RCTRootView.h"
13 |
14 | @implementation AppDelegate
15 |
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17 | {
18 | NSURL *jsCodeLocation;
19 |
20 | /**
21 | * Loading JavaScript code - uncomment the one you want.
22 | *
23 | * OPTION 1
24 | * Load from development server. Start the server from the repository root:
25 | *
26 | * $ npm start
27 | *
28 | * To run on device, change `localhost` to the IP address of your computer
29 | * (you can get this by typing `ifconfig` into the terminal and selecting the
30 | * `inet` value under `en0:`) and make sure your computer and iOS device are
31 | * on the same Wi-Fi network.
32 | */
33 |
34 | //jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
35 | jsCodeLocation = [NSURL URLWithString:@"http://192.168.1.8:8081/index.ios.bundle?platform=ios&dev=true"];
36 |
37 | /**
38 | * OPTION 2
39 | * Load from pre-bundled file on disk. The static bundle is automatically
40 | * generated by "Bundle React Native code and images" build step.
41 | */
42 |
43 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
44 |
45 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
46 | moduleName:@"lagou"
47 | initialProperties:nil
48 | launchOptions:launchOptions];
49 |
50 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
51 | UIViewController *rootViewController = [UIViewController new];
52 | rootViewController.view = rootView;
53 | self.window.rootViewController = rootViewController;
54 | [self.window makeKeyAndVisible];
55 | return YES;
56 | }
57 |
58 | @end
59 |
--------------------------------------------------------------------------------
/ios/lagou/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/lagou/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/lagou/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_forget_password.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_forget_password.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_forget_password.imageset/icon_forget_password.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_forget_password.imageset/icon_forget_password.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_collect.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_collect.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_collect.imageset/icon_user_collect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_collect.imageset/icon_user_collect.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_feedback.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_feedback.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_feedback.imageset/icon_user_feedback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_feedback.imageset/icon_user_feedback.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_info_mail.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_info_mail.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_info_mail.imageset/icon_user_info_mail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_info_mail.imageset/icon_user_info_mail.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_info_name.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_info_name.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_info_name.imageset/icon_user_info_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_info_name.imageset/icon_user_info_name.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_info_work.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_info_work.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_info_work.imageset/icon_user_info_work.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_info_work.imageset/icon_user_info_work.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_resume.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_resume.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_resume.imageset/icon_user_resume.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_resume.imageset/icon_user_resume.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_setting.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icon_user_setting.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/icon_user_setting.imageset/icon_user_setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/icon_user_setting.imageset/icon_user_setting.png
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/user_photo_bg.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "user_photo_bg.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/lagou/Images.xcassets/user_photo_bg.imageset/user_photo_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/ios/lagou/Images.xcassets/user_photo_bg.imageset/user_photo_bg.png
--------------------------------------------------------------------------------
/ios/lagou/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIAppFonts
6 |
7 | Materiallcons.ttf
8 | Ionicons.ttf
9 | Foundation.ttf
10 | FontAwesome.ttf
11 |
12 | CFBundleDevelopmentRegion
13 | en
14 | CFBundleExecutable
15 | $(EXECUTABLE_NAME)
16 | CFBundleIdentifier
17 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
18 | CFBundleInfoDictionaryVersion
19 | 6.0
20 | CFBundleName
21 | $(PRODUCT_NAME)
22 | CFBundlePackageType
23 | APPL
24 | CFBundleShortVersionString
25 | 1.0
26 | CFBundleSignature
27 | ????
28 | CFBundleVersion
29 | 1
30 | LSRequiresIPhoneOS
31 |
32 | NSAppTransportSecurity
33 |
34 | NSAllowsArbitraryLoads
35 |
36 |
37 | NSLocationWhenInUseUsageDescription
38 |
39 | UILaunchStoryboardName
40 | LaunchScreen
41 | UIRequiredDeviceCapabilities
42 |
43 | armv7
44 |
45 | UISupportedInterfaceOrientations
46 |
47 | UIInterfaceOrientationPortrait
48 |
49 | UIViewControllerBasedStatusBarAppearance
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/ios/lagou/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/lagouTests/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/lagouTests/lagouTests.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 240
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface lagouTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation lagouTests
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 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lagou",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start"
7 | },
8 | "dependencies": {
9 | "react-native": "^0.19.0",
10 | "react-native-swiper": "^1.4.3",
11 | "react-native-tab-navigator": "^0.2.15",
12 | "react-native-vector-icons": "^1.1.1",
13 | "react-timer-mixin": "^0.13.3"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/pic.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/heruijun/react-native-lagou/b4705adf70417cb26b54ebcae91480e35b41c877/pic.gif
--------------------------------------------------------------------------------
/views/Discover.js:
--------------------------------------------------------------------------------
1 | var Swiper = require('react-native-swiper');
2 | var React = require('react-native');
3 | var DiscoverCell = require('./discover/DiscoverCell');
4 | var DiscoverList = require('./discover/DiscoverList');
5 | var DiscoverContent = require('./discover/DiscoverContent');
6 |
7 | var {
8 | AppRegistry,
9 | StyleSheet,
10 | ScrollView,
11 | ListView,
12 | Platform,
13 | Image,
14 | Text,
15 | View,
16 | } = React;
17 |
18 | var renderPagination = function (index, total, context) {
19 | return (
20 |
21 |
22 | {Math.floor(index + 1)}/{total}
23 |
24 |
25 | )
26 | }
27 |
28 | var Discover = React.createClass({
29 | componentDidMount() {
30 |
31 | },
32 | componentWillUnmount() {
33 |
34 | },
35 |
36 | selectDiscover: function(discover: Object) {
37 | if (Platform.OS === 'ios') {
38 | this.props.navigator.push({
39 | title: discover.title,
40 | component: DiscoverContent,
41 | passProps: {discover},
42 | });
43 | } else {
44 | // Android
45 | }
46 | },
47 |
48 | getInitialState: function() {
49 | var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
50 |
51 | return {
52 | dataSource: ds.cloneWithRows(this._genRows({})),
53 | };
54 | },
55 |
56 | _renderRow: function(discoverData: Object, sectionID: number, rowID: number) {
57 | return (
58 | this.selectDiscover(discoverData)}
60 | discoverData={discoverData}/>
61 | );
62 | },
63 |
64 | _genRows: function(): Array {
65 | return DiscoverList;
66 | },
67 |
68 | render: function() {
69 | var resultList =
70 | ;
75 |
76 | return (
77 |
78 |
87 |
88 |
89 | 2016,只愿带你发现更多
90 |
91 |
92 |
93 |
94 | 12张图掌握2016互联网职场薪资
95 |
96 |
97 |
98 |
99 | 年轻人不能错过这5家“小而美”的公司
100 |
101 |
102 |
103 |
104 | 智能硬件行业的5个雇主 最值得你抱大腿
105 |
106 |
107 |
108 | {resultList}
109 |
110 | )
111 | }
112 | });
113 |
114 | var styles = StyleSheet.create({
115 | wrapper: {
116 |
117 | },
118 | slide: {
119 | flex: 1,
120 | backgroundColor: 'transparent',
121 | },
122 | swipeText: {
123 | color: '#fff',
124 | fontSize: 18,
125 | marginTop: 120,
126 | marginLeft: 10,
127 | width: 250,
128 | lineHeight: 24,
129 | fontWeight: 'bold',
130 | },
131 | backgroundImage: {
132 | flex: 1,
133 | width: null,
134 | height: null,
135 | backgroundColor: 'transparent',
136 | resizeMode: 'cover',
137 | },
138 | user: {
139 | width: 60,
140 | height: 60,
141 | borderRadius: 30,
142 | },
143 | count: {
144 | width: 30,
145 | height: 30,
146 | borderRadius: 15,
147 | textAlign:'center',
148 | lineHeight: 23,
149 | backgroundColor: '#FFF',
150 | opacity: 0.9,
151 | },
152 | });
153 |
154 | module.exports = Discover;
155 |
--------------------------------------------------------------------------------
/views/Home.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | ListView,
8 | Image,
9 | Text,
10 | View
11 | } from 'react-native';
12 |
13 | import JobCell from './home/JobCell';
14 | import JobDetail from './home/JobDetail';
15 | import JobList from './home/JobList';
16 |
17 | class SearchBar extends Component {
18 | render() {
19 | return (
20 |
21 |
22 | 拉勾
23 |
24 |
25 |
26 |
27 | 输入职位名或公司名
28 |
29 |
30 |
31 | );
32 | }
33 | }
34 |
35 | var renderHeader = function (index, total, context) {
36 | return (
37 |
38 |
39 |
40 | 可直接沟通的职位推荐
41 | 来和老板直接聊offer吧
42 |
43 |
44 | )
45 | }
46 |
47 | export default class Home extends Component {
48 | constructor() {
49 | super();
50 | var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
51 | this.state = {
52 | dataSource: ds.cloneWithRows(this._genRows({}))
53 | }
54 | // 必须绑定,否则onPress报错
55 | this._renderRow = this._renderRow.bind(this);
56 | }
57 |
58 | selectJob(job: Object){
59 | const { navigator } = this.props;
60 | if(navigator) {
61 | navigator.push({
62 | name: 'JobDeail',
63 | component: JobDetail,
64 | params: {
65 | job: job
66 | }
67 | })
68 | }
69 | }
70 |
71 | _renderRow(jobData: Object, sectionID: number, rowID: number) {
72 |
73 | return (
74 | this.selectJob(jobData)} jobData={jobData}/>
75 | );
76 | }
77 |
78 | _genRows(): Array {
79 | return JobList;
80 | }
81 |
82 | render() {
83 | var resultList =
84 | ;
90 |
91 | return (
92 |
93 |
94 | {resultList}
95 |
96 | );
97 | }
98 | }
99 |
100 | var styles = StyleSheet.create({
101 | searchBar: {
102 | backgroundColor: '#11a984',
103 | flexDirection: 'row',
104 | padding: 10,
105 | justifyContent: 'center',
106 | alignItems: 'center',
107 | },
108 | headerBody: {
109 | padding: 20,
110 | backgroundColor: '#FFF',
111 | marginBottom: 15,
112 | flexDirection: 'row',
113 | },
114 | searchInput: {
115 | borderRadius: 15,
116 | backgroundColor: '#0f9574',
117 | paddingTop: 7,
118 | paddingBottom: 7,
119 | marginLeft: 10,
120 | marginRight: 10,
121 | justifyContent: 'center',
122 | alignItems: 'center',
123 | flexDirection: 'row',
124 | flex: 1,
125 | },
126 | container: {
127 | flex: 1,
128 | marginTop: 20,
129 | backgroundColor: '#EEE',
130 | paddingBottom: 48,
131 | },
132 | });
133 |
--------------------------------------------------------------------------------
/views/Me.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | TouchableHighlight,
8 | ScrollView,
9 | Navigator,
10 | Image,
11 | Text,
12 | View
13 | } from 'react-native';
14 |
15 | import Resume from './me/Resume';
16 |
17 | class Me extends Component {
18 | constructor(props) {
19 | super(props);
20 | this.state = {};
21 | }
22 |
23 | _pressButton(title: String) {
24 | const { navigator } = this.props;
25 | //或者写成 const navigator = this.props.navigator;
26 | //为什么这里可以取得 props.navigator?请看上文:
27 | //
28 | //这里传递了navigator作为props
29 | if(navigator) {
30 | navigator.push({
31 | name: 'Resume',
32 | component: Resume,
33 | // 传递参数到跳转的界面
34 | params: {
35 | title: title
36 | }
37 | })
38 | }
39 | }
40 |
41 | render() {
42 | return (
43 |
44 |
45 |
46 |
47 | Kimi He
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | 简历
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | PLUS
67 | 已开启
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | 收藏
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | 意见反馈
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 | 更多设置
101 |
102 |
103 |
104 |
105 |
106 |
107 | );
108 | }
109 | }
110 |
111 | var styles = StyleSheet.create({
112 | container: {
113 | flex: 1,
114 | },
115 | backgroundImage: {
116 | flex: 1,
117 | justifyContent: 'center',
118 | alignItems: 'center',
119 | width: null,
120 | height: null,
121 | backgroundColor: 'transparent',
122 | resizeMode: 'stretch',
123 | },
124 | user: {
125 | width: 60,
126 | height: 60,
127 | borderRadius: 30,
128 | },
129 | thumb: {
130 | width: 30,
131 | height: 30,
132 | },
133 | separator: {
134 | height: 1,
135 | backgroundColor: '#E8E8E8',
136 | },
137 | });
138 |
139 | module.exports = Me;
140 |
--------------------------------------------------------------------------------
/views/Message.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | AlertIOS,
6 | Component,
7 | StyleSheet,
8 | ScrollView,
9 | TouchableHighlight,
10 | Image,
11 | Text,
12 | View
13 | } from 'react-native';
14 |
15 | const TYPE_MESSAGE_STATUS1 = 1;
16 | const TYPE_MESSAGE_STATUS2 = 2;
17 | const TYPE_MESSAGE_STATUS3 = 3;
18 |
19 | class Message extends Component {
20 | _itemPress() {
21 | AlertIOS.alert(
22 | '等待添加',
23 | null,
24 | [
25 | {text: 'OK', onPress: (text) => console.log('确定'), type: 'default'}
26 | ]
27 | )
28 | }
29 |
30 | render() {
31 | return (
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 谁看过我
40 | 暂无新消息
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | 简历状态通知
52 | 暂无新消息
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | 职位邀请通知
64 | 暂无新消息
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | );
73 | }
74 | }
75 |
76 | var styles = StyleSheet.create({
77 | container: {
78 | flex: 1,
79 | },
80 | thumb: {
81 | width: 50,
82 | height: 50,
83 | },
84 | separator: {
85 | height: 1,
86 | backgroundColor: '#E8E8E8',
87 | },
88 | });
89 |
90 | export default Message;
91 |
--------------------------------------------------------------------------------
/views/discover/DiscoverCell.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var React = require('react-native');
4 | var {
5 | Image,
6 | StyleSheet,
7 | Text,
8 | TouchableHighlight,
9 | View
10 | } = React;
11 |
12 | var DiscoverCell = React.createClass({
13 | render: function() {
14 | var discoverData = this.props.discoverData;
15 | var cellView;
16 | if(this.props.discoverData.fullScreen){
17 | cellView =
18 |
19 |
20 |
21 | {discoverData.title}
22 | {discoverData.date}
23 |
24 |
25 |
26 |
27 | {discoverData.infoTitle}
28 | {discoverData.info}
29 |
30 |
31 | } else {
32 | cellView =
33 |
34 |
35 |
36 |
37 | {discoverData.title}
38 | {discoverData.date}
39 |
40 | {discoverData.infoTitle}
41 | {discoverData.info}
42 |
43 |
44 | }
45 |
46 | return (
47 |
50 |
51 | {cellView}
52 |
53 |
54 |
55 | );
56 | }
57 | });
58 |
59 | var styles = StyleSheet.create({
60 | thumb: {
61 | width: 120,
62 | height: 80,
63 | },
64 | separator: {
65 | height: 1,
66 | backgroundColor: '#E8E8E8',
67 | },
68 | fullScreenImage: {
69 | flex: 1,
70 | justifyContent: 'center',
71 | alignItems: 'center',
72 | width: null,
73 | height: null,
74 | backgroundColor: 'transparent',
75 | resizeMode: 'cover',
76 | },
77 | companyTag: {
78 | color:'#999',
79 | fontSize: 12,
80 | marginLeft: 5,
81 | marginRight: 5,
82 | height: 20,
83 | paddingTop: 3,
84 | paddingLeft: 5,
85 | paddingRight: 5,
86 | borderWidth: 0.5,
87 | borderRadius: 10,
88 | borderColor: '#E8E8E8',
89 | },
90 | });
91 |
92 | module.exports = DiscoverCell;
93 |
--------------------------------------------------------------------------------
/views/discover/DiscoverContent.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var React = require('react-native');
3 |
4 | var {
5 | AppRegistry,
6 | Component,
7 | ScrollView,
8 | StyleSheet,
9 | Image,
10 | Text,
11 | View
12 | } = React;
13 |
14 | var DiscoverContent = React.createClass({
15 | render: function() {
16 | var discoverObj = this.props.discover;
17 | return (
18 |
19 |
20 | {discoverObj.infoTitle}
21 | 关键字:{discoverObj.info}
22 | 发布日期:{discoverObj.date}
23 |
24 |
25 |
26 | {discoverObj.content}
27 |
28 |
29 | );
30 | }
31 | });
32 |
33 | var styles = StyleSheet.create({
34 | container: {
35 | flex: 1,
36 | padding: 15,
37 | marginBottom: 80,
38 | },
39 | largeImage: {
40 | flex: 1,
41 | justifyContent: 'center',
42 | alignItems: 'center',
43 | width: null,
44 | height: null,
45 | backgroundColor: 'transparent',
46 | resizeMode: 'contain',
47 | marginTop: 25,
48 | marginBottom: 35,
49 | },
50 | });
51 |
52 | module.exports = DiscoverContent;
53 |
--------------------------------------------------------------------------------
/views/discover/DiscoverList.js:
--------------------------------------------------------------------------------
1 | var items = [
2 | {
3 | id:1,
4 | title: '公司研究所',
5 | infoTitle: '避免摧毁梦想的5个方法',
6 | logo: 'http://i02.pic.sogou.com/4fe596840a23226e',
7 | info: '逗比 生产力',
8 | fullScreen: true,
9 | date: '02月04日',
10 | content: '新媒体管家旨在为新媒体运营者打造最好用的新媒体工具,与微信公众平台无缝兼容,已获世界顶级资本IDG的风险投资,上线1年积累50万新媒体用户央视财经/吴晓波/鬼脚七/饿了么/拍拍网都在玩网址:xmt.cn'
11 | },
12 | {
13 | id:2,
14 | title: '硅谷情报站',
15 | infoTitle: '除了技术,大牛工程师还懂这些',
16 | logo: 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=242376273,2683336124&fm=80',
17 | info: '软件工程师 大牛',
18 | fullScreen: false,
19 | date: '02月03日',
20 | content: '【甭纠结】『陪伴是最长情的告白』沃而乐致力于打造一个陪伴、快乐的小星球。一个个热血的年轻人,一颗颗炽热的创业心,思想碰撞,创意激荡,脑筋急转,欢声笑语,充满朝气和活力,不分阶级,不分年龄,全凭有实力的你!上海沃而乐信息技术有限公司(简称:vocinno)成立于2013年底,专注于网络科技APP产品的开发和营运。目前已获得三家国内知名投资机构投资,2015年6月完成的A轮融资数百万美金,公司目前估值4亿台币。创始人陆初杰Eric,生于台湾,12岁随父母移民美国,曾任职于全球知'
21 | },
22 | {
23 | id:3,
24 | title: '什么值得投',
25 | infoTitle: '天府之国,带你认识那些具有竞争力的创业公司',
26 | logo: 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2739269316,1647377567&fm=80',
27 | info: '成都 创业公司',
28 | fullScreen: false,
29 | date: '02月01日',
30 | content: '这是一个移动互联时代,视频时代,同是也是一个存在感、归属感、现实朋友都普遍匮乏的时代。“么么直播”——真实有趣的直播平台,于2014年7月1日正式上线运营,每月千万级流水!我们的优势1、优秀的团队某知名互联网公司项目团队原班人马,成员中80%有多年互联网视频社交行业从业经验,最资深的超过10年,技术积累、运营功力深厚。(一群80后萌大叔、90后小鲜肉,漂亮的姑凉?我们最不缺的就是姑凉!说多了忒俗…)2、丰富的实战经验曾经我们用一年半时间,从零开始,在零资金(人力成本和盈利再'
31 | },
32 | {
33 | id:4,
34 | title: '什么值得投',
35 | infoTitle: '这家公司想告诉你,春节前有不错的工作机会',
36 | logo: 'http://h.hiphotos.baidu.com/image/h%3D360/sign=bda7222c6f224f4a4899751539f69044/b3b7d0a20cf431adc4b317334936acaf2edd9852.jpg',
37 | info: '互联网公司 跳槽',
38 | fullScreen: true,
39 | date: '02月01日',
40 | content: '我们是谁:我们这里有全球最大最好玩的“文化艺术创意品电商平台”,目前已有数千名艺术创意者在我们平台上策马奔腾开店 www.Artbulb.com 我们有超过100万个创意产品包括 多种创意男女服装、个性化数码产品、创意家装、礼品、原创艺术品交易和P2P金融。'
41 | },
42 | {
43 | id:5,
44 | title: '什么值得投',
45 | infoTitle: '逃离北上广,在包邮区找到你的互联网生涯',
46 | logo: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2778360026,885184984&fm=80',
47 | info: '包邮区 逃离北上广',
48 | fullScreen: false,
49 | date: '02月01日',
50 | content: '上海方付通商务服务有限公司(F-ROAD)成立于2008年,是世界银行集团国际金融公司在华唯一投资的移动金融企业,是一家专门从事金融机构移动终端业务运营,银行卡增值服务运营、商业银行产品代销服务运营的公司。公司设立在上海浦东,在广东珠海均设立软件技术实施基地。 公司依靠领先的技术、丰富的产品运营模式、强大的咨询实施队伍、优秀的本地化服务及规模化交付能力,公司智能芯片独家专利技术产品在金融领域都得到了广泛的应用,得到金融界的热烈响应,受到终端用户的一致好评。公司秉承为合作伙伴信息化建设提供实用'
51 | },
52 | {
53 | id:6,
54 | title: '什么值得投',
55 | infoTitle: '深圳最适合年轻人加入的4家公司',
56 | logo: 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=557432160,536607104&fm=80',
57 | info: '深圳 年轻人',
58 | fullScreen: false,
59 | date: '02月05日',
60 | content: '健一网是华润集团旗下华源大药房所创立的B2C药房网。隶属于中央直属的国有控股企业集团、世界500强企业——华润(集团)有限公司,是一家集医药、保健品、医疗器械、化妆品批发、零售为一体的优秀商业企业。'
61 | },
62 | ];
63 |
64 | module.exports = items;
65 |
--------------------------------------------------------------------------------
/views/home/JobCell.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | Component,
5 | Navigator,
6 | Image,
7 | StyleSheet,
8 | Text,
9 | TouchableHighlight,
10 | View
11 | } from 'react-native';
12 |
13 | class JobCell extends Component {
14 | constructor(props) {
15 | super(props);
16 | this.state = {};
17 | }
18 |
19 | render() {
20 | const { jobData } = this.props;
21 |
22 | return (
23 |
26 |
27 |
28 |
29 |
30 | {jobData.title}
31 | {jobData.company}
32 | {jobData.info}
33 |
34 |
35 | {jobData.date}
36 | {jobData.salary}
37 |
38 |
39 |
40 | {jobData.companyPosition}
41 | {jobData.companyPerson}
42 | {jobData.companyService}
43 |
44 |
45 |
46 |
47 | );
48 | }
49 | }
50 |
51 | var styles = StyleSheet.create({
52 | thumb: {
53 | width: 64,
54 | height: 64,
55 | },
56 | separator: {
57 | height: 1,
58 | backgroundColor: '#E8E8E8',
59 | },
60 | companyTag: {
61 | color:'#999',
62 | fontSize: 12,
63 | marginLeft: 5,
64 | marginRight: 5,
65 | height: 20,
66 | paddingTop: 3,
67 | paddingLeft: 5,
68 | paddingRight: 5,
69 | borderWidth: 0.5,
70 | borderRadius: 10,
71 | borderColor: '#E8E8E8',
72 | },
73 | });
74 |
75 | module.exports = JobCell;
76 |
--------------------------------------------------------------------------------
/views/home/JobDetail.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | Navigator,
8 | TouchableOpacity,
9 | Image,
10 | Text,
11 | View
12 | } from 'react-native';
13 |
14 | export default class JobDetail extends Component {
15 | constructor(props){
16 | super(props);
17 | this.state = {job: null};
18 | }
19 |
20 | _pressButton(){
21 | const { navigator } = this.props;
22 | if(navigator) {
23 | navigator.pop();
24 | }
25 | }
26 |
27 | render() {
28 | const { job } = this.props;
29 |
30 | return (
31 |
32 |
33 |
34 |
35 |
36 | 职位详情
37 |
38 |
39 | {job.title}
40 | {job.salary}
41 |
42 |
43 | {job.company}
44 | {job.info}
45 |
46 |
47 | );
48 | }
49 | }
50 |
51 | var styles = StyleSheet.create({
52 | container: {
53 | flex: 1,
54 | justifyContent: 'center',
55 | alignItems: 'center',
56 | backgroundColor: '#F5FCFF',
57 | },
58 | welcome: {
59 | fontSize: 20,
60 | textAlign: 'center',
61 | margin: 10,
62 | },
63 | instructions: {
64 | textAlign: 'center',
65 | color: '#333333',
66 | marginBottom: 5,
67 | },
68 | });
69 |
--------------------------------------------------------------------------------
/views/home/JobList.js:
--------------------------------------------------------------------------------
1 | var items = [
2 | {
3 | id:1,
4 | title: '移动端架构师',
5 | company: '微知',
6 | logo: 'http://www.lagou.com/image1/M00/00/2D/CgYXBlTUXHmAYBiwAADN4HFwWwg883.png',
7 | info: '上海 5-10年 本科',
8 | companyPosition: 'B轮',
9 | companyPerson: '15-50人',
10 | companyService: '企业服务',
11 | date: '02月04日',
12 | salary: '25k-35k'
13 | },
14 | {
15 | id:2,
16 | title: 'H5高级前端开发工程师',
17 | company: '图超市',
18 | logo: 'http://www.lagou.com/i/image/M00/01/CC/Cgp3O1Z3zVKASVxuAABFUIRsoqw701.png',
19 | info: '上海 3-5年 本科',
20 | companyPosition: 'B轮',
21 | companyPerson: '150-500人',
22 | companyService: '电子商务',
23 | date: '02月03日',
24 | salary: '18k-30k'
25 | },
26 | {
27 | id:3,
28 | title: '资深H5前端开发工程师',
29 | company: '亿迈',
30 | logo: 'http://www.lagou.com/image2/M00/10/4B/CgqLKVYt05eAD7l7AABJmz5WkKg017.png?cc=0.41352160401311655',
31 | info: '上海 1-3年 大专',
32 | companyPosition: '不需要融资',
33 | companyPerson: '50-150人',
34 | companyService: '移动互联网广告营销',
35 | date: '02月01日',
36 | salary: '15k-30k'
37 | },
38 | {
39 | id:4,
40 | title: 'HTML5高级前端开发工程师',
41 | company: '极好家',
42 | logo: 'http://www.lagou.com/i/image/M00/02/30/CgqKkVaFYSOAAZ2OAACMUX3RVLY286.png',
43 | info: '上海 3-5年 不限',
44 | companyPosition: '天使轮',
45 | companyPerson: '15-50人',
46 | companyService: '电子商务',
47 | date: '02月01日',
48 | salary: '15k-25k'
49 | },
50 | {
51 | id:5,
52 | title: '移动架构师',
53 | company: '饿了么',
54 | logo: 'http://www.lagou.com/i/image/M00/01/7F/CgqKkVZuMj2ACjxNAAAQn5l0gHk231.png',
55 | info: '上海 3-5年 本科',
56 | companyPosition: 'D轮以上',
57 | companyPerson: '2000人以上',
58 | companyService: '移动互联网',
59 | date: '02月01日',
60 | salary: '30k-35k'
61 | },
62 | {
63 | id:6,
64 | title: '高级前端开发工程师',
65 | company: '七牛云存储',
66 | logo: 'http://www.lagou.com/image1/M00/00/0B/CgYXBlTUWBuAZQRPAABnZFUa1HQ019.jpg',
67 | info: '上海 3-5年 本科',
68 | companyPosition: 'D轮以上',
69 | companyPerson: '150-500人',
70 | companyService: '移动互联网,数据服务',
71 | date: '02月05日',
72 | salary: '15k-30k'
73 | },
74 | ];
75 |
76 | module.exports = items;
77 |
--------------------------------------------------------------------------------
/views/me/Resume.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import React, {
4 | AppRegistry,
5 | Component,
6 | StyleSheet,
7 | Navigator,
8 | TouchableOpacity,
9 | Image,
10 | Text,
11 | View
12 | } from 'react-native';
13 |
14 | export default class Resume extends Component {
15 | constructor(props){
16 | super(props);
17 | this.state = {title: null};
18 | }
19 |
20 | // componentDidMount() {
21 | // //这里获取从前一个界面传递来的参数
22 | // this.setState({
23 | // title: this.props.title
24 | // });
25 | // }
26 |
27 | _pressButton(){
28 | const { navigator } = this.props;
29 | if(navigator) {
30 | navigator.pop();
31 | }
32 | }
33 |
34 | render() {
35 | return (
36 |
37 |
38 |
39 |
40 |
41 | {this.props.title}
42 |
43 |
44 | 等待添加
45 |
46 |
47 | );
48 | }
49 | }
50 |
51 | var styles = StyleSheet.create({
52 | container: {
53 | flex: 1,
54 | justifyContent: 'center',
55 | alignItems: 'center',
56 | backgroundColor: '#F5FCFF',
57 | },
58 | welcome: {
59 | fontSize: 20,
60 | textAlign: 'center',
61 | margin: 10,
62 | },
63 | instructions: {
64 | textAlign: 'center',
65 | color: '#333333',
66 | marginBottom: 5,
67 | },
68 | });
69 |
--------------------------------------------------------------------------------