mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-15 19:24:36 +00:00
[bug] fixes #2064 red screen caused by carousel
This commit is contained in:
parent
49429c1c28
commit
e8c8dbc098
@ -151,7 +151,7 @@
|
|||||||
(if (not= page-width state-page-width)
|
(if (not= page-width state-page-width)
|
||||||
(do
|
(do
|
||||||
(reagent.core/set-state component {:pageWidth page-width})
|
(reagent.core/set-state component {:pageWidth page-width})
|
||||||
(.setState component {:layout (.-layout (.-nativeEvent event))}))
|
(.setState component (clj->js {:layout (.-layout (.-nativeEvent event))})))
|
||||||
(scroll-to component page-position 0))))
|
(scroll-to component page-position 0))))
|
||||||
|
|
||||||
(defn get-pages [component data children]
|
(defn get-pages [component data children]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user