centered account list

This commit is contained in:
Roman Volosovskyi 2016-07-06 09:26:28 +03:00
parent 1555002bcd
commit 88e5a0c9d8
2 changed files with 16 additions and 11 deletions

View File

@ -60,13 +60,13 @@
:custom-content toolbar-title
:action {:image {:style icon-search}
:handler #()}}]
[view st/account-list-container
[list-view {:dataSource (lw/to-datasource accounts)
:enableEmptySections true
:renderRow render-row
:renderSeparator render-separator
:style st/account-list}]]
[view st/accounts-container
[view st/account-list-view-container
[list-view {:dataSource (lw/to-datasource accounts)
:enableEmptySections true
:renderRow render-row
;:renderSeparator render-separator
:style st/account-list}]]]
[view st/add-account-button-container
[touchable-highlight {:on-press create-account}
[view st/add-account-button
@ -78,4 +78,4 @@
;(re-frame.core/dispatch [:set :view-id :users])
;{:name (label :t/add-account)
;:address "0x0"
;:photo-path :icon_plus}
;:photo-path :icon_plus}

View File

@ -26,9 +26,14 @@
:left 0
:justifyContent :center})
(def account-list-container
{:flex 1
:flexDirection :column
(def accounts-container
{:flex 1
:flex-direction :column
:justifyContent :center
:padding-bottom 56})
(def account-list-view-container
{:flexDirection :column
:justifyContent :center})
(def account-list