Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
tbenr 2018-09-15 20:08:50 +02:00 committed by Andrey Shovkoplyas
parent 4c05c9a9cd
commit 51469c507e
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 8 additions and 4 deletions

View File

@ -36,7 +36,9 @@
{:color colors/black
:letter-spacing -0.2
:font-size 17
:ios {:text-align :center}
:ios {:text-align :center
:margin-left 15
:margin-right 15}
:android {:text-align :left
:margin-left 22}})

View File

@ -81,10 +81,12 @@
([title-style title]
(content-title title-style title nil nil))
([title-style title subtitle-style subtitle]
(content-title title-style title subtitle-style subtitle nil))
([title-style title subtitle-style subtitle additional-text-props]
[react/view {:style styles/toolbar-title-container}
[react/text {:style (merge styles/toolbar-title-text title-style)
:font :toolbar-title}
title]
[react/text (merge {:style (merge styles/toolbar-title-text title-style)
:font :toolbar-title :numberOfLines 1 :ellipsizeMode :tail}
additional-text-props) title]
(when subtitle
[react/text {:style subtitle-style}
subtitle])]))