├── .buckconfig ├── .flowconfig ├── .gitignore ├── .watchmanconfig ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── foodmenu │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app ├── actions │ ├── FrontPageAction.js │ └── actionTypes.js ├── common │ ├── HeaderView.js │ ├── LeftMenuHeaderView.js │ ├── LoadMoreFooter.js │ ├── Loading.js │ ├── ToastUtil.js │ ├── common.js │ └── utils.js ├── containers │ ├── FrontPageContainer.js │ ├── LeftMenuContainer.js │ └── app.js ├── pages │ ├── FrontPage.js │ ├── InformationPage.js │ └── LeftMenu.js ├── reducers │ ├── frontPageReducer.js │ └── rootReudcer.js ├── root.js └── store │ └── store.js ├── index.android.js ├── index.ios.js ├── ios ├── FoodMenu.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── FoodMenu.xcscheme ├── FoodMenu │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── header.imageset │ │ │ ├── Contents.json │ │ │ └── header.png │ ├── Info.plist │ └── main.m └── FoodMenuTests │ ├── FoodMenuTests.m │ └── Info.plist ├── package.json └── screenshots ├── 1.png ├── 2.png └── 3.png /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*[.]android.js 5 | 6 | # Ignore templates with `@flow` in header 7 | .*/local-cli/generator.* 8 | 9 | # Ignore malformed json 10 | .*/node_modules/y18n/test/.*\.json 11 | 12 | # Ignore the website subdir 13 | /website/.* 14 | 15 | # Ignore BUCK generated dirs 16 | /\.buckd/ 17 | 18 | # Ignore unexpected extra @providesModule 19 | .*/node_modules/commoner/test/source/widget/share.js 20 | 21 | # Ignore duplicate module providers 22 | # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root 23 | .*/Libraries/react-native/React.js 24 | .*/Libraries/react-native/ReactNative.js 25 | .*/node_modules/jest-runtime/build/__tests__/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | node_modules/react-native/flow 32 | flow/ 33 | 34 | [options] 35 | module.system=haste 36 | 37 | esproposal.class_static_fields=enable 38 | esproposal.class_instance_fields=enable 39 | 40 | experimental.strict_type_args=true 41 | 42 | munge_underscores=true 43 | 44 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 45 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 46 | 47 | suppress_type=$FlowIssue 48 | suppress_type=$FlowFixMe 49 | suppress_type=$FixMe 50 | 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 52 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 53 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 54 | 55 | unsafe.enable_getters_and_setters=true 56 | 57 | [version] 58 | ^0.30.0 59 | -------------------------------------------------------------------------------- /.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 | *.iml 28 | .idea 29 | .gradle 30 | local.properties 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | 37 | # BUCK 38 | buck-out/ 39 | \.buckd/ 40 | android/app/libs 41 | android/keystores/debug.keystore 42 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FoodMenu 2 | React native 实现含有侧滑功能的app,用Listview展示界面,可基于此,开发其他类似侧滑app;含有下拉刷新、上拉加载功能。 3 | 4 | ### Content 5 | - [Screenshot](#screenshot) 6 | - [Step](#step) 7 | - [Usage snippets](#usage-snippets) 8 | 9 | ### Screenshot 10 | ![image](https://github.com/liuhongjun719/FoodMenu/blob/master/screenshots/1.png) 11 | ![image](https://github.com/liuhongjun719/FoodMenu/blob/master/screenshots/3.png) 12 | ![image](https://github.com/liuhongjun719/FoodMenu/blob/master/screenshots/2.png) 13 | 14 | 15 | ### Step 16 | >* step1: 重启终端(以防之前打开过其他项目,会出现错误红屏界面) 17 | >* step2: npm install 18 | >* step3: nmp start 19 | 20 | 21 | ### Usage snippets 22 | ```javascript 23 | import React from 'react'; 24 | import { 25 | Navigator, 26 | View, 27 | StyleSheet, 28 | Text, 29 | DeviceEventEmitter, 30 | InteractionManager, 31 | } from 'react-native'; 32 | 33 | import FrontPageContainer from '../containers/FrontPageContainer'; 34 | import SideMenu from 'react-native-side-menu'; 35 | 36 | import LeftMenuContainer from '../containers/LeftMenuContainer'; 37 | import Common from '../common/common'; 38 | 39 | 40 | class App extends React.Component { 41 | render() { 42 | 43 | return ( 44 | 45 | { 49 | if (route.sceneConfig) { 50 | return route.sceneConfig; 51 | } 52 | return Navigator.SceneConfigs.FloatFromRight; 53 | } } 54 | renderScene={(route, navigator) => { 55 | let Component = route.component; 56 | return ( 57 | 58 | ) 59 | } } 60 | /> 61 | 62 | ) 63 | } 64 | } 65 | 66 | 67 | class Application extends React.Component { 68 | constructor(props) { 69 | super(props); 70 | this.state = { 71 | isOpen: false, 72 | openMenuOffset: 0, 73 | }; 74 | } 75 | 76 | componentDidMount() { 77 | DeviceEventEmitter.addListener('CloseOrOpen', (value) => { 78 | this.setState({ 79 | isOpen: value, 80 | openMenuOffset: Common.window.width-100, 81 | }) 82 | }); 83 | DeviceEventEmitter.addListener('ClickRow', (data) => { 84 | this.setState({ 85 | isOpen: data.value, 86 | }) 87 | // TODO: 点击menu中的cell时,在主界面刷新 88 | InteractionManager.runAfterInteractions(() => { 89 | DeviceEventEmitter.emit('PushToNextPage', data.month_type); 90 | }); 91 | }); 92 | 93 | } 94 | 95 | componentWillUnmount() { 96 | DeviceEventEmitter.removeAllListeners('CloseOrOpen'); 97 | } 98 | 99 | 100 | _closeOrOpenRight() { 101 | 102 | } 103 | 104 | 105 | render() { 106 | const menu = { 110 | if (route.sceneConfig) { 111 | return route.sceneConfig; 112 | } 113 | return Navigator.SceneConfigs.FloatFromRight; 114 | } } 115 | renderScene={(route, navigator) => { 116 | let Component = route.component; 117 | return ( 118 | 119 | ) 120 | } } 121 | /> 122 | return ( 123 | 128 | 129 | 130 | ); 131 | } 132 | } 133 | 134 | export default Application; 135 | ``` 136 | 137 | 138 | ## Relevant Projects of React Native 139 | 140 | * [`月子食谱App`](https://github.com/liuhongjun719/react-native-FoodMenu) 界面侧滑 141 | * [`贷贷助手App`](https://github.com/liuhongjun719/react-native-DaidaiHelperNew) 比较完整的项目 142 | * [`车迷之家App`](https://github.com/liuhongjun719/FansHome) 比较完整的app 143 | * [`南方周末App`](https://github.com/liuhongjun719/SouthWeekend) listview折叠,二级列表 144 | 145 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.foodmenu', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.foodmenu', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.foodmenu" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile fileTree(dir: "libs", include: ["*.jar"]) 130 | compile "com.android.support:appcompat-v7:23.0.1" 131 | compile "com.facebook.react:react-native:+" // From node_modules 132 | } 133 | 134 | // Run this once to be able to run the application with BUCK 135 | // puts all compile dependencies into folder libs for BUCK to use 136 | task copyDownloadableDepsToLibs(type: Copy) { 137 | from configurations.compile 138 | into 'libs' 139 | } 140 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/foodmenu/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.foodmenu; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "FoodMenu"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/foodmenu/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.foodmenu; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | protected boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage() 27 | ); 28 | } 29 | }; 30 | 31 | @Override 32 | public ReactNativeHost getReactNativeHost() { 33 | return mReactNativeHost; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | FoodMenu 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 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'FoodMenu' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app/actions/FrontPageAction.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | import * as types from './actionTypes'; 4 | import Util from '../common/utils'; 5 | 6 | export let frontPageAction = (isNoData,isLoadMore, isRefreshing, isLoading, page, month) => { 7 | let URL = 'http://app_matrix.zhilehuo.com/app_matrix/api/beiyun?appname=shibeiyunshipu&version=1.0.0&os=ios&hardware=iphone&month='; 8 | URL += month; 9 | URL += '&page='; 10 | URL += page; 11 | console.log('食谱URL=======:' + URL); 12 | return dispatch => { 13 | dispatch(feachClassList(isNoData,isLoadMore, isRefreshing, isLoading)); 14 | return Util.get(URL,(response) => { 15 | var isExistData = (response.data.recipes.length == 0) ? true : false; 16 | dispatch(receiveClassList(response, isExistData)); 17 | },(error) => { 18 | console.log('分类数据error==>' + error); 19 | dispatch(receiveClassList([])); 20 | }); 21 | } 22 | } 23 | 24 | let feachClassList = (isNoData, isLoadMore, isRefreshing, isLoading) => { 25 | return { 26 | type: types.FETCH_FRONTPAGE_LIST, 27 | isLoadMore: isLoadMore, 28 | isRefreshing: isRefreshing, 29 | isLoading: isLoading, 30 | isNoData: isNoData, 31 | } 32 | } 33 | 34 | let receiveClassList = (response, isExistData) => { 35 | return { 36 | type: types.RECEIVE_FRONTPAGE_LIST, 37 | classList: response.data.recipes, 38 | isNoData: isExistData, 39 | } 40 | } 41 | 42 | export let resetState = ()=> { 43 | return { 44 | type: types.RESET_FRONTPAGE_STATE, 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/actions/actionTypes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | //FrontPage 4 | export const FETCH_FRONTPAGE_LIST = 'FETCH_FRONTPAGE_LIST'; 5 | export const RECEIVE_FRONTPAGE_LIST = 'RECEIVE_FRONTPAGE_LIST'; 6 | export const RESET_FRONTPAGE_STATE = 'RESET_FRONTPAGE_STATE'; 7 | -------------------------------------------------------------------------------- /app/common/HeaderView.js: -------------------------------------------------------------------------------- 1 | 2 | import React from 'react'; 3 | import { 4 | StyleSheet, 5 | View, 6 | Text, 7 | Image, 8 | TouchableOpacity, 9 | } from 'react-native'; 10 | import Icon from 'react-native-vector-icons/FontAwesome'; 11 | import Common from '../common/common'; 12 | 13 | import Util from './utils'; 14 | import { toastShort } from '../common/ToastUtil'; 15 | 16 | 17 | 18 | 19 | export default class Header extends React.Component { 20 | constructor(props) { 21 | super(props); 22 | this.state = { 23 | }; 24 | } 25 | 26 | 27 | 28 | render() { 29 | let NavigationBar = []; 30 | 31 | // 左边menu 32 | if (this.props.leftMenu != undefined) { 33 | NavigationBar.push( 34 | 40 | 41 | 42 | ) 43 | } 44 | 45 | 46 | 47 | // 左边图片按钮 48 | if (this.props.leftIcon != undefined) { 49 | NavigationBar.push( 50 | 56 | 57 | 58 | ) 59 | } 60 | 61 | // 自定义标题View 62 | if (this.props.titleView != undefined) { 63 | let Component = this.props.titleView; 64 | 65 | NavigationBar.push( 66 | {this.props.titleView} 67 | ) 68 | } 69 | 70 | 71 | 72 | // 右边 分享 按钮 73 | if (this.props.rightShareIcon != undefined) { 74 | NavigationBar.push( 75 | 81 | 82 | 83 | ) 84 | } 85 | 86 | 87 | return ( 88 | 89 | {NavigationBar} 90 | 91 | ) 92 | } 93 | } 94 | 95 | const styles = StyleSheet.create({ 96 | 97 | navigationBarContainer: { 98 | marginTop: 0, 99 | flexDirection: 'row', 100 | height: 64, 101 | justifyContent: 'center', 102 | alignItems: 'center', 103 | backgroundColor: 'rgb(243,157,149)' 104 | }, 105 | 106 | 107 | titleView: { 108 | fontSize: 15, 109 | color: 'white', 110 | marginTop: 10, 111 | }, 112 | 113 | leftIcon: { 114 | left: -Common.window.width/2+50, 115 | marginTop: 10, 116 | }, 117 | leftMenu: { 118 | left: -Common.window.width/2+50, 119 | marginTop: 15, 120 | }, 121 | 122 | rightIcon: { 123 | left: Common.window.width/2-60, 124 | marginTop: 15, 125 | }, 126 | 127 | }) 128 | -------------------------------------------------------------------------------- /app/common/LeftMenuHeaderView.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 导航栏标题 3 | */ 4 | import React from 'react'; 5 | import { 6 | StyleSheet, 7 | View, 8 | Text, 9 | Image, 10 | TouchableOpacity, 11 | } from 'react-native'; 12 | import Icon from 'react-native-vector-icons/FontAwesome'; 13 | import Common from '../common/common'; 14 | 15 | import Util from './utils'; 16 | import { toastShort } from '../common/ToastUtil'; 17 | 18 | 19 | 20 | 21 | export default class Header extends React.Component { 22 | constructor(props) { 23 | super(props); 24 | } 25 | 26 | 27 | 28 | render() { 29 | var myDate = new Date(); 30 | let year = myDate.getFullYear(); 31 | let month = myDate.getMonth() + 1; 32 | let day = myDate.getDate(); 33 | return ( 34 | 35 | 41 | 42 | 43 | {year + '年' + month + '月' + day + '日'} 44 | 45 | 46 | 47 | ) 48 | 49 | } 50 | } 51 | 52 | const styles = StyleSheet.create({ 53 | 54 | navigationBarContainer: { 55 | flexDirection: 'row', 56 | height: 200, 57 | justifyContent: 'center', 58 | alignItems: 'center', 59 | backgroundColor: 'rgb(241,241,241)', 60 | width: Common.window.width - 100, 61 | }, 62 | 63 | 64 | 65 | user_header: { 66 | borderRadius: 50, 67 | borderColor: 'white', 68 | width: 100, 69 | height:100, 70 | marginTop: 25, 71 | backgroundColor: 'white', 72 | marginLeft: 10, 73 | alignSelf: 'center', 74 | }, 75 | 76 | user_name: { 77 | fontSize: 18, 78 | color: 'black', 79 | marginLeft: 10, 80 | marginTop: 30, 81 | alignSelf: 'center', 82 | marginLeft: 30, 83 | 84 | }, 85 | 86 | 87 | header_view_left: { 88 | flex: 1, 89 | }, 90 | 91 | header_view_right: { 92 | width: 60, 93 | marginTop: 35, 94 | }, 95 | 96 | image_message: { 97 | 98 | }, 99 | text_message: { 100 | color: 'white', 101 | marginTop: 3, 102 | marginLeft: 5, 103 | }, 104 | 105 | 106 | }) 107 | -------------------------------------------------------------------------------- /app/common/LoadMoreFooter.js: -------------------------------------------------------------------------------- 1 | 2 | import React from 'react'; 3 | import { 4 | ActivityIndicator, 5 | View, 6 | Text, 7 | StyleSheet, 8 | } from 'react-native'; 9 | 10 | export default class LoadMoreFooter extends React.Component { 11 | render() { 12 | 13 | if (this.props.type == 'NoData') {//没有更多数据了 14 | return ( 15 | 16 | 17 | {this.props.title} 18 | 19 | 20 | ) 21 | }else if (this.props.type == 'HasData') {//有数据,继续加载更多数据 22 | return ( 23 | 24 | 25 | 26 | {this.props.title} 27 | 28 | 29 | ) 30 | } 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | footer: { 36 | flexDirection: 'row', 37 | justifyContent: 'center', 38 | alignItems: 'center', 39 | height: 40, 40 | }, 41 | 42 | footerTitle: { 43 | marginLeft: 10, 44 | fontSize: 15, 45 | color: 'gray' 46 | } 47 | }) 48 | -------------------------------------------------------------------------------- /app/common/Loading.js: -------------------------------------------------------------------------------- 1 | 2 | import React from 'react'; 3 | import { 4 | StyleSheet, 5 | View, 6 | Text, 7 | ActivityIndicator, 8 | } from 'react-native'; 9 | 10 | import Common from '../common/common'; 11 | 12 | export default class Loading extends React.Component { 13 | render() { 14 | return ( 15 | 16 | 17 | 18 | 加载中…… 19 | 20 | 21 | ) 22 | } 23 | } 24 | 25 | const styles = StyleSheet.create({ 26 | loading: { 27 | backgroundColor: 'gray', 28 | height: 80, 29 | width: 100, 30 | borderRadius: 10, 31 | justifyContent: 'center', 32 | alignItems: 'center', 33 | position: 'absolute', 34 | top: (Common.window.height-80)/2, 35 | left: (Common.window.width-100)/2, 36 | }, 37 | 38 | loadingTitle: { 39 | marginTop: 10, 40 | fontSize: 14, 41 | color: 'white' 42 | } 43 | }) 44 | -------------------------------------------------------------------------------- /app/common/ToastUtil.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright 2016-present reading 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | import Toast from 'react-native-root-toast'; 19 | 20 | let toast; 21 | 22 | export const toastShort = (content) => { 23 | if (toast !== undefined) { 24 | Toast.hide(toast); 25 | } 26 | toast = Toast.show(content.toString(), { 27 | duration: Toast.durations.SHORT, 28 | position: Toast.positions.CENTER, 29 | shadow: true, 30 | animation: true, 31 | hideOnPress: true, 32 | delay: 0 33 | }); 34 | }; 35 | 36 | export const toastLong = (content) => { 37 | if (toast !== undefined) { 38 | Toast.hide(toast); 39 | } 40 | toast = Toast.show(content.toString(), { 41 | duration: Toast.durations.LONG, 42 | position: Toast.positions.BOTTOM, 43 | shadow: true, 44 | animation: true, 45 | hideOnPress: true, 46 | delay: 0 47 | }); 48 | }; 49 | -------------------------------------------------------------------------------- /app/common/common.js: -------------------------------------------------------------------------------- 1 | 2 | import {Dimensions} from 'react-native'; 3 | 4 | let window = { 5 | width: Dimensions.get('window').width, 6 | height: Dimensions.get('window').height, 7 | } 8 | export default { 9 | window: window, 10 | } 11 | -------------------------------------------------------------------------------- /app/common/utils.js: -------------------------------------------------------------------------------- 1 | 2 | let Util = { 3 | /* 4 | * fetch简单封装 5 | * url: 请求的URL 6 | * successCallback: 请求成功回调 7 | * failCallback: 请求失败回调 8 | * 9 | * */ 10 | get: (url, successCallback, failCallback) => { 11 | fetch(url) 12 | .then((response) => response.text()) 13 | .then((responseText) => { 14 | successCallback(JSON.parse(responseText)); 15 | }) 16 | .catch((err) => { 17 | failCallback(err); 18 | }); 19 | }, 20 | gets: (url, successCallback, failCallback) => { 21 | var request = new XMLHttpRequest(); 22 | request.onreadystatechange = (e) => { 23 | if (request.readyState !== 4) { 24 | return; 25 | } 26 | 27 | if (request.status === 200) { 28 | successCallback(JSON.parse(request.responseText)) 29 | 30 | } else { 31 | // console.warn('error'); 32 | } 33 | }; 34 | 35 | request.open('GET',url); 36 | request.send(); 37 | }, 38 | } 39 | 40 | export default Util; 41 | -------------------------------------------------------------------------------- /app/containers/FrontPageContainer.js: -------------------------------------------------------------------------------- 1 | 2 | import React from 'react'; 3 | import {connect} from 'react-redux'; 4 | import FrontPage from '../pages/FrontPage'; 5 | 6 | class FrontPageContainer extends React.Component { 7 | render() { 8 | return ( 9 | 10 | ) 11 | } 12 | } 13 | 14 | export default connect((state) => { 15 | 16 | const { FrontPage } = state; 17 | return { 18 | FrontPage 19 | } 20 | })(FrontPageContainer); 21 | -------------------------------------------------------------------------------- /app/containers/LeftMenuContainer.js: -------------------------------------------------------------------------------- 1 | 2 | import React from 'react'; 3 | import {connect} from 'react-redux'; 4 | import LeftMenu from '../pages/LeftMenu'; 5 | 6 | class LeftMenuContainer extends React.Component { 7 | render() { 8 | return ( 9 | 10 | ) 11 | } 12 | } 13 | 14 | export default connect((state) => { 15 | 16 | const { LeftMenu } = state; 17 | return { 18 | LeftMenu 19 | } 20 | })(LeftMenuContainer); 21 | -------------------------------------------------------------------------------- /app/containers/app.js: -------------------------------------------------------------------------------- 1 | 2 | import React from 'react'; 3 | import { 4 | Navigator, 5 | View, 6 | StyleSheet, 7 | Text, 8 | DeviceEventEmitter, 9 | InteractionManager, 10 | } from 'react-native'; 11 | 12 | import FrontPageContainer from '../containers/FrontPageContainer'; 13 | import SideMenu from 'react-native-side-menu'; 14 | 15 | import LeftMenuContainer from '../containers/LeftMenuContainer'; 16 | import Common from '../common/common'; 17 | 18 | 19 | class App extends React.Component { 20 | render() { 21 | 22 | return ( 23 | 24 | { 28 | if (route.sceneConfig) { 29 | return route.sceneConfig; 30 | } 31 | return Navigator.SceneConfigs.FloatFromRight; 32 | } } 33 | renderScene={(route, navigator) => { 34 | let Component = route.component; 35 | return ( 36 | 37 | ) 38 | } } 39 | /> 40 | 41 | ) 42 | } 43 | } 44 | 45 | 46 | class Application extends React.Component { 47 | constructor(props) { 48 | super(props); 49 | this.state = { 50 | isOpen: false, 51 | openMenuOffset: 0, 52 | }; 53 | } 54 | 55 | componentDidMount() { 56 | DeviceEventEmitter.addListener('CloseOrOpen', (value) => { 57 | this.setState({ 58 | isOpen: value, 59 | openMenuOffset: Common.window.width-100, 60 | }) 61 | }); 62 | DeviceEventEmitter.addListener('ClickRow', (data) => { 63 | this.setState({ 64 | isOpen: data.value, 65 | }) 66 | // TODO: 点击menu中的cell时,在主界面刷新 67 | InteractionManager.runAfterInteractions(() => { 68 | DeviceEventEmitter.emit('PushToNextPage', data.month_type); 69 | }); 70 | }); 71 | 72 | } 73 | 74 | componentWillUnmount() { 75 | DeviceEventEmitter.removeAllListeners('CloseOrOpen'); 76 | } 77 | 78 | 79 | _closeOrOpenRight() { 80 | 81 | } 82 | 83 | 84 | render() { 85 | const menu = { 89 | if (route.sceneConfig) { 90 | return route.sceneConfig; 91 | } 92 | return Navigator.SceneConfigs.FloatFromRight; 93 | } } 94 | renderScene={(route, navigator) => { 95 | let Component = route.component; 96 | return ( 97 | 98 | ) 99 | } } 100 | /> 101 | return ( 102 | 108 | 109 | 110 | ); 111 | } 112 | } 113 | 114 | export default Application; 115 | -------------------------------------------------------------------------------- /app/pages/FrontPage.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | import React, { 4 | Component 5 | } from 'react'; 6 | import { 7 | StyleSheet, 8 | Text, 9 | Image, 10 | ListView, 11 | TouchableOpacity, 12 | View, 13 | RefreshControl, 14 | ScrollView, 15 | Navigator, 16 | DeviceEventEmitter, 17 | InteractionManager, 18 | } from 'react-native'; 19 | 20 | 21 | import * as FrontPageAction from '../actions/FrontPageAction.js'; 22 | import Common from '../common/common'; 23 | import InformationPage from './InformationPage'; 24 | import HeaderView from '../common/HeaderView'; 25 | import Icon from 'react-native-vector-icons/FontAwesome'; 26 | import moment from 'moment'; 27 | require('moment/locale/zh-cn'); 28 | import LoadMoreFooter from '../common/LoadMoreFooter'; 29 | import Loading from '../common/Loading'; 30 | 31 | 32 | 33 | 34 | let isLoadMore = false; 35 | let isRefreshing = false; 36 | let isLoading = true; 37 | let isNoData = false; 38 | let page = 1; 39 | let month = 1; 40 | 41 | class FrontPage extends Component { 42 | constructor(props) { 43 | super(props); 44 | this._renderRow = this.renderRow.bind(this); 45 | this.state = { 46 | dataSource: new ListView.DataSource({ 47 | rowHasChanged: (row1, row2) => row1 !== row2, 48 | }), 49 | }; 50 | } 51 | 52 | componentDidMount() { 53 | InteractionManager.runAfterInteractions(() => { 54 | const {dispatch} = this.props 55 | dispatch(FrontPageAction.frontPageAction(isNoData,isLoadMore, isRefreshing, isLoading, page, month)); 56 | }) 57 | 58 | 59 | DeviceEventEmitter.addListener('PushToNextPage', (value) => { 60 | // console.log('oooooooooo---------' + value); 61 | if (value != month) {// TODO: 如果是同一个界面,则不需要从新刷新界面 62 | InteractionManager.runAfterInteractions(() => { 63 | const {dispatch} = this.props; 64 | isLoadMore = false; 65 | isRefreshing = true; 66 | page = 1; 67 | month = value; 68 | dispatch(FrontPageAction.frontPageAction(isNoData,isLoadMore, isRefreshing, isLoading, page, month)); 69 | }) 70 | } 71 | 72 | }); 73 | } 74 | 75 | 76 | 77 | // TODO: 点击导航左侧Menu按钮时,打开或者关闭左侧列表 78 | _closeOrOpneLeftMenu() { 79 | InteractionManager.runAfterInteractions(() => { 80 | DeviceEventEmitter.emit('CloseOrOpen', true); 81 | }); 82 | 83 | } 84 | 85 | 86 | render() { 87 | const {FrontPage} = this.props; 88 | let classList = FrontPage.ClassDate; 89 | return ( 90 | 91 | 95 | {FrontPage.isLoading ?: 96 | 114 | } 115 | /> 116 | } 117 | 118 | ); 119 | 120 | } 121 | 122 | renderRow(rowDate) { 123 | return ( 124 | 128 | 129 | 130 | 131 | {rowDate.title} 132 | {rowDate.description} 133 | 134 | 135 | 136 | 137 | ); 138 | } 139 | 140 | 141 | _onPressFeedItem(rowDate) { 142 | InteractionManager.runAfterInteractions(() => { 143 | this.props.navigator.push({ 144 | name: 'InformationPage', 145 | component: InformationPage, 146 | passProps: { 147 | rowDate: rowDate, 148 | } 149 | }) 150 | }); 151 | } 152 | 153 | _renderFooter() { 154 | const {FrontPage} = this.props; 155 | return 157 | } 158 | 159 | _onScroll() { 160 | if (!isLoadMore) isLoadMore = true; 161 | } 162 | 163 | // 下拉刷新 164 | _onRefresh() { 165 | // if (isLoadMore) { 166 | const {dispatch} = this.props; 167 | isLoadMore = false; 168 | isRefreshing = true; 169 | page = 1; 170 | dispatch(FrontPageAction.frontPageAction(isNoData,isLoadMore, isRefreshing, isLoading, page, month)); 171 | 172 | // } 173 | } 174 | 175 | // 上拉加载 176 | _onEndReach() { 177 | 178 | InteractionManager.runAfterInteractions(() => { 179 | const {dispatch} = this.props; 180 | isLoadMore = true; 181 | isLoading = false; 182 | page++; 183 | dispatch(FrontPageAction.frontPageAction(isNoData,isLoadMore, isRefreshing, isLoading, page, month)); 184 | 185 | }) 186 | 187 | } 188 | 189 | } 190 | 191 | const styles = StyleSheet.create({ 192 | // TODO: cell 193 | back_view: { 194 | flexDirection: 'row', 195 | padding: 10, 196 | alignItems: 'center', 197 | borderBottomColor:'rgb(193,192,197)', 198 | borderBottomWidth: 1, 199 | backgroundColor: 'white', 200 | }, 201 | 202 | image_left: { 203 | height: 80, 204 | width: 80, 205 | borderRadius: 10, 206 | marginRight: 10, 207 | }, 208 | right_view: { 209 | flexDirection: 'column', 210 | flex: 1,//注意 211 | }, 212 | title_text: { 213 | fontSize: 20, 214 | }, 215 | description_text: { 216 | fontSize: 13, 217 | color: 'rgb(128,128, 128)', 218 | marginTop: 20, 219 | }, 220 | view_line: { 221 | height: 1, 222 | borderBottomColor:'rgb(193,192,197)', 223 | }, 224 | 225 | 226 | }); 227 | 228 | module.exports = FrontPage; 229 | -------------------------------------------------------------------------------- /app/pages/InformationPage.js: -------------------------------------------------------------------------------- 1 | import React, { 2 | Component 3 | } from 'react'; 4 | import { 5 | StyleSheet, 6 | Text, 7 | Image, 8 | View, 9 | WebView, 10 | } from 'react-native'; 11 | import Common from '../common/common'; 12 | import HeaderView from '../common/HeaderView'; 13 | 14 | export default class InformationPage extends Component { 15 | 16 | render() { 17 | const {rowDate} = this.props; 18 | // console.log('uuuuuuuuuuuuuu:' + rowDate.faved); 19 | return ( 20 | 21 | this.props.navigator.pop()} 25 | rightShareIcon = {'share-alt'}/> 26 | 30 | 31 | 32 | ); 33 | } 34 | } 35 | const styles = StyleSheet.create({ 36 | web: { 37 | width: Common.window.width, 38 | height: Common.window.height-64, 39 | 40 | }, 41 | }) 42 | -------------------------------------------------------------------------------- /app/pages/LeftMenu.js: -------------------------------------------------------------------------------- 1 | import React, { 2 | Component 3 | } from 'react'; 4 | import { 5 | StyleSheet, 6 | Text, 7 | Image, 8 | View, 9 | WebView, 10 | ListView, 11 | TouchableOpacity, 12 | Switch, 13 | InteractionManager, 14 | DeviceEventEmitter, 15 | } from 'react-native'; 16 | import Common from '../common/common'; 17 | import LeftMenuHeaderView from '../common/LeftMenuHeaderView'; 18 | import Icon from 'react-native-vector-icons/FontAwesome'; 19 | 20 | 21 | // TODO: 用于传递接口中的数据month_type: 1 或 2 22 | var data = { 23 | value: false, 24 | month_type: 1, 25 | } 26 | 27 | export default class HomeDetil extends Component { 28 | constructor(props) { 29 | super(props); 30 | var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); 31 | this.state = { 32 | dataSource: ds.cloneWithRows(['准妈妈必吃', '准爸爸必吃']), 33 | savedRowID: 0, 34 | }; 35 | } 36 | 37 | 38 | 39 | _renderRow( 40 | rowData: Object, 41 | sectionID: number | string, 42 | rowID: number | string, 43 | highlightRowFunc: (sectionID: ?number | string, rowID: ?number | string) => void, 44 | ) { 45 | console.log('666666666666666666666666666666'); 46 | return( 47 | 50 | 51 | {rowData} 52 | 53 | 54 | 55 | ); 56 | 57 | } 58 | 59 | 60 | _onPressFeedItem(rowID) { 61 | console.log('rowID------:' + rowID); 62 | let month_type = '1'; 63 | if (rowID == 1) { 64 | month_type = '2'; 65 | } 66 | console.log('savedRowID=====before====:' + this.state.savedRowID); 67 | this.setState({ 68 | savedRowID: rowID, 69 | }); 70 | console.log('savedRowID=====after====:' + this.state.savedRowID); 71 | data.month_type = month_type; 72 | InteractionManager.runAfterInteractions(() => { 73 | DeviceEventEmitter.emit('ClickRow', data); 74 | }); 75 | } 76 | 77 | 78 | 79 | render() { 80 | console.log('555555555555555555555555'); 81 | return ( 82 | 83 | 85 | 90 | 91 | ); 92 | } 93 | } 94 | 95 | const normalContainer = { 96 | height: 50, 97 | paddingLeft: 10, 98 | paddingRight: 10, 99 | flexDirection: 'row', 100 | justifyContent: 'space-between', 101 | alignItems: 'center', 102 | borderBottomColor: 'rgb(216, 222, 225)', 103 | borderBottomWidth: 0.5, 104 | }; 105 | 106 | const styles = StyleSheet.create({ 107 | list: { 108 | width: Common.window.width-50, 109 | height: Common.window.height-100-45, 110 | paddingLeft: 0, 111 | paddingRight: 0, 112 | backgroundColor: 'rgb(243,157,149)' 113 | }, 114 | container: { 115 | ...normalContainer, 116 | backgroundColor: 'rgb(243,157,149)' 117 | }, 118 | container_selected: { 119 | ...normalContainer, 120 | backgroundColor: 'rgb(244,189,185)' 121 | }, 122 | menu_bottom_view: { 123 | height: 45, 124 | width: Common.window.width-50, 125 | backgroundColor: 'rgb(243,245,246)', 126 | justifyContent: 'space-between', 127 | flexDirection: 'row', 128 | paddingLeft: 30, 129 | paddingRight: 30, 130 | paddingTop: 5, 131 | }, 132 | title_text: { 133 | marginLeft: 30, 134 | color: 'white', 135 | }, 136 | menu_bottom_item: { 137 | flexDirection: 'column', 138 | justifyContent: 'center', 139 | alignItems: 'center', 140 | }, 141 | text_item: { 142 | textAlign: 'center', 143 | marginTop: 5, 144 | fontSize: 14, 145 | fontWeight: '100', 146 | } 147 | }) 148 | -------------------------------------------------------------------------------- /app/reducers/frontPageReducer.js: -------------------------------------------------------------------------------- 1 | 2 | import * as types from '../actions/actionTypes'; 3 | 4 | const initialState = { 5 | ClassDate: [], 6 | isLoading: true, 7 | isLoadMore: false, 8 | isRefreshing: false, 9 | isNoData: false, 10 | }; 11 | 12 | let frontPageReducer = (state = initialState, action) => { 13 | // console.log(action) 14 | 15 | switch (action.type) { 16 | case types.FETCH_FRONTPAGE_LIST: 17 | return Object.assign({}, state, { 18 | isLoadMore: action.isLoadMore, 19 | isRefreshing: action.isRefreshing, 20 | isLoading: action.isLoading, 21 | isNoData: action.isNoData, 22 | }) 23 | 24 | case types.RECEIVE_FRONTPAGE_LIST: 25 | // console.log(action); 26 | return Object.assign({}, state, { 27 | ClassDate: state.isLoadMore ? loadMore(state, action) : refresh(state, action), 28 | isLoading: false, 29 | isRefreshing: false, 30 | isNoData: action.isNoData, 31 | }) 32 | default: 33 | return state; 34 | } 35 | } 36 | 37 | function refresh(state, action) { 38 | state.classList = action.classList; 39 | return state.classList; 40 | } 41 | 42 | function loadMore(state, action) { 43 | state.ClassDate = state.ClassDate.concat(action.classList); 44 | return state.ClassDate; 45 | } 46 | 47 | export default frontPageReducer; 48 | -------------------------------------------------------------------------------- /app/reducers/rootReudcer.js: -------------------------------------------------------------------------------- 1 | 2 | import { combineReducers } from 'redux'; 3 | import FrontPage from './frontPageReducer'; 4 | 5 | 6 | export default rootReducer = combineReducers({ 7 | FrontPage, 8 | }) 9 | -------------------------------------------------------------------------------- /app/root.js: -------------------------------------------------------------------------------- 1 | 2 | import React, { Component } from 'react'; 3 | import { Provider } from 'react-redux'; 4 | import store from './store/store'; 5 | 6 | import App from './containers/app'; 7 | 8 | export default class Root extends Component { 9 | render() { 10 | return ( 11 | 12 | 13 | 14 | ) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/store/store.js: -------------------------------------------------------------------------------- 1 | 2 | import { createStore, applyMiddleware } from 'redux'; 3 | import thunk from 'redux-thunk'; 4 | import rootReducer from '../reducers/rootReudcer'; 5 | 6 | let createStoreWithMiddleware = applyMiddleware(thunk)(createStore); 7 | let store = createStoreWithMiddleware(rootReducer); 8 | export default store; 9 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | class FoodMenu extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | Welcome to React Native! 21 | 22 | 23 | To get started, edit index.android.js 24 | 25 | 26 | Double tap R on your keyboard to reload,{'\n'} 27 | Shake or press menu button for dev menu 28 | 29 | 30 | ); 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | container: { 36 | flex: 1, 37 | justifyContent: 'center', 38 | alignItems: 'center', 39 | backgroundColor: '#F5FCFF', 40 | }, 41 | welcome: { 42 | fontSize: 20, 43 | textAlign: 'center', 44 | margin: 10, 45 | }, 46 | instructions: { 47 | textAlign: 'center', 48 | color: '#333333', 49 | marginBottom: 5, 50 | }, 51 | }); 52 | 53 | AppRegistry.registerComponent('FoodMenu', () => FoodMenu); 54 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry 10 | } from 'react-native'; 11 | import Root from './app/root'; 12 | 13 | AppRegistry.registerComponent('FoodMenu', () => Root); 14 | -------------------------------------------------------------------------------- /ios/FoodMenu.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 /* FoodMenuTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* FoodMenuTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 26 | 8E69619C1D77B9B1005417D8 /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E69619B1D77B999005417D8 /* libRNVectorIcons.a */; }; 27 | 8E6961A61D77BC26005417D8 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E69619E1D77BC26005417D8 /* Entypo.ttf */; }; 28 | 8E6961A71D77BC26005417D8 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E69619F1D77BC26005417D8 /* EvilIcons.ttf */; }; 29 | 8E6961A81D77BC26005417D8 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E6961A01D77BC26005417D8 /* FontAwesome.ttf */; }; 30 | 8E6961A91D77BC26005417D8 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E6961A11D77BC26005417D8 /* Foundation.ttf */; }; 31 | 8E6961AA1D77BC26005417D8 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E6961A21D77BC26005417D8 /* Ionicons.ttf */; }; 32 | 8E6961AB1D77BC26005417D8 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E6961A31D77BC26005417D8 /* MaterialIcons.ttf */; }; 33 | 8E6961AC1D77BC26005417D8 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E6961A41D77BC26005417D8 /* Octicons.ttf */; }; 34 | 8E6961AD1D77BC26005417D8 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8E6961A51D77BC26005417D8 /* Zocial.ttf */; }; 35 | /* End PBXBuildFile section */ 36 | 37 | /* Begin PBXContainerItemProxy section */ 38 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 41 | proxyType = 2; 42 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 43 | remoteInfo = RCTActionSheet; 44 | }; 45 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 48 | proxyType = 2; 49 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 50 | remoteInfo = RCTGeolocation; 51 | }; 52 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 55 | proxyType = 2; 56 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 57 | remoteInfo = RCTImage; 58 | }; 59 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 62 | proxyType = 2; 63 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 64 | remoteInfo = RCTNetwork; 65 | }; 66 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 69 | proxyType = 2; 70 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 71 | remoteInfo = RCTVibration; 72 | }; 73 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 74 | isa = PBXContainerItemProxy; 75 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 76 | proxyType = 1; 77 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 78 | remoteInfo = FoodMenu; 79 | }; 80 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 81 | isa = PBXContainerItemProxy; 82 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 83 | proxyType = 2; 84 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 85 | remoteInfo = RCTSettings; 86 | }; 87 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 88 | isa = PBXContainerItemProxy; 89 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 90 | proxyType = 2; 91 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 92 | remoteInfo = RCTWebSocket; 93 | }; 94 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 95 | isa = PBXContainerItemProxy; 96 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 97 | proxyType = 2; 98 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 99 | remoteInfo = React; 100 | }; 101 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 102 | isa = PBXContainerItemProxy; 103 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 104 | proxyType = 2; 105 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 106 | remoteInfo = RCTLinking; 107 | }; 108 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 109 | isa = PBXContainerItemProxy; 110 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 111 | proxyType = 2; 112 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 113 | remoteInfo = RCTText; 114 | }; 115 | 8E69619A1D77B999005417D8 /* PBXContainerItemProxy */ = { 116 | isa = PBXContainerItemProxy; 117 | containerPortal = 8E69618C1D77B999005417D8 /* RNVectorIcons.xcodeproj */; 118 | proxyType = 2; 119 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395; 120 | remoteInfo = RNVectorIcons; 121 | }; 122 | /* End PBXContainerItemProxy section */ 123 | 124 | /* Begin PBXFileReference section */ 125 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 126 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 127 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 128 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 129 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 130 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 131 | 00E356EE1AD99517003FC87E /* FoodMenuTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FoodMenuTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 132 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 133 | 00E356F21AD99517003FC87E /* FoodMenuTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FoodMenuTests.m; sourceTree = ""; }; 134 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 135 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 136 | 13B07F961A680F5B00A75B9A /* FoodMenu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FoodMenu.app; sourceTree = BUILT_PRODUCTS_DIR; }; 137 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = FoodMenu/AppDelegate.h; sourceTree = ""; }; 138 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = FoodMenu/AppDelegate.m; sourceTree = ""; }; 139 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 140 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = FoodMenu/Images.xcassets; sourceTree = ""; }; 141 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = FoodMenu/Info.plist; sourceTree = ""; }; 142 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = FoodMenu/main.m; sourceTree = ""; }; 143 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 144 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 145 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 146 | 8E69618C1D77B999005417D8 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; }; 147 | 8E69619E1D77BC26005417D8 /* Entypo.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; }; 148 | 8E69619F1D77BC26005417D8 /* EvilIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; }; 149 | 8E6961A01D77BC26005417D8 /* FontAwesome.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; }; 150 | 8E6961A11D77BC26005417D8 /* Foundation.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; }; 151 | 8E6961A21D77BC26005417D8 /* Ionicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; }; 152 | 8E6961A31D77BC26005417D8 /* MaterialIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; }; 153 | 8E6961A41D77BC26005417D8 /* Octicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; }; 154 | 8E6961A51D77BC26005417D8 /* Zocial.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; }; 155 | /* End PBXFileReference section */ 156 | 157 | /* Begin PBXFrameworksBuildPhase section */ 158 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 159 | isa = PBXFrameworksBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 167 | isa = PBXFrameworksBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 8E69619C1D77B9B1005417D8 /* libRNVectorIcons.a in Frameworks */, 171 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 172 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 173 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 174 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 175 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 176 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 177 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 178 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 179 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 180 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | }; 184 | /* End PBXFrameworksBuildPhase section */ 185 | 186 | /* Begin PBXGroup section */ 187 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 191 | ); 192 | name = Products; 193 | sourceTree = ""; 194 | }; 195 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 199 | ); 200 | name = Products; 201 | sourceTree = ""; 202 | }; 203 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 207 | ); 208 | name = Products; 209 | sourceTree = ""; 210 | }; 211 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 215 | ); 216 | name = Products; 217 | sourceTree = ""; 218 | }; 219 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 220 | isa = PBXGroup; 221 | children = ( 222 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 223 | ); 224 | name = Products; 225 | sourceTree = ""; 226 | }; 227 | 00E356EF1AD99517003FC87E /* FoodMenuTests */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 00E356F21AD99517003FC87E /* FoodMenuTests.m */, 231 | 00E356F01AD99517003FC87E /* Supporting Files */, 232 | ); 233 | path = FoodMenuTests; 234 | sourceTree = ""; 235 | }; 236 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 237 | isa = PBXGroup; 238 | children = ( 239 | 00E356F11AD99517003FC87E /* Info.plist */, 240 | ); 241 | name = "Supporting Files"; 242 | sourceTree = ""; 243 | }; 244 | 139105B71AF99BAD00B5F7CC /* Products */ = { 245 | isa = PBXGroup; 246 | children = ( 247 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 248 | ); 249 | name = Products; 250 | sourceTree = ""; 251 | }; 252 | 139FDEE71B06529A00C62182 /* Products */ = { 253 | isa = PBXGroup; 254 | children = ( 255 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 256 | ); 257 | name = Products; 258 | sourceTree = ""; 259 | }; 260 | 13B07FAE1A68108700A75B9A /* FoodMenu */ = { 261 | isa = PBXGroup; 262 | children = ( 263 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 264 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 265 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 266 | 8E69619D1D77BBF6005417D8 /* Resource */, 267 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 268 | 13B07FB61A68108700A75B9A /* Info.plist */, 269 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 270 | 13B07FB71A68108700A75B9A /* main.m */, 271 | ); 272 | name = FoodMenu; 273 | sourceTree = ""; 274 | }; 275 | 146834001AC3E56700842450 /* Products */ = { 276 | isa = PBXGroup; 277 | children = ( 278 | 146834041AC3E56700842450 /* libReact.a */, 279 | ); 280 | name = Products; 281 | sourceTree = ""; 282 | }; 283 | 78C398B11ACF4ADC00677621 /* Products */ = { 284 | isa = PBXGroup; 285 | children = ( 286 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 287 | ); 288 | name = Products; 289 | sourceTree = ""; 290 | }; 291 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | 8E69618C1D77B999005417D8 /* RNVectorIcons.xcodeproj */, 295 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 296 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 297 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 298 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 299 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 300 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 301 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 302 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 303 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 304 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 305 | ); 306 | name = Libraries; 307 | sourceTree = ""; 308 | }; 309 | 832341B11AAA6A8300B99B32 /* Products */ = { 310 | isa = PBXGroup; 311 | children = ( 312 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 313 | ); 314 | name = Products; 315 | sourceTree = ""; 316 | }; 317 | 83CBB9F61A601CBA00E9B192 = { 318 | isa = PBXGroup; 319 | children = ( 320 | 13B07FAE1A68108700A75B9A /* FoodMenu */, 321 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 322 | 00E356EF1AD99517003FC87E /* FoodMenuTests */, 323 | 83CBBA001A601CBA00E9B192 /* Products */, 324 | ); 325 | indentWidth = 2; 326 | sourceTree = ""; 327 | tabWidth = 2; 328 | }; 329 | 83CBBA001A601CBA00E9B192 /* Products */ = { 330 | isa = PBXGroup; 331 | children = ( 332 | 13B07F961A680F5B00A75B9A /* FoodMenu.app */, 333 | 00E356EE1AD99517003FC87E /* FoodMenuTests.xctest */, 334 | ); 335 | name = Products; 336 | sourceTree = ""; 337 | }; 338 | 8E69618D1D77B999005417D8 /* Products */ = { 339 | isa = PBXGroup; 340 | children = ( 341 | 8E69619B1D77B999005417D8 /* libRNVectorIcons.a */, 342 | ); 343 | name = Products; 344 | sourceTree = ""; 345 | }; 346 | 8E69619D1D77BBF6005417D8 /* Resource */ = { 347 | isa = PBXGroup; 348 | children = ( 349 | 8E69619E1D77BC26005417D8 /* Entypo.ttf */, 350 | 8E69619F1D77BC26005417D8 /* EvilIcons.ttf */, 351 | 8E6961A01D77BC26005417D8 /* FontAwesome.ttf */, 352 | 8E6961A11D77BC26005417D8 /* Foundation.ttf */, 353 | 8E6961A21D77BC26005417D8 /* Ionicons.ttf */, 354 | 8E6961A31D77BC26005417D8 /* MaterialIcons.ttf */, 355 | 8E6961A41D77BC26005417D8 /* Octicons.ttf */, 356 | 8E6961A51D77BC26005417D8 /* Zocial.ttf */, 357 | ); 358 | name = Resource; 359 | sourceTree = ""; 360 | }; 361 | /* End PBXGroup section */ 362 | 363 | /* Begin PBXNativeTarget section */ 364 | 00E356ED1AD99517003FC87E /* FoodMenuTests */ = { 365 | isa = PBXNativeTarget; 366 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "FoodMenuTests" */; 367 | buildPhases = ( 368 | 00E356EA1AD99517003FC87E /* Sources */, 369 | 00E356EB1AD99517003FC87E /* Frameworks */, 370 | 00E356EC1AD99517003FC87E /* Resources */, 371 | ); 372 | buildRules = ( 373 | ); 374 | dependencies = ( 375 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 376 | ); 377 | name = FoodMenuTests; 378 | productName = FoodMenuTests; 379 | productReference = 00E356EE1AD99517003FC87E /* FoodMenuTests.xctest */; 380 | productType = "com.apple.product-type.bundle.unit-test"; 381 | }; 382 | 13B07F861A680F5B00A75B9A /* FoodMenu */ = { 383 | isa = PBXNativeTarget; 384 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "FoodMenu" */; 385 | buildPhases = ( 386 | 13B07F871A680F5B00A75B9A /* Sources */, 387 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 388 | 13B07F8E1A680F5B00A75B9A /* Resources */, 389 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 390 | ); 391 | buildRules = ( 392 | ); 393 | dependencies = ( 394 | ); 395 | name = FoodMenu; 396 | productName = "Hello World"; 397 | productReference = 13B07F961A680F5B00A75B9A /* FoodMenu.app */; 398 | productType = "com.apple.product-type.application"; 399 | }; 400 | /* End PBXNativeTarget section */ 401 | 402 | /* Begin PBXProject section */ 403 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 404 | isa = PBXProject; 405 | attributes = { 406 | LastUpgradeCheck = 0610; 407 | ORGANIZATIONNAME = Facebook; 408 | TargetAttributes = { 409 | 00E356ED1AD99517003FC87E = { 410 | CreatedOnToolsVersion = 6.2; 411 | TestTargetID = 13B07F861A680F5B00A75B9A; 412 | }; 413 | }; 414 | }; 415 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "FoodMenu" */; 416 | compatibilityVersion = "Xcode 3.2"; 417 | developmentRegion = English; 418 | hasScannedForEncodings = 0; 419 | knownRegions = ( 420 | en, 421 | Base, 422 | ); 423 | mainGroup = 83CBB9F61A601CBA00E9B192; 424 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 425 | projectDirPath = ""; 426 | projectReferences = ( 427 | { 428 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 429 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 430 | }, 431 | { 432 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 433 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 434 | }, 435 | { 436 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 437 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 438 | }, 439 | { 440 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 441 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 442 | }, 443 | { 444 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 445 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 446 | }, 447 | { 448 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 449 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 450 | }, 451 | { 452 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 453 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 454 | }, 455 | { 456 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 457 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 458 | }, 459 | { 460 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 461 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 462 | }, 463 | { 464 | ProductGroup = 146834001AC3E56700842450 /* Products */; 465 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 466 | }, 467 | { 468 | ProductGroup = 8E69618D1D77B999005417D8 /* Products */; 469 | ProjectRef = 8E69618C1D77B999005417D8 /* RNVectorIcons.xcodeproj */; 470 | }, 471 | ); 472 | projectRoot = ""; 473 | targets = ( 474 | 13B07F861A680F5B00A75B9A /* FoodMenu */, 475 | 00E356ED1AD99517003FC87E /* FoodMenuTests */, 476 | ); 477 | }; 478 | /* End PBXProject section */ 479 | 480 | /* Begin PBXReferenceProxy section */ 481 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 482 | isa = PBXReferenceProxy; 483 | fileType = archive.ar; 484 | path = libRCTActionSheet.a; 485 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 486 | sourceTree = BUILT_PRODUCTS_DIR; 487 | }; 488 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 489 | isa = PBXReferenceProxy; 490 | fileType = archive.ar; 491 | path = libRCTGeolocation.a; 492 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 493 | sourceTree = BUILT_PRODUCTS_DIR; 494 | }; 495 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 496 | isa = PBXReferenceProxy; 497 | fileType = archive.ar; 498 | path = libRCTImage.a; 499 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 500 | sourceTree = BUILT_PRODUCTS_DIR; 501 | }; 502 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 503 | isa = PBXReferenceProxy; 504 | fileType = archive.ar; 505 | path = libRCTNetwork.a; 506 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 507 | sourceTree = BUILT_PRODUCTS_DIR; 508 | }; 509 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 510 | isa = PBXReferenceProxy; 511 | fileType = archive.ar; 512 | path = libRCTVibration.a; 513 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 514 | sourceTree = BUILT_PRODUCTS_DIR; 515 | }; 516 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 517 | isa = PBXReferenceProxy; 518 | fileType = archive.ar; 519 | path = libRCTSettings.a; 520 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 521 | sourceTree = BUILT_PRODUCTS_DIR; 522 | }; 523 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 524 | isa = PBXReferenceProxy; 525 | fileType = archive.ar; 526 | path = libRCTWebSocket.a; 527 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 528 | sourceTree = BUILT_PRODUCTS_DIR; 529 | }; 530 | 146834041AC3E56700842450 /* libReact.a */ = { 531 | isa = PBXReferenceProxy; 532 | fileType = archive.ar; 533 | path = libReact.a; 534 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 535 | sourceTree = BUILT_PRODUCTS_DIR; 536 | }; 537 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 538 | isa = PBXReferenceProxy; 539 | fileType = archive.ar; 540 | path = libRCTLinking.a; 541 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 542 | sourceTree = BUILT_PRODUCTS_DIR; 543 | }; 544 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 545 | isa = PBXReferenceProxy; 546 | fileType = archive.ar; 547 | path = libRCTText.a; 548 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 549 | sourceTree = BUILT_PRODUCTS_DIR; 550 | }; 551 | 8E69619B1D77B999005417D8 /* libRNVectorIcons.a */ = { 552 | isa = PBXReferenceProxy; 553 | fileType = archive.ar; 554 | path = libRNVectorIcons.a; 555 | remoteRef = 8E69619A1D77B999005417D8 /* PBXContainerItemProxy */; 556 | sourceTree = BUILT_PRODUCTS_DIR; 557 | }; 558 | /* End PBXReferenceProxy section */ 559 | 560 | /* Begin PBXResourcesBuildPhase section */ 561 | 00E356EC1AD99517003FC87E /* Resources */ = { 562 | isa = PBXResourcesBuildPhase; 563 | buildActionMask = 2147483647; 564 | files = ( 565 | ); 566 | runOnlyForDeploymentPostprocessing = 0; 567 | }; 568 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 569 | isa = PBXResourcesBuildPhase; 570 | buildActionMask = 2147483647; 571 | files = ( 572 | 8E6961AB1D77BC26005417D8 /* MaterialIcons.ttf in Resources */, 573 | 8E6961AC1D77BC26005417D8 /* Octicons.ttf in Resources */, 574 | 8E6961AD1D77BC26005417D8 /* Zocial.ttf in Resources */, 575 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 576 | 8E6961A81D77BC26005417D8 /* FontAwesome.ttf in Resources */, 577 | 8E6961A71D77BC26005417D8 /* EvilIcons.ttf in Resources */, 578 | 8E6961AA1D77BC26005417D8 /* Ionicons.ttf in Resources */, 579 | 8E6961A91D77BC26005417D8 /* Foundation.ttf in Resources */, 580 | 8E6961A61D77BC26005417D8 /* Entypo.ttf in Resources */, 581 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 582 | ); 583 | runOnlyForDeploymentPostprocessing = 0; 584 | }; 585 | /* End PBXResourcesBuildPhase section */ 586 | 587 | /* Begin PBXShellScriptBuildPhase section */ 588 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 589 | isa = PBXShellScriptBuildPhase; 590 | buildActionMask = 2147483647; 591 | files = ( 592 | ); 593 | inputPaths = ( 594 | ); 595 | name = "Bundle React Native code and images"; 596 | outputPaths = ( 597 | ); 598 | runOnlyForDeploymentPostprocessing = 0; 599 | shellPath = /bin/sh; 600 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 601 | }; 602 | /* End PBXShellScriptBuildPhase section */ 603 | 604 | /* Begin PBXSourcesBuildPhase section */ 605 | 00E356EA1AD99517003FC87E /* Sources */ = { 606 | isa = PBXSourcesBuildPhase; 607 | buildActionMask = 2147483647; 608 | files = ( 609 | 00E356F31AD99517003FC87E /* FoodMenuTests.m in Sources */, 610 | ); 611 | runOnlyForDeploymentPostprocessing = 0; 612 | }; 613 | 13B07F871A680F5B00A75B9A /* Sources */ = { 614 | isa = PBXSourcesBuildPhase; 615 | buildActionMask = 2147483647; 616 | files = ( 617 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 618 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 619 | ); 620 | runOnlyForDeploymentPostprocessing = 0; 621 | }; 622 | /* End PBXSourcesBuildPhase section */ 623 | 624 | /* Begin PBXTargetDependency section */ 625 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 626 | isa = PBXTargetDependency; 627 | target = 13B07F861A680F5B00A75B9A /* FoodMenu */; 628 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 629 | }; 630 | /* End PBXTargetDependency section */ 631 | 632 | /* Begin PBXVariantGroup section */ 633 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 634 | isa = PBXVariantGroup; 635 | children = ( 636 | 13B07FB21A68108700A75B9A /* Base */, 637 | ); 638 | name = LaunchScreen.xib; 639 | path = FoodMenu; 640 | sourceTree = ""; 641 | }; 642 | /* End PBXVariantGroup section */ 643 | 644 | /* Begin XCBuildConfiguration section */ 645 | 00E356F61AD99517003FC87E /* Debug */ = { 646 | isa = XCBuildConfiguration; 647 | buildSettings = { 648 | BUNDLE_LOADER = "$(TEST_HOST)"; 649 | GCC_PREPROCESSOR_DEFINITIONS = ( 650 | "DEBUG=1", 651 | "$(inherited)", 652 | ); 653 | INFOPLIST_FILE = FoodMenuTests/Info.plist; 654 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 655 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 656 | PRODUCT_NAME = "$(TARGET_NAME)"; 657 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FoodMenu.app/FoodMenu"; 658 | }; 659 | name = Debug; 660 | }; 661 | 00E356F71AD99517003FC87E /* Release */ = { 662 | isa = XCBuildConfiguration; 663 | buildSettings = { 664 | BUNDLE_LOADER = "$(TEST_HOST)"; 665 | COPY_PHASE_STRIP = NO; 666 | INFOPLIST_FILE = FoodMenuTests/Info.plist; 667 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 668 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 669 | PRODUCT_NAME = "$(TARGET_NAME)"; 670 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FoodMenu.app/FoodMenu"; 671 | }; 672 | name = Release; 673 | }; 674 | 13B07F941A680F5B00A75B9A /* Debug */ = { 675 | isa = XCBuildConfiguration; 676 | buildSettings = { 677 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 678 | DEAD_CODE_STRIPPING = NO; 679 | HEADER_SEARCH_PATHS = ( 680 | "$(inherited)", 681 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 682 | "$(SRCROOT)/../node_modules/react-native/React/**", 683 | ); 684 | INFOPLIST_FILE = FoodMenu/Info.plist; 685 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 686 | OTHER_LDFLAGS = ( 687 | "$(inherited)", 688 | "-ObjC", 689 | "-lc++", 690 | ); 691 | PRODUCT_NAME = FoodMenu; 692 | }; 693 | name = Debug; 694 | }; 695 | 13B07F951A680F5B00A75B9A /* Release */ = { 696 | isa = XCBuildConfiguration; 697 | buildSettings = { 698 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 699 | HEADER_SEARCH_PATHS = ( 700 | "$(inherited)", 701 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 702 | "$(SRCROOT)/../node_modules/react-native/React/**", 703 | ); 704 | INFOPLIST_FILE = FoodMenu/Info.plist; 705 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 706 | OTHER_LDFLAGS = ( 707 | "$(inherited)", 708 | "-ObjC", 709 | "-lc++", 710 | ); 711 | PRODUCT_NAME = FoodMenu; 712 | }; 713 | name = Release; 714 | }; 715 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 716 | isa = XCBuildConfiguration; 717 | buildSettings = { 718 | ALWAYS_SEARCH_USER_PATHS = NO; 719 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 720 | CLANG_CXX_LIBRARY = "libc++"; 721 | CLANG_ENABLE_MODULES = YES; 722 | CLANG_ENABLE_OBJC_ARC = YES; 723 | CLANG_WARN_BOOL_CONVERSION = YES; 724 | CLANG_WARN_CONSTANT_CONVERSION = YES; 725 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 726 | CLANG_WARN_EMPTY_BODY = YES; 727 | CLANG_WARN_ENUM_CONVERSION = YES; 728 | CLANG_WARN_INT_CONVERSION = YES; 729 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 730 | CLANG_WARN_UNREACHABLE_CODE = YES; 731 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 732 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 733 | COPY_PHASE_STRIP = NO; 734 | ENABLE_STRICT_OBJC_MSGSEND = YES; 735 | GCC_C_LANGUAGE_STANDARD = gnu99; 736 | GCC_DYNAMIC_NO_PIC = NO; 737 | GCC_OPTIMIZATION_LEVEL = 0; 738 | GCC_PREPROCESSOR_DEFINITIONS = ( 739 | "DEBUG=1", 740 | "$(inherited)", 741 | ); 742 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 743 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 744 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 745 | GCC_WARN_UNDECLARED_SELECTOR = YES; 746 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 747 | GCC_WARN_UNUSED_FUNCTION = YES; 748 | GCC_WARN_UNUSED_VARIABLE = YES; 749 | HEADER_SEARCH_PATHS = ( 750 | "$(inherited)", 751 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 752 | "$(SRCROOT)/../node_modules/react-native/React/**", 753 | ); 754 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 755 | MTL_ENABLE_DEBUG_INFO = YES; 756 | ONLY_ACTIVE_ARCH = YES; 757 | SDKROOT = iphoneos; 758 | }; 759 | name = Debug; 760 | }; 761 | 83CBBA211A601CBA00E9B192 /* Release */ = { 762 | isa = XCBuildConfiguration; 763 | buildSettings = { 764 | ALWAYS_SEARCH_USER_PATHS = NO; 765 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 766 | CLANG_CXX_LIBRARY = "libc++"; 767 | CLANG_ENABLE_MODULES = YES; 768 | CLANG_ENABLE_OBJC_ARC = YES; 769 | CLANG_WARN_BOOL_CONVERSION = YES; 770 | CLANG_WARN_CONSTANT_CONVERSION = YES; 771 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 772 | CLANG_WARN_EMPTY_BODY = YES; 773 | CLANG_WARN_ENUM_CONVERSION = YES; 774 | CLANG_WARN_INT_CONVERSION = YES; 775 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 776 | CLANG_WARN_UNREACHABLE_CODE = YES; 777 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 778 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 779 | COPY_PHASE_STRIP = YES; 780 | ENABLE_NS_ASSERTIONS = NO; 781 | ENABLE_STRICT_OBJC_MSGSEND = YES; 782 | GCC_C_LANGUAGE_STANDARD = gnu99; 783 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 784 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 785 | GCC_WARN_UNDECLARED_SELECTOR = YES; 786 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 787 | GCC_WARN_UNUSED_FUNCTION = YES; 788 | GCC_WARN_UNUSED_VARIABLE = YES; 789 | HEADER_SEARCH_PATHS = ( 790 | "$(inherited)", 791 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 792 | "$(SRCROOT)/../node_modules/react-native/React/**", 793 | ); 794 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 795 | MTL_ENABLE_DEBUG_INFO = NO; 796 | SDKROOT = iphoneos; 797 | VALIDATE_PRODUCT = YES; 798 | }; 799 | name = Release; 800 | }; 801 | /* End XCBuildConfiguration section */ 802 | 803 | /* Begin XCConfigurationList section */ 804 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "FoodMenuTests" */ = { 805 | isa = XCConfigurationList; 806 | buildConfigurations = ( 807 | 00E356F61AD99517003FC87E /* Debug */, 808 | 00E356F71AD99517003FC87E /* Release */, 809 | ); 810 | defaultConfigurationIsVisible = 0; 811 | defaultConfigurationName = Release; 812 | }; 813 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "FoodMenu" */ = { 814 | isa = XCConfigurationList; 815 | buildConfigurations = ( 816 | 13B07F941A680F5B00A75B9A /* Debug */, 817 | 13B07F951A680F5B00A75B9A /* Release */, 818 | ); 819 | defaultConfigurationIsVisible = 0; 820 | defaultConfigurationName = Release; 821 | }; 822 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "FoodMenu" */ = { 823 | isa = XCConfigurationList; 824 | buildConfigurations = ( 825 | 83CBBA201A601CBA00E9B192 /* Debug */, 826 | 83CBBA211A601CBA00E9B192 /* Release */, 827 | ); 828 | defaultConfigurationIsVisible = 0; 829 | defaultConfigurationName = Release; 830 | }; 831 | /* End XCConfigurationList section */ 832 | }; 833 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 834 | } 835 | -------------------------------------------------------------------------------- /ios/FoodMenu.xcodeproj/xcshareddata/xcschemes/FoodMenu.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 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /ios/FoodMenu/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/FoodMenu/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTBundleURLProvider.h" 13 | #import "RCTRootView.h" 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"FoodMenu" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/FoodMenu/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/FoodMenu/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/FoodMenu/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ios/FoodMenu/Images.xcassets/header.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "header.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/FoodMenu/Images.xcassets/header.imageset/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/ios/FoodMenu/Images.xcassets/header.imageset/header.png -------------------------------------------------------------------------------- /ios/FoodMenu/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | NSAllowsArbitraryLoads 44 | 45 | NSExceptionDomains 46 | 47 | localhost 48 | 49 | NSTemporaryExceptionAllowsInsecureHTTPLoads 50 | 51 | 52 | 53 | 54 | UIAppFonts 55 | 56 | Entypo.ttf 57 | EvilIcons.ttf 58 | FontAwesome.ttf 59 | Foundation.ttf 60 | Ionicons.ttf 61 | MaterialIcons.ttf 62 | Octicons.ttf 63 | Zocial.ttf 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /ios/FoodMenu/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/FoodMenuTests/FoodMenuTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import "RCTLog.h" 14 | #import "RCTRootView.h" 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface FoodMenuTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation FoodMenuTests 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 | -------------------------------------------------------------------------------- /ios/FoodMenuTests/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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "FoodMenu", 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 | "moment": "^2.14.1", 10 | "react": "15.3.1", 11 | "react-native": "0.32.0", 12 | "react-native-root-toast": "^1.0.3", 13 | "react-native-side-menu": "^0.20.0", 14 | "react-native-tab-navigator": "^0.3.3", 15 | "react-native-vector-icons": "^2.1.0", 16 | "react-redux": "^4.4.5", 17 | "redux": "^3.5.2", 18 | "redux-thunk": "^2.1.0" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuhongjun719/react-native-FoodMenu/4a3741abc11a76d18bf5da1c9b00532acc232113/screenshots/3.png --------------------------------------------------------------------------------