:accessibility-label :message-image

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2020-11-26 15:22:54 +01:00
parent e2717ade98
commit 88889930ae
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
2 changed files with 4 additions and 2 deletions

View File

@ -261,7 +261,8 @@
(reset! visible true)
(react/dismiss-keyboard!))
:on-long-press on-long-press}
[react/view {:style (style/image-message style-opts)}
[react/view {:style (style/image-message style-opts)
:accessibility-label :message-image}
[react/image {:style {:width (/ (first @dimensions) k)
:height (/ (second @dimensions) k)}
:resize-mode :contain

View File

@ -42,7 +42,8 @@
:border-color colors/black-transparent
:overflow :hidden
:border-radius 16
:margin-top 8}}
:margin-top 8}
:accessibility-label :message-image}
[react/image {:style {:width (first @dimensions) :height (last @dimensions)}
:resize-mode :contain
:source {:uri uri}}]]