As an ember developer accustomed to the "batteries-included" mentality of sensible defaults and convention over configuration, getting into the groove of react-native can be a little tricky - especially for seemingly should-be-simple things such as including fonts in our app.
In ember-cli land, installing font-awesome (or any font) was done with a simple cli command: ember install ember-cli-font-awesome
. In react native, similar packages exist, but the installation instructions require a little more research on my part. Here's how it's done:
- install the https://github.com/oblador/react-native-vector-icons npm package via
npm install --save react-native-vector-icons
- manually drag-and-drop the fonts I want from the node_modules like so:
mkdir -p assets/fonts