apiko-dev / GitterMobile

Unofficial Gitter.im (chat for GitHub) client for iOS and Android. [build with react-native]

Home Page:https://github.com/JSSolutions/GitterMobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upload image

terrysahaidak opened this issue · comments

Ability to upload/capture photos directly to the room.

In the web client users has the ability to upload pictures from the clipboard by pasting it to message input.

The picture after uploading will be posted as the message with content:
[![image-alt](preview-image-url)](full-image-url)

We should add button in message input component which opens the pop-up with two options:

  1. Capture picture
  2. Upload from gallery

After choosing/capturing picture, we should upload it to the server and then post the message to room like described above.
While uploading, we should display linear spinner above message input or below the toolbar.

Since uploading images is a private Gitter API, we should use some another one.