Fork me on GitHub
#cljsrn
<
2020-09-25
>
Al M14:09:58

Anyone used react-native-vector-icons with reagent? I’m trying to get it working with Krell and struggling at the moment.

Al M14:09:04

I'm using

Al M14:09:32

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

Al M14:09:31

Then [icon {:name "rocket"}] results in "Unrecognized font family 'Ionicons' "

joshmiller15:09:22

@admarrs You still need to add the fonts to your Info.plist in XCode, possibly a similar thing in Android

joshmiller15:09:36

I use rnvi with reagent, so it definitely works.

Al M16:09:34

@joshmiller thanks, you were right. Realised I hadn't added the font in Info.plist.

👍 3