mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-06-03 02:31:23 +00:00
Initial attempt at FontAwesome5 support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user