From 60b2dc9c6373dd032a287e5dc81f2289fd0d7db3 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 16 May 2016 15:38:27 +0300 Subject: [PATCH] empty sections Former-commit-id: 739ca7cb1babd1b818bcd81e1867ce9d8ddae048 --- src/syng_im/components/react.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/syng_im/components/react.cljs b/src/syng_im/components/react.cljs index 86ae7657e7..e19ffe11fe 100644 --- a/src/syng_im/components/react.cljs +++ b/src/syng_im/components/react.cljs @@ -15,7 +15,9 @@ (merge {:underlay-color :transparent} props) content]) (def toolbar-android (r/adapt-react-class (.-ToolbarAndroid js/React))) -(def list-view (r/adapt-react-class (.-ListView js/React))) +(def list-view-class (r/adapt-react-class (.-ListView js/React))) +(defn list-view [props] + [list-view-class (merge {:enableEmptySections true} props)]) (def scroll-view (r/adapt-react-class (.-ScrollView js/React))) (def touchable-without-feedback (r/adapt-react-class (.-TouchableWithoutFeedback js/React))) (def text-input-class (r/adapt-react-class (.-TextInput js/React)))