centered account list

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

View File

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

View File

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