Fork me on GitHub
#cljsrn
<
2016-12-26
>
dvcrn09:12:15

anyone experienced with using https://github.com/oblador/react-native-vector-icons with reagent?

dvcrn09:12:31

I thought a simple (def ionicon (r/adapt-react-class (js/require "react-native-vector-icons/Ionicons"))) would do it but doesn't seem to be working

dvcrn09:12:26

ah looks like the es6 export messed it up. This works

(def ionicon (js/require "react-native-vector-icons/Ionicons"))
(def ionicon-icon (r/adapt-react-class (.. ionicon -default)))

pesterhazy10:12:09

yeah that's really common with more recent RN modules