react-native-vector-icons
react-native-vector-icons copied to clipboard
fa-upgrade script didn't work for me and Android Font Awesome Pro6 Naming Conventions
- [ x] Review the documentation: https://github.com/oblador/react-native-vector-icons
- [ x] Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues
react native 0.73.8 react-native-vector-icons 10.1.0
Description
The fa-upgrad script wouldn't work for me: it would say success, but then the fonts were never copied into a directory. I even tried to specify a directory.
Zacs-MacBook-Pro app % yarn fa6-upgrade Please enter your Font Awesome Pro npm token: [SUCCESS] Set up npm config [SUCCESS] Temporary directory [/var/folders/vv/xtby6zq97476q4tp11rkbxpw0000gn/T/rnvi.XXXXXX.KH6hU988N0] was created
I tried to add the fonts manually for android. Here is the naming conventions you need to use if you do in the meantime. These are converting the 'web' versions downloaded from Font Awesome.
cp "$font_dir_path/fa-light-300.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Light.ttf" &&
cp "$font_dir_path/fa-brands-400.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Brands.ttf" &&
cp "$font_dir_path/fa-regular-400.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Regular.ttf" &&
cp "$font_dir_path/fa-solid-900.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Solid.ttf"
cp "$font_dir_path/fa-duotone-900.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Duotone.ttf"
cp "$font_dir_path/fa-thin-100.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Thin.ttf"
cp "$font_dir_path/fa-sharp-solid-900.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Sharp_Solid.ttf"