Git Product home page Git Product logo

react-native-redux-starter-project's Introduction

React Native Redux - Starter Project

This is a starter project for react native with redux state management.
Sometimes state management can be difficult in the react native projects.
Redux is used to overcome this difficulty. Also this project helps to you understanding redux environments and start a new project by giving sample scenario.

Project Purpose & Structure

Main purpose of this project is exemplify usage of basic components (button, switch, text, view etc.), building navigation and state management with redux.
Scenario of screen access created as a sample problem. In this scenario, until users enable screen access for screen one, two or four, can not navigate to screen. This pipeline managed by redux components(reducer, actions, useSelector, useDispatch etc.)

Project folder and file structure are shown as below.


├─ components
├    ├─ CustomButton.js       # User defined button component which is responsible for navigation and control access to screens...
├    ├─ CustomSwitch.js       # User defined switch component which is responsible for changing operation access screens...
├    ├─ Divider.js          # User defined divider UI component...
├    └─ Title.js           # User defined Header UI component...

├─ components
├     └─ Constants.js         # Keep screen navigation title values...

├─ redux
├    └─ actions
├        └─ ActionScreenAccess.js     # Keep actions of screen access adding and removing situation...
├    └─ reducers
├        └─ ReducerScreenAccess.js     # Keep reducer to handle action such as adding screen access & removing screen access..

├─ screens
├    ├─ ScreenHome.js     # This is initial screen which has components, store, navigation etc. ...
├    ├─ ScreenOne.js        # This is sample empty screen...
├    ├─ ScreenTwo.js        # This is sample empty screen...
├    ├─ ScreenThree.js     # This is sample empty screen...

├   App.js
└─ index.js

Installation & Starting Project

To install libraries:

cd <project_folder>
npm install

To start project:

npx react-native start
npx react-native run-android

or

npx react-native run-ios

Please read react native documentation for more information about setup environment and starting project.
https://reactnative.dev/docs/environment-setup

Sample Screenshots

Screenshot 1

Screenshot 2

react-native-redux-starter-project's People

Contributors

ultdevchar avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.