Initial attempt at FontAwesome5 support

This commit is contained in:
Brent Vatne
2019-03-13 14:20:22 -07:00
parent 399efdceff
commit aabefa9adb
21 changed files with 418 additions and 25 deletions
+3 -2
View File
@@ -3,10 +3,11 @@ import { Text } from 'react-native';
import * as Font from 'expo-font';
import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set';
import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button';
export default function (glyphMap, fontName, expoAssetId) {
export { DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE } from './vendor/react-native-vector-icons/lib/create-icon-set';
export default function (glyphMap, fontName, expoAssetId, fontStyle) {
var _a;
const font = { [fontName]: expoAssetId };
const RNVIconComponent = createIconSet(glyphMap, fontName);
const RNVIconComponent = createIconSet(glyphMap, fontName, null, fontStyle);
return _a = class Icon extends React.Component {
constructor() {
super(...arguments);