Skip to content

React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.

License

Notifications You must be signed in to change notification settings

ahmed-ansari/reactXstarter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reactXstarter

React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.

https://youtu.be/9S3mpotVgXg?t=1833

What is this Repository?

  1. Demo of how the code can be reused between React and React Native Application
  2. Extracts the business logic to a seperate npm package
  3. Uses Redux to write application business logic: Actions and Reducers are extracted to a seperate npm package.

Code Structure

  1. web: A web application created using Create React App
  2. mobile: Mobile app created using React Native cli
  3. core: The npm package which contains extracted business logic(Actions, Reducers etc). This is reused in both web and mobile

How to use

  1. npm install and npm link in Core
  2. npm install and npm link core in Web and Mobile

Sample Screenshots

Mobile

Web

Other Options

  1. Use Lerna and Yarn workspace to manage multiple packages. Here are couple of good implementations
    https://github.com/fixerteam/React-Native-monorepo
    https://github.com/drgx/react-native-plus-web

  2. Use React Native Web
    https://blog.logrocket.com/the-state-of-react-native-web-in-2019-6ab67ac5c51e/

About

React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.8%
  • Objective-C 14.1%
  • Starlark 7.0%
  • HTML 5.4%
  • CSS 4.9%
  • Java 4.8%