├── .eslintrc.json ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── __tests__ ├── components │ ├── CategoriesHeader.spec.js │ ├── ErrorMessage.spec.js │ ├── PlaceholderLoading.spec.js │ └── ProductsList.spec.js ├── pages │ ├── Cart.spec.js │ ├── Main.spec.js │ └── Product.spec.js ├── reducers │ ├── cart.spec.js │ ├── categories.spec.js │ ├── error.spec.js │ └── products.spec.js └── sagas │ ├── categories.spec.js │ └── products.spec.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── 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 │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── SimpleLineIcons.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── ecommerce │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── babel.config.js ├── fastlane ├── Appfile ├── Fastfile ├── README.md └── report.xml ├── index.js ├── ios ├── ecommerce-tvOS │ └── Info.plist ├── ecommerce-tvOSTests │ └── Info.plist ├── ecommerce.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── ecommerce-tvOS.xcscheme │ │ └── ecommerce.xcscheme ├── ecommerce │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── ecommerceTests │ ├── Info.plist │ └── ecommerceTests.m ├── jsconfig.json ├── metro.config.js ├── package-lock.json ├── package.json ├── server.json ├── src ├── components │ ├── CategoriesHeader │ │ ├── index.js │ │ └── styles.js │ ├── ErrorMessage │ │ ├── index.js │ │ └── styles.js │ ├── PlaceholderLoading │ │ ├── index.js │ │ └── styles.js │ └── ProductsList │ │ ├── index.js │ │ └── styles.js ├── config │ ├── ReactotronConfig.js │ └── StatusBarConfig.js ├── index.js ├── pages │ ├── Cart │ │ ├── index.js │ │ └── styles.js │ ├── Main │ │ ├── index.js │ │ └── styles.js │ └── Product │ │ ├── index.js │ │ └── styles.js ├── routes.js ├── services │ └── api.js ├── setupTests.js ├── store │ ├── ducks │ │ ├── cart.js │ │ ├── categories.js │ │ ├── error.js │ │ ├── index.js │ │ └── products.js │ ├── index.js │ └── sagas │ │ ├── categories.js │ │ ├── index.js │ │ └── products.js └── styles │ ├── colors.js │ ├── index.js │ └── metrics.js └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "env": { 4 | "es6": true, 5 | "jest": true 6 | }, 7 | "extends": ["airbnb", "plugin:react-native/all"], 8 | "globals": { 9 | "Atomics": "readonly", 10 | "SharedArrayBuffer": "readonly", 11 | "__DEV__": true 12 | }, 13 | "parserOptions": { 14 | "ecmaFeatures": { 15 | "jsx": true 16 | }, 17 | "ecmaVersion": 2018, 18 | "sourceType": "module" 19 | }, 20 | "plugins": ["react", "react-native", "jsx-a11y", "import"], 21 | "rules": { 22 | "react/jsx-filename-extension": [ 23 | "error", 24 | { "extensions": [".js", ".jsx"] } 25 | ], 26 | "import/prefer-default-export": "off", 27 | "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], 28 | "react/jsx-one-expression-per-line": "off", 29 | "react-native/no-color-literals": "off", 30 | "react-native/sort-styles": "off", 31 | "global-require": "off", 32 | "react-native/no-raw-text": "off" 33 | }, 34 | "settings": { 35 | "import/resolver": { 36 | "babel-plugin-root-import": { "rootPathSuffix": "src" } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # Tests coverage 59 | coverage 60 | 61 | # Snapshots 62 | __tests__/**/__snapshots__ 63 | 64 | # Fastline 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | install: 2 | - nvm install $(jq -r '.engines.node' package.json) && nvm use $(jq -r '.engines.node' package.json) 3 | - npm install -g "npm@$(jq -r '.engines.npm' package.json)" 4 | - npm ci 5 | matrix: 6 | include: 7 | - os: linux 8 | language: android 9 | dist: trusty 10 | android: 11 | components: 12 | - build-tools-28.0.3 13 | - android-28 14 | before_install: 15 | - yes | sdkmanager "platforms;android-28" 16 | - yes | sdkmanager "build-tools;28.0.1" 17 | script: 18 | - "./android/gradlew assembleRelease -p android/" 19 | - os: osx 20 | osx_image: xcode9.3 21 | before_install: 22 | - brew install jq 23 | - brew cask install fastlane 24 | script: 25 | - fastlane ios test 26 | after_success: 27 | - npm run coveralls 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Gabriel Hahn Schaeffer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native E-commerce 2 | 3 | [![Build Status](https://travis-ci.org/gabriel-hahn/react-native-ecommerce.svg?branch=master)](https://travis-ci.org/gabriel-hahn/react-native-ecommerce) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/153d38d4611a4492a0e24bf015695022)](https://www.codacy.com/app/gabriel_hahn/react-native-ecommerce?utm_source=github.com&utm_medium=referral&utm_content=gabriel-hahn/react-native-ecommerce&utm_campaign=Badge_Grade) [![Coverage Status](https://coveralls.io/repos/github/gabriel-hahn/react-native-ecommerce/badge.svg?branch=master)](https://coveralls.io/github/gabriel-hahn/react-native-ecommerce?branch=master) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/gabriel-hahn/react-native-ecommerce/pulls) [![Bugs](https://img.shields.io/github/issues/gabriel-hahn/react-native-ecommerce/bug.svg)](https://github.com/gabriel-hahn/react-native-ecommerce/issues?utf8=?&q=is%3Aissue+is%3Aopen+label%3Abug) [![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT) 4 | 5 | E-commerce mobile application developed using React Native :necktie: :tophat: 6 | 7 | - React Native 8 | - Redux / Saga 9 | - JSON Server 10 | - Unit Testing 11 | 12 | ## Dependencies 13 | 14 | You must have a package manager installed and [json-server](https://www.npmjs.com/package/json-server). JSON Server will simulate a API response, allow us to get items details. 15 | 16 | ## Getting Started 17 | 18 | To install all dependencies, you need to run the following command: 19 | 20 | ```sh 21 | $ yarn 22 | ``` 23 | 24 | To run JSON Server, you could do some configurations or execute the following command if you installed json-server as global: 25 | 26 | ```sh 27 | $ json-server server.json -p 3001 -w -d 300 28 | ``` 29 | 30 | To run the project, you must have installed Android and/or iOS environment. Use 'run-ios' or 'run-android': 31 | 32 | ```sh 33 | $ react-native run-ios 34 | ``` 35 | 36 | ## Tests 37 | 38 | Run the following command to execute all tests: 39 | 40 | ```sh 41 | $ yarn test 42 | ``` 43 | 44 | To run tests with coverage: 45 | 46 | ```sh 47 | $ yarn test --coverage 48 | ``` 49 | 50 | ## Demo 51 |

52 | 53 |

54 | 55 | ## Contributing 56 | 57 | Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us. 58 | 59 | ## Versioning 60 | 61 | We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/gabriel-hahn/react-native-ecommerce/tags). 62 | 63 | ## Authors 64 | 65 | [Gabriel Hahn Schaeffer](https://github.com/gabriel-hahn/) 66 | 67 | See also the list of [contributors](https://github.com/gabriel-hahn/react-native-ecommerce/contributors) who participated in this project. 68 | 69 | ## License 70 | 71 | This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details 72 | -------------------------------------------------------------------------------- /__tests__/components/CategoriesHeader.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import createStore from 'redux-mock-store'; 4 | import ReactTestRender from 'react-test-renderer'; 5 | 6 | import CategoriesHeader from '~/components/CategoriesHeader'; 7 | 8 | const mockStore = createStore(); 9 | 10 | const INITIAL_STATE = { 11 | categories: { 12 | items: [ 13 | { 14 | id: 1, 15 | title: 'T-shirt', 16 | }, 17 | { 18 | id: 2, 19 | title: 'Shoes', 20 | }, 21 | ], 22 | currentId: 2, 23 | }, 24 | }; 25 | 26 | let wrapper; 27 | 28 | beforeEach(() => { 29 | wrapper = ReactTestRender.create( 30 | 31 | 32 | , 33 | ); 34 | }); 35 | 36 | describe('CategoriesHeader Component', () => { 37 | describe('Smoke tests', () => { 38 | it('Should render CategoriesHeader component correctly', () => { 39 | expect(wrapper.toJSON()).toMatchSnapshot(); 40 | }); 41 | }); 42 | 43 | describe('Component structure', () => { 44 | it('Should render 2 categories', () => { 45 | expect(wrapper.root.findAllByType('Text').length).toBe(2); 46 | }); 47 | 48 | it('Should render correct titles', () => { 49 | expect(wrapper.root.findAllByType('Text')[0].props.children).toEqual('T-shirt'); 50 | }); 51 | }); 52 | }); 53 | -------------------------------------------------------------------------------- /__tests__/components/ErrorMessage.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import createStore from 'redux-mock-store'; 4 | import ReactTestRender from 'react-test-renderer'; 5 | 6 | import ErrorMessage from '~/components/ErrorMessage'; 7 | 8 | const mockStore = createStore(); 9 | 10 | const INITIAL_STATE = { 11 | error: { 12 | visible: true, 13 | message: 'Message error test', 14 | }, 15 | }; 16 | 17 | const INVISIBLE_STATE = { 18 | error: { 19 | visible: false, 20 | message: 'Message error test', 21 | }, 22 | }; 23 | 24 | let wrapper; 25 | let invisibleWrapper; 26 | 27 | beforeEach(() => { 28 | wrapper = ReactTestRender.create( 29 | 30 | 31 | , 32 | ); 33 | 34 | invisibleWrapper = ReactTestRender.create( 35 | 36 | 37 | , 38 | ); 39 | }); 40 | 41 | describe('ErrorMessage Component', () => { 42 | describe('Smoke tests', () => { 43 | it('Should render ErrorMessage component correctly', () => { 44 | expect(wrapper.toJSON()).toMatchSnapshot(); 45 | }); 46 | }); 47 | 48 | describe('Component structure', () => { 49 | it('Should render message and Icon error', () => { 50 | expect(wrapper.root.findAllByType('Text').length).toBe(2); 51 | }); 52 | 53 | it('Should not render component when visible prop is false', () => { 54 | expect(invisibleWrapper.root.findAllByType('Text').length).toEqual(0); 55 | }); 56 | }); 57 | }); 58 | -------------------------------------------------------------------------------- /__tests__/components/PlaceholderLoading.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactTestRender from 'react-test-renderer'; 3 | 4 | import PlaceholderLoading from '~/components/PlaceholderLoading'; 5 | 6 | let wrapper; 7 | 8 | beforeEach(() => { 9 | wrapper = ReactTestRender.create(); 10 | }); 11 | 12 | afterEach(() => { 13 | wrapper.unmount(); 14 | }); 15 | 16 | describe('PlaceholderLoading page', () => { 17 | describe('Smoke tests', () => { 18 | it('Should render PlaceholderLoading page correctly', () => { 19 | expect(wrapper.toJSON()).toMatchSnapshot(); 20 | }); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /__tests__/components/ProductsList.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import createStore from 'redux-mock-store'; 4 | import ReactTestRender from 'react-test-renderer'; 5 | 6 | import ProductsList from '~/components/ProductsList'; 7 | 8 | const mockStore = createStore(); 9 | 10 | const INITIAL_STATE = { 11 | products: { 12 | items: [ 13 | { 14 | id: 1, 15 | name: 'T-shirt', 16 | image: 'image test', 17 | brand: 'Brand test', 18 | price: 35.36, 19 | }, 20 | { 21 | id: 2, 22 | name: 'Shoes', 23 | image: 'image teste 2', 24 | brand: 'Brand test 2', 25 | price: 25.36, 26 | }, 27 | { 28 | id: 3, 29 | name: 'Shoes 2', 30 | image: 'image teste 3', 31 | brand: 'Brand test 3', 32 | price: 125.36, 33 | }, 34 | ], 35 | loading: false, 36 | }, 37 | categories: { 38 | currentId: 3, 39 | }, 40 | }; 41 | 42 | const STATE_WITHOUT_ITEMS = { 43 | products: { 44 | items: [], 45 | loading: false, 46 | }, 47 | categories: { 48 | currentId: 3, 49 | }, 50 | }; 51 | 52 | const navigation = { navigate: jest.fn() }; 53 | 54 | let wrapper; 55 | let wrapperWithoutItems; 56 | 57 | beforeEach(() => { 58 | wrapper = ReactTestRender.create( 59 | 60 | 61 | , 62 | ); 63 | 64 | wrapperWithoutItems = ReactTestRender.create( 65 | 66 | 67 | , 68 | ); 69 | }); 70 | 71 | describe('ProductsList Component', () => { 72 | describe('Smoke tests', () => { 73 | it('Should render ProductsList component correctly', () => { 74 | expect(wrapper.toJSON()).toMatchSnapshot(); 75 | }); 76 | }); 77 | 78 | describe('Component structure', () => { 79 | it('Should render 3 items', () => { 80 | expect(wrapper.root.findAllByType('TouchableOpacity').length).toBe(3); 81 | expect(wrapper.root.findAllByType('Image').length).toBe(3); 82 | expect(wrapper.root.findAllByType('Text').length).toBe(9); 83 | }); 84 | 85 | it('Should render no items', () => { 86 | expect(wrapperWithoutItems.root.findAllByType('TouchableOpacity').length).toBe(0); 87 | }); 88 | }); 89 | }); 90 | -------------------------------------------------------------------------------- /__tests__/pages/Cart.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import createStore from 'redux-mock-store'; 4 | import ReactTestRender from 'react-test-renderer'; 5 | 6 | import Cart from '~/pages/Cart'; 7 | 8 | const mockStore = createStore(); 9 | 10 | const INITIAL_STATE = { 11 | cart: { 12 | items: [ 13 | { 14 | id: 1, 15 | name: 'Camiseta Hyperas Preta', 16 | brand: 'Quiksilver', 17 | image: 'https://t-static.dafiti.com.br/cer-243-1-product.jpg', 18 | price: 49.99, 19 | quantity: 2, 20 | }, 21 | ], 22 | }, 23 | }; 24 | 25 | const EMPTY_STATE = { 26 | cart: { 27 | items: [], 28 | } 29 | } 30 | 31 | let wrapper; 32 | let wrapperEmpty; 33 | 34 | beforeEach(() => { 35 | wrapper = ReactTestRender.create( 36 | 37 | 38 | , 39 | ); 40 | 41 | wrapperEmpty = ReactTestRender.create( 42 | 43 | 44 | , 45 | ); 46 | }); 47 | 48 | afterEach(() => { 49 | wrapper.unmount(); 50 | wrapperEmpty.unmount(); 51 | }); 52 | 53 | describe('Cart page', () => { 54 | describe('Smoke tests', () => { 55 | it('Should render Cart page correctly', () => { 56 | expect(wrapper.toJSON()).toMatchSnapshot(); 57 | }); 58 | }); 59 | 60 | describe('Page structure', () => { 61 | it('Should render empty cart message when items array is empty', () => { 62 | expect(wrapperEmpty.root.findAllByType('Text')[0].props.children).toEqual('There are no products in the cart.'); 63 | }); 64 | 65 | it('Should render products when items prop is not empty - Brand', () => { 66 | expect(wrapper.root.findAllByType('Text')[1].props.children).toEqual('Quiksilver'); 67 | }); 68 | }); 69 | }); 70 | -------------------------------------------------------------------------------- /__tests__/pages/Main.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow } from 'enzyme'; 3 | 4 | import Main from '~/pages/Main'; 5 | 6 | import CategoriesHeader from '~/components/CategoriesHeader'; 7 | import ProductsList from '~/components/ProductsList'; 8 | 9 | let wrapper; 10 | 11 | beforeEach(() => { 12 | wrapper = shallow(
); 13 | }); 14 | 15 | describe('Main page', () => { 16 | describe('Smoke tests', () => { 17 | it('Should has one CategoriesHeader instance', () => { 18 | expect(wrapper.find(CategoriesHeader).length).toEqual(1); 19 | }); 20 | 21 | it('Should has one ProductsList instance', () => { 22 | expect(wrapper.find(ProductsList).length).toEqual(1); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /__tests__/pages/Product.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import createStore from 'redux-mock-store'; 4 | import ReactTestRender from 'react-test-renderer'; 5 | 6 | const mockStore = createStore(); 7 | 8 | import Product from '~/pages/Product'; 9 | 10 | const navigationParam = { 11 | id: 1, 12 | name: 'Camiseta Hyperas Preta', 13 | brand: 'Quiksilver', 14 | image: 'https://t-static.dafiti.com.br/cer-243-1-product.jpg', 15 | price: 49.99, 16 | quantity: 2, 17 | }; 18 | 19 | const navigation = { navigate: jest.fn(), getParam: jest.fn(() => navigationParam) }; 20 | 21 | let wrapper; 22 | 23 | beforeEach(() => { 24 | wrapper = ReactTestRender.create( 25 | 26 | 27 | , 28 | ); 29 | }); 30 | 31 | afterEach(() => { 32 | wrapper.unmount(); 33 | }); 34 | 35 | describe('Product page', () => { 36 | describe('Smoke tests', () => { 37 | it('Should render Product page correctly', () => { 38 | expect(wrapper.toJSON()).toMatchSnapshot(); 39 | }); 40 | }); 41 | 42 | describe('Page structure', () => { 43 | it('Should render product details correctly - Image', () => { 44 | expect(wrapper.root.findAllByType('Image').length).toEqual(1); 45 | }); 46 | }); 47 | }); 48 | -------------------------------------------------------------------------------- /__tests__/reducers/cart.spec.js: -------------------------------------------------------------------------------- 1 | import CartActions, { reducer } from '~/store/ducks/cart'; 2 | 3 | const INITIAL_STATE = { 4 | items: [], 5 | }; 6 | 7 | const previousState = { 8 | items: [ 9 | { id: 4, title: 'T-shirt test', quantity: 1 }, 10 | { id: 5, title: 'T-shirt test 2', quantity: 1 }, 11 | ], 12 | }; 13 | 14 | describe('Cart Reducer', () => { 15 | it('Should be able to add itens to the cart', () => { 16 | const newItem = { id: 4, title: 'T-shirt test' }; 17 | const newItem2 = { id: 5, title: 'T-shirt test 2' }; 18 | 19 | let state = reducer(INITIAL_STATE, CartActions.addItem(newItem)); 20 | state = reducer(state, CartActions.addItem(newItem2)); 21 | 22 | expect(state).toEqual(previousState); 23 | }); 24 | 25 | it('Should be able to remove a specific item from cart', () => { 26 | const state = reducer(previousState, CartActions.removeItem(5)); 27 | expect(state.items).toEqual([{ id: 4, title: 'T-shirt test', quantity: 1 }]); 28 | }); 29 | 30 | it('Should be able to change quantity of a item from cart', () => { 31 | const state = reducer(previousState, CartActions.changeItemQuantity(5, 12)); 32 | expect(state.items[1].quantity).toEqual(12); 33 | }); 34 | 35 | it('Should increase product quantity when add the same product to cart', () => { 36 | const newItem = { id: 4, title: 'T-shirt test' }; 37 | const state = reducer(previousState, CartActions.addItem(newItem)); 38 | 39 | expect(state.items[0].quantity).toEqual(2); 40 | }); 41 | }); 42 | -------------------------------------------------------------------------------- /__tests__/reducers/categories.spec.js: -------------------------------------------------------------------------------- 1 | import CategoriesActions, { reducer } from '~/store/ducks/categories'; 2 | 3 | const INITIAL_STATE = { 4 | items: [], 5 | currentId: 1, 6 | }; 7 | 8 | const categories = { 9 | items: [ 10 | { 11 | id: 1, 12 | title: 'T-shirt', 13 | }, 14 | { 15 | id: 2, 16 | title: 'Shoes', 17 | }, 18 | ], 19 | currentId: 2, 20 | }; 21 | 22 | describe('Categories Reducer', () => { 23 | it('Should be able load all categories', () => { 24 | const state = reducer(INITIAL_STATE, CategoriesActions.loadCategoriesSuccess(categories.items)); 25 | 26 | expect(state.items).toEqual(categories.items); 27 | }); 28 | 29 | it('Should be able to set current categories', () => { 30 | const state = reducer(INITIAL_STATE, CategoriesActions.setCurrent(1)); 31 | 32 | expect(state.currentId).toEqual(1); 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /__tests__/reducers/error.spec.js: -------------------------------------------------------------------------------- 1 | import ErrorActions, { reducer } from '~/store/ducks/error'; 2 | 3 | const INITIAL_STATE = { 4 | visible: false, 5 | message: null, 6 | }; 7 | 8 | describe('Error Reducer', () => { 9 | it('Should be able to set a new error', () => { 10 | const error = { visible: true, message: 'Error message' }; 11 | const state = reducer(INITIAL_STATE, ErrorActions.setError(error.message)); 12 | 13 | expect(state).toEqual(error); 14 | }); 15 | 16 | it('Should be able to clean a error', () => { 17 | const error = { visible: false, message: null }; 18 | const state = reducer(INITIAL_STATE, ErrorActions.hideError()); 19 | 20 | expect(state).toEqual(error); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /__tests__/reducers/products.spec.js: -------------------------------------------------------------------------------- 1 | import ProductsActions, { reducer } from '~/store/ducks/products'; 2 | 3 | const INITIAL_STATE = { 4 | items: [], 5 | }; 6 | 7 | const products = { 8 | items: [ 9 | { 10 | id: 1, 11 | name: 'Camiseta Hyperas Preta', 12 | brand: 'Quiksilver', 13 | image: 'https://t-static.dafiti.com.br/cer-243-1-product.jpg', 14 | price: 49.99, 15 | }, 16 | { 17 | id: 2, 18 | name: 'Camiseta Hyperas Preta 2', 19 | brand: 'Quiksilver 2', 20 | image: 'https://t-static.dafiti.com.br/cer-243-1-p2oduct.jpg', 21 | price: 89.99, 22 | }, 23 | ], 24 | }; 25 | 26 | describe('Products Reducer', () => { 27 | it('Should be able load all products', () => { 28 | const state = reducer(INITIAL_STATE, ProductsActions.loadProductsSuccess(products.items)); 29 | 30 | expect(state.items).toEqual(products.items); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /__tests__/sagas/categories.spec.js: -------------------------------------------------------------------------------- 1 | import { runSaga } from 'redux-saga'; 2 | import MockAdapter from 'axios-mock-adapter'; 3 | import api from '~/services/api'; 4 | 5 | import { loadCategories } from '~/store/sagas/categories'; 6 | 7 | const apiMock = new MockAdapter(api); 8 | 9 | const apiResponse = ['Category 1', 'Category 2']; 10 | let dispatched; 11 | 12 | beforeEach(() => { 13 | dispatched = []; 14 | }); 15 | 16 | const runSagaTest = async (method, param) => { 17 | await runSaga( 18 | { 19 | dispatch: action => dispatched.push(action), 20 | }, 21 | () => method(param), 22 | ).toPromise(); 23 | }; 24 | 25 | describe('Categories Saga', () => { 26 | it('Should be able to set categories', async () => { 27 | apiMock.onGet('/categories').reply(200, apiResponse); 28 | await runSagaTest(loadCategories); 29 | 30 | const action = { items: apiResponse, type: 'LOAD_CATEGORIES_SUCCESS' }; 31 | expect(dispatched).toContainEqual(action); 32 | }); 33 | 34 | it('Should be able to set a error message when API returns a error', async () => { 35 | apiMock.onGet('/categories').reply(404, null); 36 | await runSagaTest(loadCategories); 37 | 38 | const action = { message: 'Oh, something is wrong now, try again!', type: 'SET_ERROR' }; 39 | expect(dispatched).toContainEqual(action); 40 | }); 41 | }); 42 | -------------------------------------------------------------------------------- /__tests__/sagas/products.spec.js: -------------------------------------------------------------------------------- 1 | import { runSaga } from 'redux-saga'; 2 | import MockAdapter from 'axios-mock-adapter'; 3 | import api from '~/services/api'; 4 | 5 | import { loadProducts } from '~/store/sagas/products'; 6 | 7 | const apiMock = new MockAdapter(api); 8 | 9 | const apiResponse = { 10 | products: ['Product 1', 'Product 2'], 11 | }; 12 | 13 | let dispatched; 14 | 15 | beforeEach(() => { 16 | dispatched = []; 17 | }); 18 | 19 | const runSagaTest = async (method, param) => { 20 | await runSaga( 21 | { 22 | dispatch: action => dispatched.push(action), 23 | }, 24 | () => method(param), 25 | ).toPromise(); 26 | }; 27 | 28 | describe('Products Saga', () => { 29 | it('Should be able to set products', async () => { 30 | apiMock.onGet('/category_products/3').reply(200, apiResponse); 31 | await runSagaTest(loadProducts, { categoryId: 3 }); 32 | 33 | const action = { items: apiResponse.products, type: 'LOAD_PRODUCTS_SUCCESS' }; 34 | expect(dispatched).toContainEqual(action); 35 | }); 36 | 37 | it('Should be able to set a error message when API returns a error', async () => { 38 | apiMock.onGet('/category_products/3').reply(404, null); 39 | await runSagaTest(loadProducts, { categoryId: 3 }); 40 | 41 | const action = { message: 'Oh, something is wrong now, try again!', type: 'SET_ERROR' }; 42 | expect(dispatched).toContainEqual(action); 43 | }); 44 | }); 45 | -------------------------------------------------------------------------------- /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.ecommerce", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.ecommerce", 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 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion rootProject.ext.compileSdkVersion 98 | 99 | compileOptions { 100 | sourceCompatibility JavaVersion.VERSION_1_8 101 | targetCompatibility JavaVersion.VERSION_1_8 102 | } 103 | 104 | defaultConfig { 105 | applicationId "com.ecommerce" 106 | minSdkVersion rootProject.ext.minSdkVersion 107 | targetSdkVersion rootProject.ext.targetSdkVersion 108 | versionCode 1 109 | versionName "1.0" 110 | } 111 | splits { 112 | abi { 113 | reset() 114 | enable enableSeparateBuildPerCPUArchitecture 115 | universalApk false // If true, also generate a universal APK 116 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 117 | } 118 | } 119 | buildTypes { 120 | release { 121 | minifyEnabled enableProguardInReleaseBuilds 122 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 123 | } 124 | } 125 | // applicationVariants are e.g. debug, release 126 | applicationVariants.all { variant -> 127 | variant.outputs.each { output -> 128 | // For each separate APK per architecture, set a unique version code as described here: 129 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 130 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4] 131 | def abi = output.getFilter(OutputFile.ABI) 132 | if (abi != null) { // null for the universal-debug, universal-release variants 133 | output.versionCodeOverride = 134 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 135 | } 136 | } 137 | } 138 | } 139 | 140 | dependencies { 141 | implementation project(':react-native-vector-icons') 142 | implementation project(':react-native-gesture-handler') 143 | implementation fileTree(dir: "libs", include: ["*.jar"]) 144 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 145 | implementation "com.facebook.react:react-native:+" // From node_modules 146 | } 147 | 148 | // Run this once to be able to run the application with BUCK 149 | // puts all compile dependencies into folder libs for BUCK to use 150 | task copyDownloadableDepsToLibs(type: Copy) { 151 | from configurations.compile 152 | into 'libs' 153 | } 154 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/AntDesign.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/AntDesign.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Feather.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/Feather.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/ecommerce/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.ecommerce; 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. 12 | * This is used to schedule rendering of the component. 13 | */ 14 | @Override 15 | protected String getMainComponentName() { 16 | return "ecommerce"; 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/ecommerce/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.ecommerce; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.oblador.vectoricons.VectorIconsPackage; 7 | import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage(), 28 | new VectorIconsPackage(), 29 | new RNGestureHandlerPackage() 30 | ); 31 | } 32 | 33 | @Override 34 | protected String getJSMainModuleName() { 35 | return "index"; 36 | } 37 | }; 38 | 39 | @Override 40 | public ReactNativeHost getReactNativeHost() { 41 | return mReactNativeHost; 42 | } 43 | 44 | @Override 45 | public void onCreate() { 46 | super.onCreate(); 47 | SoLoader.init(this, /* native exopackage */ false); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/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/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/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/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/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/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/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/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ecommerce 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.3.1' 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabriel-hahn/react-native-ecommerce/c6fa96cb32dd3e5bc75d693bdf848be09b759e2c/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ecommerce' 2 | include ':react-native-vector-icons' 3 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 4 | include ':react-native-gesture-handler' 5 | project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') 6 | 7 | include ':app' 8 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ecommerce", 3 | "displayName": "ecommerce" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | plugins: [ 4 | [ 5 | 'babel-plugin-root-import', 6 | { 7 | rootPathSuffix: 'src', 8 | }, 9 | ], 10 | ], 11 | }; 12 | -------------------------------------------------------------------------------- /fastlane/Appfile: -------------------------------------------------------------------------------- 1 | # For more information about the Appfile, see: 2 | # https://docs.fastlane.tools/advanced/#appfile 3 | 4 | app_identifier("org.reactjs.native.example.ecommerce") 5 | -------------------------------------------------------------------------------- /fastlane/Fastfile: -------------------------------------------------------------------------------- 1 | # This file contains the fastlane.tools configuration 2 | # You can find the documentation at https://docs.fastlane.tools 3 | 4 | platform :ios do 5 | desc "Runs all the tests" 6 | lane :test do 7 | # https://docs.fastlane.tools/actions/scan/ 8 | scan( 9 | project: "ios/ecommerce.xcodeproj", 10 | scheme: "ecommerce" 11 | ) 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /fastlane/README.md: -------------------------------------------------------------------------------- 1 | fastlane documentation 2 | ================ 3 | # Installation 4 | 5 | Make sure you have the latest version of the Xcode command line tools installed: 6 | 7 | ``` 8 | xcode-select --install 9 | ``` 10 | 11 | Install _fastlane_ using 12 | ``` 13 | [sudo] gem install fastlane -NV 14 | ``` 15 | or alternatively using `brew cask install fastlane` 16 | 17 | # Available Actions 18 | ## iOS 19 | ### ios test 20 | ``` 21 | fastlane ios test 22 | ``` 23 | Runs all the tests 24 | 25 | ---- 26 | 27 | This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. 28 | More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). 29 | The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). 30 | -------------------------------------------------------------------------------- /fastlane/report.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src'; 3 | import { name as appName } from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /ios/ecommerce-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/ecommerce-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/ecommerce.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* ecommerceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ecommerceTests.m */; }; 16 | 0E74F6DF59AF44B493B07052 /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EA2C55E90CCD4398AC25F2E1 /* FontAwesome5_Regular.ttf */; }; 17 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 18 | 12E25DB8814C4337B39FA7B9 /* libRNVectorIcons-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A592A8B7AE6451681F4DF2D /* libRNVectorIcons-tvOS.a */; }; 19 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 20 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 21 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 22 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 23 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 24 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 25 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 26 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 27 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 28 | 14BC32DD47F14C60A837D032 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F9439C448E81489090997579 /* Zocial.ttf */; }; 29 | 1E9C94BCF8D94FCEBD3D8BBC /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F0411D883E494A4CA90CEF98 /* MaterialCommunityIcons.ttf */; }; 30 | 290AB3D2369C4FA7959DAED3 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0C99599472B44725917FF26A /* Entypo.ttf */; }; 31 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 32 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 33 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 34 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 35 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 36 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 37 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 38 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 39 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 40 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 41 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 42 | 2DCD954D1E0B4F2C00145EB5 /* ecommerceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ecommerceTests.m */; }; 43 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 44 | 3F1F2165E2F44BACB59C4FF5 /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 78C719A43F844D59B94415C0 /* FontAwesome5_Brands.ttf */; }; 45 | 4915894B8D664219B5060CBA /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D3AC4C39EBD24DFEB0E823DE /* Ionicons.ttf */; }; 46 | 4CAEF0101ACA4FA481CF7677 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 27C48A8CCE1548E7AC76D5DF /* FontAwesome.ttf */; }; 47 | 58611BD9E67B4DBFBA50259C /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 69A74B99EDB44C98A57F9C2D /* EvilIcons.ttf */; }; 48 | 75D1A4A3F19343ABA6600DEF /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8219850D253D4D6982026F85 /* Octicons.ttf */; }; 49 | 82A340AA6BE742A0AC2CB442 /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F445D487139A474DBDF30B30 /* libRNVectorIcons.a */; }; 50 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 51 | 933498F205C24CDEA894F299 /* libRNGestureHandler.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C020661C6CA04809AED549FD /* libRNGestureHandler.a */; }; 52 | A324BFA37B2B4AB1A0AB8B31 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E5E312677DFB40E1B72C5108 /* Foundation.ttf */; }; 53 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 54 | B965C5A9DD91466D9BA9F7DF /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8B6F332AAC6948CA91953492 /* MaterialIcons.ttf */; }; 55 | D9DD484489D249A2A0DE117F /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 04885034FB8F42EAA6EB73E7 /* FontAwesome5_Solid.ttf */; }; 56 | E169DEEBAB754CFF8C028BC4 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 30B2363F5ED840F7A4320466 /* Feather.ttf */; }; 57 | E7E1C2395C514E33B1B005A3 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = AE3CA31F54544231837C4888 /* AntDesign.ttf */; }; 58 | E88D6895E746492081D977B8 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C5834EEFF3D34B5A99534CA3 /* SimpleLineIcons.ttf */; }; 59 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; }; 60 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; }; 61 | FA85D898B3B74628B1415051 /* libRNGestureHandler-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 40D8F0E99FD240F68AC4DC9C /* libRNGestureHandler-tvOS.a */; }; 62 | /* End PBXBuildFile section */ 63 | 64 | /* Begin PBXContainerItemProxy section */ 65 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 70 | remoteInfo = RCTActionSheet; 71 | }; 72 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 77 | remoteInfo = RCTGeolocation; 78 | }; 79 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 82 | proxyType = 2; 83 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 84 | remoteInfo = RCTImage; 85 | }; 86 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 91 | remoteInfo = RCTNetwork; 92 | }; 93 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 98 | remoteInfo = RCTVibration; 99 | }; 100 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 103 | proxyType = 1; 104 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 105 | remoteInfo = ecommerce; 106 | }; 107 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 110 | proxyType = 2; 111 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 112 | remoteInfo = RCTSettings; 113 | }; 114 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 115 | isa = PBXContainerItemProxy; 116 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 117 | proxyType = 2; 118 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 119 | remoteInfo = RCTWebSocket; 120 | }; 121 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 122 | isa = PBXContainerItemProxy; 123 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 124 | proxyType = 2; 125 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 126 | remoteInfo = React; 127 | }; 128 | 1600A4CE22BC559A005D396C /* PBXContainerItemProxy */ = { 129 | isa = PBXContainerItemProxy; 130 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 131 | proxyType = 2; 132 | remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8; 133 | remoteInfo = jsi; 134 | }; 135 | 1600A4D022BC559A005D396C /* PBXContainerItemProxy */ = { 136 | isa = PBXContainerItemProxy; 137 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 138 | proxyType = 2; 139 | remoteGlobalIDString = EDEBC73B214B45A300DD5AC8; 140 | remoteInfo = jsiexecutor; 141 | }; 142 | 1600A4D222BC559A005D396C /* PBXContainerItemProxy */ = { 143 | isa = PBXContainerItemProxy; 144 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 145 | proxyType = 2; 146 | remoteGlobalIDString = ED296FB6214C9A0900B7C4FE; 147 | remoteInfo = "jsi-tvOS"; 148 | }; 149 | 1600A4D422BC559A005D396C /* PBXContainerItemProxy */ = { 150 | isa = PBXContainerItemProxy; 151 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 152 | proxyType = 2; 153 | remoteGlobalIDString = ED296FEE214C9CF800B7C4FE; 154 | remoteInfo = "jsiexecutor-tvOS"; 155 | }; 156 | 1600A4DC22BC559E005D396C /* PBXContainerItemProxy */ = { 157 | isa = PBXContainerItemProxy; 158 | containerPortal = 96EEE5B5771C4AB1BF568E6B /* RNGestureHandler.xcodeproj */; 159 | proxyType = 2; 160 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 161 | remoteInfo = RNGestureHandler; 162 | }; 163 | 1600A4DE22BC559E005D396C /* PBXContainerItemProxy */ = { 164 | isa = PBXContainerItemProxy; 165 | containerPortal = 96EEE5B5771C4AB1BF568E6B /* RNGestureHandler.xcodeproj */; 166 | proxyType = 2; 167 | remoteGlobalIDString = B5C32A36220C603B000FFB8D; 168 | remoteInfo = "RNGestureHandler-tvOS"; 169 | }; 170 | 1600A4E222BC559E005D396C /* PBXContainerItemProxy */ = { 171 | isa = PBXContainerItemProxy; 172 | containerPortal = 2311921D37FB405FAA4A92F5 /* RNVectorIcons.xcodeproj */; 173 | proxyType = 2; 174 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395; 175 | remoteInfo = RNVectorIcons; 176 | }; 177 | 1600A4E422BC559E005D396C /* PBXContainerItemProxy */ = { 178 | isa = PBXContainerItemProxy; 179 | containerPortal = 2311921D37FB405FAA4A92F5 /* RNVectorIcons.xcodeproj */; 180 | proxyType = 2; 181 | remoteGlobalIDString = A39873CE1EA65EE60051E01A; 182 | remoteInfo = "RNVectorIcons-tvOS"; 183 | }; 184 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 185 | isa = PBXContainerItemProxy; 186 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 187 | proxyType = 1; 188 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 189 | remoteInfo = "ecommerce-tvOS"; 190 | }; 191 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 192 | isa = PBXContainerItemProxy; 193 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 194 | proxyType = 2; 195 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 196 | remoteInfo = "RCTBlob-tvOS"; 197 | }; 198 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 199 | isa = PBXContainerItemProxy; 200 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 201 | proxyType = 2; 202 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 203 | remoteInfo = fishhook; 204 | }; 205 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 206 | isa = PBXContainerItemProxy; 207 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 208 | proxyType = 2; 209 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 210 | remoteInfo = "fishhook-tvOS"; 211 | }; 212 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 213 | isa = PBXContainerItemProxy; 214 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 215 | proxyType = 2; 216 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 217 | remoteInfo = jsinspector; 218 | }; 219 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 220 | isa = PBXContainerItemProxy; 221 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 222 | proxyType = 2; 223 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 224 | remoteInfo = "jsinspector-tvOS"; 225 | }; 226 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 227 | isa = PBXContainerItemProxy; 228 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 229 | proxyType = 2; 230 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 231 | remoteInfo = "third-party"; 232 | }; 233 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 234 | isa = PBXContainerItemProxy; 235 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 236 | proxyType = 2; 237 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 238 | remoteInfo = "third-party-tvOS"; 239 | }; 240 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 241 | isa = PBXContainerItemProxy; 242 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 243 | proxyType = 2; 244 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 245 | remoteInfo = "double-conversion"; 246 | }; 247 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 248 | isa = PBXContainerItemProxy; 249 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 250 | proxyType = 2; 251 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 252 | remoteInfo = "double-conversion-tvOS"; 253 | }; 254 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 255 | isa = PBXContainerItemProxy; 256 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 257 | proxyType = 2; 258 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 259 | remoteInfo = "RCTImage-tvOS"; 260 | }; 261 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 262 | isa = PBXContainerItemProxy; 263 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 264 | proxyType = 2; 265 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 266 | remoteInfo = "RCTLinking-tvOS"; 267 | }; 268 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 269 | isa = PBXContainerItemProxy; 270 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 271 | proxyType = 2; 272 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 273 | remoteInfo = "RCTNetwork-tvOS"; 274 | }; 275 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 276 | isa = PBXContainerItemProxy; 277 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 278 | proxyType = 2; 279 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 280 | remoteInfo = "RCTSettings-tvOS"; 281 | }; 282 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 283 | isa = PBXContainerItemProxy; 284 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 285 | proxyType = 2; 286 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 287 | remoteInfo = "RCTText-tvOS"; 288 | }; 289 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 290 | isa = PBXContainerItemProxy; 291 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 292 | proxyType = 2; 293 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 294 | remoteInfo = "RCTWebSocket-tvOS"; 295 | }; 296 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 297 | isa = PBXContainerItemProxy; 298 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 299 | proxyType = 2; 300 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 301 | remoteInfo = "React-tvOS"; 302 | }; 303 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 304 | isa = PBXContainerItemProxy; 305 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 306 | proxyType = 2; 307 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 308 | remoteInfo = yoga; 309 | }; 310 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 311 | isa = PBXContainerItemProxy; 312 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 313 | proxyType = 2; 314 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 315 | remoteInfo = "yoga-tvOS"; 316 | }; 317 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 318 | isa = PBXContainerItemProxy; 319 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 320 | proxyType = 2; 321 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 322 | remoteInfo = cxxreact; 323 | }; 324 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 325 | isa = PBXContainerItemProxy; 326 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 327 | proxyType = 2; 328 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 329 | remoteInfo = "cxxreact-tvOS"; 330 | }; 331 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 332 | isa = PBXContainerItemProxy; 333 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 334 | proxyType = 2; 335 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 336 | remoteInfo = RCTAnimation; 337 | }; 338 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 339 | isa = PBXContainerItemProxy; 340 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 341 | proxyType = 2; 342 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 343 | remoteInfo = "RCTAnimation-tvOS"; 344 | }; 345 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 346 | isa = PBXContainerItemProxy; 347 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 348 | proxyType = 2; 349 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 350 | remoteInfo = RCTLinking; 351 | }; 352 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 353 | isa = PBXContainerItemProxy; 354 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 355 | proxyType = 2; 356 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 357 | remoteInfo = RCTText; 358 | }; 359 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 360 | isa = PBXContainerItemProxy; 361 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 362 | proxyType = 2; 363 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 364 | remoteInfo = RCTBlob; 365 | }; 366 | /* End PBXContainerItemProxy section */ 367 | 368 | /* Begin PBXFileReference section */ 369 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 370 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 371 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 372 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 373 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 374 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 375 | 00E356EE1AD99517003FC87E /* ecommerceTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ecommerceTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 376 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 377 | 00E356F21AD99517003FC87E /* ecommerceTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ecommerceTests.m; sourceTree = ""; }; 378 | 04885034FB8F42EAA6EB73E7 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome5_Solid.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = ""; }; 379 | 0C99599472B44725917FF26A /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; }; 380 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 381 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 382 | 13B07F961A680F5B00A75B9A /* ecommerce.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ecommerce.app; sourceTree = BUILT_PRODUCTS_DIR; }; 383 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ecommerce/AppDelegate.h; sourceTree = ""; }; 384 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ecommerce/AppDelegate.m; sourceTree = ""; }; 385 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 386 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ecommerce/Images.xcassets; sourceTree = ""; }; 387 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ecommerce/Info.plist; sourceTree = ""; }; 388 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ecommerce/main.m; sourceTree = ""; }; 389 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 390 | 2311921D37FB405FAA4A92F5 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; }; 391 | 27C48A8CCE1548E7AC76D5DF /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; }; 392 | 2D02E47B1E0B4A5D006451C7 /* ecommerce-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ecommerce-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 393 | 2D02E4901E0B4A5D006451C7 /* ecommerce-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ecommerce-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 394 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 395 | 30B2363F5ED840F7A4320466 /* Feather.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Feather.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; }; 396 | 40D8F0E99FD240F68AC4DC9C /* libRNGestureHandler-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libRNGestureHandler-tvOS.a"; sourceTree = ""; }; 397 | 4A592A8B7AE6451681F4DF2D /* libRNVectorIcons-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libRNVectorIcons-tvOS.a"; sourceTree = ""; }; 398 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 399 | 69A74B99EDB44C98A57F9C2D /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; }; 400 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 401 | 78C719A43F844D59B94415C0 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome5_Brands.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = ""; }; 402 | 8219850D253D4D6982026F85 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; }; 403 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 404 | 8B6F332AAC6948CA91953492 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; }; 405 | 96EEE5B5771C4AB1BF568E6B /* RNGestureHandler.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNGestureHandler.xcodeproj; path = "../node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj"; sourceTree = ""; }; 406 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 407 | AE3CA31F54544231837C4888 /* AntDesign.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = AntDesign.ttf; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = ""; }; 408 | C020661C6CA04809AED549FD /* libRNGestureHandler.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNGestureHandler.a; sourceTree = ""; }; 409 | C5834EEFF3D34B5A99534CA3 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; }; 410 | D3AC4C39EBD24DFEB0E823DE /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; }; 411 | E5E312677DFB40E1B72C5108 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; }; 412 | EA2C55E90CCD4398AC25F2E1 /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome5_Regular.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = ""; }; 413 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 414 | 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; }; 415 | F0411D883E494A4CA90CEF98 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialCommunityIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; }; 416 | F445D487139A474DBDF30B30 /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; }; 417 | F9439C448E81489090997579 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; }; 418 | /* End PBXFileReference section */ 419 | 420 | /* Begin PBXFrameworksBuildPhase section */ 421 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 422 | isa = PBXFrameworksBuildPhase; 423 | buildActionMask = 2147483647; 424 | files = ( 425 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 426 | ); 427 | runOnlyForDeploymentPostprocessing = 0; 428 | }; 429 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 430 | isa = PBXFrameworksBuildPhase; 431 | buildActionMask = 2147483647; 432 | files = ( 433 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */, 434 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 435 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 436 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 437 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 438 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 439 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 440 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 441 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 442 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 443 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 444 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 445 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 446 | 933498F205C24CDEA894F299 /* libRNGestureHandler.a in Frameworks */, 447 | 82A340AA6BE742A0AC2CB442 /* libRNVectorIcons.a in Frameworks */, 448 | ); 449 | runOnlyForDeploymentPostprocessing = 0; 450 | }; 451 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 452 | isa = PBXFrameworksBuildPhase; 453 | buildActionMask = 2147483647; 454 | files = ( 455 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */, 456 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 457 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 458 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 459 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 460 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 461 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 462 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 463 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 464 | FA85D898B3B74628B1415051 /* libRNGestureHandler-tvOS.a in Frameworks */, 465 | 12E25DB8814C4337B39FA7B9 /* libRNVectorIcons-tvOS.a in Frameworks */, 466 | ); 467 | runOnlyForDeploymentPostprocessing = 0; 468 | }; 469 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 470 | isa = PBXFrameworksBuildPhase; 471 | buildActionMask = 2147483647; 472 | files = ( 473 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 474 | ); 475 | runOnlyForDeploymentPostprocessing = 0; 476 | }; 477 | /* End PBXFrameworksBuildPhase section */ 478 | 479 | /* Begin PBXGroup section */ 480 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 481 | isa = PBXGroup; 482 | children = ( 483 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 484 | ); 485 | name = Products; 486 | sourceTree = ""; 487 | }; 488 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 489 | isa = PBXGroup; 490 | children = ( 491 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 492 | ); 493 | name = Products; 494 | sourceTree = ""; 495 | }; 496 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 497 | isa = PBXGroup; 498 | children = ( 499 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 500 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 501 | ); 502 | name = Products; 503 | sourceTree = ""; 504 | }; 505 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 506 | isa = PBXGroup; 507 | children = ( 508 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 509 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 510 | ); 511 | name = Products; 512 | sourceTree = ""; 513 | }; 514 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 515 | isa = PBXGroup; 516 | children = ( 517 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 518 | ); 519 | name = Products; 520 | sourceTree = ""; 521 | }; 522 | 00E356EF1AD99517003FC87E /* ecommerceTests */ = { 523 | isa = PBXGroup; 524 | children = ( 525 | 00E356F21AD99517003FC87E /* ecommerceTests.m */, 526 | 00E356F01AD99517003FC87E /* Supporting Files */, 527 | ); 528 | path = ecommerceTests; 529 | sourceTree = ""; 530 | }; 531 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 532 | isa = PBXGroup; 533 | children = ( 534 | 00E356F11AD99517003FC87E /* Info.plist */, 535 | ); 536 | name = "Supporting Files"; 537 | sourceTree = ""; 538 | }; 539 | 139105B71AF99BAD00B5F7CC /* Products */ = { 540 | isa = PBXGroup; 541 | children = ( 542 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 543 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 544 | ); 545 | name = Products; 546 | sourceTree = ""; 547 | }; 548 | 139FDEE71B06529A00C62182 /* Products */ = { 549 | isa = PBXGroup; 550 | children = ( 551 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 552 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 553 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 554 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 555 | ); 556 | name = Products; 557 | sourceTree = ""; 558 | }; 559 | 13B07FAE1A68108700A75B9A /* ecommerce */ = { 560 | isa = PBXGroup; 561 | children = ( 562 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 563 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 564 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 565 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 566 | 13B07FB61A68108700A75B9A /* Info.plist */, 567 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 568 | 13B07FB71A68108700A75B9A /* main.m */, 569 | ); 570 | name = ecommerce; 571 | sourceTree = ""; 572 | }; 573 | 146834001AC3E56700842450 /* Products */ = { 574 | isa = PBXGroup; 575 | children = ( 576 | 146834041AC3E56700842450 /* libReact.a */, 577 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 578 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 579 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 580 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 581 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 582 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 583 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 584 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 585 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 586 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 587 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 588 | 1600A4CF22BC559A005D396C /* libjsi.a */, 589 | 1600A4D122BC559A005D396C /* libjsiexecutor.a */, 590 | 1600A4D322BC559A005D396C /* libjsi-tvOS.a */, 591 | 1600A4D522BC559A005D396C /* libjsiexecutor-tvOS.a */, 592 | ); 593 | name = Products; 594 | sourceTree = ""; 595 | }; 596 | 1600A4A822BC5597005D396C /* Recovered References */ = { 597 | isa = PBXGroup; 598 | children = ( 599 | C020661C6CA04809AED549FD /* libRNGestureHandler.a */, 600 | F445D487139A474DBDF30B30 /* libRNVectorIcons.a */, 601 | 40D8F0E99FD240F68AC4DC9C /* libRNGestureHandler-tvOS.a */, 602 | 4A592A8B7AE6451681F4DF2D /* libRNVectorIcons-tvOS.a */, 603 | ); 604 | name = "Recovered References"; 605 | sourceTree = ""; 606 | }; 607 | 1600A4D622BC559D005D396C /* Products */ = { 608 | isa = PBXGroup; 609 | children = ( 610 | 1600A4DD22BC559E005D396C /* libRNGestureHandler.a */, 611 | 1600A4DF22BC559E005D396C /* libRNGestureHandler-tvOS.a */, 612 | ); 613 | name = Products; 614 | sourceTree = ""; 615 | }; 616 | 1600A4D822BC559D005D396C /* Products */ = { 617 | isa = PBXGroup; 618 | children = ( 619 | 1600A4E322BC559E005D396C /* libRNVectorIcons.a */, 620 | 1600A4E522BC559E005D396C /* libRNVectorIcons-tvOS.a */, 621 | ); 622 | name = Products; 623 | sourceTree = ""; 624 | }; 625 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 626 | isa = PBXGroup; 627 | children = ( 628 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 629 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 630 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 631 | ); 632 | name = Frameworks; 633 | sourceTree = ""; 634 | }; 635 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 636 | isa = PBXGroup; 637 | children = ( 638 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 639 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 640 | ); 641 | name = Products; 642 | sourceTree = ""; 643 | }; 644 | 7300723D7C0D4858B2BC55FE /* Resources */ = { 645 | isa = PBXGroup; 646 | children = ( 647 | AE3CA31F54544231837C4888 /* AntDesign.ttf */, 648 | 0C99599472B44725917FF26A /* Entypo.ttf */, 649 | 69A74B99EDB44C98A57F9C2D /* EvilIcons.ttf */, 650 | 30B2363F5ED840F7A4320466 /* Feather.ttf */, 651 | 27C48A8CCE1548E7AC76D5DF /* FontAwesome.ttf */, 652 | 78C719A43F844D59B94415C0 /* FontAwesome5_Brands.ttf */, 653 | EA2C55E90CCD4398AC25F2E1 /* FontAwesome5_Regular.ttf */, 654 | 04885034FB8F42EAA6EB73E7 /* FontAwesome5_Solid.ttf */, 655 | E5E312677DFB40E1B72C5108 /* Foundation.ttf */, 656 | D3AC4C39EBD24DFEB0E823DE /* Ionicons.ttf */, 657 | F0411D883E494A4CA90CEF98 /* MaterialCommunityIcons.ttf */, 658 | 8B6F332AAC6948CA91953492 /* MaterialIcons.ttf */, 659 | 8219850D253D4D6982026F85 /* Octicons.ttf */, 660 | C5834EEFF3D34B5A99534CA3 /* SimpleLineIcons.ttf */, 661 | F9439C448E81489090997579 /* Zocial.ttf */, 662 | ); 663 | name = Resources; 664 | sourceTree = ""; 665 | }; 666 | 78C398B11ACF4ADC00677621 /* Products */ = { 667 | isa = PBXGroup; 668 | children = ( 669 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 670 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 671 | ); 672 | name = Products; 673 | sourceTree = ""; 674 | }; 675 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 676 | isa = PBXGroup; 677 | children = ( 678 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 679 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 680 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 681 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 682 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 683 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 684 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 685 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 686 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 687 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 688 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 689 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 690 | 96EEE5B5771C4AB1BF568E6B /* RNGestureHandler.xcodeproj */, 691 | 2311921D37FB405FAA4A92F5 /* RNVectorIcons.xcodeproj */, 692 | ); 693 | name = Libraries; 694 | sourceTree = ""; 695 | }; 696 | 832341B11AAA6A8300B99B32 /* Products */ = { 697 | isa = PBXGroup; 698 | children = ( 699 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 700 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 701 | ); 702 | name = Products; 703 | sourceTree = ""; 704 | }; 705 | 83CBB9F61A601CBA00E9B192 = { 706 | isa = PBXGroup; 707 | children = ( 708 | 13B07FAE1A68108700A75B9A /* ecommerce */, 709 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 710 | 00E356EF1AD99517003FC87E /* ecommerceTests */, 711 | 83CBBA001A601CBA00E9B192 /* Products */, 712 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 713 | 7300723D7C0D4858B2BC55FE /* Resources */, 714 | 1600A4A822BC5597005D396C /* Recovered References */, 715 | ); 716 | indentWidth = 2; 717 | sourceTree = ""; 718 | tabWidth = 2; 719 | usesTabs = 0; 720 | }; 721 | 83CBBA001A601CBA00E9B192 /* Products */ = { 722 | isa = PBXGroup; 723 | children = ( 724 | 13B07F961A680F5B00A75B9A /* ecommerce.app */, 725 | 00E356EE1AD99517003FC87E /* ecommerceTests.xctest */, 726 | 2D02E47B1E0B4A5D006451C7 /* ecommerce-tvOS.app */, 727 | 2D02E4901E0B4A5D006451C7 /* ecommerce-tvOSTests.xctest */, 728 | ); 729 | name = Products; 730 | sourceTree = ""; 731 | }; 732 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 733 | isa = PBXGroup; 734 | children = ( 735 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 736 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 737 | ); 738 | name = Products; 739 | sourceTree = ""; 740 | }; 741 | /* End PBXGroup section */ 742 | 743 | /* Begin PBXNativeTarget section */ 744 | 00E356ED1AD99517003FC87E /* ecommerceTests */ = { 745 | isa = PBXNativeTarget; 746 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ecommerceTests" */; 747 | buildPhases = ( 748 | 00E356EA1AD99517003FC87E /* Sources */, 749 | 00E356EB1AD99517003FC87E /* Frameworks */, 750 | 00E356EC1AD99517003FC87E /* Resources */, 751 | ); 752 | buildRules = ( 753 | ); 754 | dependencies = ( 755 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 756 | ); 757 | name = ecommerceTests; 758 | productName = ecommerceTests; 759 | productReference = 00E356EE1AD99517003FC87E /* ecommerceTests.xctest */; 760 | productType = "com.apple.product-type.bundle.unit-test"; 761 | }; 762 | 13B07F861A680F5B00A75B9A /* ecommerce */ = { 763 | isa = PBXNativeTarget; 764 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ecommerce" */; 765 | buildPhases = ( 766 | 13B07F871A680F5B00A75B9A /* Sources */, 767 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 768 | 13B07F8E1A680F5B00A75B9A /* Resources */, 769 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 770 | ); 771 | buildRules = ( 772 | ); 773 | dependencies = ( 774 | ); 775 | name = ecommerce; 776 | productName = "Hello World"; 777 | productReference = 13B07F961A680F5B00A75B9A /* ecommerce.app */; 778 | productType = "com.apple.product-type.application"; 779 | }; 780 | 2D02E47A1E0B4A5D006451C7 /* ecommerce-tvOS */ = { 781 | isa = PBXNativeTarget; 782 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ecommerce-tvOS" */; 783 | buildPhases = ( 784 | 2D02E4771E0B4A5D006451C7 /* Sources */, 785 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 786 | 2D02E4791E0B4A5D006451C7 /* Resources */, 787 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 788 | ); 789 | buildRules = ( 790 | ); 791 | dependencies = ( 792 | ); 793 | name = "ecommerce-tvOS"; 794 | productName = "ecommerce-tvOS"; 795 | productReference = 2D02E47B1E0B4A5D006451C7 /* ecommerce-tvOS.app */; 796 | productType = "com.apple.product-type.application"; 797 | }; 798 | 2D02E48F1E0B4A5D006451C7 /* ecommerce-tvOSTests */ = { 799 | isa = PBXNativeTarget; 800 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ecommerce-tvOSTests" */; 801 | buildPhases = ( 802 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 803 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 804 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 805 | ); 806 | buildRules = ( 807 | ); 808 | dependencies = ( 809 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 810 | ); 811 | name = "ecommerce-tvOSTests"; 812 | productName = "ecommerce-tvOSTests"; 813 | productReference = 2D02E4901E0B4A5D006451C7 /* ecommerce-tvOSTests.xctest */; 814 | productType = "com.apple.product-type.bundle.unit-test"; 815 | }; 816 | /* End PBXNativeTarget section */ 817 | 818 | /* Begin PBXProject section */ 819 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 820 | isa = PBXProject; 821 | attributes = { 822 | LastUpgradeCheck = 940; 823 | ORGANIZATIONNAME = Facebook; 824 | TargetAttributes = { 825 | 00E356ED1AD99517003FC87E = { 826 | CreatedOnToolsVersion = 6.2; 827 | TestTargetID = 13B07F861A680F5B00A75B9A; 828 | }; 829 | 2D02E47A1E0B4A5D006451C7 = { 830 | CreatedOnToolsVersion = 8.2.1; 831 | ProvisioningStyle = Automatic; 832 | }; 833 | 2D02E48F1E0B4A5D006451C7 = { 834 | CreatedOnToolsVersion = 8.2.1; 835 | ProvisioningStyle = Automatic; 836 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 837 | }; 838 | }; 839 | }; 840 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ecommerce" */; 841 | compatibilityVersion = "Xcode 3.2"; 842 | developmentRegion = English; 843 | hasScannedForEncodings = 0; 844 | knownRegions = ( 845 | English, 846 | en, 847 | Base, 848 | ); 849 | mainGroup = 83CBB9F61A601CBA00E9B192; 850 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 851 | projectDirPath = ""; 852 | projectReferences = ( 853 | { 854 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 855 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 856 | }, 857 | { 858 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 859 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 860 | }, 861 | { 862 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 863 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 864 | }, 865 | { 866 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 867 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 868 | }, 869 | { 870 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 871 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 872 | }, 873 | { 874 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 875 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 876 | }, 877 | { 878 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 879 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 880 | }, 881 | { 882 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 883 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 884 | }, 885 | { 886 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 887 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 888 | }, 889 | { 890 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 891 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 892 | }, 893 | { 894 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 895 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 896 | }, 897 | { 898 | ProductGroup = 146834001AC3E56700842450 /* Products */; 899 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 900 | }, 901 | { 902 | ProductGroup = 1600A4D622BC559D005D396C /* Products */; 903 | ProjectRef = 96EEE5B5771C4AB1BF568E6B /* RNGestureHandler.xcodeproj */; 904 | }, 905 | { 906 | ProductGroup = 1600A4D822BC559D005D396C /* Products */; 907 | ProjectRef = 2311921D37FB405FAA4A92F5 /* RNVectorIcons.xcodeproj */; 908 | }, 909 | ); 910 | projectRoot = ""; 911 | targets = ( 912 | 13B07F861A680F5B00A75B9A /* ecommerce */, 913 | 00E356ED1AD99517003FC87E /* ecommerceTests */, 914 | 2D02E47A1E0B4A5D006451C7 /* ecommerce-tvOS */, 915 | 2D02E48F1E0B4A5D006451C7 /* ecommerce-tvOSTests */, 916 | ); 917 | }; 918 | /* End PBXProject section */ 919 | 920 | /* Begin PBXReferenceProxy section */ 921 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 922 | isa = PBXReferenceProxy; 923 | fileType = archive.ar; 924 | path = libRCTActionSheet.a; 925 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 926 | sourceTree = BUILT_PRODUCTS_DIR; 927 | }; 928 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 929 | isa = PBXReferenceProxy; 930 | fileType = archive.ar; 931 | path = libRCTGeolocation.a; 932 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 933 | sourceTree = BUILT_PRODUCTS_DIR; 934 | }; 935 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 936 | isa = PBXReferenceProxy; 937 | fileType = archive.ar; 938 | path = libRCTImage.a; 939 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 940 | sourceTree = BUILT_PRODUCTS_DIR; 941 | }; 942 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 943 | isa = PBXReferenceProxy; 944 | fileType = archive.ar; 945 | path = libRCTNetwork.a; 946 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 947 | sourceTree = BUILT_PRODUCTS_DIR; 948 | }; 949 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 950 | isa = PBXReferenceProxy; 951 | fileType = archive.ar; 952 | path = libRCTVibration.a; 953 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 954 | sourceTree = BUILT_PRODUCTS_DIR; 955 | }; 956 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 957 | isa = PBXReferenceProxy; 958 | fileType = archive.ar; 959 | path = libRCTSettings.a; 960 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 961 | sourceTree = BUILT_PRODUCTS_DIR; 962 | }; 963 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 964 | isa = PBXReferenceProxy; 965 | fileType = archive.ar; 966 | path = libRCTWebSocket.a; 967 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 968 | sourceTree = BUILT_PRODUCTS_DIR; 969 | }; 970 | 146834041AC3E56700842450 /* libReact.a */ = { 971 | isa = PBXReferenceProxy; 972 | fileType = archive.ar; 973 | path = libReact.a; 974 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 975 | sourceTree = BUILT_PRODUCTS_DIR; 976 | }; 977 | 1600A4CF22BC559A005D396C /* libjsi.a */ = { 978 | isa = PBXReferenceProxy; 979 | fileType = archive.ar; 980 | path = libjsi.a; 981 | remoteRef = 1600A4CE22BC559A005D396C /* PBXContainerItemProxy */; 982 | sourceTree = BUILT_PRODUCTS_DIR; 983 | }; 984 | 1600A4D122BC559A005D396C /* libjsiexecutor.a */ = { 985 | isa = PBXReferenceProxy; 986 | fileType = archive.ar; 987 | path = libjsiexecutor.a; 988 | remoteRef = 1600A4D022BC559A005D396C /* PBXContainerItemProxy */; 989 | sourceTree = BUILT_PRODUCTS_DIR; 990 | }; 991 | 1600A4D322BC559A005D396C /* libjsi-tvOS.a */ = { 992 | isa = PBXReferenceProxy; 993 | fileType = archive.ar; 994 | path = "libjsi-tvOS.a"; 995 | remoteRef = 1600A4D222BC559A005D396C /* PBXContainerItemProxy */; 996 | sourceTree = BUILT_PRODUCTS_DIR; 997 | }; 998 | 1600A4D522BC559A005D396C /* libjsiexecutor-tvOS.a */ = { 999 | isa = PBXReferenceProxy; 1000 | fileType = archive.ar; 1001 | path = "libjsiexecutor-tvOS.a"; 1002 | remoteRef = 1600A4D422BC559A005D396C /* PBXContainerItemProxy */; 1003 | sourceTree = BUILT_PRODUCTS_DIR; 1004 | }; 1005 | 1600A4DD22BC559E005D396C /* libRNGestureHandler.a */ = { 1006 | isa = PBXReferenceProxy; 1007 | fileType = archive.ar; 1008 | path = libRNGestureHandler.a; 1009 | remoteRef = 1600A4DC22BC559E005D396C /* PBXContainerItemProxy */; 1010 | sourceTree = BUILT_PRODUCTS_DIR; 1011 | }; 1012 | 1600A4DF22BC559E005D396C /* libRNGestureHandler-tvOS.a */ = { 1013 | isa = PBXReferenceProxy; 1014 | fileType = archive.ar; 1015 | path = "libRNGestureHandler-tvOS.a"; 1016 | remoteRef = 1600A4DE22BC559E005D396C /* PBXContainerItemProxy */; 1017 | sourceTree = BUILT_PRODUCTS_DIR; 1018 | }; 1019 | 1600A4E322BC559E005D396C /* libRNVectorIcons.a */ = { 1020 | isa = PBXReferenceProxy; 1021 | fileType = archive.ar; 1022 | path = libRNVectorIcons.a; 1023 | remoteRef = 1600A4E222BC559E005D396C /* PBXContainerItemProxy */; 1024 | sourceTree = BUILT_PRODUCTS_DIR; 1025 | }; 1026 | 1600A4E522BC559E005D396C /* libRNVectorIcons-tvOS.a */ = { 1027 | isa = PBXReferenceProxy; 1028 | fileType = archive.ar; 1029 | path = "libRNVectorIcons-tvOS.a"; 1030 | remoteRef = 1600A4E422BC559E005D396C /* PBXContainerItemProxy */; 1031 | sourceTree = BUILT_PRODUCTS_DIR; 1032 | }; 1033 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 1034 | isa = PBXReferenceProxy; 1035 | fileType = archive.ar; 1036 | path = "libRCTBlob-tvOS.a"; 1037 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 1038 | sourceTree = BUILT_PRODUCTS_DIR; 1039 | }; 1040 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 1041 | isa = PBXReferenceProxy; 1042 | fileType = archive.ar; 1043 | path = libfishhook.a; 1044 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 1045 | sourceTree = BUILT_PRODUCTS_DIR; 1046 | }; 1047 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 1048 | isa = PBXReferenceProxy; 1049 | fileType = archive.ar; 1050 | path = "libfishhook-tvOS.a"; 1051 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 1052 | sourceTree = BUILT_PRODUCTS_DIR; 1053 | }; 1054 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 1055 | isa = PBXReferenceProxy; 1056 | fileType = archive.ar; 1057 | path = libjsinspector.a; 1058 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 1059 | sourceTree = BUILT_PRODUCTS_DIR; 1060 | }; 1061 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 1062 | isa = PBXReferenceProxy; 1063 | fileType = archive.ar; 1064 | path = "libjsinspector-tvOS.a"; 1065 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 1066 | sourceTree = BUILT_PRODUCTS_DIR; 1067 | }; 1068 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 1069 | isa = PBXReferenceProxy; 1070 | fileType = archive.ar; 1071 | path = "libthird-party.a"; 1072 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 1073 | sourceTree = BUILT_PRODUCTS_DIR; 1074 | }; 1075 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 1076 | isa = PBXReferenceProxy; 1077 | fileType = archive.ar; 1078 | path = "libthird-party.a"; 1079 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 1080 | sourceTree = BUILT_PRODUCTS_DIR; 1081 | }; 1082 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 1083 | isa = PBXReferenceProxy; 1084 | fileType = archive.ar; 1085 | path = "libdouble-conversion.a"; 1086 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 1087 | sourceTree = BUILT_PRODUCTS_DIR; 1088 | }; 1089 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 1090 | isa = PBXReferenceProxy; 1091 | fileType = archive.ar; 1092 | path = "libdouble-conversion.a"; 1093 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 1094 | sourceTree = BUILT_PRODUCTS_DIR; 1095 | }; 1096 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 1097 | isa = PBXReferenceProxy; 1098 | fileType = archive.ar; 1099 | path = "libRCTImage-tvOS.a"; 1100 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 1101 | sourceTree = BUILT_PRODUCTS_DIR; 1102 | }; 1103 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 1104 | isa = PBXReferenceProxy; 1105 | fileType = archive.ar; 1106 | path = "libRCTLinking-tvOS.a"; 1107 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 1108 | sourceTree = BUILT_PRODUCTS_DIR; 1109 | }; 1110 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 1111 | isa = PBXReferenceProxy; 1112 | fileType = archive.ar; 1113 | path = "libRCTNetwork-tvOS.a"; 1114 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 1115 | sourceTree = BUILT_PRODUCTS_DIR; 1116 | }; 1117 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 1118 | isa = PBXReferenceProxy; 1119 | fileType = archive.ar; 1120 | path = "libRCTSettings-tvOS.a"; 1121 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 1122 | sourceTree = BUILT_PRODUCTS_DIR; 1123 | }; 1124 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 1125 | isa = PBXReferenceProxy; 1126 | fileType = archive.ar; 1127 | path = "libRCTText-tvOS.a"; 1128 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 1129 | sourceTree = BUILT_PRODUCTS_DIR; 1130 | }; 1131 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 1132 | isa = PBXReferenceProxy; 1133 | fileType = archive.ar; 1134 | path = "libRCTWebSocket-tvOS.a"; 1135 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 1136 | sourceTree = BUILT_PRODUCTS_DIR; 1137 | }; 1138 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 1139 | isa = PBXReferenceProxy; 1140 | fileType = archive.ar; 1141 | path = libReact.a; 1142 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 1143 | sourceTree = BUILT_PRODUCTS_DIR; 1144 | }; 1145 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 1146 | isa = PBXReferenceProxy; 1147 | fileType = archive.ar; 1148 | path = libyoga.a; 1149 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 1150 | sourceTree = BUILT_PRODUCTS_DIR; 1151 | }; 1152 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 1153 | isa = PBXReferenceProxy; 1154 | fileType = archive.ar; 1155 | path = libyoga.a; 1156 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 1157 | sourceTree = BUILT_PRODUCTS_DIR; 1158 | }; 1159 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 1160 | isa = PBXReferenceProxy; 1161 | fileType = archive.ar; 1162 | path = libcxxreact.a; 1163 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 1164 | sourceTree = BUILT_PRODUCTS_DIR; 1165 | }; 1166 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 1167 | isa = PBXReferenceProxy; 1168 | fileType = archive.ar; 1169 | path = libcxxreact.a; 1170 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 1171 | sourceTree = BUILT_PRODUCTS_DIR; 1172 | }; 1173 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1174 | isa = PBXReferenceProxy; 1175 | fileType = archive.ar; 1176 | path = libRCTAnimation.a; 1177 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1178 | sourceTree = BUILT_PRODUCTS_DIR; 1179 | }; 1180 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1181 | isa = PBXReferenceProxy; 1182 | fileType = archive.ar; 1183 | path = libRCTAnimation.a; 1184 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1185 | sourceTree = BUILT_PRODUCTS_DIR; 1186 | }; 1187 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1188 | isa = PBXReferenceProxy; 1189 | fileType = archive.ar; 1190 | path = libRCTLinking.a; 1191 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1192 | sourceTree = BUILT_PRODUCTS_DIR; 1193 | }; 1194 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1195 | isa = PBXReferenceProxy; 1196 | fileType = archive.ar; 1197 | path = libRCTText.a; 1198 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1199 | sourceTree = BUILT_PRODUCTS_DIR; 1200 | }; 1201 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1202 | isa = PBXReferenceProxy; 1203 | fileType = archive.ar; 1204 | path = libRCTBlob.a; 1205 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1206 | sourceTree = BUILT_PRODUCTS_DIR; 1207 | }; 1208 | /* End PBXReferenceProxy section */ 1209 | 1210 | /* Begin PBXResourcesBuildPhase section */ 1211 | 00E356EC1AD99517003FC87E /* Resources */ = { 1212 | isa = PBXResourcesBuildPhase; 1213 | buildActionMask = 2147483647; 1214 | files = ( 1215 | ); 1216 | runOnlyForDeploymentPostprocessing = 0; 1217 | }; 1218 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1219 | isa = PBXResourcesBuildPhase; 1220 | buildActionMask = 2147483647; 1221 | files = ( 1222 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1223 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1224 | E7E1C2395C514E33B1B005A3 /* AntDesign.ttf in Resources */, 1225 | 290AB3D2369C4FA7959DAED3 /* Entypo.ttf in Resources */, 1226 | 58611BD9E67B4DBFBA50259C /* EvilIcons.ttf in Resources */, 1227 | E169DEEBAB754CFF8C028BC4 /* Feather.ttf in Resources */, 1228 | 4CAEF0101ACA4FA481CF7677 /* FontAwesome.ttf in Resources */, 1229 | 3F1F2165E2F44BACB59C4FF5 /* FontAwesome5_Brands.ttf in Resources */, 1230 | 0E74F6DF59AF44B493B07052 /* FontAwesome5_Regular.ttf in Resources */, 1231 | D9DD484489D249A2A0DE117F /* FontAwesome5_Solid.ttf in Resources */, 1232 | A324BFA37B2B4AB1A0AB8B31 /* Foundation.ttf in Resources */, 1233 | 4915894B8D664219B5060CBA /* Ionicons.ttf in Resources */, 1234 | 1E9C94BCF8D94FCEBD3D8BBC /* MaterialCommunityIcons.ttf in Resources */, 1235 | B965C5A9DD91466D9BA9F7DF /* MaterialIcons.ttf in Resources */, 1236 | 75D1A4A3F19343ABA6600DEF /* Octicons.ttf in Resources */, 1237 | E88D6895E746492081D977B8 /* SimpleLineIcons.ttf in Resources */, 1238 | 14BC32DD47F14C60A837D032 /* Zocial.ttf in Resources */, 1239 | ); 1240 | runOnlyForDeploymentPostprocessing = 0; 1241 | }; 1242 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1243 | isa = PBXResourcesBuildPhase; 1244 | buildActionMask = 2147483647; 1245 | files = ( 1246 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1247 | ); 1248 | runOnlyForDeploymentPostprocessing = 0; 1249 | }; 1250 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1251 | isa = PBXResourcesBuildPhase; 1252 | buildActionMask = 2147483647; 1253 | files = ( 1254 | ); 1255 | runOnlyForDeploymentPostprocessing = 0; 1256 | }; 1257 | /* End PBXResourcesBuildPhase section */ 1258 | 1259 | /* Begin PBXShellScriptBuildPhase section */ 1260 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1261 | isa = PBXShellScriptBuildPhase; 1262 | buildActionMask = 2147483647; 1263 | files = ( 1264 | ); 1265 | inputPaths = ( 1266 | ); 1267 | name = "Bundle React Native code and images"; 1268 | outputPaths = ( 1269 | ); 1270 | runOnlyForDeploymentPostprocessing = 0; 1271 | shellPath = /bin/sh; 1272 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1273 | }; 1274 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1275 | isa = PBXShellScriptBuildPhase; 1276 | buildActionMask = 2147483647; 1277 | files = ( 1278 | ); 1279 | inputPaths = ( 1280 | ); 1281 | name = "Bundle React Native Code And Images"; 1282 | outputPaths = ( 1283 | ); 1284 | runOnlyForDeploymentPostprocessing = 0; 1285 | shellPath = /bin/sh; 1286 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1287 | }; 1288 | /* End PBXShellScriptBuildPhase section */ 1289 | 1290 | /* Begin PBXSourcesBuildPhase section */ 1291 | 00E356EA1AD99517003FC87E /* Sources */ = { 1292 | isa = PBXSourcesBuildPhase; 1293 | buildActionMask = 2147483647; 1294 | files = ( 1295 | 00E356F31AD99517003FC87E /* ecommerceTests.m in Sources */, 1296 | ); 1297 | runOnlyForDeploymentPostprocessing = 0; 1298 | }; 1299 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1300 | isa = PBXSourcesBuildPhase; 1301 | buildActionMask = 2147483647; 1302 | files = ( 1303 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1304 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1305 | ); 1306 | runOnlyForDeploymentPostprocessing = 0; 1307 | }; 1308 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1309 | isa = PBXSourcesBuildPhase; 1310 | buildActionMask = 2147483647; 1311 | files = ( 1312 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1313 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1314 | ); 1315 | runOnlyForDeploymentPostprocessing = 0; 1316 | }; 1317 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1318 | isa = PBXSourcesBuildPhase; 1319 | buildActionMask = 2147483647; 1320 | files = ( 1321 | 2DCD954D1E0B4F2C00145EB5 /* ecommerceTests.m in Sources */, 1322 | ); 1323 | runOnlyForDeploymentPostprocessing = 0; 1324 | }; 1325 | /* End PBXSourcesBuildPhase section */ 1326 | 1327 | /* Begin PBXTargetDependency section */ 1328 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1329 | isa = PBXTargetDependency; 1330 | target = 13B07F861A680F5B00A75B9A /* ecommerce */; 1331 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1332 | }; 1333 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1334 | isa = PBXTargetDependency; 1335 | target = 2D02E47A1E0B4A5D006451C7 /* ecommerce-tvOS */; 1336 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1337 | }; 1338 | /* End PBXTargetDependency section */ 1339 | 1340 | /* Begin PBXVariantGroup section */ 1341 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1342 | isa = PBXVariantGroup; 1343 | children = ( 1344 | 13B07FB21A68108700A75B9A /* Base */, 1345 | ); 1346 | name = LaunchScreen.xib; 1347 | path = ecommerce; 1348 | sourceTree = ""; 1349 | }; 1350 | /* End PBXVariantGroup section */ 1351 | 1352 | /* Begin XCBuildConfiguration section */ 1353 | 00E356F61AD99517003FC87E /* Debug */ = { 1354 | isa = XCBuildConfiguration; 1355 | buildSettings = { 1356 | BUNDLE_LOADER = "$(TEST_HOST)"; 1357 | GCC_PREPROCESSOR_DEFINITIONS = ( 1358 | "DEBUG=1", 1359 | "$(inherited)", 1360 | ); 1361 | HEADER_SEARCH_PATHS = ( 1362 | "$(inherited)", 1363 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1364 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1365 | ); 1366 | INFOPLIST_FILE = ecommerceTests/Info.plist; 1367 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1369 | LIBRARY_SEARCH_PATHS = ( 1370 | "$(inherited)", 1371 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1372 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1373 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1374 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1375 | ); 1376 | OTHER_LDFLAGS = ( 1377 | "-ObjC", 1378 | "-lc++", 1379 | ); 1380 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1381 | PRODUCT_NAME = "$(TARGET_NAME)"; 1382 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ecommerce.app/ecommerce"; 1383 | }; 1384 | name = Debug; 1385 | }; 1386 | 00E356F71AD99517003FC87E /* Release */ = { 1387 | isa = XCBuildConfiguration; 1388 | buildSettings = { 1389 | BUNDLE_LOADER = "$(TEST_HOST)"; 1390 | COPY_PHASE_STRIP = NO; 1391 | HEADER_SEARCH_PATHS = ( 1392 | "$(inherited)", 1393 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1394 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1395 | ); 1396 | INFOPLIST_FILE = ecommerceTests/Info.plist; 1397 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1398 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1399 | LIBRARY_SEARCH_PATHS = ( 1400 | "$(inherited)", 1401 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1402 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1403 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1404 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1405 | ); 1406 | OTHER_LDFLAGS = ( 1407 | "-ObjC", 1408 | "-lc++", 1409 | ); 1410 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1411 | PRODUCT_NAME = "$(TARGET_NAME)"; 1412 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ecommerce.app/ecommerce"; 1413 | }; 1414 | name = Release; 1415 | }; 1416 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1417 | isa = XCBuildConfiguration; 1418 | buildSettings = { 1419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1420 | CURRENT_PROJECT_VERSION = 1; 1421 | DEAD_CODE_STRIPPING = NO; 1422 | HEADER_SEARCH_PATHS = ( 1423 | "$(inherited)", 1424 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1425 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1426 | ); 1427 | INFOPLIST_FILE = ecommerce/Info.plist; 1428 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1429 | OTHER_LDFLAGS = ( 1430 | "$(inherited)", 1431 | "-ObjC", 1432 | "-lc++", 1433 | ); 1434 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1435 | PRODUCT_NAME = ecommerce; 1436 | VERSIONING_SYSTEM = "apple-generic"; 1437 | }; 1438 | name = Debug; 1439 | }; 1440 | 13B07F951A680F5B00A75B9A /* Release */ = { 1441 | isa = XCBuildConfiguration; 1442 | buildSettings = { 1443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1444 | CURRENT_PROJECT_VERSION = 1; 1445 | HEADER_SEARCH_PATHS = ( 1446 | "$(inherited)", 1447 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1448 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1449 | ); 1450 | INFOPLIST_FILE = ecommerce/Info.plist; 1451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1452 | OTHER_LDFLAGS = ( 1453 | "$(inherited)", 1454 | "-ObjC", 1455 | "-lc++", 1456 | ); 1457 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1458 | PRODUCT_NAME = ecommerce; 1459 | VERSIONING_SYSTEM = "apple-generic"; 1460 | }; 1461 | name = Release; 1462 | }; 1463 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1464 | isa = XCBuildConfiguration; 1465 | buildSettings = { 1466 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1467 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1468 | CLANG_ANALYZER_NONNULL = YES; 1469 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1470 | CLANG_WARN_INFINITE_RECURSION = YES; 1471 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1472 | DEBUG_INFORMATION_FORMAT = dwarf; 1473 | ENABLE_TESTABILITY = YES; 1474 | GCC_NO_COMMON_BLOCKS = YES; 1475 | HEADER_SEARCH_PATHS = ( 1476 | "$(inherited)", 1477 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1478 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1479 | ); 1480 | INFOPLIST_FILE = "ecommerce-tvOS/Info.plist"; 1481 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1482 | LIBRARY_SEARCH_PATHS = ( 1483 | "$(inherited)", 1484 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1485 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1486 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1487 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1488 | ); 1489 | OTHER_LDFLAGS = ( 1490 | "-ObjC", 1491 | "-lc++", 1492 | ); 1493 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ecommerce-tvOS"; 1494 | PRODUCT_NAME = "$(TARGET_NAME)"; 1495 | SDKROOT = appletvos; 1496 | TARGETED_DEVICE_FAMILY = 3; 1497 | TVOS_DEPLOYMENT_TARGET = 9.2; 1498 | }; 1499 | name = Debug; 1500 | }; 1501 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1502 | isa = XCBuildConfiguration; 1503 | buildSettings = { 1504 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1505 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1506 | CLANG_ANALYZER_NONNULL = YES; 1507 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1508 | CLANG_WARN_INFINITE_RECURSION = YES; 1509 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1510 | COPY_PHASE_STRIP = NO; 1511 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1512 | GCC_NO_COMMON_BLOCKS = YES; 1513 | HEADER_SEARCH_PATHS = ( 1514 | "$(inherited)", 1515 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1516 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1517 | ); 1518 | INFOPLIST_FILE = "ecommerce-tvOS/Info.plist"; 1519 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1520 | LIBRARY_SEARCH_PATHS = ( 1521 | "$(inherited)", 1522 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1523 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1524 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1525 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1526 | ); 1527 | OTHER_LDFLAGS = ( 1528 | "-ObjC", 1529 | "-lc++", 1530 | ); 1531 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ecommerce-tvOS"; 1532 | PRODUCT_NAME = "$(TARGET_NAME)"; 1533 | SDKROOT = appletvos; 1534 | TARGETED_DEVICE_FAMILY = 3; 1535 | TVOS_DEPLOYMENT_TARGET = 9.2; 1536 | }; 1537 | name = Release; 1538 | }; 1539 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1540 | isa = XCBuildConfiguration; 1541 | buildSettings = { 1542 | BUNDLE_LOADER = "$(TEST_HOST)"; 1543 | CLANG_ANALYZER_NONNULL = YES; 1544 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1545 | CLANG_WARN_INFINITE_RECURSION = YES; 1546 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1547 | DEBUG_INFORMATION_FORMAT = dwarf; 1548 | ENABLE_TESTABILITY = YES; 1549 | GCC_NO_COMMON_BLOCKS = YES; 1550 | HEADER_SEARCH_PATHS = ( 1551 | "$(inherited)", 1552 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1553 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1554 | ); 1555 | INFOPLIST_FILE = "ecommerce-tvOSTests/Info.plist"; 1556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1557 | LIBRARY_SEARCH_PATHS = ( 1558 | "$(inherited)", 1559 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1560 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1561 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1562 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1563 | ); 1564 | OTHER_LDFLAGS = ( 1565 | "-ObjC", 1566 | "-lc++", 1567 | ); 1568 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ecommerce-tvOSTests"; 1569 | PRODUCT_NAME = "$(TARGET_NAME)"; 1570 | SDKROOT = appletvos; 1571 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ecommerce-tvOS.app/ecommerce-tvOS"; 1572 | TVOS_DEPLOYMENT_TARGET = 10.1; 1573 | }; 1574 | name = Debug; 1575 | }; 1576 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1577 | isa = XCBuildConfiguration; 1578 | buildSettings = { 1579 | BUNDLE_LOADER = "$(TEST_HOST)"; 1580 | CLANG_ANALYZER_NONNULL = YES; 1581 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1582 | CLANG_WARN_INFINITE_RECURSION = YES; 1583 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1584 | COPY_PHASE_STRIP = NO; 1585 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1586 | GCC_NO_COMMON_BLOCKS = YES; 1587 | HEADER_SEARCH_PATHS = ( 1588 | "$(inherited)", 1589 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1590 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1591 | ); 1592 | INFOPLIST_FILE = "ecommerce-tvOSTests/Info.plist"; 1593 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1594 | LIBRARY_SEARCH_PATHS = ( 1595 | "$(inherited)", 1596 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1597 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1598 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1599 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1600 | ); 1601 | OTHER_LDFLAGS = ( 1602 | "-ObjC", 1603 | "-lc++", 1604 | ); 1605 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ecommerce-tvOSTests"; 1606 | PRODUCT_NAME = "$(TARGET_NAME)"; 1607 | SDKROOT = appletvos; 1608 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ecommerce-tvOS.app/ecommerce-tvOS"; 1609 | TVOS_DEPLOYMENT_TARGET = 10.1; 1610 | }; 1611 | name = Release; 1612 | }; 1613 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1614 | isa = XCBuildConfiguration; 1615 | buildSettings = { 1616 | ALWAYS_SEARCH_USER_PATHS = NO; 1617 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1618 | CLANG_CXX_LIBRARY = "libc++"; 1619 | CLANG_ENABLE_MODULES = YES; 1620 | CLANG_ENABLE_OBJC_ARC = YES; 1621 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1622 | CLANG_WARN_BOOL_CONVERSION = YES; 1623 | CLANG_WARN_COMMA = YES; 1624 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1625 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1626 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1627 | CLANG_WARN_EMPTY_BODY = YES; 1628 | CLANG_WARN_ENUM_CONVERSION = YES; 1629 | CLANG_WARN_INFINITE_RECURSION = YES; 1630 | CLANG_WARN_INT_CONVERSION = YES; 1631 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1632 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1633 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1634 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1635 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1636 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1637 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1638 | CLANG_WARN_UNREACHABLE_CODE = YES; 1639 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1640 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1641 | COPY_PHASE_STRIP = NO; 1642 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1643 | ENABLE_TESTABILITY = YES; 1644 | GCC_C_LANGUAGE_STANDARD = gnu99; 1645 | GCC_DYNAMIC_NO_PIC = NO; 1646 | GCC_NO_COMMON_BLOCKS = YES; 1647 | GCC_OPTIMIZATION_LEVEL = 0; 1648 | GCC_PREPROCESSOR_DEFINITIONS = ( 1649 | "DEBUG=1", 1650 | "$(inherited)", 1651 | ); 1652 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1653 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1654 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1655 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1656 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1657 | GCC_WARN_UNUSED_FUNCTION = YES; 1658 | GCC_WARN_UNUSED_VARIABLE = YES; 1659 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1660 | MTL_ENABLE_DEBUG_INFO = YES; 1661 | ONLY_ACTIVE_ARCH = YES; 1662 | SDKROOT = iphoneos; 1663 | }; 1664 | name = Debug; 1665 | }; 1666 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1667 | isa = XCBuildConfiguration; 1668 | buildSettings = { 1669 | ALWAYS_SEARCH_USER_PATHS = NO; 1670 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1671 | CLANG_CXX_LIBRARY = "libc++"; 1672 | CLANG_ENABLE_MODULES = YES; 1673 | CLANG_ENABLE_OBJC_ARC = YES; 1674 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1675 | CLANG_WARN_BOOL_CONVERSION = YES; 1676 | CLANG_WARN_COMMA = YES; 1677 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1678 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1679 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1680 | CLANG_WARN_EMPTY_BODY = YES; 1681 | CLANG_WARN_ENUM_CONVERSION = YES; 1682 | CLANG_WARN_INFINITE_RECURSION = YES; 1683 | CLANG_WARN_INT_CONVERSION = YES; 1684 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1685 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1686 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1687 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1688 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1689 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1690 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1691 | CLANG_WARN_UNREACHABLE_CODE = YES; 1692 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1693 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1694 | COPY_PHASE_STRIP = YES; 1695 | ENABLE_NS_ASSERTIONS = NO; 1696 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1697 | GCC_C_LANGUAGE_STANDARD = gnu99; 1698 | GCC_NO_COMMON_BLOCKS = YES; 1699 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1700 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1701 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1702 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1703 | GCC_WARN_UNUSED_FUNCTION = YES; 1704 | GCC_WARN_UNUSED_VARIABLE = YES; 1705 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1706 | MTL_ENABLE_DEBUG_INFO = NO; 1707 | SDKROOT = iphoneos; 1708 | VALIDATE_PRODUCT = YES; 1709 | }; 1710 | name = Release; 1711 | }; 1712 | /* End XCBuildConfiguration section */ 1713 | 1714 | /* Begin XCConfigurationList section */ 1715 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ecommerceTests" */ = { 1716 | isa = XCConfigurationList; 1717 | buildConfigurations = ( 1718 | 00E356F61AD99517003FC87E /* Debug */, 1719 | 00E356F71AD99517003FC87E /* Release */, 1720 | ); 1721 | defaultConfigurationIsVisible = 0; 1722 | defaultConfigurationName = Release; 1723 | }; 1724 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ecommerce" */ = { 1725 | isa = XCConfigurationList; 1726 | buildConfigurations = ( 1727 | 13B07F941A680F5B00A75B9A /* Debug */, 1728 | 13B07F951A680F5B00A75B9A /* Release */, 1729 | ); 1730 | defaultConfigurationIsVisible = 0; 1731 | defaultConfigurationName = Release; 1732 | }; 1733 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ecommerce-tvOS" */ = { 1734 | isa = XCConfigurationList; 1735 | buildConfigurations = ( 1736 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1737 | 2D02E4981E0B4A5E006451C7 /* Release */, 1738 | ); 1739 | defaultConfigurationIsVisible = 0; 1740 | defaultConfigurationName = Release; 1741 | }; 1742 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ecommerce-tvOSTests" */ = { 1743 | isa = XCConfigurationList; 1744 | buildConfigurations = ( 1745 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1746 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1747 | ); 1748 | defaultConfigurationIsVisible = 0; 1749 | defaultConfigurationName = Release; 1750 | }; 1751 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ecommerce" */ = { 1752 | isa = XCConfigurationList; 1753 | buildConfigurations = ( 1754 | 83CBBA201A601CBA00E9B192 /* Debug */, 1755 | 83CBBA211A601CBA00E9B192 /* Release */, 1756 | ); 1757 | defaultConfigurationIsVisible = 0; 1758 | defaultConfigurationName = Release; 1759 | }; 1760 | /* End XCConfigurationList section */ 1761 | }; 1762 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1763 | } 1764 | -------------------------------------------------------------------------------- /ios/ecommerce.xcodeproj/xcshareddata/xcschemes/ecommerce-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/ecommerce.xcodeproj/xcshareddata/xcschemes/ecommerce.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/ecommerce/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/ecommerce/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:@"ecommerce" 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/ecommerce/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/ecommerce/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/ecommerce/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ecommerce/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ecommerce 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSLocationWhenInUseUsageDescription 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | NSAppTransportSecurity 44 | 45 | NSAllowsArbitraryLoads 46 | 47 | NSExceptionDomains 48 | 49 | localhost 50 | 51 | NSExceptionAllowsInsecureHTTPLoads 52 | 53 | 54 | 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 | Foundation.ttf 67 | Ionicons.ttf 68 | MaterialCommunityIcons.ttf 69 | MaterialIcons.ttf 70 | Octicons.ttf 71 | SimpleLineIcons.ttf 72 | Zocial.ttf 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /ios/ecommerce/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/ecommerceTests/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/ecommerceTests/ecommerceTests.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 | @interface ecommerceTests : XCTestCase 15 | 16 | @end 17 | 18 | @implementation ecommerceTests 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "~/*": ["src/*"] 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /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": "ecommerce", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest", 8 | "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls" 9 | }, 10 | "dependencies": { 11 | "axios": "^0.19.0", 12 | "prop-types": "^15.7.2", 13 | "react": "16.8.3", 14 | "react-native": "0.59.8", 15 | "react-native-gesture-handler": "^1.3.0", 16 | "react-native-iphone-x-helper": "^1.2.1", 17 | "react-native-vector-icons": "^6.4.2", 18 | "react-navigation": "^3.11.0", 19 | "react-redux": "^7.0.3", 20 | "reactotron-react-native": "^3.6.1", 21 | "reactotron-redux": "^3.1.1", 22 | "reactotron-redux-saga": "^4.2.2", 23 | "redux": "^4.0.1", 24 | "redux-saga": "^1.0.2", 25 | "reduxsauce": "^1.1.0", 26 | "rn-placeholder": "^2.0.0", 27 | "seamless-immutable": "^7.1.4", 28 | "styled-components": "^4.2.1" 29 | }, 30 | "devDependencies": { 31 | "@babel/core": "^7.4.5", 32 | "@babel/runtime": "^7.4.5", 33 | "axios-mock-adapter": "^1.16.0", 34 | "babel-eslint": "^10.0.1", 35 | "babel-jest": "^24.8.0", 36 | "babel-plugin-root-import": "^6.2.0", 37 | "coveralls": "^2.13.0", 38 | "enzyme": "^3.10.0", 39 | "enzyme-adapter-react-16": "^1.14.0", 40 | "eslint": "^5.16.0", 41 | "eslint-config-airbnb": "^17.1.0", 42 | "eslint-import-resolver-babel-plugin-root-import": "^1.1.1", 43 | "eslint-plugin-import": "^2.17.3", 44 | "eslint-plugin-jsx-a11y": "^6.2.1", 45 | "eslint-plugin-react": "^7.13.0", 46 | "eslint-plugin-react-native": "^3.7.0", 47 | "jest": "^24.8.0", 48 | "metro-react-native-babel-preset": "^0.54.1", 49 | "react-dom": "^16.8.6", 50 | "react-test-renderer": "16.8.3", 51 | "redux-mock-store": "^1.5.3" 52 | }, 53 | "jest": { 54 | "preset": "react-native", 55 | "setupFiles": [ 56 | "src/setupTests.js" 57 | ], 58 | "collectCoverageFrom": [ 59 | "src/components/**/*.js", 60 | "src/pages/**/*.js", 61 | "src/store/ducks/*.js", 62 | "!src/store/ducks/index.js", 63 | "src/store/sagas/*.js", 64 | "!src/store/sagas/index.js" 65 | ], 66 | "transformIgnorePatterns": [ 67 | "node_modules/(?!(jest-)?react-native|rn-placeholder)" 68 | ] 69 | }, 70 | "engines": { 71 | "node": "10.16.0", 72 | "npm": "6.9.0" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /server.json: -------------------------------------------------------------------------------- 1 | { 2 | "categories": [ 3 | { 4 | "id": 1, 5 | "title": "Camisetas" 6 | }, 7 | { 8 | "id": 2, 9 | "title": "Camisas" 10 | }, 11 | { 12 | "id": 3, 13 | "title": "Calças" 14 | }, 15 | { 16 | "id": 4, 17 | "title": "Blusas" 18 | }, 19 | { 20 | "id": 5, 21 | "title": "Bonés" 22 | }, 23 | { 24 | "id": 6, 25 | "title": "Casacos" 26 | } 27 | ], 28 | "category_products": [ 29 | { 30 | "id": 1, 31 | "products": [ 32 | { 33 | "id": 1, 34 | "name": "Camiseta Hyperas Preta", 35 | "brand": "Quiksilver", 36 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 37 | "price": 49.99 38 | }, 39 | { 40 | "id": 2, 41 | "name": "Camiseta Double Tap Preta", 42 | "brand": "Quiksilver", 43 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 44 | "price": 59.99 45 | }, 46 | { 47 | "id": 3, 48 | "name": "Camiseta Logo Azul", 49 | "brand": "Red Bull", 50 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 51 | "price": 54.99 52 | }, 53 | { 54 | "id": 4, 55 | "name": "Camiseta Primo Tipper", 56 | "brand": "Rip Curl", 57 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 58 | "price": 39.99 59 | } 60 | ] 61 | }, 62 | { 63 | "id": 2, 64 | "products": [ 65 | { 66 | "id": 2, 67 | "name": "Camiseta Double Tap Preta", 68 | "brand": "Quiksilver", 69 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 70 | "price": 59.99 71 | }, 72 | { 73 | "id": 3, 74 | "name": "Camiseta Logo Azul", 75 | "brand": "Red Bull", 76 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 77 | "price": 54.99 78 | }, 79 | { 80 | "id": 1, 81 | "name": "Camiseta Hyperas Preta", 82 | "brand": "Quiksilver", 83 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 84 | "price": 49.99 85 | }, 86 | { 87 | "id": 4, 88 | "name": "Camiseta Primo Tipper", 89 | "brand": "Rip Curl", 90 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 91 | "price": 39.99 92 | } 93 | ] 94 | }, 95 | { 96 | "id": 3, 97 | "products": [ 98 | { 99 | "id": 4, 100 | "name": "Camiseta Primo Tipper", 101 | "brand": "Rip Curl", 102 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 103 | "price": 39.99 104 | }, 105 | { 106 | "id": 2, 107 | "name": "Camiseta Double Tap Preta", 108 | "brand": "Quiksilver", 109 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 110 | "price": 59.99 111 | }, 112 | { 113 | "id": 3, 114 | "name": "Camiseta Logo Azul", 115 | "brand": "Red Bull", 116 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 117 | "price": 54.99 118 | }, 119 | { 120 | "id": 1, 121 | "name": "Camiseta Hyperas Preta", 122 | "brand": "Quiksilver", 123 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 124 | "price": 49.99 125 | } 126 | ] 127 | }, 128 | { 129 | "id": 4, 130 | "products": [ 131 | { 132 | "id": 2, 133 | "name": "Camiseta Double Tap Preta", 134 | "brand": "Quiksilver", 135 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 136 | "price": 59.99 137 | }, 138 | { 139 | "id": 3, 140 | "name": "Camiseta Logo Azul", 141 | "brand": "Red Bull", 142 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 143 | "price": 54.99 144 | }, 145 | { 146 | "id": 4, 147 | "name": "Camiseta Primo Tipper", 148 | "brand": "Rip Curl", 149 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 150 | "price": 39.99 151 | }, 152 | { 153 | "id": 1, 154 | "name": "Camiseta Hyperas Preta", 155 | "brand": "Quiksilver", 156 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 157 | "price": 49.99 158 | } 159 | ] 160 | }, 161 | { 162 | "id": 5, 163 | "products": [ 164 | { 165 | "id": 1, 166 | "name": "Camiseta Hyperas Preta", 167 | "brand": "Quiksilver", 168 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 169 | "price": 49.99 170 | }, 171 | { 172 | "id": 2, 173 | "name": "Camiseta Double Tap Preta", 174 | "brand": "Quiksilver", 175 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 176 | "price": 59.99 177 | }, 178 | { 179 | "id": 3, 180 | "name": "Camiseta Logo Azul", 181 | "brand": "Red Bull", 182 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 183 | "price": 54.99 184 | }, 185 | { 186 | "id": 4, 187 | "name": "Camiseta Primo Tipper", 188 | "brand": "Rip Curl", 189 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 190 | "price": 39.99 191 | } 192 | ] 193 | }, 194 | { 195 | "id": 6, 196 | "products": [ 197 | { 198 | "id": 2, 199 | "name": "Camiseta Double Tap Preta", 200 | "brand": "Quiksilver", 201 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 202 | "price": 59.99 203 | }, 204 | { 205 | "id": 3, 206 | "name": "Camiseta Logo Azul", 207 | "brand": "Red Bull", 208 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 209 | "price": 54.99 210 | }, 211 | { 212 | "id": 1, 213 | "name": "Camiseta Hyperas Preta", 214 | "brand": "Quiksilver", 215 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 216 | "price": 49.99 217 | }, 218 | { 219 | "id": 4, 220 | "name": "Camiseta Primo Tipper", 221 | "brand": "Rip Curl", 222 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 223 | "price": 39.99 224 | } 225 | ] 226 | } 227 | ], 228 | "products": [ 229 | { 230 | "id": 1, 231 | "name": "Camiseta Hyperas Preta", 232 | "brand": "Quiksilver", 233 | "image": "https://t-static.dafiti.com.br/czCvp3wBNPfehf7omYZfJacnxPY=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-hyperas-preta-8710-7136243-1-product.jpg", 234 | "price": 49.99 235 | }, 236 | { 237 | "id": 2, 238 | "name": "Camiseta Double Tap Preta", 239 | "brand": "Quiksilver", 240 | "image": "https://t-static.dafiti.com.br/EpEXepU-tSbgo6ZMl4Y5BOdjelw=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fquiksilver-camiseta-quiksilver-double-tap-preta-7115-8165043-1-product.jpg", 241 | "price": 59.99 242 | }, 243 | { 244 | "id": 3, 245 | "name": "Camiseta Logo Azul", 246 | "brand": "Red Bull", 247 | "image": "https://t-static.dafiti.com.br/aC9871vKWfL3bDgbhLx5sFLa7xs=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2fred-bull-camiseta-red-bull-logo-azul-0272-7714033-1-product.jpg", 248 | "price": 54.99 249 | }, 250 | { 251 | "id": 4, 252 | "name": "Camiseta Primo Tipper", 253 | "brand": "Rip Curl", 254 | "image": "https://t-static.dafiti.com.br/weG0u9eKZ4KBV-G0XFOQ5hoY4eI=/fit-in/427x620/dafitistatic-a.akamaihd.net%2fp%2frip-curl-camiseta-rip-curl-primo-tipper-preto-8138-3441052-1-product.jpg", 255 | "price": 39.99 256 | } 257 | ] 258 | } 259 | -------------------------------------------------------------------------------- /src/components/CategoriesHeader/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { bindActionCreators } from 'redux'; 3 | import { connect } from 'react-redux'; 4 | import PropTypes from 'prop-types'; 5 | 6 | import CategoriesActions from '~/store/ducks/categories'; 7 | 8 | import { 9 | Container, CategoryBar, Category, CategoriesList, Title, 10 | } from './styles'; 11 | 12 | class CategoriesHeader extends Component { 13 | static propTypes = { 14 | currentCategory: PropTypes.number.isRequired, 15 | setCurrent: PropTypes.func.isRequired, 16 | categories: PropTypes.arrayOf( 17 | PropTypes.shape({ 18 | id: PropTypes.number.isRequired, 19 | title: PropTypes.string.isRequired, 20 | }).isRequired, 21 | ), 22 | loadCategoriesRequest: PropTypes.func.isRequired, 23 | }; 24 | 25 | static defaultProps = { 26 | categories: [], 27 | }; 28 | 29 | componentDidMount() { 30 | const { loadCategoriesRequest } = this.props; 31 | 32 | loadCategoriesRequest(); 33 | } 34 | 35 | handleCurrentCategory = (currentId) => { 36 | const { setCurrent } = this.props; 37 | 38 | setCurrent(currentId); 39 | }; 40 | 41 | render() { 42 | const { categories, currentCategory } = this.props; 43 | 44 | return ( 45 | 46 | 47 | String(category.id)} 50 | showsHorizontalScrollIndicator={false} 51 | horizontal 52 | renderItem={({ item: category }) => ( 53 | this.handleCurrentCategory(category.id)} 55 | active={category.id === currentCategory} 56 | > 57 | {category.title} 58 | 59 | )} 60 | /> 61 | 62 | 63 | ); 64 | } 65 | } 66 | 67 | const mapStateToProps = state => ({ 68 | currentCategory: state.categories.currentId, 69 | categories: state.categories.items || [], 70 | }); 71 | 72 | const mapDispatchToProps = dispatch => bindActionCreators(CategoriesActions, dispatch); 73 | 74 | export default connect( 75 | mapStateToProps, 76 | mapDispatchToProps, 77 | )(CategoriesHeader); 78 | -------------------------------------------------------------------------------- /src/components/CategoriesHeader/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | 3 | import { colors, metrics } from '~/styles'; 4 | 5 | export const Container = styled.View` 6 | display: flex; 7 | background-color: ${colors.primary}; 8 | `; 9 | 10 | export const CategoryBar = styled.View` 11 | height: 54px; 12 | background-color: ${colors.secondary}; 13 | display: flex; 14 | justify-content: center; 15 | `; 16 | 17 | export const CategoriesList = styled.FlatList` 18 | padding: 0 ${metrics.basePadding}px; 19 | `; 20 | 21 | export const Category = styled.TouchableOpacity` 22 | margin-right: 30px; 23 | justify-content: center; 24 | padding-top: ${({ active }) => (active ? 5 : 0)}px; 25 | border-bottom-width: ${({ active }) => (active ? 5 : 0)}; 26 | border-color: ${colors.white}; 27 | `; 28 | 29 | export const Title = styled.Text` 30 | opacity: ${({ active }) => (active ? 1 : 0.6)}; 31 | color: ${colors.white}; 32 | font-weight: bold; 33 | text-transform: uppercase; 34 | `; 35 | -------------------------------------------------------------------------------- /src/components/ErrorMessage/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | 4 | import { connect } from 'react-redux'; 5 | import { bindActionCreators } from 'redux'; 6 | import ErrorActions from '~/store/ducks/error'; 7 | 8 | import { 9 | Container, Error, HideButton, HideIcon, 10 | } from './styles'; 11 | 12 | const ErrorMessage = ({ error: { message, visible }, hideError }) => visible && ( 13 | 14 | {message} 15 | 16 | 17 | 18 | 19 | ); 20 | 21 | ErrorMessage.propTypes = { 22 | hideError: PropTypes.func.isRequired, 23 | error: PropTypes.shape({ 24 | visible: PropTypes.bool.isRequired, 25 | message: PropTypes.string, 26 | }).isRequired, 27 | }; 28 | 29 | const mapStateToProps = state => ({ 30 | error: state.error, 31 | }); 32 | 33 | const mapDispatchToProps = dispatch => bindActionCreators(ErrorActions, dispatch); 34 | 35 | export default connect( 36 | mapStateToProps, 37 | mapDispatchToProps, 38 | )(ErrorMessage); 39 | -------------------------------------------------------------------------------- /src/components/ErrorMessage/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | import { Platform } from 'react-native'; 3 | import Icon from 'react-native-vector-icons/FontAwesome'; 4 | 5 | import { colors, metrics } from '~/styles'; 6 | 7 | export const Container = styled.View` 8 | width: ${metrics.screenWidth - metrics.basePadding}px; 9 | position: absolute; 10 | top: ${Platform.OS === 'android' ? metrics.baseMargin : metrics.baseMargin + 85}px; 11 | left: ${metrics.baseMargin}px; 12 | padding: ${metrics.baseMargin}px ${metrics.basePadding}px; 13 | background-color: ${colors.danger}; 14 | font-size: 14px; 15 | border-radius: ${metrics.baseRadius}; 16 | flex-direction: row; 17 | justify-content: space-between; 18 | align-items: center; 19 | `; 20 | 21 | export const Error = styled.Text` 22 | flex: 1; 23 | color: ${colors.white}; 24 | `; 25 | 26 | export const HideButton = styled.TouchableOpacity``; 27 | 28 | export const HideIcon = styled(Icon).attrs({ 29 | size: 20, 30 | color: colors.white, 31 | name: 'times', 32 | })``; 33 | -------------------------------------------------------------------------------- /src/components/PlaceholderLoading/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import Placeholder, { Media } from 'rn-placeholder'; 4 | 5 | import { PlaceholderView } from './styles'; 6 | 7 | const PlaceholderLoading = loading => ( 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | ); 19 | 20 | export default PlaceholderLoading; 21 | -------------------------------------------------------------------------------- /src/components/PlaceholderLoading/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | 3 | export const PlaceholderView = styled.View` 4 | display: flex; 5 | flex-direction: row; 6 | flex-wrap: wrap; 7 | align-content: space-between; 8 | `; 9 | -------------------------------------------------------------------------------- /src/components/ProductsList/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { bindActionCreators } from 'redux'; 3 | import { connect } from 'react-redux'; 4 | import { withNavigation } from 'react-navigation'; 5 | import PropTypes from 'prop-types'; 6 | 7 | import PlaceholderLoading from '~/components/PlaceholderLoading'; 8 | 9 | import ProductsActions from '~/store/ducks/products'; 10 | 11 | import { 12 | Container, ProductsList, ProductItem, Image, Name, Brand, Price, 13 | } from './styles'; 14 | 15 | class ProductList extends Component { 16 | static propTypes = { 17 | items: PropTypes.arrayOf( 18 | PropTypes.shape({ 19 | id: PropTypes.number.isRequired, 20 | }), 21 | ).isRequired, 22 | categoryId: PropTypes.number.isRequired, 23 | loadProductsRequest: PropTypes.func.isRequired, 24 | navigation: PropTypes.shape({ 25 | navigate: PropTypes.func.isRequired, 26 | }).isRequired, 27 | }; 28 | 29 | state = { 30 | currentCategory: 1, 31 | }; 32 | 33 | componentDidMount() { 34 | this.loadProductsList(); 35 | } 36 | 37 | componentDidUpdate() { 38 | const { categoryId } = this.props; 39 | const { currentCategory } = this.state; 40 | 41 | if (currentCategory !== categoryId) this.loadProductsList(); 42 | } 43 | 44 | loadProductsList = () => { 45 | const { categoryId, loadProductsRequest } = this.props; 46 | this.setState({ currentCategory: categoryId }); 47 | 48 | loadProductsRequest(categoryId); 49 | }; 50 | 51 | handleProductClick = (product) => { 52 | const { navigation } = this.props; 53 | 54 | navigation.navigate('Product', { product }); 55 | }; 56 | 57 | render() { 58 | const { items, loading } = this.props; 59 | 60 | return loading ? ( 61 | 62 | ) : ( 63 | 64 | String(item.id)} 67 | numColumns={2} 68 | showsVerticalScrollIndicator={false} 69 | renderItem={({ item: product }) => ( 70 | this.handleProductClick(product)}> 71 | 72 | {product.name} 73 | {product.brand} 74 | {`$ ${product.price}`} 75 | 76 | )} 77 | /> 78 | 79 | ); 80 | } 81 | } 82 | 83 | const mapStateToProps = state => ({ 84 | items: state.products.items, 85 | loading: state.products.loading, 86 | categoryId: state.categories.currentId, 87 | }); 88 | 89 | const mapDispatchToProps = dispatch => bindActionCreators(ProductsActions, dispatch); 90 | 91 | export default connect( 92 | mapStateToProps, 93 | mapDispatchToProps, 94 | )(withNavigation(ProductList)); 95 | -------------------------------------------------------------------------------- /src/components/ProductsList/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | 3 | import { colors, metrics } from '~/styles'; 4 | 5 | export const Container = styled.View` 6 | background: ${colors.lighter}; 7 | `; 8 | 9 | export const ProductsList = styled.FlatList.attrs({ 10 | contentContainerStyle: { 11 | paddingTop: metrics.basePadding, 12 | paddingBottom: metrics.basePadding, 13 | }, 14 | columnWrapperStyle: { 15 | marginHorizontal: metrics.basePadding, 16 | justifyContent: 'space-between', 17 | }, 18 | })``; 19 | 20 | export const ProductItem = styled.TouchableOpacity.attrs({ 21 | activeOpacity: 0.6, 22 | })` 23 | width: ${(metrics.screenWidth - 50) / 2}px; 24 | margin-top: ${metrics.baseMargin}px; 25 | padding: ${metrics.baseMargin}px; 26 | background-color: ${colors.white}; 27 | border-radius: ${metrics.baseRadius}px; 28 | `; 29 | 30 | export const Image = styled.Image.attrs({ 31 | resizeMode: 'contain', 32 | })` 33 | height: 180px; 34 | `; 35 | 36 | export const Name = styled.Text` 37 | margin-top: ${metrics.baseMargin}px; 38 | font-size: 16px; 39 | color: ${colors.darker}; 40 | font-weight: bold; 41 | `; 42 | 43 | export const Brand = styled.Text` 44 | font-size: 12px; 45 | color: ${colors.gray}; 46 | margin-top: 2px; 47 | `; 48 | 49 | export const Price = styled.Text` 50 | font-size: 14px; 51 | color: ${colors.green}; 52 | font-weight: bold; 53 | margin-top: ${metrics.baseMargin / 2}; 54 | `; 55 | -------------------------------------------------------------------------------- /src/config/ReactotronConfig.js: -------------------------------------------------------------------------------- 1 | import Reactotron from 'reactotron-react-native'; 2 | import { reactotronRedux } from 'reactotron-redux'; 3 | import sagaPlugin from 'reactotron-redux-saga'; 4 | 5 | if (__DEV__) { 6 | const tron = Reactotron.configure() 7 | .use(reactotronRedux()) 8 | .use(sagaPlugin()) 9 | .connect(); 10 | 11 | tron.clear(); 12 | 13 | console.tron = tron; 14 | } 15 | -------------------------------------------------------------------------------- /src/config/StatusBarConfig.js: -------------------------------------------------------------------------------- 1 | import { StatusBar, Platform } from 'react-native'; 2 | 3 | StatusBar.setBarStyle('light-content'); 4 | 5 | if (Platform.OS === 'android') { 6 | StatusBar.setBackgroundColor('#FF9696'); 7 | } 8 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import '~/config/ReactotronConfig'; 4 | import '~/config/StatusBarConfig'; 5 | 6 | import { Provider } from 'react-redux'; 7 | import store from '~/store'; 8 | 9 | import Routes from '~/routes'; 10 | 11 | import ErrorMessage from '~/components/ErrorMessage'; 12 | 13 | const App = () => ( 14 | 15 | 16 | 17 | 18 | ); 19 | 20 | export default App; 21 | -------------------------------------------------------------------------------- /src/pages/Cart/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component, Fragment } from 'react'; 2 | import { bindActionCreators } from 'redux'; 3 | import { connect } from 'react-redux'; 4 | import { Alert } from 'react-native'; 5 | import PropTypes from 'prop-types'; 6 | 7 | import CartActions from '~/store/ducks/cart'; 8 | 9 | import { colors } from '~./styles'; 10 | import { 11 | Container, 12 | CartList, 13 | CartItem, 14 | Image, 15 | Info, 16 | Name, 17 | Brand, 18 | Price, 19 | Form, 20 | AmountInput, 21 | DeleteButton, 22 | DeleteIcon, 23 | EmptyMessage, 24 | SubTotal, 25 | SubTotalText, 26 | SubTotalPrice, 27 | } from './styles'; 28 | 29 | class Cart extends Component { 30 | static navigationOptions = { 31 | title: 'Cart', 32 | headerTitleStyle: { color: colors.secondary }, 33 | }; 34 | 35 | static propTypes = { 36 | removeItem: PropTypes.func.isRequired, 37 | changeItemQuantity: PropTypes.func.isRequired, 38 | amount: PropTypes.number.isRequired, 39 | items: PropTypes.arrayOf( 40 | PropTypes.shape({ 41 | id: PropTypes.number.isRequired, 42 | image: PropTypes.string.isRequired, 43 | name: PropTypes.string.isRequired, 44 | brand: PropTypes.string.isRequired, 45 | price: PropTypes.number.isRequired, 46 | }), 47 | ).isRequired, 48 | }; 49 | 50 | handleConfirmDelete = (product) => { 51 | const { removeItem } = this.props; 52 | 53 | Alert.alert('Remove item', 'Are you sure you want to delete this item?', [ 54 | { text: 'Cancel' }, 55 | { text: 'Yes', onPress: () => removeItem(product.id) }, 56 | ]); 57 | }; 58 | 59 | render() { 60 | const { items, amount, changeItemQuantity } = this.props; 61 | 62 | return ( 63 | 64 | {items.length > 0 ? ( 65 | 66 | String(item.id)} 69 | showsVerticalScrollIndicator={false} 70 | renderItem={({ item: product }) => ( 71 | 72 | 73 | 74 | {product.name} 75 | {product.brand} 76 | {`$ ${product.price}`} 77 | 78 |
79 | changeItemQuantity(product.id, Number(text))} 86 | > 87 | {product.amount} 88 | 89 | this.handleConfirmDelete(product)}> 90 | 91 | 92 |
93 |
94 | )} 95 | /> 96 | 97 | Total 98 | {`R$ ${amount.toFixed(2)}`} 99 | 100 |
101 | ) : ( 102 | There are no products in the cart. 103 | )} 104 |
105 | ); 106 | } 107 | } 108 | 109 | const mapStateToProps = state => ({ 110 | items: state.cart.items, 111 | amount: state.cart.items.reduce((total, item) => total + item.quantity * item.price, 0), // Calculate amount of price * quantity 112 | }); 113 | 114 | const mapDispatchToProps = dispatch => bindActionCreators(CartActions, dispatch); 115 | 116 | export default connect( 117 | mapStateToProps, 118 | mapDispatchToProps, 119 | )(Cart); 120 | -------------------------------------------------------------------------------- /src/pages/Cart/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | 3 | import { colors, metrics } from '~/styles'; 4 | 5 | import Icon from 'react-native-vector-icons/FontAwesome'; 6 | 7 | export const Container = styled.View` 8 | flex: 1; 9 | background: ${colors.lighter}; 10 | `; 11 | 12 | export const CartList = styled.FlatList` 13 | padding: ${metrics.basePadding}px; 14 | `; 15 | 16 | export const CartItem = styled.View` 17 | flex-direction: row; 18 | align-items: center; 19 | justify-content: space-between; 20 | margin-bottom: ${metrics.baseMargin}px; 21 | padding: ${metrics.basePadding}px; 22 | background: ${colors.white}; 23 | border-radius: ${metrics.baseRadius}px; 24 | `; 25 | 26 | export const Image = styled.Image.attrs({ 27 | resizeMode: 'contain', 28 | })` 29 | width: 60px; 30 | height: 80px; 31 | `; 32 | 33 | export const Info = styled.View` 34 | flex: 1; 35 | margin: 0 ${metrics.baseMargin}px; 36 | `; 37 | 38 | export const Name = styled.Text` 39 | font-size: 16px; 40 | color: ${colors.dark}; 41 | font-weight: bold; 42 | `; 43 | 44 | export const Brand = styled.Text` 45 | font-size: 12px; 46 | color: ${colors.gray}; 47 | margin-top: 2px; 48 | `; 49 | 50 | export const Price = styled.Text` 51 | font-size: 16px; 52 | color: ${colors.green}; 53 | font-weight: bold; 54 | margin-top: ${metrics.baseMargin / 2}px; 55 | `; 56 | 57 | export const Form = styled.View` 58 | flex-direction: row; 59 | align-items: center; 60 | `; 61 | 62 | export const AmountInput = styled.TextInput.attrs({ 63 | underlineColorAndroid: 'transparent', 64 | })` 65 | width: 45px; 66 | height: 30px; 67 | padding: 0 ${metrics.baseMargin}px; 68 | padding-left: ${metrics.baseMargin}px; 69 | border-width: 1px; 70 | border-color: ${colors.gray}; 71 | border-radius: ${metrics.baseRadius}px; 72 | font-weight: bold; 73 | color: ${colors.regular}; 74 | `; 75 | 76 | export const DeleteButton = styled.TouchableOpacity` 77 | margin-left: ${metrics.baseMargin}px; 78 | `; 79 | 80 | export const DeleteIcon = styled(Icon).attrs({ 81 | size: 20, 82 | color: colors.regular, 83 | name: 'times', 84 | })``; 85 | 86 | export const EmptyMessage = styled.Text` 87 | margin-top: ${metrics.baseMargin * 2}; 88 | font-size: 16px; 89 | text-align: center; 90 | color: ${colors.dark}; 91 | font-weight: bold; 92 | `; 93 | 94 | export const SubTotal = styled.View` 95 | height: 110px; 96 | background-color: ${colors.white}; 97 | border-top-width: 3px; 98 | border-color: ${colors.lighter}; 99 | align-items: center; 100 | justify-content: center; 101 | `; 102 | 103 | export const SubTotalText = styled.Text` 104 | font-size: 14px; 105 | font-weight: bold; 106 | color: ${colors.gray}; 107 | `; 108 | 109 | export const SubTotalPrice = styled.Text` 110 | font-size: 24px; 111 | font-weight: bold; 112 | color: ${colors.green}; 113 | margin-top: ${metrics.baseMargin}px; 114 | `; 115 | -------------------------------------------------------------------------------- /src/pages/Main/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { Container } from './styles'; 4 | 5 | import CategoriesHeader from '~/components/CategoriesHeader'; 6 | import ProductsList from '~/components/ProductsList'; 7 | 8 | const Main = () => ( 9 | 10 | 11 | 12 | 13 | ); 14 | 15 | Main.navigationOptions = { 16 | title: 'GoCommerce', 17 | headerTitleStyle: { color: '#f19d9d' }, 18 | }; 19 | 20 | export default Main; 21 | -------------------------------------------------------------------------------- /src/pages/Main/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | 3 | export const Container = styled.View` 4 | background: #f6f6f6; 5 | `; 6 | -------------------------------------------------------------------------------- /src/pages/Product/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { View } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | import { bindActionCreators } from 'redux'; 5 | import PropTypes from 'prop-types'; 6 | 7 | import CartActions from '~/store/ducks/cart'; 8 | 9 | import { colors } from '~./styles'; 10 | import { 11 | Container, 12 | ProductCard, 13 | Image, 14 | Info, 15 | Text, 16 | Name, 17 | Brand, 18 | Price, 19 | Button, 20 | ButtonText, 21 | } from './styles'; 22 | 23 | class Product extends Component { 24 | static navigationOptions = { 25 | title: 'Product Details', 26 | headerTintColor: colors.secondary, 27 | headerTitleContainerStyle: { 28 | justifyContent: 'center', 29 | }, 30 | headerRight: , 31 | }; 32 | 33 | static propTypes = { 34 | addItem: PropTypes.func.isRequired, 35 | navigation: PropTypes.shape({ 36 | navigate: PropTypes.func.isRequired, 37 | }).isRequired, 38 | }; 39 | 40 | handleAddToCart = (product) => { 41 | const { addItem, navigation } = this.props; 42 | 43 | addItem(product); 44 | navigation.navigate('Cart'); 45 | }; 46 | 47 | render() { 48 | const { navigation } = this.props; 49 | const product = navigation.getParam('product'); 50 | 51 | return ( 52 | 53 | 54 | 55 | 56 | 57 | {product.name} 58 | {product.brand} 59 | 60 | {`$ ${product.price}`} 61 | 62 | 69 | 70 | 71 | ); 72 | } 73 | } 74 | 75 | const mapDispatchToProps = dispatch => bindActionCreators(CartActions, dispatch); 76 | 77 | export default connect( 78 | null, 79 | mapDispatchToProps, 80 | )(Product); 81 | -------------------------------------------------------------------------------- /src/pages/Product/styles.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components/native'; 2 | 3 | import { colors, metrics } from '~/styles'; 4 | 5 | export const Container = styled.View` 6 | flex: 1; 7 | padding: ${metrics.basePadding}px; 8 | background: ${colors.lighter}; 9 | `; 10 | 11 | export const ProductCard = styled.View` 12 | padding: ${metrics.basePadding}px; 13 | background-color: ${colors.white}; 14 | border-radius: ${metrics.baseRadius}px; 15 | `; 16 | 17 | export const Image = styled.Image.attrs({ 18 | resizeMode: 'contain', 19 | })` 20 | height: 300px; 21 | `; 22 | 23 | export const Info = styled.View` 24 | margin-top: ${metrics.baseMargin}px; 25 | flex-direction: row; 26 | align-items: center; 27 | justify-content: center; 28 | `; 29 | 30 | export const Text = styled.View` 31 | flex: 1; 32 | `; 33 | 34 | export const Name = styled.Text` 35 | font-size: 20px; 36 | color: ${colors.darker}; 37 | font-weight: bold; 38 | `; 39 | 40 | export const Brand = styled.Text` 41 | font-size: 14px; 42 | color: ${colors.gray}; 43 | margin-top: 2px; 44 | `; 45 | 46 | export const Price = styled.Text` 47 | font-size: 22px; 48 | color: ${colors.green}; 49 | font-weight: bold; 50 | `; 51 | 52 | export const Button = styled.TouchableOpacity` 53 | height: 45px; 54 | margin-top: ${metrics.basePadding}; 55 | background-color: ${colors.green}; 56 | align-items: center; 57 | justify-content: center; 58 | border-radius: ${metrics.baseRadius}; 59 | `; 60 | 61 | export const ButtonText = styled.Text` 62 | color: ${colors.white}; 63 | font-weight: bold; 64 | `; 65 | -------------------------------------------------------------------------------- /src/routes.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | createAppContainer, 4 | createStackNavigator, 5 | createBottomTabNavigator, 6 | } from 'react-navigation'; 7 | import FAwesomeIcon from 'react-native-vector-icons/FontAwesome5'; 8 | 9 | import Main from '~/pages/Main'; 10 | import Cart from '~/pages/Cart'; 11 | import Product from '~/pages/Product'; 12 | 13 | const Home = createStackNavigator({ Main, Product }); 14 | const CartList = createStackNavigator({ Cart }); 15 | 16 | const BottomNavigatorConfig = { 17 | tabBarOptions: { 18 | showLabel: false, 19 | }, 20 | }; 21 | 22 | const RouterConfig = createBottomTabNavigator( 23 | { 24 | Home: { 25 | screen: Home, 26 | navigationOptions: () => ({ 27 | tabBarIcon: ({ focused }) => ( 28 | 29 | ), 30 | }), 31 | }, 32 | CartList: { 33 | screen: CartList, 34 | navigationOptions: () => ({ 35 | tabBarIcon: ({ focused }) => ( 36 | 37 | ), 38 | }), 39 | }, 40 | }, 41 | BottomNavigatorConfig, 42 | ); 43 | 44 | const Routes = createAppContainer(RouterConfig); 45 | 46 | export default Routes; 47 | -------------------------------------------------------------------------------- /src/services/api.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | const api = axios.create({ 4 | baseURL: 'http://localhost:3001', 5 | }); 6 | 7 | export default api; 8 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | import Enzyme from 'enzyme'; 2 | import Adapter from 'enzyme-adapter-react-16'; 3 | 4 | jest.mock('TouchableOpacity', () => 'TouchableOpacity'); 5 | 6 | Enzyme.configure({ adapter: new Adapter() }); 7 | -------------------------------------------------------------------------------- /src/store/ducks/cart.js: -------------------------------------------------------------------------------- 1 | import { createReducer, createActions } from 'reduxsauce'; 2 | import Immutable from 'seamless-immutable'; 3 | 4 | const { Types, Creators } = createActions({ 5 | addItem: ['item'], 6 | removeItem: ['itemId'], 7 | changeItemQuantity: ['itemId', 'quantity'], 8 | }); 9 | 10 | export const CartTypes = Types; 11 | export default Creators; 12 | 13 | const INITIAL_STATE = Immutable({ 14 | items: [], 15 | }); 16 | 17 | export const reducer = createReducer(INITIAL_STATE, { 18 | [Types.ADD_ITEM]: (state, { item }) => { 19 | const foundItem = state.items.find(product => product.id === item.id); 20 | if (foundItem) { 21 | return { 22 | items: state.items.map(product => (product.id === item.id ? { ...product, quantity: product.quantity + 1 } : product)), 23 | }; 24 | } 25 | 26 | return { items: [...state.items, { ...item, quantity: 1 }] }; 27 | }, 28 | [Types.REMOVE_ITEM]: (state, { itemId }) => ({ 29 | items: [...state.items.filter(item => item.id !== itemId)], 30 | }), 31 | [Types.CHANGE_ITEM_QUANTITY]: (state, { itemId, quantity }) => ({ 32 | items: state.items.map(item => (item.id === itemId ? { ...item, quantity } : item)), 33 | }), 34 | }); 35 | -------------------------------------------------------------------------------- /src/store/ducks/categories.js: -------------------------------------------------------------------------------- 1 | import { createReducer, createActions } from 'reduxsauce'; 2 | import Immutable from 'seamless-immutable'; 3 | 4 | const { Types, Creators } = createActions({ 5 | loadCategoriesRequest: null, 6 | loadCategoriesSuccess: ['items'], 7 | setCurrent: ['currentId'], 8 | }); 9 | 10 | export const CategoriesTypes = Types; 11 | export default Creators; 12 | 13 | const INITIAL_STATE = Immutable({ 14 | items: [], 15 | currentId: 1, 16 | }); 17 | 18 | export const reducer = createReducer(INITIAL_STATE, { 19 | [Types.LOAD_CATEGORIES_SUCCESS]: (state, { items }) => ({ ...state, items }), 20 | [Types.SET_CURRENT]: (state, { currentId }) => ({ ...state, currentId }), 21 | }); 22 | -------------------------------------------------------------------------------- /src/store/ducks/error.js: -------------------------------------------------------------------------------- 1 | import { createReducer, createActions } from 'reduxsauce'; 2 | import Immutable from 'seamless-immutable'; 3 | 4 | const { Types, Creators } = createActions({ 5 | setError: ['message'], 6 | hideError: null, 7 | }); 8 | 9 | export const ErrorTypes = Types; 10 | export default Creators; 11 | 12 | export const INITIAL_STATE = Immutable({ 13 | visible: false, 14 | message: null, 15 | }); 16 | 17 | export const reducer = createReducer(INITIAL_STATE, { 18 | [Types.SET_ERROR]: (state, { message }) => ({ visible: true, message }), 19 | [Types.HIDE_ERROR]: () => ({ visible: false, message: null }), 20 | }); 21 | -------------------------------------------------------------------------------- /src/store/ducks/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | 3 | import { reducer as cart } from './cart'; 4 | import { reducer as products } from './products'; 5 | import { reducer as categories } from './categories'; 6 | import { reducer as error } from './error'; 7 | 8 | const reducers = combineReducers({ 9 | cart, 10 | products, 11 | categories, 12 | error, 13 | }); 14 | 15 | export default reducers; 16 | -------------------------------------------------------------------------------- /src/store/ducks/products.js: -------------------------------------------------------------------------------- 1 | import { createReducer, createActions } from 'reduxsauce'; 2 | import Immutable from 'seamless-immutable'; 3 | 4 | const { Types, Creators } = createActions({ 5 | loadProductsRequest: ['categoryId'], 6 | loadProductsSuccess: ['items'], 7 | }); 8 | 9 | export const ProductTypes = Types; 10 | export default Creators; 11 | 12 | const INITIAL_STATE = Immutable({ 13 | items: [], 14 | loading: false, 15 | }); 16 | 17 | export const reducer = createReducer(INITIAL_STATE, { 18 | [Types.LOAD_PRODUCTS_REQUEST]: state => ({ ...state, loading: true }), 19 | [Types.LOAD_PRODUCTS_SUCCESS]: (state, { items }) => ({ ...state, items, loading: false }), 20 | }); 21 | -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | import { createStore, compose, applyMiddleware } from 'redux'; 2 | import createSagaMiddleware from 'redux-saga'; 3 | 4 | import reducers from './ducks'; 5 | import sagas from './sagas'; 6 | 7 | const middlewares = []; 8 | 9 | const sagaMonitor = __DEV__ ? console.tron.createSagaMonitor() : null; 10 | 11 | const sagaMiddleware = createSagaMiddleware({ sagaMonitor }); 12 | 13 | middlewares.push(sagaMiddleware); 14 | 15 | const composer = __DEV__ 16 | ? compose( 17 | applyMiddleware(...middlewares), 18 | console.tron.createEnhancer(), 19 | ) 20 | : compose(applyMiddleware(...middlewares)); 21 | 22 | const store = createStore(reducers, composer); 23 | 24 | sagaMiddleware.run(sagas); 25 | 26 | export default store; 27 | -------------------------------------------------------------------------------- /src/store/sagas/categories.js: -------------------------------------------------------------------------------- 1 | import { call, put } from 'redux-saga/effects'; 2 | import api from '~/services/api'; 3 | 4 | import CategoriesActions from '~/store/ducks/categories'; 5 | import ErrorActions from '~/store/ducks/error'; 6 | 7 | export function* loadCategories() { 8 | try { 9 | const response = yield call(api.get, '/categories'); 10 | yield put(CategoriesActions.loadCategoriesSuccess(response.data)); 11 | } catch (err) { 12 | yield put(ErrorActions.setError('Oh, something is wrong now, try again!')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/store/sagas/index.js: -------------------------------------------------------------------------------- 1 | import { all, takeLatest } from 'redux-saga/effects'; 2 | 3 | import { ProductTypes } from '../ducks/products'; 4 | import { CategoriesTypes } from '../ducks/categories'; 5 | 6 | import { loadProducts } from './products'; 7 | import { loadCategories } from './categories'; 8 | 9 | export default function* rootSaga() { 10 | yield all([ 11 | takeLatest(ProductTypes.LOAD_PRODUCTS_REQUEST, loadProducts), 12 | takeLatest(CategoriesTypes.LOAD_CATEGORIES_REQUEST, loadCategories), 13 | ]); 14 | } 15 | -------------------------------------------------------------------------------- /src/store/sagas/products.js: -------------------------------------------------------------------------------- 1 | import { call, put } from 'redux-saga/effects'; 2 | import api from '~/services/api'; 3 | 4 | import ProductActions from '~/store/ducks/products'; 5 | import ErrorActions from '~/store/ducks/error'; 6 | 7 | export function* loadProducts({ categoryId }) { 8 | try { 9 | const { data } = yield call(api.get, `/category_products/${categoryId}`); 10 | yield put(ProductActions.loadProductsSuccess(data.products, categoryId)); 11 | } catch (err) { 12 | yield put(ErrorActions.setError('Oh, something is wrong now, try again!')); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/styles/colors.js: -------------------------------------------------------------------------------- 1 | export default { 2 | white: '#FFF', 3 | lighter: '#f5f5f5', 4 | light: '#DDD', 5 | regular: '#999', 6 | dark: '#666', 7 | darker: '#333', 8 | black: '#000', 9 | 10 | primary: '#F5F5F5', 11 | secondary: '#FF9696', 12 | success: '#9DCA83', 13 | danger: '#E37A7A', 14 | gray: '#C0C0C0', 15 | green: '#37BEA9', 16 | 17 | transparent: 'transparent', 18 | darkTransparent: 'rgba(0, 0, 0, 0.6)', 19 | whiteTransparent: 'rgba(255, 255, 255, 0.3)', 20 | }; 21 | -------------------------------------------------------------------------------- /src/styles/index.js: -------------------------------------------------------------------------------- 1 | import colors from './colors'; 2 | import metrics from './metrics'; 3 | 4 | export { colors, metrics }; 5 | -------------------------------------------------------------------------------- /src/styles/metrics.js: -------------------------------------------------------------------------------- 1 | import { Dimensions } from 'react-native'; 2 | 3 | const { width, height } = Dimensions.get('window'); 4 | 5 | export default { 6 | basePadding: 20, 7 | baseMargin: 10, 8 | baseRadius: 3, 9 | screenWidth: width < height ? width : height, 10 | screenHeight: width < height ? height : width, 11 | }; 12 | --------------------------------------------------------------------------------