Skip to content

A lightweight framework based on React Native + Redux + Redux Saga, in strict TypeScript

Notifications You must be signed in to change notification settings

food-truck/core-native-project

 
 

Repository files navigation

A lightweight framework based on React Native + Redux + Redux Saga, in strict TypeScript.

Build Status

Basic Features:

The whole app is split into modules, usually by navigation screens.

For each module, it contains 1 state and some actions, to handle business logic.

No matter sync or async, every action is automatically wrapped as saga generator.

To extend module features, modules can also implement its own lifecycle actions, like onEnter/onDestroy/onActive/onBlur etc.

Advanced Features

(1) Global error handler

(2) Event log collector

(3) Built-in decorator

Core API:

  • startApp

Bootstrap function, configuring entry component / error handler / log / initialization action.

  • register

Register a module (including lifecycle actions and custom actions).

Usage:

(To be done)

Similar Frameworks

We also develop a same (90% similarity) framework for website, using the same tech stack.

https://github.com/neowu/core-fe-project

Our idea is also inspired by many React-based frameworks

https://github.com/dvajs/dva

https://github.com/rematch/rematch

https://github.com/wangtao0101/resa

About

A lightweight framework based on React Native + Redux + Redux Saga, in strict TypeScript

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.6%
  • JavaScript 4.4%