fix #1893 cannot scroll to last 2 transactions in history

update react-native-swipper to latest working version
remove bottom margin hack in other screens with similar bug
fixes Cannot scroll transaction history when app is syncing #1902 as well
This commit is contained in:
Eric Dvorsak 2017-09-22 18:45:15 +02:00 committed by Roman Volosovskyi
parent c846574155
commit 7d9190bb85
8 changed files with 369 additions and 481 deletions

823
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -75,7 +75,7 @@
"react-native-sortable-listview": "^0.1.1",
"react-native-splash-screen": "1.0.9",
"react-native-svg": "^4.6.1",
"react-native-swiper": "1.5.3",
"react-native-swiper": "1.5.10",
"react-native-tcp": "^3.2.1",
"react-native-udp": "^2.0.0",
"react-native-vector-icons": "^4.0.1",

View File

@ -140,12 +140,10 @@
(def chats-container
{:flex 1})
(defnstyle list-container [tabs-hidden?]
{:android {:background-color color-light-gray
:margin-bottom 20}
(defstyle list-container
{:android {:background-color color-light-gray}
:ios {:background-color color-white
:margin-bottom (if tabs-hidden? 20 (+ 16 tabs-st/tabs-height))}})
:ios {:background-color color-white}})
(def toolbar-actions
{:flex-direction :row

View File

@ -92,7 +92,7 @@
[common/list-footer]
[common/bottom-shadow]]))
:renderSeparator renderers/list-separator-renderer
:style (st/list-container tabs-hidden?)}]
:style st/list-container}]
(when (and (not edit?)
(not search?)
(get-in platform-specific [:chats :action-button?]))

View File

@ -10,10 +10,8 @@
{:flex 1
:background-color common/color-light-gray})
(defnstyle contacts-list-container [tabs-hidden?]
{:flex 1
:android {:margin-bottom 20}
:ios {:margin-bottom (if tabs-hidden? 20 (+ 16 tabs-st/tabs-height))}})
(def contacts-list-container
{:flex 1})
(def contacts-list
{:background-color common/color-white})

View File

@ -122,7 +122,7 @@
groups [:all-added-groups]
tabs-hidden? [:tabs-hidden?]]
[view {:flex 1}
[view (st/contacts-list-container tabs-hidden?)
[view st/contacts-list-container
(if edit?
[toolbar-edit]
[toolbar-view])

View File

@ -141,9 +141,8 @@
{:flex 1
:backgroundColor color-white})
(defnstyle list-container [tabs-hidden?]
{:android {:margin-bottom 20}
:ios {:margin-bottom (if tabs-hidden? 20 (+ 16 tabs-st/tabs-height))}})
(def list-container
{:flex 1})
(def search-icon
{:width 17

View File

@ -84,7 +84,7 @@
[toolbar-view (and current-view?
(= show-search :discover)) search-text]
(if discoveries
[scroll-view (st/list-container tabs-hidden?)
[scroll-view st/list-container
[discover-popular {:contacts contacts
:current-account current-account}]
[discover-recent {:current-account current-account}]]