Hide opened keyboard when user taps on chat (#1057)
This commit is contained in:
parent
1a88b647b4
commit
561c66084c
|
@ -16,7 +16,7 @@
|
||||||
[status-im.utils.listview :refer [to-datasource-inverted]]
|
[status-im.utils.listview :refer [to-datasource-inverted]]
|
||||||
[status-im.utils.utils :refer [truncate-str]]
|
[status-im.utils.utils :refer [truncate-str]]
|
||||||
[status-im.utils.datetime :as time]
|
[status-im.utils.datetime :as time]
|
||||||
[status-im.utils.platform :refer [platform-specific]]
|
[status-im.utils.platform :as platform :refer [platform-specific]]
|
||||||
[status-im.components.invertible-scroll-view :refer [invertible-scroll-view]]
|
[status-im.components.invertible-scroll-view :refer [invertible-scroll-view]]
|
||||||
[status-im.components.toolbar-new.view :refer [toolbar]]
|
[status-im.components.toolbar-new.view :refer [toolbar]]
|
||||||
[status-im.chat.views.toolbar-content :refer [toolbar-content-view]]
|
[status-im.chat.views.toolbar-content :refer [toolbar-content-view]]
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
:renderScrollComponent #(invertible-scroll-view (js->clj %))
|
:renderScrollComponent #(invertible-scroll-view (js->clj %))
|
||||||
:onEndReached (when-not loaded? #(dispatch [:load-more-messages]))
|
:onEndReached (when-not loaded? #(dispatch [:load-more-messages]))
|
||||||
:enableEmptySections true
|
:enableEmptySections true
|
||||||
:keyboardShouldPersistTaps :always
|
:keyboardShouldPersistTaps (if platform/android? :always :never)
|
||||||
:dataSource (to-datasource-inverted messages)}]))
|
:dataSource (to-datasource-inverted messages)}]))
|
||||||
|
|
||||||
(defview chat []
|
(defview chat []
|
||||||
|
|
Loading…
Reference in New Issue