A React Native Clone of the popular ASOS App, this project was done over one weekend a period of time for learning purposes and is theremore not being maintained. Feel free to fork and use as you please.
It is platform agnostic although nearly all work done so far has been written and tested on iOS.
React-Native is a powerful tool for creating UI, and therefore i've focussed only on the UI. The business logic including data retrieval is ommitted from this project.
This project is build on the expo sdk and you can play with the app here
- Dynamic Home Page
- Category Listing
- Product List
- Product Info (limited functionality
- Basket
- Favourites
- Account
- A lot, the styling is all over the place, component re-usability breaks any Software Engineering decorum.
If you fork this project, feel free to extend the following features.
- API Services (
Images will eventually break once ASOS updates their CMSmost images embeded within the app apart from the contents in the basket) - Basket management
- Recently Viewed Objects
- Account information
- No Tests! I like living dangerously
Expo is the easiest way to start building a new React Native application. It allows you to start a project without installing or configuring any tools to build native code - no Xcode or Android Studio installation required (see Caveats).
-
Clone the app
git clone https://github.com/webmobi59/ASOS.git
Assuming that you have Node installed, you can use npm to install the Expo CLI command line utility:
npm install -g expo-cli
-
Start the Expo server
expo start
Install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo app to scan the QR code from your terminal to open your project. On iOS, follow on-screen instructions to get a link.
Now that you have successfully run the app, let's modify it. Open Homepage.js
in your text editor of choice and edit some lines. The application should reload automatically once you save your changes.
That's it!
Congratulations! You've successfully run and modified the ASOS RN app!.
If you encounter any problem, refer to the React Native Documentation.
To run the project, you will need Node, Watchman, React-Native CLI and Xcode or Android SDK depending on your chosen platform, you can install these using Homebrew
brew install node
brew install watchman
Node comes with npm, you can use Yarn if you prefer or any other package manager.
npm install -g react-native-cli
- Android SDK or Xcode
Get Xcode from the Mac App Store
.
├── tests
├── .expo
├── assets <== Images, fonts and other assets
├── compnents <== All the "dumb" ui widgets go here**
├── constants
├── navigation <== Tabbar management and routing
├── node_modules <== bleh!
├── screens <=== top level views akin to viewcontrollers**
├── store <== currently unused json
├── App.js <== Main entry point for our project
All the interesting things are within the components and containers group.
The iOS app utilises the MainTabNavigation.js
file for ALL navigation, we implement the tabbar from here and use React Navigation to get stuff done. This library saved a tonne of work usually associated with rolling out your own Navigator + Redux setup.
Expo to the rescue!
Just fork the repo and do your thing.
In my past life, I used to write apps for other high street brands including Topshop, Topman, Burton, JackWills (offline), Harrods and others I can't recall. So I've got vast experience in building withing the "app commerce" domain and it's truely unbelievable how quick developing with React-Native is.
So here's the deal, I am available for freelance work (as in after work & weekends kinda work) if you are in need of quick dev work in React-Native, Swift or Objective-C let's talk 📧
This project is licensed under the MIT License - see the LICENSE.md file for details