jiti-meet/react/features/base/font-icons/Icon.js

19 lines
631 B
JavaScript
Raw Normal View History

import { Platform } from 'react-native';
// FIXME The import of react-native-vector-icons makes the file native-specific
// but the file's name and/or location (within the directory structure) don't
// reflect that, it suggests the file is platform-independent.
import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
2017-07-03 06:55:22 +00:00
import icoMoonConfig from '../../../../fonts/selection.json';
/**
* Creates the Jitsi icon set from the ico moon project config file.
*/
export const Icon = createIconSetFromIcoMoon(icoMoonConfig);
// Dynamically load font on iOS
if (Platform.OS === 'ios') {
Icon.loadFont('jitsi.ttf');
}