You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Valentin Mourot edited this page May 2, 2019
·
3 revisions
Infra actions
These actions are part of Mobile Framework and can be used in every application module or Timeline module.
They live in the /app/infra/actions and /app/infra/reducers directories.
Connection Tracking bar
It is recommended to include a connection tracking bar in every page, to tell the user if he online or offline.
Just import this module and put <ConnectionTrackingBar /> at the top of your page render function and it works.
Header
The /app/infra/ui module is an action creator to set the header height.
Just dispatch the action with a new height in pixels.
Workspace
This section will be rewritten cause this module doesn't seems to work well.
The workspace module provides two thunk action to upload images from the device to the Entcore workspace:
takePhoto() open a dialog to take a photograph and returns the local uri
uploadImage() sends the picture to the workspace and returns the distant url.