Skip to content

images_action.js

Anoop Nair edited this page Nov 15, 2021 · 5 revisions

Introduction

This file contains all the redux actions for images.

There are three types of images in app :

  • CAMERA - These are the images taken from in app camera.
  • GALLERY - These are geotagged images imported from phone gallery.
  • WEB - These are images uploaded from OLM website but not yet tagged.

addImages

Action to add images to state.

Params

  • images - Array of image object.
  • type - CAMERA || GALLERY || WEB
  • pickedUp - {boolean} Default user setting if litter is picked up or still there.
Action
Reducer
Clone this wiki locally