8000 GitHub - Prosquid1/ClothesStore-React-Native: React Native Integration for ClothesStore
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Prosquid1/ClothesStore-React-Native

Repository files navigation

ClothesStore (React-Native)

RNHome is a React Native implementation and mixed-code integration of the ClothesStore-iOS project

App Demo Gif

Data Fetching Procedure:

Subclassed DataSourcePresenter to HomePresenter to interact with the bridge as DataSourcePresenter initially served as a base presenter which did all the fetching based on the inferred model type.

Bundling:

Bundle resources with the command below

react-native bundle --entry-file='./index.js' --bundle-output='./main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'

If you want to hot reload with active changes, in HomeController.swift, change the jsCodeLocation to your local environment

let jsCodeLocation = URL(string: "http://localhost:8081/index.bundle?platform=ios")!

Note:

1.main.jsbundle was deliberately added to avoid re-bundling and for those who want to directly run from Xcode without having to do any major setup.

2.The backend was designed in a way that certain REST requests had to be chained, hence the full refresh in some controllers.

About

React Native Integration for ClothesStore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0