fixes vector icons

This commit is contained in:
Andrey Shovkoplyas 2017-09-28 16:12:09 +03:00 committed by Andrey Shovkoplyas
parent 191e5bcc0b
commit f36dca3b5c
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@
([name] (icon name nil)) ([name] (icon name nil))
([name {:keys [color container-style style accessibility-label] ([name {:keys [color container-style style accessibility-label]
:or {accessibility-label :icon}}] :or {accessibility-label :icon}}]
^{:key name}
[react/view {:style container-style [react/view {:style container-style
:accessibility-label accessibility-label} :accessibility-label accessibility-label}
(if-let [icon-fn (get icons (normalize-property-name name))] (if-let [icon-fn (get icons (normalize-property-name name))]