├── .buckconfig ├── .env ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .vscode └── settings.json ├── .watchmanconfig ├── App.js ├── README.md ├── __tests__ └── App-test.js ├── android ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── Keystore.jks ├── app │ ├── .classpath │ ├── .project │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ ├── release │ │ └── output.json │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ ├── fonts │ │ │ ├── AntDesign.ttf │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── Feather.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── FontAwesome5_Brands.ttf │ │ │ ├── FontAwesome5_Regular.ttf │ │ │ ├── FontAwesome5_Solid.ttf │ │ │ ├── Fontisto.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── Roboto.ttf │ │ │ ├── Roboto_medium.ttf │ │ │ ├── SimpleLineIcons.ttf │ │ │ ├── Zocial.ttf │ │ │ └── rubicon-icon-font.ttf │ │ └── index.android.bundle │ │ ├── ic_launcher-web.png │ │ ├── java │ │ └── com │ │ │ └── reactnativepos │ │ │ ├── MainActivity.java │ │ │ ├── MainApplication.java │ │ │ └── SplashActivity.java │ │ └── res │ │ ├── background_splash.xml │ │ ├── drawable-hdpi │ │ └── screen.png │ │ ├── drawable-ldpi │ │ └── screen.png │ │ ├── drawable-mdpi │ │ └── screen.png │ │ ├── drawable-xhdpi │ │ └── screen.png │ │ ├── drawable-xxhdpi │ │ └── screen.png │ │ ├── drawable-xxxhdpi │ │ └── screen.png │ │ ├── drawable │ │ └── screen.png │ │ ├── layout │ │ └── launch_screen.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── ic_launcher_background.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── Podfile ├── ReactNativePOS-tvOS │ └── Info.plist ├── ReactNativePOS-tvOSTests │ └── Info.plist ├── ReactNativePOS.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── ReactNativePOS-tvOS.xcscheme │ │ └── ReactNativePOS.xcscheme ├── ReactNativePOS │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── ReactNativePOSTests │ ├── Info.plist │ └── ReactNativePOSTests.m ├── metro.config.js ├── package-lock.json ├── package.json ├── screenshot ├── AddNewCategory.png ├── AddNewProduct.png ├── DataCategory.png ├── DataProduct.png ├── Icon.png ├── Login.png └── OrderList.png └── src ├── Redux ├── Actions │ ├── auth.js │ ├── categories.js │ └── product.js ├── Reducers │ ├── auth.js │ ├── categories.js │ ├── index.js │ └── product.js └── Store.js ├── Router.js ├── images ├── Icon.png ├── ImageBill.png ├── ImageBillSelected.png ├── ImageCart.png ├── ImageCategory.png ├── ImageCategorySelected.png ├── ImageOrder.png ├── ImageOrderSelected.png ├── ImageProduct.png ├── ImageProductSelected.png ├── ImageSearch.png ├── ImageUser.png └── ImageUserSelected.png └── screens ├── AddCategory.js ├── AddProduct.js ├── DataCategory.js ├── DataProduct.js ├── EditCategory.js ├── EditProduct.js ├── History.js ├── Login.js ├── Order.js ├── Profile.js ├── SignUp.js └── TabNavigation.js /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | BASE_URL = 'http://localhost:4000/api' -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; These should not be required directly 12 | ; require from fbjs/lib instead: require('fbjs/lib/warning') 13 | node_modules/warning/.* 14 | 15 | ; Flow doesn't support platforms 16 | .*/Libraries/Utilities/LoadingView.js 17 | 18 | [untyped] 19 | .*/node_modules/@react-native-community/cli/.*/.* 20 | 21 | [include] 22 | 23 | [libs] 24 | node_modules/react-native/Libraries/react-native/react-native-interface.js 25 | node_modules/react-native/flow/ 26 | 27 | [options] 28 | emoji=true 29 | 30 | esproposal.optional_chaining=enable 31 | esproposal.nullish_coalescing=enable 32 | 33 | module.file_ext=.js 34 | module.file_ext=.json 35 | module.file_ext=.ios.js 36 | 37 | munge_underscores=true 38 | 39 | module.name_mapper='^react-native$' -> '/node_modules/react-native/Libraries/react-native/react-native-implementation' 40 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 41 | 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\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 42 | 43 | suppress_type=$FlowIssue 44 | suppress_type=$FlowFixMe 45 | suppress_type=$FlowFixMeProps 46 | suppress_type=$FlowFixMeState 47 | 48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) 49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ 50 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 51 | 52 | [lints] 53 | sketchy-null-number=warn 54 | sketchy-null-mixed=warn 55 | sketchy-number=warn 56 | untyped-type-import=warn 57 | nonstrict-import=warn 58 | deprecated-type=warn 59 | unsafe-getters-setters=warn 60 | inexact-spread=warn 61 | unnecessary-invariant=warn 62 | signature-verification-failure=warn 63 | deprecated-utility=error 64 | 65 | [strict] 66 | deprecated-type 67 | nonstrict-import 68 | sketchy-null 69 | unclear-type 70 | unsafe-getters-setters 71 | untyped-import 72 | untyped-type-import 73 | 74 | [version] 75 | ^0.105.0 76 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.configuration.updateBuildConfiguration": "automatic" 3 | } -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react'; 2 | import { Root } from "native-base"; 3 | import { Provider } from 'react-redux'; 4 | import Router from "./src/Router"; 5 | import store from "./src/Redux/Store"; 6 | import SplashScreen from 'react-native-splash-screen'; 7 | 8 | const App = () => { 9 | 10 | useEffect(() => { 11 | 12 | const timeOut = setTimeout(() => { 13 | SplashScreen.hide(); 14 | }, 2000); 15 | 16 | return () => { 17 | clearTimeout(timeOut) 18 | } 19 | }); 20 | 21 | return ( 22 | 23 | 24 | 25 | 26 | 27 | ) 28 | } 29 | 30 | export default App; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

MSG - Mart
( React Native Point of Sales - Android)

2 | 3 |

4 | 5 |

6 | 7 |

8 | 9 | 10 | 11 | 12 | 13 | 14 |

15 | 16 |

MSG-Mart is an application in the form of a website and a mobile application for product management, category management and has a cashier system (point of sale), this application is made using React Js and React Native. There is only a mobile app model in this area, if you interest and want to try the web app version of MSG-Mart, you can visit this link :

17 | 18 | - Web App : [MSG-Mart](https://github.com/aldoignatachandra/MSG-Mart-React_JS_POS_Redux)
19 | - Github : [MSG-Mart](https://msg-mart.netlify.com/) 20 | 21 | ## Features 22 | Product Management 23 | - Create data table 24 | - View data product 25 | - Update product 26 | - Delete product 27 | - Search product by id, name, category and Latest update 28 | - Sorting product by ascending and descending 29 | 30 | Category Management 31 | - Create data table 32 | - View data category 33 | - Update category 34 | - Delete category 35 | 36 | Transaction is Under Maintenance 37 | 38 | ## Get Started 39 | 1. Check Backend RESTfull API from [MSG-Mart](https://github.com/aldoignatachandra/RESTful_API_Point_of_Sales_APP) 40 | 2. Backend can be accessed via the link in Heroku [MSG-Mart](https://pointofsalesapp.herokuapp.com/api/) 41 | 3. Git clone [MSG-Mart - Mobile Apps](https://github.com/aldoignatachandra/MSG-Mart-React_Native_POS) or download zip 42 | 4. Open in your code editor (vscode, atom or other) 43 | 5. npm Install & react-native run-android 44 | 45 | ## Download the APK (MSG-Mart) 46 | You can Download the APK [`here`](https://drive.google.com/drive/folders/1WjA5hTWK0XWTKMYAMh5tb2ZoB-ouA9aA?usp=sharingg) 47 | 48 | ## Build with React Hooks & Redux 49 | 50 | 51 | ## Screenshot from the App 52 |

53 | 54 | 55 | 56 | 57 | 58 |

59 |

60 | 61 | 62 | 63 | 64 | 65 |

66 | 67 | ## License 68 | [ISC](https://en.wikipedia.org/wiki/ISC_license "ISC") 69 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ReactNativePOS 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/Keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/Keystore.jks -------------------------------------------------------------------------------- /android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.reactnativepos", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativepos", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /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 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format 22 | * bundleCommand: "ram-bundle", 23 | * 24 | * // whether to bundle JS and assets in debug mode 25 | * bundleInDebug: false, 26 | * 27 | * // whether to bundle JS and assets in release mode 28 | * bundleInRelease: true, 29 | * 30 | * // whether to bundle JS and assets in another build variant (if configured). 31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 32 | * // The configuration property can be in the following formats 33 | * // 'bundleIn${productFlavor}${buildType}' 34 | * // 'bundleIn${buildType}' 35 | * // bundleInFreeDebug: true, 36 | * // bundleInPaidRelease: true, 37 | * // bundleInBeta: true, 38 | * 39 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 40 | * // for example: to disable dev mode in the staging build type (if configured) 41 | * devDisabledInStaging: true, 42 | * // The configuration property can be in the following formats 43 | * // 'devDisabledIn${productFlavor}${buildType}' 44 | * // 'devDisabledIn${buildType}' 45 | * 46 | * // the root of your project, i.e. where "package.json" lives 47 | * root: "../../", 48 | * 49 | * // where to put the JS bundle asset in debug mode 50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 51 | * 52 | * // where to put the JS bundle asset in release mode 53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 54 | * 55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 56 | * // require('./image.png')), in debug mode 57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 58 | * 59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 60 | * // require('./image.png')), in release mode 61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 62 | * 63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 67 | * // for example, you might want to remove it from here. 68 | * inputExcludes: ["android/**", "ios/**"], 69 | * 70 | * // override which node gets called and with what additional arguments 71 | * nodeExecutableAndArgs: ["node"], 72 | * 73 | * // supply additional arguments to the packager 74 | * extraPackagerArgs: [] 75 | * ] 76 | */ 77 | 78 | project.ext.react = [ 79 | entryFile: "index.js", 80 | enableHermes: false, // clean and rebuild if changing 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | /** 101 | * The preferred build flavor of JavaScriptCore. 102 | * 103 | * For example, to use the international variant, you can use: 104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 105 | * 106 | * The international variant includes ICU i18n library and necessary data 107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 108 | * give correct results when using with locales other than en-US. Note that 109 | * this variant is about 6MiB larger per architecture than default. 110 | */ 111 | def jscFlavor = 'org.webkit:android-jsc:+' 112 | 113 | /** 114 | * Whether to enable the Hermes VM. 115 | * 116 | * This should be set on project.ext.react and mirrored here. If it is not set 117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 118 | * and the benefits of using Hermes will therefore be sharply reduced. 119 | */ 120 | def enableHermes = project.ext.react.get("enableHermes", false); 121 | 122 | android { 123 | compileSdkVersion rootProject.ext.compileSdkVersion 124 | 125 | compileOptions { 126 | sourceCompatibility JavaVersion.VERSION_1_8 127 | targetCompatibility JavaVersion.VERSION_1_8 128 | } 129 | 130 | defaultConfig { 131 | applicationId "com.reactnativepos" 132 | minSdkVersion rootProject.ext.minSdkVersion 133 | targetSdkVersion rootProject.ext.targetSdkVersion 134 | versionCode 1 135 | versionName "1.0" 136 | ndk { 137 | abiFilters "armeabi-v7a", "x86", "armeabi", "mips" 138 | } 139 | } 140 | splits { 141 | abi { 142 | reset() 143 | enable enableSeparateBuildPerCPUArchitecture 144 | universalApk false // If true, also generate a universal APK 145 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 146 | } 147 | } 148 | signingConfigs { 149 | debug { 150 | storeFile file('debug.keystore') 151 | storePassword 'android' 152 | keyAlias 'androiddebugkey' 153 | keyPassword 'android' 154 | } 155 | } 156 | buildTypes { 157 | debug { 158 | signingConfig signingConfigs.debug 159 | } 160 | release { 161 | // Caution! In production, you need to generate your own keystore file. 162 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 163 | signingConfig signingConfigs.debug 164 | minifyEnabled enableProguardInReleaseBuilds 165 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 166 | } 167 | } 168 | // applicationVariants are e.g. debug, release 169 | applicationVariants.all { variant -> 170 | variant.outputs.each { output -> 171 | // For each separate APK per architecture, set a unique version code as described here: 172 | // https://developer.android.com/studio/build/configure-apk-splits.html 173 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 174 | def abi = output.getFilter(OutputFile.ABI) 175 | if (abi != null) { // null for the universal-debug, universal-release variants 176 | output.versionCodeOverride = 177 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 178 | } 179 | 180 | } 181 | } 182 | } 183 | 184 | dependencies { 185 | implementation fileTree(dir: "libs", include: ["*.jar"]) 186 | implementation "com.facebook.react:react-native:+" // From node_modules 187 | implementation 'androidx.appcompat:appcompat:1.1.0-rc01' 188 | implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02' 189 | 190 | if (enableHermes) { 191 | def hermesPath = "../../node_modules/hermes-engine/android/"; 192 | debugImplementation files(hermesPath + "hermes-debug.aar") 193 | releaseImplementation files(hermesPath + "hermes-release.aar") 194 | } else { 195 | implementation jscFlavor 196 | } 197 | } 198 | 199 | // Run this once to be able to run the application with BUCK 200 | // puts all compile dependencies into folder libs for BUCK to use 201 | task copyDownloadableDepsToLibs(type: Copy) { 202 | from configurations.compile 203 | into 'libs' 204 | } 205 | 206 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"; 207 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 208 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/release/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/AntDesign.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/AntDesign.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Feather.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Feather.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Fontisto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Fontisto.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Roboto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Roboto.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Roboto_medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Roboto_medium.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/rubicon-icon-font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/assets/fonts/rubicon-icon-font.ttf -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativepos/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativepos; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.ReactRootView; 6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 7 | 8 | public class MainActivity extends ReactActivity { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule 12 | * rendering of the component. 13 | */ 14 | @Override 15 | protected String getMainComponentName() { 16 | return "ReactNativePOS"; 17 | } 18 | 19 | @Override 20 | protected ReactActivityDelegate createReactActivityDelegate() { 21 | return new ReactActivityDelegate(this, getMainComponentName()) { 22 | @Override 23 | protected ReactRootView createRootView() { 24 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 25 | } 26 | }; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativepos/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativepos; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import java.lang.reflect.InvocationTargetException; 11 | import java.util.List; 12 | 13 | public class MainApplication extends Application implements ReactApplication { 14 | 15 | private final ReactNativeHost mReactNativeHost = 16 | new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | @SuppressWarnings("UnnecessaryLocalVariable") 25 | List packages = new PackageList(this).getPackages(); 26 | // Packages that cannot be autolinked yet can be added manually here, for example: 27 | // packages.add(new MyReactNativePackage()); 28 | return packages; 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | initializeFlipper(this); // Remove this line if you don't want Flipper enabled 47 | } 48 | 49 | /** 50 | * Loads Flipper in React Native templates. 51 | * 52 | * @param context 53 | */ 54 | private static void initializeFlipper(Context context) { 55 | if (BuildConfig.DEBUG) { 56 | try { 57 | /* 58 | We use reflection here to pick up the class that initializes Flipper, 59 | since Flipper library is not available in release mode 60 | */ 61 | Class aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); 62 | aClass.getMethod("initializeFlipper", Context.class).invoke(null, context); 63 | } catch (ClassNotFoundException e) { 64 | e.printStackTrace(); 65 | } catch (NoSuchMethodException e) { 66 | e.printStackTrace(); 67 | } catch (IllegalAccessException e) { 68 | e.printStackTrace(); 69 | } catch (InvocationTargetException e) { 70 | e.printStackTrace(); 71 | } 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativepos/SplashActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativepos; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import com.facebook.react.ReactActivity; 6 | 7 | public class SplashActivity extends ReactActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | 12 | Intent intent = new Intent(this, MainActivity.class); 13 | startActivity(intent); 14 | finish(); 15 | } 16 | } -------------------------------------------------------------------------------- /android/app/src/main/res/background_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable-hdpi/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-ldpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable-ldpi/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable-mdpi/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable-xhdpi/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable-xxhdpi/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable-xxxhdpi/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/drawable/screen.png -------------------------------------------------------------------------------- /android/app/src/main/res/layout/launch_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #4F6D7A 4 | #4F6D7A 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBE00 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MSG-Mart 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath('com.android.tools.build:gradle:3.5.0') 16 | 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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.useAndroidX=true 21 | android.enableJetifier=true 22 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin, switch paths to Windows format before running java 129 | if $cygwin ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=$((i+1)) 158 | done 159 | case $i in 160 | (0) set -- ;; 161 | (1) set -- "$args0" ;; 162 | (2) set -- "$args0" "$args1" ;; 163 | (3) set -- "$args0" "$args1" "$args2" ;; 164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=$(save "$@") 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem http://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativePOS' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativePOS", 3 | "displayName": "ReactNativePOS" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import App from './App'; 2 | import { AppRegistry } from 'react-native'; 3 | import { name as appName } from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | target 'ReactNativePOS' do 5 | # Pods for ReactNativePOS 6 | pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" 7 | pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" 8 | pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" 9 | pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" 10 | pod 'React', :path => '../node_modules/react-native/' 11 | pod 'React-Core', :path => '../node_modules/react-native/' 12 | pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' 13 | pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' 14 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' 15 | pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' 16 | pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' 17 | pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' 18 | pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' 19 | pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' 20 | pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' 21 | pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' 22 | pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' 23 | pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' 24 | 25 | pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' 26 | pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' 27 | pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' 28 | pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' 29 | pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon" 30 | pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" 31 | pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga' 32 | 33 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' 34 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' 35 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' 36 | 37 | 38 | pod 'RNSnackbar', :path => '../node_modules/react-native-snackbar' 39 | 40 | target 'ReactNativePOSTests' do 41 | inherit! :search_paths 42 | # Pods for testing 43 | end 44 | 45 | use_native_modules! 46 | end 47 | 48 | target 'ReactNativePOS-tvOS' do 49 | # Pods for ReactNativePOS-tvOS 50 | 51 | target 'ReactNativePOS-tvOSTests' do 52 | inherit! :search_paths 53 | # Pods for testing 54 | end 55 | 56 | end 57 | -------------------------------------------------------------------------------- /ios/ReactNativePOS-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ios/ReactNativePOS-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/ReactNativePOS.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00E356F31AD99517003FC87E /* ReactNativePOSTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativePOSTests.m */; }; 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 15 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativePOSTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativePOSTests.m */; }; 18 | 1AE646DED88E4530BA1926F0 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B0674EE16F304E5CB9570F5A /* AntDesign.ttf */; }; 19 | 63B38045899D4E9FBBE69F39 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CD6CECD581014DCBB3C808F4 /* Entypo.ttf */; }; 20 | 3432A161CEAA4791AA16B096 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3A8981ADAADB440B96AF3B12 /* EvilIcons.ttf */; }; 21 | 504ED53B7FD747D393082EFC /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 79E53F70E82B4722B36F9419 /* Feather.ttf */; }; 22 | 43E450FBF93F4C4FB0D1213C /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 41D9A42247794B15A714676E /* FontAwesome.ttf */; }; 23 | D8C69C6FCC914A8BAEC9945B /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 76A95236EAC64829BBEB3445 /* FontAwesome5_Brands.ttf */; }; 24 | 4FBC5404AB5346018EEB97DF /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F0751F1EBF7E4911BE06809C /* FontAwesome5_Regular.ttf */; }; 25 | 730EC044653B43D89C5DD1CC /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 99FB70BC021840FA8EFD8839 /* FontAwesome5_Solid.ttf */; }; 26 | 704FF7342E494E42A9000FF5 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 313DAC5FBFA640E685A3E525 /* Fontisto.ttf */; }; 27 | D5F98E18543B43E6B3815382 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F5B35EE68A00404E86CA2D8F /* Foundation.ttf */; }; 28 | 0D28431CD75F4CFA89C9B095 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CF6499EEE79940D48EE58AE7 /* Ionicons.ttf */; }; 29 | 58D0D51E155146E0B4C2DF47 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 989B6EF2D08542E0BCD2D2D8 /* MaterialCommunityIcons.ttf */; }; 30 | D27B8E025B914FA8B8BC96E6 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E24766B2DA1B46C988986435 /* MaterialIcons.ttf */; }; 31 | 3888713D8C064C7386FE43D0 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3AB3F29183FC4EF99A607E4C /* Octicons.ttf */; }; 32 | AFC53DD710514AC88ED6F3C4 /* Roboto_medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CAF970C5D5CD4F51BFA49087 /* Roboto_medium.ttf */; }; 33 | C541F53603534346A6EE4D63 /* Roboto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 93F690FD76764C28892C8D3A /* Roboto.ttf */; }; 34 | BE0E3D6E64BA4D088D396221 /* rubicon-icon-font.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C40F96F85DB640CC90957CFE /* rubicon-icon-font.ttf */; }; 35 | 311D9135C54243B290CF1B99 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 62B884A66111426086EB2EF8 /* SimpleLineIcons.ttf */; }; 36 | C85BE51E26B445928DE4DB9F /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 37AB81D20F5A4EED8A5A23CF /* Zocial.ttf */; }; 37 | /* End PBXBuildFile section */ 38 | 39 | /* Begin PBXContainerItemProxy section */ 40 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 43 | proxyType = 1; 44 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 45 | remoteInfo = ReactNativePOS; 46 | }; 47 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 50 | proxyType = 1; 51 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 52 | remoteInfo = "ReactNativePOS-tvOS"; 53 | }; 54 | /* End PBXContainerItemProxy section */ 55 | 56 | /* Begin PBXFileReference section */ 57 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 58 | 00E356EE1AD99517003FC87E /* ReactNativePOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativePOSTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | 00E356F21AD99517003FC87E /* ReactNativePOSTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativePOSTests.m; sourceTree = ""; }; 61 | 13B07F961A680F5B00A75B9A /* ReactNativePOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativePOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativePOS/AppDelegate.h; sourceTree = ""; }; 63 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativePOS/AppDelegate.m; sourceTree = ""; }; 64 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 65 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativePOS/Images.xcassets; sourceTree = ""; }; 66 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativePOS/Info.plist; sourceTree = ""; }; 67 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativePOS/main.m; sourceTree = ""; }; 68 | 2D02E47B1E0B4A5D006451C7 /* ReactNativePOS-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativePOS-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 2D02E4901E0B4A5D006451C7 /* ReactNativePOS-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativePOS-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 71 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 72 | B0674EE16F304E5CB9570F5A /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/native-base/Fonts/AntDesign.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 73 | CD6CECD581014DCBB3C808F4 /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/native-base/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 74 | 3A8981ADAADB440B96AF3B12 /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/native-base/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 75 | 79E53F70E82B4722B36F9419 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/native-base/Fonts/Feather.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 76 | 41D9A42247794B15A714676E /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/native-base/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 77 | 76A95236EAC64829BBEB3445 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/native-base/Fonts/FontAwesome5_Brands.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 78 | F0751F1EBF7E4911BE06809C /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/native-base/Fonts/FontAwesome5_Regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 79 | 99FB70BC021840FA8EFD8839 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/native-base/Fonts/FontAwesome5_Solid.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 80 | 313DAC5FBFA640E685A3E525 /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/native-base/Fonts/Fontisto.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 81 | F5B35EE68A00404E86CA2D8F /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/native-base/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 82 | CF6499EEE79940D48EE58AE7 /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/native-base/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 83 | 989B6EF2D08542E0BCD2D2D8 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/native-base/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 84 | E24766B2DA1B46C988986435 /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/native-base/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 85 | 3AB3F29183FC4EF99A607E4C /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/native-base/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 86 | CAF970C5D5CD4F51BFA49087 /* Roboto_medium.ttf */ = {isa = PBXFileReference; name = "Roboto_medium.ttf"; path = "../node_modules/native-base/Fonts/Roboto_medium.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 87 | 93F690FD76764C28892C8D3A /* Roboto.ttf */ = {isa = PBXFileReference; name = "Roboto.ttf"; path = "../node_modules/native-base/Fonts/Roboto.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 88 | C40F96F85DB640CC90957CFE /* rubicon-icon-font.ttf */ = {isa = PBXFileReference; name = "rubicon-icon-font.ttf"; path = "../node_modules/native-base/Fonts/rubicon-icon-font.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 89 | 62B884A66111426086EB2EF8 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/native-base/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 90 | 37AB81D20F5A4EED8A5A23CF /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/native-base/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 91 | /* End PBXFileReference section */ 92 | 93 | /* Begin PBXFrameworksBuildPhase section */ 94 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | ); 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 102 | isa = PBXFrameworksBuildPhase; 103 | buildActionMask = 2147483647; 104 | files = ( 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 109 | isa = PBXFrameworksBuildPhase; 110 | buildActionMask = 2147483647; 111 | files = ( 112 | ); 113 | runOnlyForDeploymentPostprocessing = 0; 114 | }; 115 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 116 | isa = PBXFrameworksBuildPhase; 117 | buildActionMask = 2147483647; 118 | files = ( 119 | ); 120 | runOnlyForDeploymentPostprocessing = 0; 121 | }; 122 | /* End PBXFrameworksBuildPhase section */ 123 | 124 | /* Begin PBXGroup section */ 125 | 00E356EF1AD99517003FC87E /* ReactNativePOSTests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 00E356F21AD99517003FC87E /* ReactNativePOSTests.m */, 129 | 00E356F01AD99517003FC87E /* Supporting Files */, 130 | ); 131 | path = ReactNativePOSTests; 132 | sourceTree = ""; 133 | }; 134 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 00E356F11AD99517003FC87E /* Info.plist */, 138 | ); 139 | name = "Supporting Files"; 140 | sourceTree = ""; 141 | }; 142 | 13B07FAE1A68108700A75B9A /* ReactNativePOS */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 146 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 147 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 148 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 149 | 13B07FB61A68108700A75B9A /* Info.plist */, 150 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 151 | 13B07FB71A68108700A75B9A /* main.m */, 152 | ); 153 | name = ReactNativePOS; 154 | sourceTree = ""; 155 | }; 156 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 160 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 161 | ); 162 | name = Frameworks; 163 | sourceTree = ""; 164 | }; 165 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | ); 169 | name = Libraries; 170 | sourceTree = ""; 171 | }; 172 | 83CBB9F61A601CBA00E9B192 = { 173 | isa = PBXGroup; 174 | children = ( 175 | 13B07FAE1A68108700A75B9A /* ReactNativePOS */, 176 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 177 | 00E356EF1AD99517003FC87E /* ReactNativePOSTests */, 178 | 83CBBA001A601CBA00E9B192 /* Products */, 179 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 180 | 8B58B424806E411E84984B84 /* Resources */, 181 | ); 182 | indentWidth = 2; 183 | sourceTree = ""; 184 | tabWidth = 2; 185 | usesTabs = 0; 186 | }; 187 | 83CBBA001A601CBA00E9B192 /* Products */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 13B07F961A680F5B00A75B9A /* ReactNativePOS.app */, 191 | 00E356EE1AD99517003FC87E /* ReactNativePOSTests.xctest */, 192 | 2D02E47B1E0B4A5D006451C7 /* ReactNativePOS-tvOS.app */, 193 | 2D02E4901E0B4A5D006451C7 /* ReactNativePOS-tvOSTests.xctest */, 194 | ); 195 | name = Products; 196 | sourceTree = ""; 197 | }; 198 | 8B58B424806E411E84984B84 /* Resources */ = { 199 | isa = "PBXGroup"; 200 | children = ( 201 | B0674EE16F304E5CB9570F5A /* AntDesign.ttf */, 202 | CD6CECD581014DCBB3C808F4 /* Entypo.ttf */, 203 | 3A8981ADAADB440B96AF3B12 /* EvilIcons.ttf */, 204 | 79E53F70E82B4722B36F9419 /* Feather.ttf */, 205 | 41D9A42247794B15A714676E /* FontAwesome.ttf */, 206 | 76A95236EAC64829BBEB3445 /* FontAwesome5_Brands.ttf */, 207 | F0751F1EBF7E4911BE06809C /* FontAwesome5_Regular.ttf */, 208 | 99FB70BC021840FA8EFD8839 /* FontAwesome5_Solid.ttf */, 209 | 313DAC5FBFA640E685A3E525 /* Fontisto.ttf */, 210 | F5B35EE68A00404E86CA2D8F /* Foundation.ttf */, 211 | CF6499EEE79940D48EE58AE7 /* Ionicons.ttf */, 212 | 989B6EF2D08542E0BCD2D2D8 /* MaterialCommunityIcons.ttf */, 213 | E24766B2DA1B46C988986435 /* MaterialIcons.ttf */, 214 | 3AB3F29183FC4EF99A607E4C /* Octicons.ttf */, 215 | CAF970C5D5CD4F51BFA49087 /* Roboto_medium.ttf */, 216 | 93F690FD76764C28892C8D3A /* Roboto.ttf */, 217 | C40F96F85DB640CC90957CFE /* rubicon-icon-font.ttf */, 218 | 62B884A66111426086EB2EF8 /* SimpleLineIcons.ttf */, 219 | 37AB81D20F5A4EED8A5A23CF /* Zocial.ttf */, 220 | ); 221 | name = Resources; 222 | sourceTree = ""; 223 | path = ""; 224 | }; 225 | /* End PBXGroup section */ 226 | 227 | /* Begin PBXNativeTarget section */ 228 | 00E356ED1AD99517003FC87E /* ReactNativePOSTests */ = { 229 | isa = PBXNativeTarget; 230 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativePOSTests" */; 231 | buildPhases = ( 232 | 00E356EA1AD99517003FC87E /* Sources */, 233 | 00E356EB1AD99517003FC87E /* Frameworks */, 234 | 00E356EC1AD99517003FC87E /* Resources */, 235 | ); 236 | buildRules = ( 237 | ); 238 | dependencies = ( 239 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 240 | ); 241 | name = ReactNativePOSTests; 242 | productName = ReactNativePOSTests; 243 | productReference = 00E356EE1AD99517003FC87E /* ReactNativePOSTests.xctest */; 244 | productType = "com.apple.product-type.bundle.unit-test"; 245 | }; 246 | 13B07F861A680F5B00A75B9A /* ReactNativePOS */ = { 247 | isa = PBXNativeTarget; 248 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativePOS" */; 249 | buildPhases = ( 250 | FD10A7F022414F080027D42C /* Start Packager */, 251 | 13B07F871A680F5B00A75B9A /* Sources */, 252 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 253 | 13B07F8E1A680F5B00A75B9A /* Resources */, 254 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 255 | ); 256 | buildRules = ( 257 | ); 258 | dependencies = ( 259 | ); 260 | name = ReactNativePOS; 261 | productName = "ReactNativePOS"; 262 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativePOS.app */; 263 | productType = "com.apple.product-type.application"; 264 | }; 265 | 2D02E47A1E0B4A5D006451C7 /* ReactNativePOS-tvOS */ = { 266 | isa = PBXNativeTarget; 267 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativePOS-tvOS" */; 268 | buildPhases = ( 269 | FD10A7F122414F3F0027D42C /* Start Packager */, 270 | 2D02E4771E0B4A5D006451C7 /* Sources */, 271 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 272 | 2D02E4791E0B4A5D006451C7 /* Resources */, 273 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 274 | ); 275 | buildRules = ( 276 | ); 277 | dependencies = ( 278 | ); 279 | name = "ReactNativePOS-tvOS"; 280 | productName = "ReactNativePOS-tvOS"; 281 | productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativePOS-tvOS.app */; 282 | productType = "com.apple.product-type.application"; 283 | }; 284 | 2D02E48F1E0B4A5D006451C7 /* ReactNativePOS-tvOSTests */ = { 285 | isa = PBXNativeTarget; 286 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativePOS-tvOSTests" */; 287 | buildPhases = ( 288 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 289 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 290 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 291 | ); 292 | buildRules = ( 293 | ); 294 | dependencies = ( 295 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 296 | ); 297 | name = "ReactNativePOS-tvOSTests"; 298 | productName = "ReactNativePOS-tvOSTests"; 299 | productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativePOS-tvOSTests.xctest */; 300 | productType = "com.apple.product-type.bundle.unit-test"; 301 | }; 302 | /* End PBXNativeTarget section */ 303 | 304 | /* Begin PBXProject section */ 305 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 306 | isa = PBXProject; 307 | attributes = { 308 | LastUpgradeCheck = 940; 309 | ORGANIZATIONNAME = Facebook; 310 | TargetAttributes = { 311 | 00E356ED1AD99517003FC87E = { 312 | CreatedOnToolsVersion = 6.2; 313 | TestTargetID = 13B07F861A680F5B00A75B9A; 314 | }; 315 | 2D02E47A1E0B4A5D006451C7 = { 316 | CreatedOnToolsVersion = 8.2.1; 317 | ProvisioningStyle = Automatic; 318 | }; 319 | 2D02E48F1E0B4A5D006451C7 = { 320 | CreatedOnToolsVersion = 8.2.1; 321 | ProvisioningStyle = Automatic; 322 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 323 | }; 324 | }; 325 | }; 326 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativePOS" */; 327 | compatibilityVersion = "Xcode 3.2"; 328 | developmentRegion = English; 329 | hasScannedForEncodings = 0; 330 | knownRegions = ( 331 | en, 332 | Base, 333 | ); 334 | mainGroup = 83CBB9F61A601CBA00E9B192; 335 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 336 | projectDirPath = ""; 337 | projectRoot = ""; 338 | targets = ( 339 | 13B07F861A680F5B00A75B9A /* ReactNativePOS */, 340 | 00E356ED1AD99517003FC87E /* ReactNativePOSTests */, 341 | 2D02E47A1E0B4A5D006451C7 /* ReactNativePOS-tvOS */, 342 | 2D02E48F1E0B4A5D006451C7 /* ReactNativePOS-tvOSTests */, 343 | ); 344 | }; 345 | /* End PBXProject section */ 346 | 347 | /* Begin PBXResourcesBuildPhase section */ 348 | 00E356EC1AD99517003FC87E /* Resources */ = { 349 | isa = PBXResourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 360 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 361 | 1AE646DED88E4530BA1926F0 /* AntDesign.ttf in Resources */, 362 | 63B38045899D4E9FBBE69F39 /* Entypo.ttf in Resources */, 363 | 3432A161CEAA4791AA16B096 /* EvilIcons.ttf in Resources */, 364 | 504ED53B7FD747D393082EFC /* Feather.ttf in Resources */, 365 | 43E450FBF93F4C4FB0D1213C /* FontAwesome.ttf in Resources */, 366 | D8C69C6FCC914A8BAEC9945B /* FontAwesome5_Brands.ttf in Resources */, 367 | 4FBC5404AB5346018EEB97DF /* FontAwesome5_Regular.ttf in Resources */, 368 | 730EC044653B43D89C5DD1CC /* FontAwesome5_Solid.ttf in Resources */, 369 | 704FF7342E494E42A9000FF5 /* Fontisto.ttf in Resources */, 370 | D5F98E18543B43E6B3815382 /* Foundation.ttf in Resources */, 371 | 0D28431CD75F4CFA89C9B095 /* Ionicons.ttf in Resources */, 372 | 58D0D51E155146E0B4C2DF47 /* MaterialCommunityIcons.ttf in Resources */, 373 | D27B8E025B914FA8B8BC96E6 /* MaterialIcons.ttf in Resources */, 374 | 3888713D8C064C7386FE43D0 /* Octicons.ttf in Resources */, 375 | AFC53DD710514AC88ED6F3C4 /* Roboto_medium.ttf in Resources */, 376 | C541F53603534346A6EE4D63 /* Roboto.ttf in Resources */, 377 | BE0E3D6E64BA4D088D396221 /* rubicon-icon-font.ttf in Resources */, 378 | 311D9135C54243B290CF1B99 /* SimpleLineIcons.ttf in Resources */, 379 | C85BE51E26B445928DE4DB9F /* Zocial.ttf in Resources */, 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 384 | isa = PBXResourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 392 | isa = PBXResourcesBuildPhase; 393 | buildActionMask = 2147483647; 394 | files = ( 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | }; 398 | /* End PBXResourcesBuildPhase section */ 399 | 400 | /* Begin PBXShellScriptBuildPhase section */ 401 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 402 | isa = PBXShellScriptBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | ); 406 | inputPaths = ( 407 | ); 408 | name = "Bundle React Native code and images"; 409 | outputPaths = ( 410 | ); 411 | runOnlyForDeploymentPostprocessing = 0; 412 | shellPath = /bin/sh; 413 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 414 | }; 415 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 416 | isa = PBXShellScriptBuildPhase; 417 | buildActionMask = 2147483647; 418 | files = ( 419 | ); 420 | inputPaths = ( 421 | ); 422 | name = "Bundle React Native Code And Images"; 423 | outputPaths = ( 424 | ); 425 | runOnlyForDeploymentPostprocessing = 0; 426 | shellPath = /bin/sh; 427 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 428 | }; 429 | FD10A7F022414F080027D42C /* Start Packager */ = { 430 | isa = PBXShellScriptBuildPhase; 431 | buildActionMask = 2147483647; 432 | files = ( 433 | ); 434 | inputFileListPaths = ( 435 | ); 436 | inputPaths = ( 437 | ); 438 | name = "Start Packager"; 439 | outputFileListPaths = ( 440 | ); 441 | outputPaths = ( 442 | ); 443 | runOnlyForDeploymentPostprocessing = 0; 444 | shellPath = /bin/sh; 445 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 446 | showEnvVarsInLog = 0; 447 | }; 448 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 449 | isa = PBXShellScriptBuildPhase; 450 | buildActionMask = 2147483647; 451 | files = ( 452 | ); 453 | inputFileListPaths = ( 454 | ); 455 | inputPaths = ( 456 | ); 457 | name = "Start Packager"; 458 | outputFileListPaths = ( 459 | ); 460 | outputPaths = ( 461 | ); 462 | runOnlyForDeploymentPostprocessing = 0; 463 | shellPath = /bin/sh; 464 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 465 | showEnvVarsInLog = 0; 466 | }; 467 | /* End PBXShellScriptBuildPhase section */ 468 | 469 | /* Begin PBXSourcesBuildPhase section */ 470 | 00E356EA1AD99517003FC87E /* Sources */ = { 471 | isa = PBXSourcesBuildPhase; 472 | buildActionMask = 2147483647; 473 | files = ( 474 | 00E356F31AD99517003FC87E /* ReactNativePOSTests.m in Sources */, 475 | ); 476 | runOnlyForDeploymentPostprocessing = 0; 477 | }; 478 | 13B07F871A680F5B00A75B9A /* Sources */ = { 479 | isa = PBXSourcesBuildPhase; 480 | buildActionMask = 2147483647; 481 | files = ( 482 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 483 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 484 | ); 485 | runOnlyForDeploymentPostprocessing = 0; 486 | }; 487 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 488 | isa = PBXSourcesBuildPhase; 489 | buildActionMask = 2147483647; 490 | files = ( 491 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 492 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 493 | ); 494 | runOnlyForDeploymentPostprocessing = 0; 495 | }; 496 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 497 | isa = PBXSourcesBuildPhase; 498 | buildActionMask = 2147483647; 499 | files = ( 500 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativePOSTests.m in Sources */, 501 | ); 502 | runOnlyForDeploymentPostprocessing = 0; 503 | }; 504 | /* End PBXSourcesBuildPhase section */ 505 | 506 | /* Begin PBXTargetDependency section */ 507 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 508 | isa = PBXTargetDependency; 509 | target = 13B07F861A680F5B00A75B9A /* ReactNativePOS */; 510 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 511 | }; 512 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 513 | isa = PBXTargetDependency; 514 | target = 2D02E47A1E0B4A5D006451C7 /* ReactNativePOS-tvOS */; 515 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 516 | }; 517 | /* End PBXTargetDependency section */ 518 | 519 | /* Begin PBXVariantGroup section */ 520 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 521 | isa = PBXVariantGroup; 522 | children = ( 523 | 13B07FB21A68108700A75B9A /* Base */, 524 | ); 525 | name = LaunchScreen.xib; 526 | path = ReactNativePOS; 527 | sourceTree = ""; 528 | }; 529 | /* End PBXVariantGroup section */ 530 | 531 | /* Begin XCBuildConfiguration section */ 532 | 00E356F61AD99517003FC87E /* Debug */ = { 533 | isa = XCBuildConfiguration; 534 | buildSettings = { 535 | BUNDLE_LOADER = "$(TEST_HOST)"; 536 | GCC_PREPROCESSOR_DEFINITIONS = ( 537 | "DEBUG=1", 538 | "$(inherited)", 539 | ); 540 | INFOPLIST_FILE = ReactNativePOSTests/Info.plist; 541 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 542 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 543 | OTHER_LDFLAGS = ( 544 | "-ObjC", 545 | "-lc++", 546 | "$(inherited)", 547 | ); 548 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativePOS.app/ReactNativePOS"; 551 | }; 552 | name = Debug; 553 | }; 554 | 00E356F71AD99517003FC87E /* Release */ = { 555 | isa = XCBuildConfiguration; 556 | buildSettings = { 557 | BUNDLE_LOADER = "$(TEST_HOST)"; 558 | COPY_PHASE_STRIP = NO; 559 | INFOPLIST_FILE = ReactNativePOSTests/Info.plist; 560 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 561 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 562 | OTHER_LDFLAGS = ( 563 | "-ObjC", 564 | "-lc++", 565 | "$(inherited)", 566 | ); 567 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 568 | PRODUCT_NAME = "$(TARGET_NAME)"; 569 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativePOS.app/ReactNativePOS"; 570 | }; 571 | name = Release; 572 | }; 573 | 13B07F941A680F5B00A75B9A /* Debug */ = { 574 | isa = XCBuildConfiguration; 575 | buildSettings = { 576 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 577 | CURRENT_PROJECT_VERSION = 1; 578 | DEAD_CODE_STRIPPING = NO; 579 | INFOPLIST_FILE = ReactNativePOS/Info.plist; 580 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 581 | OTHER_LDFLAGS = ( 582 | "$(inherited)", 583 | "-ObjC", 584 | "-lc++", 585 | ); 586 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 587 | PRODUCT_NAME = ReactNativePOS; 588 | VERSIONING_SYSTEM = "apple-generic"; 589 | }; 590 | name = Debug; 591 | }; 592 | 13B07F951A680F5B00A75B9A /* Release */ = { 593 | isa = XCBuildConfiguration; 594 | buildSettings = { 595 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 596 | CURRENT_PROJECT_VERSION = 1; 597 | INFOPLIST_FILE = ReactNativePOS/Info.plist; 598 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 599 | OTHER_LDFLAGS = ( 600 | "$(inherited)", 601 | "-ObjC", 602 | "-lc++", 603 | ); 604 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 605 | PRODUCT_NAME = ReactNativePOS; 606 | VERSIONING_SYSTEM = "apple-generic"; 607 | }; 608 | name = Release; 609 | }; 610 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 614 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 615 | CLANG_ANALYZER_NONNULL = YES; 616 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 617 | CLANG_WARN_INFINITE_RECURSION = YES; 618 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 619 | DEBUG_INFORMATION_FORMAT = dwarf; 620 | ENABLE_TESTABILITY = YES; 621 | GCC_NO_COMMON_BLOCKS = YES; 622 | INFOPLIST_FILE = "ReactNativePOS-tvOS/Info.plist"; 623 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 624 | OTHER_LDFLAGS = ( 625 | "$(inherited)", 626 | "-ObjC", 627 | "-lc++", 628 | ); 629 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativePOS-tvOS"; 630 | PRODUCT_NAME = "$(TARGET_NAME)"; 631 | SDKROOT = appletvos; 632 | TARGETED_DEVICE_FAMILY = 3; 633 | TVOS_DEPLOYMENT_TARGET = 9.2; 634 | }; 635 | name = Debug; 636 | }; 637 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 638 | isa = XCBuildConfiguration; 639 | buildSettings = { 640 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 641 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 642 | CLANG_ANALYZER_NONNULL = YES; 643 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 644 | CLANG_WARN_INFINITE_RECURSION = YES; 645 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 646 | COPY_PHASE_STRIP = NO; 647 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 648 | GCC_NO_COMMON_BLOCKS = YES; 649 | INFOPLIST_FILE = "ReactNativePOS-tvOS/Info.plist"; 650 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 651 | OTHER_LDFLAGS = ( 652 | "$(inherited)", 653 | "-ObjC", 654 | "-lc++", 655 | ); 656 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativePOS-tvOS"; 657 | PRODUCT_NAME = "$(TARGET_NAME)"; 658 | SDKROOT = appletvos; 659 | TARGETED_DEVICE_FAMILY = 3; 660 | TVOS_DEPLOYMENT_TARGET = 9.2; 661 | }; 662 | name = Release; 663 | }; 664 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 665 | isa = XCBuildConfiguration; 666 | buildSettings = { 667 | BUNDLE_LOADER = "$(TEST_HOST)"; 668 | CLANG_ANALYZER_NONNULL = YES; 669 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 670 | CLANG_WARN_INFINITE_RECURSION = YES; 671 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 672 | DEBUG_INFORMATION_FORMAT = dwarf; 673 | ENABLE_TESTABILITY = YES; 674 | GCC_NO_COMMON_BLOCKS = YES; 675 | INFOPLIST_FILE = "ReactNativePOS-tvOSTests/Info.plist"; 676 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 677 | OTHER_LDFLAGS = ( 678 | "$(inherited)", 679 | "-ObjC", 680 | "-lc++", 681 | ); 682 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativePOS-tvOSTests"; 683 | PRODUCT_NAME = "$(TARGET_NAME)"; 684 | SDKROOT = appletvos; 685 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativePOS-tvOS.app/ReactNativePOS-tvOS"; 686 | TVOS_DEPLOYMENT_TARGET = 10.1; 687 | }; 688 | name = Debug; 689 | }; 690 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 691 | isa = XCBuildConfiguration; 692 | buildSettings = { 693 | BUNDLE_LOADER = "$(TEST_HOST)"; 694 | CLANG_ANALYZER_NONNULL = YES; 695 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 696 | CLANG_WARN_INFINITE_RECURSION = YES; 697 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 698 | COPY_PHASE_STRIP = NO; 699 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 700 | GCC_NO_COMMON_BLOCKS = YES; 701 | INFOPLIST_FILE = "ReactNativePOS-tvOSTests/Info.plist"; 702 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 703 | OTHER_LDFLAGS = ( 704 | "$(inherited)", 705 | "-ObjC", 706 | "-lc++", 707 | ); 708 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativePOS-tvOSTests"; 709 | PRODUCT_NAME = "$(TARGET_NAME)"; 710 | SDKROOT = appletvos; 711 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativePOS-tvOS.app/ReactNativePOS-tvOS"; 712 | TVOS_DEPLOYMENT_TARGET = 10.1; 713 | }; 714 | name = Release; 715 | }; 716 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 717 | isa = XCBuildConfiguration; 718 | buildSettings = { 719 | ALWAYS_SEARCH_USER_PATHS = NO; 720 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 721 | CLANG_CXX_LIBRARY = "libc++"; 722 | CLANG_ENABLE_MODULES = YES; 723 | CLANG_ENABLE_OBJC_ARC = YES; 724 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 725 | CLANG_WARN_BOOL_CONVERSION = YES; 726 | CLANG_WARN_COMMA = YES; 727 | CLANG_WARN_CONSTANT_CONVERSION = YES; 728 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 729 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 730 | CLANG_WARN_EMPTY_BODY = YES; 731 | CLANG_WARN_ENUM_CONVERSION = YES; 732 | CLANG_WARN_INFINITE_RECURSION = YES; 733 | CLANG_WARN_INT_CONVERSION = YES; 734 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 735 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 736 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 737 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 738 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 739 | CLANG_WARN_STRICT_PROTOTYPES = YES; 740 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 741 | CLANG_WARN_UNREACHABLE_CODE = YES; 742 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 743 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 744 | COPY_PHASE_STRIP = NO; 745 | ENABLE_STRICT_OBJC_MSGSEND = YES; 746 | ENABLE_TESTABILITY = YES; 747 | GCC_C_LANGUAGE_STANDARD = gnu99; 748 | GCC_DYNAMIC_NO_PIC = NO; 749 | GCC_NO_COMMON_BLOCKS = YES; 750 | GCC_OPTIMIZATION_LEVEL = 0; 751 | GCC_PREPROCESSOR_DEFINITIONS = ( 752 | "DEBUG=1", 753 | "$(inherited)", 754 | ); 755 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 756 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 757 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 758 | GCC_WARN_UNDECLARED_SELECTOR = YES; 759 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 760 | GCC_WARN_UNUSED_FUNCTION = YES; 761 | GCC_WARN_UNUSED_VARIABLE = YES; 762 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 763 | MTL_ENABLE_DEBUG_INFO = YES; 764 | ONLY_ACTIVE_ARCH = YES; 765 | SDKROOT = iphoneos; 766 | }; 767 | name = Debug; 768 | }; 769 | 83CBBA211A601CBA00E9B192 /* Release */ = { 770 | isa = XCBuildConfiguration; 771 | buildSettings = { 772 | ALWAYS_SEARCH_USER_PATHS = NO; 773 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 774 | CLANG_CXX_LIBRARY = "libc++"; 775 | CLANG_ENABLE_MODULES = YES; 776 | CLANG_ENABLE_OBJC_ARC = YES; 777 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 778 | CLANG_WARN_BOOL_CONVERSION = YES; 779 | CLANG_WARN_COMMA = YES; 780 | CLANG_WARN_CONSTANT_CONVERSION = YES; 781 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 782 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 783 | CLANG_WARN_EMPTY_BODY = YES; 784 | CLANG_WARN_ENUM_CONVERSION = YES; 785 | CLANG_WARN_INFINITE_RECURSION = YES; 786 | CLANG_WARN_INT_CONVERSION = YES; 787 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 788 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 789 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 790 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 791 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 792 | CLANG_WARN_STRICT_PROTOTYPES = YES; 793 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 794 | CLANG_WARN_UNREACHABLE_CODE = YES; 795 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 796 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 797 | COPY_PHASE_STRIP = YES; 798 | ENABLE_NS_ASSERTIONS = NO; 799 | ENABLE_STRICT_OBJC_MSGSEND = YES; 800 | GCC_C_LANGUAGE_STANDARD = gnu99; 801 | GCC_NO_COMMON_BLOCKS = YES; 802 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 803 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 804 | GCC_WARN_UNDECLARED_SELECTOR = YES; 805 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 806 | GCC_WARN_UNUSED_FUNCTION = YES; 807 | GCC_WARN_UNUSED_VARIABLE = YES; 808 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 809 | MTL_ENABLE_DEBUG_INFO = NO; 810 | SDKROOT = iphoneos; 811 | VALIDATE_PRODUCT = YES; 812 | }; 813 | name = Release; 814 | }; 815 | /* End XCBuildConfiguration section */ 816 | 817 | /* Begin XCConfigurationList section */ 818 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativePOSTests" */ = { 819 | isa = XCConfigurationList; 820 | buildConfigurations = ( 821 | 00E356F61AD99517003FC87E /* Debug */, 822 | 00E356F71AD99517003FC87E /* Release */, 823 | ); 824 | defaultConfigurationIsVisible = 0; 825 | defaultConfigurationName = Release; 826 | }; 827 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativePOS" */ = { 828 | isa = XCConfigurationList; 829 | buildConfigurations = ( 830 | 13B07F941A680F5B00A75B9A /* Debug */, 831 | 13B07F951A680F5B00A75B9A /* Release */, 832 | ); 833 | defaultConfigurationIsVisible = 0; 834 | defaultConfigurationName = Release; 835 | }; 836 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativePOS-tvOS" */ = { 837 | isa = XCConfigurationList; 838 | buildConfigurations = ( 839 | 2D02E4971E0B4A5E006451C7 /* Debug */, 840 | 2D02E4981E0B4A5E006451C7 /* Release */, 841 | ); 842 | defaultConfigurationIsVisible = 0; 843 | defaultConfigurationName = Release; 844 | }; 845 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativePOS-tvOSTests" */ = { 846 | isa = XCConfigurationList; 847 | buildConfigurations = ( 848 | 2D02E4991E0B4A5E006451C7 /* Debug */, 849 | 2D02E49A1E0B4A5E006451C7 /* Release */, 850 | ); 851 | defaultConfigurationIsVisible = 0; 852 | defaultConfigurationName = Release; 853 | }; 854 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativePOS" */ = { 855 | isa = XCConfigurationList; 856 | buildConfigurations = ( 857 | 83CBBA201A601CBA00E9B192 /* Debug */, 858 | 83CBBA211A601CBA00E9B192 /* Release */, 859 | ); 860 | defaultConfigurationIsVisible = 0; 861 | defaultConfigurationName = Release; 862 | }; 863 | /* End XCConfigurationList section */ 864 | }; 865 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 866 | } 867 | -------------------------------------------------------------------------------- /ios/ReactNativePOS.xcodeproj/xcshareddata/xcschemes/ReactNativePOS-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ReactNativePOS.xcodeproj/xcshareddata/xcschemes/ReactNativePOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ReactNativePOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/ReactNativePOS/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"ReactNativePOS" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/ReactNativePOS/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/ReactNativePOS/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/ReactNativePOS/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ReactNativePOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativePOS 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | UIAppFonts 57 | 58 | AntDesign.ttf 59 | Entypo.ttf 60 | EvilIcons.ttf 61 | Feather.ttf 62 | FontAwesome.ttf 63 | FontAwesome5_Brands.ttf 64 | FontAwesome5_Regular.ttf 65 | FontAwesome5_Solid.ttf 66 | Fontisto.ttf 67 | Foundation.ttf 68 | Ionicons.ttf 69 | MaterialCommunityIcons.ttf 70 | MaterialIcons.ttf 71 | Octicons.ttf 72 | Roboto_medium.ttf 73 | Roboto.ttf 74 | rubicon-icon-font.ttf 75 | SimpleLineIcons.ttf 76 | Zocial.ttf 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /ios/ReactNativePOS/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/ReactNativePOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/ReactNativePOSTests/ReactNativePOSTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 16 | 17 | @interface ReactNativePOSTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation ReactNativePOSTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | #ifdef DEBUG 44 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 45 | if (level >= RCTLogLevelError) { 46 | redboxError = message; 47 | } 48 | }); 49 | #endif 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 | #ifdef DEBUG 64 | RCTSetLogFunction(RCTDefaultLogFunction); 65 | #endif 66 | 67 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 68 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 69 | } 70 | 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativePOS", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-community/async-storage": "^1.6.2", 14 | "axios": "^0.19.0", 15 | "native-base": "^2.13.8", 16 | "react": "16.9.0", 17 | "react-dom": "^16.11.0", 18 | "react-native": "0.61.4", 19 | "react-native-elements": "^1.2.7", 20 | "react-native-gesture-handler": "^1.5.0", 21 | "react-native-linear-gradient": "^2.5.6", 22 | "react-native-reanimated": "^1.4.0", 23 | "react-native-screens": "^1.0.0-alpha.23", 24 | "react-native-splash-screen": "^3.2.0", 25 | "react-native-touchable-scale": "^2.1.0", 26 | "react-native-vector-icons": "^6.6.0", 27 | "react-navigation": "^4.0.10", 28 | "react-navigation-drawer": "^2.3.3", 29 | "react-navigation-stack": "^1.10.3", 30 | "react-navigation-tabs": "^2.5.6", 31 | "react-redux": "^7.1.3", 32 | "redux": "^4.0.4", 33 | "redux-promise-middleware": "^6.1.2" 34 | }, 35 | "devDependencies": { 36 | "@babel/core": "7.6.4", 37 | "@babel/runtime": "7.6.3", 38 | "@react-native-community/eslint-config": "0.0.5", 39 | "babel-jest": "24.9.0", 40 | "eslint": "6.6.0", 41 | "jest": "24.9.0", 42 | "metro-react-native-babel-preset": "0.56.3", 43 | "react-test-renderer": "16.9.0", 44 | "redux-logger": "^3.0.6" 45 | }, 46 | "jest": { 47 | "preset": "react-native" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /screenshot/AddNewCategory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/AddNewCategory.png -------------------------------------------------------------------------------- /screenshot/AddNewProduct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/AddNewProduct.png -------------------------------------------------------------------------------- /screenshot/DataCategory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/DataCategory.png -------------------------------------------------------------------------------- /screenshot/DataProduct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/DataProduct.png -------------------------------------------------------------------------------- /screenshot/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/Icon.png -------------------------------------------------------------------------------- /screenshot/Login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/Login.png -------------------------------------------------------------------------------- /screenshot/OrderList.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/screenshot/OrderList.png -------------------------------------------------------------------------------- /src/Redux/Actions/auth.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | import AsyncStorage from '@react-native-community/async-storage'; 3 | 4 | export const register = (input) => { 5 | return { 6 | type: 'REGISTER', 7 | payload: axios.post('https://pointofsalesapp.herokuapp.com/api/user/register/',input) 8 | }; 9 | }; 10 | 11 | export const login = (input) => { 12 | return { 13 | type: 'LOGIN', 14 | payload: axios.post('https://pointofsalesapp.herokuapp.com/api/user/login/',input) 15 | }; 16 | }; 17 | 18 | export const getItem = () => { 19 | return { 20 | type: 'ITEM', 21 | payload: AsyncStorage.getItem('user') 22 | } 23 | } -------------------------------------------------------------------------------- /src/Redux/Actions/categories.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | export const getCategories = (item, page, token) => { 4 | return { 5 | type: 'GET_CATEGORIES', 6 | payload: axios.get ('https://pointofsalesapp.herokuapp.com/api/category/',{ 7 | params: { 8 | item, 9 | page 10 | }, 11 | headers: {"x-access-token":token}, 12 | }) 13 | }; 14 | }; 15 | 16 | export const postCategories = (input, token) => { 17 | return { 18 | type: 'POST_CATEGORIES', 19 | payload: axios.post ('https://pointofsalesapp.herokuapp.com/api/category/', input, { headers: {"x-access-token":token} } ) 20 | }; 21 | }; 22 | 23 | export const patchCategories = (input, token) => { 24 | const id = input.id; 25 | return { 26 | type: 'PATCH_CATEGORIES', 27 | payload: axios.put ('https://pointofsalesapp.herokuapp.com/api/category/'+id, input, { headers: {"x-access-token":token} }) 28 | }; 29 | }; 30 | 31 | export const deleteCategories = (input, token) => { 32 | const id = input.id; 33 | return { 34 | type: 'DELETE_CATEGORIES', 35 | payload: axios.delete ('https://pointofsalesapp.herokuapp.com/api/category/'+id, { headers: {"x-access-token":token} }) 36 | }; 37 | }; 38 | -------------------------------------------------------------------------------- /src/Redux/Actions/product.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | export const getProduct = (item, page, token) => { 4 | return { 5 | type: 'GET_PRODUCT', 6 | payload: axios.get ('https://pointofsalesapp.herokuapp.com/api/product/',{ 7 | params: { 8 | item, 9 | page 10 | }, 11 | headers: {"x-access-token":token}, 12 | }) 13 | }; 14 | }; 15 | 16 | export const postProduct = (input, token) => { 17 | return { 18 | type: 'POST_PRODUCT', 19 | payload: axios.post ('https://pointofsalesapp.herokuapp.com/api/product/', input, { headers: {"x-access-token":token} } ) 20 | }; 21 | }; 22 | 23 | export const patchProduct = (input, token) => { 24 | const id = input.id; 25 | return { 26 | type: 'PATCH_PRODUCT', 27 | payload: axios.put ('https://pointofsalesapp.herokuapp.com/api/product/'+id, input, { headers: {"x-access-token":token} }) 28 | }; 29 | }; 30 | 31 | export const deleteProduct = (input, token) => { 32 | const id = input.id; 33 | return { 34 | type: 'DELETE_PRODUCT', 35 | payload: axios.delete ('https://pointofsalesapp.herokuapp.com/api/product/'+id, { headers: {"x-access-token":token} }) 36 | }; 37 | }; 38 | -------------------------------------------------------------------------------- /src/Redux/Reducers/auth.js: -------------------------------------------------------------------------------- 1 | const initialState = { 2 | resultsLogin: [], 3 | resultsRegister: [], 4 | resultItem: [], 5 | isLoading: false, 6 | isRejected: false, 7 | isFulfilled: false, 8 | }; 9 | 10 | const auth = (state = initialState, action) => { 11 | switch (action.type) { 12 | 13 | //LOGIN 14 | case 'LOGIN_PENDING': 15 | return { 16 | ...state, 17 | isLoading: true, 18 | isRejected: false, 19 | isFulfilled: false, 20 | }; 21 | case 'LOGIN_REJECTED': 22 | return { 23 | ...state, 24 | isLoading: false, 25 | isRejected: true, 26 | }; 27 | case 'LOGIN_FULFILLED': 28 | return { 29 | ...state, 30 | isLoading: false, 31 | isFulfilled: true, 32 | resultsLogin: action.payload.data.result, 33 | }; 34 | 35 | //REGISTER 36 | case 'REGISTER_PENDING': 37 | return { 38 | ...state, 39 | isLoading: true, 40 | isRejected: false, 41 | isFulfilled: false, 42 | }; 43 | case 'REGISTER_REJECTED': 44 | return { 45 | ...state, 46 | isLoading: false, 47 | isRejected: true, 48 | }; 49 | case 'REGISTER_FULFILLED': 50 | return { 51 | ...state, 52 | isLoading: false, 53 | isFulfilled: true, 54 | resultsRegister: action.payload, 55 | }; 56 | 57 | //GET ITEM 58 | case 'ITEM_PENDING': 59 | return { 60 | ...state, 61 | isLoading: true, 62 | isRejected: false, 63 | isFulfilled: false, 64 | }; 65 | case 'ITEM_REJECTED': 66 | return { 67 | ...state, 68 | isLoading: false, 69 | isRejected: true, 70 | }; 71 | case 'ITEM_FULFILLED': 72 | return { 73 | ...state, 74 | isLoading: false, 75 | isFulfilled: true, 76 | resultItem: JSON.parse(action.payload) 77 | }; 78 | 79 | //DEFAULT STATE 80 | default: 81 | return { 82 | ...state, 83 | } 84 | } 85 | }; 86 | 87 | export default auth; -------------------------------------------------------------------------------- /src/Redux/Reducers/categories.js: -------------------------------------------------------------------------------- 1 | const initialState = { 2 | listCategory: [], 3 | isLoading: false, 4 | isRejected: false, 5 | isFulfilled: false, 6 | }; 7 | 8 | const categories = (state = initialState, action) => { 9 | switch (action.type) { 10 | 11 | // GET CATEGORIES 12 | case 'GET_CATEGORIES_PENDING': 13 | return { 14 | ...state, 15 | isLoading: true, 16 | isRejected: false, 17 | isFulfilled: false, 18 | }; 19 | case 'GET_CATEGORIES_REJECTED': 20 | return { 21 | ...state, 22 | isLoading: false, 23 | isRejected: true, 24 | }; 25 | case 'GET_CATEGORIES_FULFILLED': 26 | return { 27 | ...state, 28 | isLoading: false, 29 | isFulfilled: true, 30 | listCategory: action.payload.data.result.response, 31 | }; 32 | 33 | // POST CATEGORIES 34 | case 'POST_CATEGORIES_PENDING': 35 | return { 36 | ...state, 37 | isLoading: true, 38 | isRejected: false, 39 | isFulfilled: false, 40 | }; 41 | case 'POST_CATEGORIES_REJECTED': 42 | return { 43 | ...state, 44 | isLoading: false, 45 | isRejected: true, 46 | }; 47 | case 'POST_CATEGORIES_FULFILLED': 48 | if (action.payload.data.status == 200) { 49 | const categoryAfterAdd = state.listCategory.slice(0) 50 | categoryAfterAdd.push(action.payload.data.result[0]) 51 | return { 52 | ...state, 53 | isLoading: false, 54 | isFulfilled: true, 55 | listCategory: categoryAfterAdd, 56 | }; 57 | } else { 58 | return { 59 | ...state, 60 | isLoading: false, 61 | isFulfilled: true, 62 | } 63 | } 64 | 65 | // EDIT CATEGORIES 66 | case 'PATCH_CATEGORIES_PENDING': 67 | return { 68 | ...state, 69 | isLoading: true, 70 | isRejected: false, 71 | isFulfilled: false, 72 | }; 73 | case 'PATCH_CATEGORIES_REJECTED': 74 | return { 75 | ...state, 76 | isLoading: false, 77 | isRejected: true, 78 | }; 79 | case 'PATCH_CATEGORIES_FULFILLED': 80 | const listCategoryAfterPatch = state.listCategory.map (categories => { 81 | if (action.payload.data.status == 200) { 82 | if (categories.id == action.payload.data.response.id) { 83 | return action.payload.data.response; 84 | } 85 | } 86 | return categories; 87 | }); 88 | return { 89 | ...state, 90 | isLoading: false, 91 | isFulfilled: true, 92 | listCategory: listCategoryAfterPatch 93 | }; 94 | 95 | // DELETE CATEGORIES 96 | case 'DELETE_CATEGORIES_PENDING': 97 | return { 98 | ...state, 99 | isLoading: true, 100 | isRejected: false, 101 | isFulfilled: false, 102 | }; 103 | case 'DELETE_CATEGORIES_REJECTED': 104 | return { 105 | ...state, 106 | isLoading: false, 107 | isRejected: true, 108 | }; 109 | case 'DELETE_CATEGORIES_FULFILLED': 110 | const dataAfterDelete = state.listCategory.filter((value) => { 111 | return value.id != action.payload.data.id 112 | }); 113 | return { 114 | ...state, 115 | isLoading: false, 116 | isFulfilled: true, 117 | listCategory: dataAfterDelete, 118 | }; 119 | 120 | default: 121 | return state; 122 | } 123 | }; 124 | 125 | export default categories; -------------------------------------------------------------------------------- /src/Redux/Reducers/index.js: -------------------------------------------------------------------------------- 1 | import product from './product'; 2 | import categories from './categories'; 3 | import auth from './auth'; 4 | import {combineReducers} from "redux"; 5 | 6 | export default combineReducers({ 7 | auth, 8 | product, 9 | categories 10 | }) -------------------------------------------------------------------------------- /src/Redux/Reducers/product.js: -------------------------------------------------------------------------------- 1 | const initialState = { 2 | listProduct: [], 3 | isLoading: false, 4 | isRejected: false, 5 | isFulfilled: false, 6 | }; 7 | 8 | const product = (state = initialState, action) => { 9 | switch (action.type) { 10 | // GET PRODUCT 11 | case 'GET_PRODUCT_PENDING': 12 | return { 13 | ...state, 14 | isLoading: true, 15 | isRejected: false, 16 | isFulfilled: false, 17 | }; 18 | case 'GET_PRODUCT_REJECTED': 19 | return { 20 | ...state, 21 | isLoading: false, 22 | isRejected: true, 23 | }; 24 | case 'GET_PRODUCT_FULFILLED': 25 | return { 26 | ...state, 27 | isLoading: false, 28 | isFulfilled: true, 29 | listProduct: action.payload.data.result.response, 30 | }; 31 | 32 | //POST PRODUCT 33 | case 'POST_PRODUCT_PENDING': 34 | return { 35 | ...state, 36 | isLoading: true, 37 | isRejected: false, 38 | isFulfilled: false, 39 | }; 40 | case 'POST_PRODUCT_REJECTED': 41 | return { 42 | ...state, 43 | isLoading: false, 44 | isRejected: true, 45 | }; 46 | case 'POST_PRODUCT_FULFILLED': 47 | if (action.payload.data.status == 200) { 48 | const productAfterAdd = state.listProduct.slice(0) 49 | productAfterAdd.push(action.payload.data.result[0]) 50 | return { 51 | ...state, 52 | isLoading: false, 53 | isFulfilled: true, 54 | listProduct: productAfterAdd, 55 | }; 56 | } else { 57 | return { 58 | ...state, 59 | isLoading: false, 60 | isFulfilled: true, 61 | } 62 | } 63 | 64 | //EDIT PRODUCT 65 | case 'PATCH_PRODUCT_PENDING': 66 | return { 67 | ...state, 68 | isLoading: true, 69 | isRejected: false, 70 | isFulfilled: false, 71 | }; 72 | case 'PATCH_PRODUCT_REJECTED': 73 | return { 74 | ...state, 75 | isLoading: false, 76 | isRejected: true, 77 | }; 78 | case 'PATCH_PRODUCT_FULFILLED': 79 | const listProductAfterPatch = state.listProduct.map (products => { 80 | if (action.payload.data.status == 200) { 81 | if (products.id == action.payload.data.result[0].id) { 82 | return action.payload.data.result[0]; 83 | } 84 | } 85 | return products; 86 | }); 87 | return { 88 | ...state, 89 | isLoading: false, 90 | isFulfilled: true, 91 | listProduct: listProductAfterPatch 92 | }; 93 | 94 | //DELETE PRODUCT 95 | case 'DELETE_PRODUCT_PENDING': 96 | return { 97 | ...state, 98 | isLoading: true, 99 | isRejected: false, 100 | isFulfilled: false, 101 | }; 102 | case 'DELETE_PRODUCT_REJECTED': 103 | return { 104 | ...state, 105 | isLoading: false, 106 | isRejected: true, 107 | }; 108 | case 'DELETE_PRODUCT_FULFILLED': 109 | const dataAfterDelete = state.listProduct.filter((value) => { 110 | return value.id != action.payload.data.id }); 111 | return { 112 | ...state, 113 | isLoading: false, 114 | isFulfilled: true, 115 | listProduct: dataAfterDelete, 116 | }; 117 | 118 | default: 119 | return state; 120 | } 121 | }; 122 | 123 | export default product; -------------------------------------------------------------------------------- /src/Redux/Store.js: -------------------------------------------------------------------------------- 1 | import { createStore, applyMiddleware } from "redux"; 2 | import { createLogger } from "redux-logger"; 3 | import promiseMiddleware from "redux-promise-middleware"; 4 | import reducer from './Reducers'; 5 | 6 | const logger = createLogger(); 7 | const middleware = applyMiddleware(logger, promiseMiddleware); 8 | const store = createStore(reducer, middleware); 9 | 10 | export default store; -------------------------------------------------------------------------------- /src/Router.js: -------------------------------------------------------------------------------- 1 | import { createStackNavigator } from "react-navigation-stack"; 2 | import { createAppContainer, createSwitchNavigator } from "react-navigation"; 3 | import Login from './screens/Login'; 4 | import Register from './screens/SignUp'; 5 | import TabNavigation from './screens/TabNavigation'; 6 | import AddProduct from '../src/screens/AddProduct'; 7 | import EditProduct from '../src/screens/EditProduct'; 8 | import AddCategory from '../src/screens/AddCategory'; 9 | import EditCategory from '../src/screens/EditCategory'; 10 | 11 | const StackAuth = createStackNavigator( 12 | { 13 | Login, 14 | Register, 15 | }, 16 | { 17 | initialRouteName: 'Login', 18 | headerMode: 'none', 19 | } 20 | ); 21 | 22 | const StackHome = createStackNavigator( 23 | { 24 | TabNavigation, 25 | AddProduct, 26 | AddCategory, 27 | EditProduct, 28 | EditCategory 29 | }, 30 | { 31 | initialRouteName: 'TabNavigation', 32 | headerMode: 'none', 33 | } 34 | ); 35 | 36 | const Router = createSwitchNavigator( 37 | { 38 | StackAuth, 39 | StackHome, 40 | }, 41 | { 42 | initialRouteName: 'StackAuth', 43 | headerMode: 'none', 44 | } 45 | ); 46 | 47 | export default createAppContainer(Router); -------------------------------------------------------------------------------- /src/images/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/Icon.png -------------------------------------------------------------------------------- /src/images/ImageBill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageBill.png -------------------------------------------------------------------------------- /src/images/ImageBillSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageBillSelected.png -------------------------------------------------------------------------------- /src/images/ImageCart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageCart.png -------------------------------------------------------------------------------- /src/images/ImageCategory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageCategory.png -------------------------------------------------------------------------------- /src/images/ImageCategorySelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageCategorySelected.png -------------------------------------------------------------------------------- /src/images/ImageOrder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageOrder.png -------------------------------------------------------------------------------- /src/images/ImageOrderSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageOrderSelected.png -------------------------------------------------------------------------------- /src/images/ImageProduct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageProduct.png -------------------------------------------------------------------------------- /src/images/ImageProductSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageProductSelected.png -------------------------------------------------------------------------------- /src/images/ImageSearch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageSearch.png -------------------------------------------------------------------------------- /src/images/ImageUser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageUser.png -------------------------------------------------------------------------------- /src/images/ImageUserSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldoignatachandra/ReactNative-MsgMart/7656e2508db1a4863382783ae81f7feaef7e512c/src/images/ImageUserSelected.png -------------------------------------------------------------------------------- /src/screens/AddCategory.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import { useDispatch } from 'react-redux'; 3 | import { 4 | Text, 5 | View, 6 | TextInput, 7 | Image, 8 | TouchableOpacity 9 | } from 'react-native'; 10 | import categoryLogo from '../images/ImageCategorySelected.png' 11 | import { postCategories } from '../Redux/Actions/categories'; 12 | import { Toast } from 'native-base'; 13 | import { connect } from 'react-redux'; 14 | 15 | const AddCategory = (props) => { 16 | 17 | const [input, setInput] = useState({name:""}); 18 | const dispatch = useDispatch() 19 | 20 | const showToast = (message, types) => { 21 | Toast.show({ 22 | text: message, 23 | buttonText: "Okay", 24 | type: types == "warning" ? "warning":"success", 25 | duration: 3000, 26 | position: "bottom" 27 | }) 28 | } 29 | 30 | const handleSubmit = (event) => { 31 | dispatch(postCategories (input, props.item.token)) 32 | .then(response => { 33 | if (response.value.data.status === 200) { 34 | showToast("Success New Add Category", "success"); 35 | setTimeout(() => { 36 | props.navigation.navigate('DataCategory'); 37 | }, 500); 38 | } else { 39 | showToast(response.value.data.error, "warning"); 40 | } 41 | }) 42 | .catch(error => alert(error)); 43 | }; 44 | 45 | return ( 46 | <> 47 | 48 | Add New Category 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | Category Name 58 | 59 | 60 | setInput({...input, name: category })} 64 | /> 65 | 66 | 67 | 68 | 69 | 70 | Add 71 | 72 | 73 | 74 | ) 75 | } 76 | 77 | const mapStateToProps = state => { 78 | return { 79 | item : state.auth.resultItem 80 | }; 81 | }; 82 | 83 | export default connect (mapStateToProps) (AddCategory); -------------------------------------------------------------------------------- /src/screens/AddProduct.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import { useDispatch } from 'react-redux'; 3 | import { 4 | Text, 5 | View, 6 | TextInput, 7 | Image, 8 | Picker, 9 | TouchableOpacity 10 | } from 'react-native'; 11 | 12 | import productLogo from '../images/ImageProductSelected.png' 13 | import { postProduct } from '../Redux/Actions/product'; 14 | import { Toast } from 'native-base'; 15 | import { connect } from 'react-redux'; 16 | 17 | const AddProduct = (props) => { 18 | 19 | const [user, setUser] = useState('') 20 | 21 | const [input, setInput] = useState({id:"", name: "", description: "", image: "", category_id: "", price:"" , quantity:"" }); 22 | const dispatch = useDispatch() 23 | 24 | const showToast = (message, types) => { 25 | Toast.show({ 26 | text: message, 27 | buttonText: "Okay", 28 | type: types == "warning" ? "warning":"success", 29 | duration: 3000, 30 | position: "bottom" 31 | }) 32 | } 33 | 34 | const handleSubmit = (event) => { 35 | dispatch(postProduct (input, props.item.token)) 36 | .then(response => { 37 | if (response.value.data.status === 200) { 38 | showToast("Success Add New Product", "success"); 39 | setTimeout(() => { 40 | props.navigation.navigate('DataProduct'); 41 | }, 500); 42 | } else { 43 | showToast(response.value.data.error, "warning"); 44 | } 45 | }) 46 | .catch(error => alert(error)); 47 | }; 48 | 49 | return ( 50 | <> 51 | 52 | Add New Product 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | {/* Product Name */} 62 | 63 | Product Name 64 | 65 | 66 | setInput({...input, name: name })} 71 | /> 72 | 73 | 74 | {/* Product Description */} 75 | 76 | Description 77 | 78 | 79 | setInput({...input, description: description })} 85 | /> 86 | 87 | 88 | {/* Product Image */} 89 | 90 | Image 91 | 92 | 93 | setInput({...input, image: image })} 97 | /> 98 | 99 | 100 | {/* Product Price */} 101 | 102 | Price 103 | 104 | 105 | setInput({...input, price: price })} 110 | /> 111 | 112 | 113 | {/* Product Quantity */} 114 | 115 | Quantity 116 | 117 | 118 | setInput({...input, quantity: quantity })} 123 | /> 124 | 125 | 126 | {/* Product Category */} 127 | 128 | Category 129 | 130 | 131 | 132 | setInput({...input, category_id: itemValue})} 135 | > 136 | {props.dataCategories.map((item, index) => { 137 | return( 138 | 139 | )})} 140 | 141 | 142 | 143 | 144 | 145 | Submit 146 | 147 | 148 | 149 | ) 150 | } 151 | const mapStateToProps = state => { 152 | return { 153 | item : state.auth.resultItem, 154 | dataCategories: state.categories.listCategory, 155 | userDetail: state.auth.resultsLogin 156 | }; 157 | }; 158 | 159 | export default connect (mapStateToProps) (AddProduct); -------------------------------------------------------------------------------- /src/screens/DataCategory.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch, useSelector } from 'react-redux' 3 | import { Text, View, ScrollView, TouchableOpacity } from 'react-native'; 4 | import { connect } from 'react-redux'; 5 | import { getCategories } from '../Redux/Actions/categories'; 6 | import { ListItem, Divider } from 'react-native-elements'; 7 | import Icon from 'react-native-vector-icons/Entypo'; 8 | import TouchableScale from 'react-native-touchable-scale'; 9 | 10 | const DataCategory = (props) => { 11 | 12 | const dispatch = useDispatch(); 13 | const [page, setPage] = useState(0); 14 | const [infoPage, setInfoPage] = useState({maxPage: 0, totalAllCategories: 0}); 15 | const [rowsPerPage, setRowsPerPage] = useState(20); 16 | 17 | //GET ALL DATA CATEGORY 18 | const fetchDataCategory = async () => { 19 | try { 20 | const response = await dispatch( getCategories(rowsPerPage, page + 1, props.item.token)) 21 | setInfoPage (response.value.data.result.infoPage); 22 | } catch (error) { 23 | console.log (error); 24 | } 25 | } 26 | 27 | useEffect(() => { 28 | fetchDataCategory (); 29 | },[page, rowsPerPage]) 30 | 31 | return ( 32 | <> 33 | 34 | Data Category 35 | { props.navigation.navigate('AddCategory') }}> 36 | 37 | 38 | 39 | 40 | {props.dataCategories.map((data, index) => { 41 | return ( 42 | 43 | { props.navigation.navigate('EditCategory',{selectedRow:data})}} 44 | Component={TouchableScale} 45 | friction={90} 46 | tension={100} 47 | activeScale={0.90} 48 | title={data.name} 49 | chevron={{ color: 'black' }} 50 | badge={{ 51 | value: "Halal", textStyle: { color: 'white' }, 52 | badgeStyle: { backgroundColor:"green"} 53 | }} 54 | /> 55 | 56 | 57 | ) 58 | })} 59 | 60 | 61 | ) 62 | } 63 | 64 | const mapStateToProps = state => { 65 | return { 66 | item : state.auth.resultItem, 67 | dataCategories: state.categories.listCategory, 68 | userDetail: state.auth.resultsLogin 69 | }; 70 | }; 71 | 72 | export default connect (mapStateToProps) (DataCategory); -------------------------------------------------------------------------------- /src/screens/DataProduct.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch, useSelector } from 'react-redux' 3 | import { Text, View, ScrollView, TouchableOpacity } from 'react-native'; 4 | import { connect } from 'react-redux'; 5 | import { getProduct, postProduct, patchProduct, deleteProduct } from '../Redux/Actions/product'; 6 | import { ListItem, Divider } from 'react-native-elements'; 7 | import Icon from 'react-native-vector-icons/Entypo'; 8 | import TouchableScale from 'react-native-touchable-scale'; 9 | 10 | const DataProduct = (props) => { 11 | 12 | const dispatch = useDispatch(); 13 | const [page, setPage] = useState(0); 14 | const [infoPage, setInfoPage] = useState({maxPage: 0, totalAllProduct: 0}); 15 | const [rowsPerPage, setRowsPerPage] = useState(20); 16 | 17 | const fetchDataProduct = async () => { 18 | try { 19 | const response = await dispatch( getProduct(rowsPerPage, page + 1, props.item.token)); 20 | setInfoPage (response.value.data.result.infoPage); 21 | } catch (error) { 22 | console.log (error); 23 | } 24 | } 25 | 26 | useEffect(() => { 27 | fetchDataProduct (); 28 | },[page, rowsPerPage, props.dataCategories]) 29 | 30 | return ( 31 | <> 32 | 33 | Data Product 34 | { props.navigation.navigate('AddProduct') }}> 35 | 36 | 37 | 38 | 39 | { props.dataProduct.map((data, index) => { 40 | return ( 41 | 42 | { props.navigation.navigate('EditProduct',{selectedRow:data})}} 43 | Component={TouchableScale} 44 | friction={90} 45 | tension={100} 46 | activeScale={0.90} 47 | title={data.product_name} 48 | titleStyle={{ color: 'black', fontWeight: 'bold' }} 49 | subtitle= { 50 | Price : Rp.{data.price} 51 | Quantity : {data.quantity} 52 | } 53 | leftAvatar={{ rounded: true, source: { uri: data.image } }} 54 | chevron={{ color: 'black' }} 55 | badge={{ 56 | value: data.category, 57 | textStyle: { color: 'white' }, 58 | badgeStyle: { backgroundColor:"red"} 59 | }} 60 | /> 61 | 62 | 63 | ) 64 | })} 65 | 66 | 67 | ) 68 | } 69 | 70 | const mapStateToProps = state => { 71 | return { 72 | item : state.auth.resultItem, 73 | dataProduct: state.product.listProduct, 74 | dataCategories: state.categories.listCategory, 75 | userDetail: state.auth.resultsLogin 76 | }; 77 | }; 78 | 79 | export default connect (mapStateToProps) (DataProduct); -------------------------------------------------------------------------------- /src/screens/EditCategory.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch } from 'react-redux'; 3 | import { 4 | Text, 5 | View, 6 | TextInput, 7 | Image, 8 | TouchableOpacity, 9 | TouchableHighlight, 10 | Modal, 11 | Alert 12 | } from 'react-native'; 13 | import categoryLogo from '../images/ImageCategorySelected.png' 14 | import Icon from 'react-native-vector-icons/Ionicons' 15 | import { patchCategories, deleteCategories } from '../Redux/Actions/categories'; 16 | import { Toast } from 'native-base'; 17 | import { connect } from 'react-redux'; 18 | 19 | const EditCategory = (props) => { 20 | 21 | const [input, setInput] = useState({id:"", name:""}); 22 | const [modal, setModal] = useState(false); 23 | const dispatch = useDispatch() 24 | const { navigation } = props; 25 | 26 | const setModalVisible = (visible) => { 27 | setModal(visible); 28 | } 29 | 30 | const showToast = (message, types) => { 31 | Toast.show({ 32 | text: message, 33 | buttonText: "Okay", 34 | type: types == "warning" ? "warning":"success", 35 | duration: 3000, 36 | position: "bottom" 37 | }) 38 | } 39 | 40 | const handleSubmit = (event) => { 41 | dispatch(patchCategories (input, props.item.token)) 42 | .then(response => { 43 | if (response.value.data.status === 200) { 44 | showToast("Success Edit Category", "success"); 45 | setTimeout(() => { 46 | props.navigation.navigate('DataCategory'); 47 | }, 500); 48 | } else { 49 | showToast(response.value.data.error, "warning"); 50 | } 51 | }).catch(error => alert(error)); 52 | }; 53 | 54 | const handleDelete = (id) => { 55 | dispatch(deleteCategories (id, props.item.token)) 56 | .then(response => { 57 | if (response.value.data.status === 200) { 58 | showToast("Success Delete Category", "success"); 59 | setTimeout(() => { 60 | setModalVisible(!modal); 61 | props.navigation.navigate('DataCategory'); 62 | }, 500); 63 | } else { 64 | showToast(response.value.data.error, "warning"); 65 | setTimeout(() => { 66 | setModalVisible(!modal); 67 | props.navigation.navigate('DataCategory'); 68 | }, 500); 69 | } 70 | }) 71 | .catch(error => alert(error)); 72 | }; 73 | 74 | useEffect(()=>{ 75 | setInput({ 76 | id: navigation.state.params.selectedRow.id, 77 | name: navigation.state.params.selectedRow.name 78 | }) 79 | },[]) 80 | 81 | return ( 82 | <> 83 | {/* Modal Delete */} 84 | 89 | 90 | 91 | 92 | 93 | 94 | Delete Category ( {input.name} ) ? 95 | 96 | 97 | 98 | 99 | 100 | WARNING : 101 | This action CANNOT be undone 102 | 103 | 104 | 105 | 106 | { 108 | setModalVisible(!modal); 109 | }}> 110 | Close 111 | 112 | 113 | { 115 | handleDelete(input); 116 | }}> 117 | Delete 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | Edit Category 126 | { setModal(true) }}> 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | Category Name 138 | 139 | 140 | setInput({...input, name: category })} 144 | value={input.name} 145 | /> 146 | 147 | 148 | 149 | 150 | 151 | Edit 152 | 153 | 154 | 155 | ) 156 | } 157 | 158 | const mapStateToProps = state => { 159 | return { 160 | item : state.auth.resultItem 161 | }; 162 | }; 163 | 164 | export default connect (mapStateToProps) (EditCategory); -------------------------------------------------------------------------------- /src/screens/EditProduct.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch } from 'react-redux'; 3 | import { 4 | Text, 5 | View, 6 | TextInput, 7 | Image, 8 | TouchableOpacity, 9 | TouchableHighlight, 10 | Modal, 11 | Alert, 12 | Picker 13 | } from 'react-native'; 14 | import categoryLogo from '../images/ImageProductSelected.png' 15 | import Icon from 'react-native-vector-icons/Ionicons' 16 | import { patchProduct, deleteProduct } from '../Redux/Actions/product'; 17 | import { Toast } from 'native-base'; 18 | import { connect } from 'react-redux'; 19 | 20 | const EditProduct = (props) => { 21 | 22 | const [input, setInput] = useState({id:"", name: "", description: "", image: "", category_id: "", price:"" , quantity:""}); 23 | const [modal, setModal] = useState(false); 24 | const dispatch = useDispatch() 25 | const { navigation } = props; 26 | 27 | const setModalVisible = (visible) => { 28 | setModal(visible); 29 | } 30 | 31 | const showToast = (message, types) => { 32 | Toast.show({ 33 | text: message, 34 | buttonText: "Okay", 35 | type: types == "warning" ? "warning":"success", 36 | duration: 3000, 37 | position: "bottom" 38 | }) 39 | } 40 | 41 | const handleSubmit = (event) => { 42 | 43 | dispatch(patchProduct (input, props.item.token)) 44 | .then(response => { 45 | console.log(response); 46 | if (response.value.data.status === 200) { 47 | showToast("Success Edit Product", "success"); 48 | setTimeout(() => { 49 | props.navigation.navigate('DataProduct'); 50 | }, 500); 51 | } else { 52 | showToast(response.value.data.error, "warning"); 53 | } 54 | }).catch(error => alert(error)); 55 | }; 56 | 57 | const handleDelete = (id) => { 58 | dispatch(deleteProduct (id, props.item.token)) 59 | .then(response => { 60 | if (response.value.data.status === 200) { 61 | showToast("Success Delete Product", "success"); 62 | setTimeout(() => { 63 | setModalVisible(!modal); 64 | props.navigation.navigate('DataProduct'); 65 | }, 500); 66 | } else { 67 | showToast(response.value.data.error, "warning"); 68 | setTimeout(() => { 69 | setModalVisible(!modal); 70 | props.navigation.navigate('DataProduct'); 71 | }, 500); 72 | } 73 | }) 74 | .catch(error => alert(error)); 75 | }; 76 | 77 | useEffect(()=>{ 78 | setInput(navigation.state.params.selectedRow) 79 | },[]) 80 | 81 | return ( 82 | <> 83 | {/* Modal Delete */} 84 | 89 | 90 | 91 | 92 | 93 | 94 | Delete Category ( {input.product_name} ) ? 95 | 96 | 97 | 98 | 99 | 100 | WARNING : 101 | This action CANNOT be undone 102 | 103 | 104 | 105 | 106 | { 108 | setModalVisible(!modal); 109 | }}> 110 | Close 111 | 112 | 113 | { 115 | handleDelete(input); 116 | }}> 117 | Delete 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | Edit Product 126 | { setModal(true) }}> 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | {/* Product Name */} 137 | 138 | Product Name 139 | 140 | 141 | setInput({...input, name: name })} 146 | value={input.product_name} 147 | /> 148 | 149 | 150 | {/* Product Description */} 151 | 152 | Description 153 | 154 | 155 | setInput({...input, description: description })} 161 | value={input.description} 162 | /> 163 | 164 | 165 | {/* Product Image */} 166 | 167 | Image 168 | 169 | 170 | setInput({...input, image: image })} 174 | value={input.image} 175 | /> 176 | 177 | 178 | {/* Product Price */} 179 | 180 | Price 181 | 182 | 183 | setInput({...input, price: price })} 188 | value={input.price.toString()} 189 | /> 190 | 191 | 192 | {/* Product Quantity */} 193 | 194 | Quantity 195 | 196 | 197 | setInput({...input, quantity: quantity })} 202 | value={input.quantity.toString()} 203 | /> 204 | 205 | 206 | {/* Product Category */} 207 | 208 | Category 209 | 210 | 211 | 212 | setInput({...input, category_id: itemValue})} 215 | > 216 | {props.dataCategories.map((item,index) => { 217 | return( 218 | 219 | )})} 220 | 221 | 222 | 223 | 224 | 225 | Edit 226 | 227 | 228 | 229 | ) 230 | } 231 | 232 | const mapStateToProps = state => { 233 | return { 234 | item : state.auth.resultItem, 235 | dataCategories: state.categories.listCategory, 236 | userDetail: state.auth.resultsLogin 237 | }; 238 | }; 239 | 240 | export default connect (mapStateToProps) (EditProduct); -------------------------------------------------------------------------------- /src/screens/History.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Text, View } from 'react-native'; 3 | 4 | const History = () => { 5 | return ( 6 | 7 | 8 | SCREEN DATA HISTORY 9 | 10 | 11 | ) 12 | } 13 | 14 | export default History; -------------------------------------------------------------------------------- /src/screens/Login.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch, useSelector } from 'react-redux' 3 | import { StyleSheet, View, Image, TouchableOpacity, StatusBar, ScrollView } from 'react-native'; 4 | import { Item, Input, Form, Label, Text, Toast } from 'native-base'; 5 | import { login, getItem } from "../Redux/Actions/auth"; 6 | import { connect } from "react-redux"; 7 | import AsyncStorage from '@react-native-community/async-storage'; 8 | 9 | const Login = (props) => { 10 | 11 | const [dataLogin, setDataLogin] = useState({username: '', password: ''}); 12 | const dispatch = useDispatch(); 13 | let inputs = {}; 14 | 15 | const focusTheField = (id) => { 16 | inputs[id]._root.focus() 17 | }; 18 | 19 | const handleLogin = () => { 20 | dispatch(login(dataLogin)) 21 | .then(response => { 22 | if (response.value.data.status === 200) { 23 | AsyncStorage.setItem('user', JSON.stringify(response.value.data.result), () => {}); 24 | showToast("Login Success", "success"); 25 | checkUser(); 26 | setTimeout(() => { 27 | props.navigation.navigate('TabNavigation'); 28 | }, 500); 29 | } else { 30 | showToast(response.value.data.error, "warning"); 31 | } 32 | }).catch(error => alert(error.value.data.error)); 33 | }; 34 | 35 | const checkUser = () => { 36 | dispatch(getItem()) 37 | .then(response => { 38 | if (response.value != null) { 39 | props.navigation.navigate('TabNavigation'); 40 | showToast("Login Success", "success"); 41 | } 42 | }) 43 | .catch(error => { 44 | console.log (error); 45 | }) 46 | } 47 | 48 | const showToast = (message, types) => { 49 | Toast.show({ 50 | text: message, 51 | buttonText: "Okay", 52 | type: types == "warning" ? "warning" : "success", 53 | duration: 3000, 54 | position: "bottom" 55 | }) 56 | } 57 | 58 | useEffect(() => { 59 | const check = setTimeout(() => { 60 | checkUser(); 61 | }, 0); 62 | 63 | return () => { 64 | clearTimeout(check) 65 | } 66 | },[]); 67 | 68 | return ( 69 | 70 | 71 | 72 | {/* Logo */} 73 | 74 | 75 | 76 | 77 | {/* Form Login */} 78 |
79 | 80 | 83 | { setDataLogin({...dataLogin, username: text})}} 85 | value={dataLogin.username} 86 | style={styles.input} 87 | returnKeyType={"next"} 88 | blurOnSubmit={ false } 89 | onSubmitEditing={() => { focusTheField('username') }} 90 | /> 91 | 92 | 93 | 96 | {setDataLogin({...dataLogin, password: text})}} 98 | value={dataLogin.password} 99 | style={styles.input} 100 | secureTextEntry={true} 101 | returnKeyType={"go"} 102 | getRef={input => { inputs['password'] = input }} 103 | onSubmitEditing={() => {focusTheField('password') }} 104 | /> 105 | 106 |
107 | 108 | {/* Button Login */} 109 | handleLogin()}> 110 | Login 111 | 112 | 113 | {/* Button Go To Register Screen */} 114 | 115 | Don't Have An Account ? 116 | {props.navigation.navigate('Register')}}> 117 | Register 118 | 119 | 120 | 121 |
122 | ) 123 | }; 124 | 125 | export default connect()(Login); 126 | 127 | const styles = StyleSheet.create({ 128 | container: { 129 | flex: 1, 130 | backgroundColor: '#ecf0f1' 131 | }, 132 | containerImage: { 133 | flex: 1, 134 | resizeMode: 'cover', 135 | justifyContent: 'center', 136 | alignItems: 'center', 137 | position: 'absolute', 138 | width: '100%', 139 | height: '100%', 140 | opacity: 0.8, 141 | }, 142 | logo: { 143 | marginTop: 70, 144 | alignItems: 'center', 145 | }, 146 | icon: { 147 | width: 150, 148 | height: 150 149 | }, 150 | loginForm: { 151 | marginTop: 80, 152 | marginHorizontal: 40, 153 | marginRight: 60 154 | }, 155 | input: { 156 | color: 'black', 157 | marginBottom: 6, 158 | fontSize: 14, 159 | }, 160 | inputLabel: { 161 | fontWeight: 'bold', 162 | color: '#f7b81f', 163 | marginBottom: 6, 164 | fontSize: 14, 165 | }, 166 | buttonLogin: { 167 | backgroundColor: '#f7b81f', 168 | marginTop: 50, 169 | marginHorizontal:50, 170 | height: 60, 171 | justifyContent: "center", 172 | alignItems: "center", 173 | borderRadius: 50 174 | }, 175 | textResgister: { 176 | marginTop: 40, 177 | textAlign: "center" 178 | }, 179 | textLogin: { 180 | alignItems:"center", 181 | justifyContent:"center", 182 | fontSize: 20, 183 | fontWeight:"bold", 184 | color:"#ecf0f1" 185 | } 186 | }); -------------------------------------------------------------------------------- /src/screens/Order.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch, useSelector } from 'react-redux' 3 | import { 4 | View, 5 | Image, 6 | TextInput, 7 | Text, 8 | StatusBar, 9 | StyleSheet, 10 | TouchableOpacity, 11 | ScrollView 12 | } from 'react-native'; 13 | import { ListItem, Divider } from 'react-native-elements'; 14 | import { connect } from 'react-redux'; 15 | import { getProduct, postProduct, patchProduct, deleteProduct } from '../Redux/Actions/product'; 16 | import { Badge } from 'react-native-elements' 17 | import TouchableScale from 'react-native-touchable-scale'; 18 | import LinearGradient from 'react-native-linear-gradient'; 19 | 20 | const Order = (props) => { 21 | 22 | const dispatch = useDispatch(); 23 | const [page, setPage] = useState(0); 24 | const [infoPage, setInfoPage] = useState({maxPage: 0, totalAllProduct: 0}); 25 | const [rowsPerPage, setRowsPerPage] = useState(10); 26 | 27 | const fetchDataProduct = async () => { 28 | await dispatch( getProduct(rowsPerPage, page + 1, props.item.token)) 29 | .then (response => { 30 | setInfoPage (response.value.data.result.infoPage); 31 | }) 32 | .catch (error => { 33 | console.log (error); 34 | }) 35 | } 36 | 37 | useEffect(() => { 38 | fetchDataProduct (); 39 | },[page, rowsPerPage]) 40 | 41 | return ( 42 | <> 43 | 44 | 45 | 46 | Order List 47 | 48 | 49 | {/* SEARCH NAVIGATION & CHART NAVIGATION*/} 50 | 51 | {/* SEARCH NAVIGATION */} 52 | 56 | 59 | {/* CHART NAVIGATION */} 60 | 64 | 65 | 66 | {/* FEATURE APPS */} 67 | 68 | 69 | 70 | 71 | 72 | New 73 | 74 | 75 | 76 | 77 | 78 | 79 | Category 80 | 81 | 82 | 83 | 84 | 85 | 86 | Name 87 | 88 | 89 | 90 | 91 | 92 | 93 | {/* PRODUCT APPS */} 94 | 95 | { props.dataProduct.map((data, index) => { 96 | return ( 97 | 107 | 116 | {data.description} 117 | {data.price} 118 | } 119 | leftAvatar={{ size: 70,rounded: true, source: { uri: data.image }}} 120 | badge={{ 121 | badgeStyle: { backgroundColor:"red", width:70, height:40}, 122 | value: "Add To Cart", 123 | textStyle: { fontWeight:"bold",color: 'white', textAlign:"center" 124 | }}} 125 | /> 126 | 127 | 128 | ) 129 | })} 130 | 131 | 132 | ) 133 | } 134 | 135 | const mapStateToProps = state => { 136 | return { 137 | item : state.auth.resultItem, 138 | dataProduct: state.product.listProduct, 139 | userDetail: state.auth.resultsLogin 140 | }; 141 | }; 142 | 143 | export default connect (mapStateToProps) (Order); 144 | 145 | const styles = StyleSheet.create({ 146 | inputText:{ 147 | borderWidth:1, 148 | borderColor:'#E8E8E8', 149 | borderRadius: 25, 150 | height: 50, 151 | fontSize: 13, 152 | paddingLeft: 45, 153 | paddingRight: 20, 154 | backgroundColor:'white', 155 | marginRight: 9 156 | }, 157 | viewBody: { 158 | flex: 1, 159 | backgroundColor:'white' 160 | }, 161 | viewSearchCart: { 162 | marginHorizontal: 17, 163 | flexDirection:'row', 164 | paddingTop:15 165 | }, 166 | viewSearch: { 167 | position:'relative', 168 | flex:1 169 | }, 170 | cartImage: { 171 | width:25, 172 | height:25, 173 | position:'absolute', 174 | top: 12, 175 | left: 12 176 | }, 177 | viewCartIcons: { 178 | width:35, 179 | alignItems:'center', 180 | justifyContent:'center' 181 | }, 182 | imageBasket: { 183 | width: 28, 184 | height: 28 185 | }, 186 | 187 | // FEATURE APPS STYLE 188 | viewFeature: { 189 | marginHorizontal:17, 190 | marginTop: 15 191 | }, 192 | viewLogo: { 193 | flexDirection: 'row', 194 | justifyContent:'space-between', 195 | backgroundColor:'#fdd42a', 196 | borderTopLeftRadius: 7, 197 | borderTopRightRadius: 7, 198 | padding:13 199 | }, 200 | imageLogo: { 201 | width: 115, 202 | height: 20 203 | }, 204 | textLogo: { 205 | fontSize: 18, 206 | fontWeight: 'bold', 207 | color: 'white' 208 | }, 209 | viewMenu: { 210 | flexDirection: 'row', 211 | paddingTop:20, 212 | paddingBottom: 14, 213 | backgroundColor:'white', 214 | borderBottomLeftRadius: 7, 215 | borderBottomRightRadius: 7 216 | }, 217 | 218 | // MENU BLUE STYLE 219 | viewMenuBlue: { 220 | flex:1, 221 | alignItems:'center', 222 | justifyContent:'center', 223 | marginTop: -20 224 | }, 225 | TouchableOpacity:{ 226 | backgroundColor: '#f7b81f', 227 | paddingRight:25, 228 | paddingLeft:25, 229 | paddingTop:3, 230 | paddingBottom:3, 231 | alignItems: 'center', 232 | justifyContent: 'center', 233 | borderRadius: 15, 234 | height: 35 235 | }, 236 | TouchableOpacityCategory:{ 237 | backgroundColor: '#f7b81f', 238 | paddingRight:15, 239 | paddingLeft:15, 240 | paddingTop:3, 241 | paddingBottom:3, 242 | alignItems: 'center', 243 | justifyContent: 'center', 244 | borderRadius: 15, 245 | height: 35 246 | }, 247 | TouchableOpacityName:{ 248 | backgroundColor: '#f7b81f', 249 | paddingRight:19, 250 | paddingLeft:19, 251 | paddingTop:3, 252 | paddingBottom:3, 253 | alignItems: 'center', 254 | justifyContent: 'center', 255 | borderRadius: 15, 256 | height: 35 257 | }, 258 | textMenu:{ 259 | color: 'white', 260 | fontWeight: "bold" 261 | }, 262 | 263 | //CONTENT APP STYLE 264 | scrollMargin: { 265 | marginTop: -5, 266 | }, 267 | viewContentImage: { 268 | marginHorizontal:17, 269 | marginTop: 10, 270 | flexDirection:'row', 271 | position:'relative' 272 | }, 273 | imageContent: { 274 | width: 50, 275 | height:50, 276 | borderRadius:5 277 | }, 278 | viewContentText:{ 279 | marginHorizontal:17, 280 | width:'69%' 281 | }, 282 | contentTitle:{ 283 | fontSize: 18, 284 | fontWeight: 'bold', 285 | paddingTop:5 286 | }, 287 | contentDesc:{ 288 | fontSize: 15, 289 | paddingTop:5 290 | }, 291 | viewContentPrice:{ 292 | flexDirection:'row', 293 | justifyContent:'space-between' 294 | }, 295 | textContent:{ 296 | fontSize: 15, 297 | fontWeight: 'bold', 298 | paddingTop:15 299 | }, 300 | contentTouchable:{ 301 | borderRadius: 25, 302 | alignItems: 'center', 303 | justifyContent:'center', 304 | backgroundColor: '#0DAC50', 305 | padding: 5, 306 | paddingLeft:20, 307 | paddingRight:20 308 | }, 309 | textCart:{ 310 | fontWeight: 'bold', 311 | color:'white' 312 | } 313 | }); -------------------------------------------------------------------------------- /src/screens/Profile.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Text, View, Image, TouchableOpacity } from 'react-native'; 3 | import { Button, ListItem, Icon, Left, Body, Right, Toast } from 'native-base'; 4 | import AsyncStorage from '@react-native-community/async-storage'; 5 | import { connect } from 'react-redux'; 6 | 7 | const Profile = (props) => { 8 | 9 | const deleteToken = async () => { 10 | try { 11 | await AsyncStorage.removeItem('user') 12 | props.navigation.navigate('Login') 13 | showToast("Logout Success", "success"); 14 | } catch (err) { 15 | console.log(`The error is: ${err}`) 16 | } 17 | } 18 | 19 | const showToast = (message, types) => { 20 | Toast.show({ 21 | text: message, 22 | buttonText: "Okay", 23 | type: types == "warning" ? "warning":"success", 24 | duration: 3000, 25 | position: "bottom" 26 | }) 27 | } 28 | 29 | return ( 30 | <> 31 | 32 | 33 | 34 | {/* USERNAME AND LOGIN */} 35 | 36 | 37 | Username 38 | {props.item.username} 39 | 40 | 41 | 42 | Last Login 43 | 20.00 : 09-11-2019 44 | 45 | 46 | 47 | {/* BUTTON FEEDBACK */} 48 | 49 | 50 | 51 | 54 | 55 | 56 | 57 | Feedback 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | {/* Contact Button */} 67 | 68 | 69 | 70 | 73 | 74 | 75 | 76 | Contact 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | {/* Logut Button */} 86 | 87 | 88 | 89 | 92 | 93 | 94 | deleteToken()}> 95 | Logout 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | {/* IMAGE PROFILE */} 105 | 108 | 109 | ) 110 | } 111 | 112 | const mapStateToProps = state => { 113 | return { 114 | item : state.auth.resultItem, 115 | dataCategories: state.categories.listCategory, 116 | userDetail: state.auth.resultsLogin 117 | }; 118 | }; 119 | 120 | export default connect(mapStateToProps)(Profile); -------------------------------------------------------------------------------- /src/screens/SignUp.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { useDispatch, useSelector } from 'react-redux' 3 | import { StyleSheet, View, Image, AsyncStorage, TouchableOpacity } from 'react-native'; 4 | import { Item, Input, Form, Label, Text, Toast } from 'native-base'; 5 | import { connect } from "react-redux"; 6 | import { register } from '../Redux/Actions/auth'; 7 | 8 | const Register = (props) => { 9 | 10 | const [data, setData] = useState({username: '', password: '', role: ''}); 11 | const dispatch = useDispatch(); 12 | let inputs = {}; 13 | 14 | const focusTheField = (id) => { 15 | inputs[id]._root.focus() 16 | }; 17 | 18 | const handleRegister = async() => { 19 | await dispatch(register(data)) 20 | .then(response => { 21 | console.log(response.value.data.error); 22 | if (response.value.data.status === 200) { 23 | showToast("Success Create New User", "success"); 24 | setTimeout(() => { 25 | props.navigation.navigate('Login'); 26 | }, 500); 27 | } else { 28 | showToast(response.value.data.error, "warning"); 29 | } 30 | }) 31 | .catch(error => alert(error.value.data.message)); 32 | }; 33 | 34 | const showToast = (message, types) => { 35 | Toast.show({ 36 | text: message, 37 | buttonText: "Okay", 38 | type: types == "warning" ? "warning":"success", 39 | duration: 3000, 40 | position: "bottom" 41 | }) 42 | } 43 | 44 | return ( 45 | 46 | 47 | {/* Logo */} 48 | 49 | 50 | 51 | 52 | {/* Form Register */} 53 |
54 | 55 | 58 | {setData({...data, username: text})}} 60 | value={data.username} 61 | style={styles.input} 62 | returnKeyType={"next"} 63 | onSubmitEditing={() => { focusTheField('username'); }} 64 | /> 65 | 66 | 67 | 70 | {setData({...data, password: text})}} 72 | secureTextEntry={true} 73 | value={data.password} 74 | style={styles.input} 75 | returnKeyType={"next"} 76 | getRef={input => { inputs['password'] = input }} 77 | onSubmitEditing={() => { focusTheField('password'); }} 78 | /> 79 | 80 | 81 | 84 | {setData({...data, role: text})}} 86 | value={data.role} 87 | style={styles.input} 88 | returnKeyType={"next"} 89 | getRef={input => { inputs['role'] = input }} 90 | onSubmitEditing={() => { focusTheField('role'); }} 91 | /> 92 | 93 |
94 | 95 | {/* Button Register */} 96 | handleRegister()}> 97 | Register 98 | 99 | 100 | {/* Button Go To Login Screen */} 101 | 102 | Already Have An Account ? 103 | {props.navigation.navigate('Login')}}> 104 | Login 105 | 106 | 107 |
108 | ) 109 | }; 110 | 111 | export default connect()(Register); 112 | 113 | const styles = StyleSheet.create({ 114 | container: { 115 | flex: 1, 116 | backgroundColor: '#ecf0f1' 117 | }, 118 | containerImage: { 119 | flex: 1, 120 | resizeMode: 'cover', 121 | justifyContent: 'center', 122 | alignItems: 'center', 123 | position: 'absolute', 124 | width: '100%', 125 | height: '100%', 126 | opacity: 0.8, 127 | }, 128 | logo: { 129 | marginTop: 70, 130 | marginBottom: 80, 131 | alignItems: 'center', 132 | }, 133 | icon: { 134 | width: 150, 135 | height: 150 136 | }, 137 | loginForm: { 138 | marginTop: -80, 139 | marginHorizontal: 40, 140 | marginRight: 60 141 | }, 142 | input: { 143 | color: 'black', 144 | marginBottom: 6, 145 | fontSize: 14, 146 | }, 147 | inputLabel: { 148 | fontWeight: 'bold', 149 | color: '#f7b81f', 150 | marginBottom: 6, 151 | fontSize: 14, 152 | }, 153 | buttonRegister: { 154 | backgroundColor: '#f7b81f', 155 | marginTop: 50, 156 | marginHorizontal:50, 157 | height: 60, 158 | justifyContent: "center", 159 | alignItems: "center", 160 | borderRadius: 50 161 | }, 162 | textLogin: { 163 | alignItems:"center", 164 | justifyContent:"center", 165 | fontSize: 20, 166 | fontWeight:"bold", 167 | color:"#ecf0f1" 168 | } 169 | }); -------------------------------------------------------------------------------- /src/screens/TabNavigation.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Image } from 'react-native'; 3 | import { createAppContainer } from 'react-navigation'; 4 | import { createBottomTabNavigator } from 'react-navigation-tabs' 5 | 6 | //Content 7 | import Order from './Order'; 8 | import History from './History'; 9 | import DataCategory from './DataCategory'; 10 | import DataProduct from './DataProduct'; 11 | import Profile from './Profile'; 12 | 13 | const TabNavigator = createBottomTabNavigator({ 14 | Order: { 15 | screen: Order, 16 | navigationOptions: { 17 | tabBarLabel: 'Order' 18 | } 19 | }, 20 | DataProduct: { 21 | screen: DataProduct, 22 | navigationOptions: { 23 | tabBarLabel: 'Product', 24 | } 25 | }, 26 | DataCategory: { 27 | screen: DataCategory, 28 | navigationOptions: { 29 | tabBarLabel: 'Category', 30 | } 31 | }, 32 | History: { 33 | screen: History, 34 | navigationOptions: { 35 | tabBarLabel: 'History', 36 | } 37 | }, 38 | Profile: { 39 | screen: Profile, 40 | navigationOptions: { 41 | tabBarLabel: 'Profile', 42 | } 43 | } 44 | },{ 45 | //router config 46 | initialRouteName: 'Order', 47 | order: ['Order','DataProduct','DataCategory','History','Profile'], 48 | defaultNavigationOptions: ({ navigation }) => ({ 49 | tabBarIcon: ({focused}) => { 50 | const { routeName } = navigation.state; 51 | let focus = focused ? {width: 27, height: 27} : {width: 22, height: 22}; 52 | let sourceImage; 53 | 54 | if (routeName === 'Order') { 55 | sourceImage = focused ? require('../images/ImageOrderSelected.png') : require('../images/ImageOrder.png'); 56 | } else if (routeName === 'DataProduct') { 57 | sourceImage = focused ? require('../images/ImageProductSelected.png') : require('../images/ImageProduct.png'); 58 | } else if (routeName === 'DataCategory') { 59 | sourceImage = focused ? require('../images/ImageCategorySelected.png') : require('../images/ImageCategory.png'); 60 | } else if (routeName === 'History') { 61 | sourceImage = focused ? require('../images/ImageBillSelected.png') : require('../images/ImageBill.png'); 62 | } else { 63 | sourceImage = focused ? require('../images/ImageUserSelected.png') : require('../images/ImageUser.png'); 64 | } 65 | 66 | return ; 67 | }, 68 | tabBarOptions: { 69 | activeTintColor: '#ffce1e', 70 | inactiveTintColor: 'grey', 71 | style: { 72 | borderTopWidth: 0, 73 | } 74 | }, 75 | }), 76 | }) 77 | 78 | const TabNavigation = createAppContainer(TabNavigator); 79 | export default TabNavigation; --------------------------------------------------------------------------------