Fix "Invalid arity: 0" error on sign screen
flat-list fails when :separator parameter provided.
This commit is contained in:
parent
201484f37f
commit
dc61971608
|
@ -96,7 +96,7 @@
|
|||
(let [separator (or separator (when (and platform/ios? default-separator?) default-separator))]
|
||||
(merge {:keyExtractor (fn [_ i] i)}
|
||||
(when render-fn {:renderItem (wrap-render-fn render-fn)})
|
||||
(when separator {:ItemSeparatorComponent (fn [] (reagent/as-element [separator]))})
|
||||
(when separator {:ItemSeparatorComponent (fn [] (reagent/as-element separator))})
|
||||
(when empty-component {:ListEmptyComponent (fn [] (reagent/as-element empty-component))})
|
||||
(when header {:ListHeaderComponent (fn [] (reagent/as-element header))}))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue