2018-10-16 10:17:15 +00:00
|
|
|
import { Platform } from 'react-native';
|
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
// 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
|
|
|
|
2018-11-29 14:01:14 +00:00
|
|
|
import icoMoonConfig from '../../../../fonts/selection.json';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates the Jitsi icon set from the ico moon project config file.
|
|
|
|
*/
|
|
|
|
export const Icon = createIconSetFromIcoMoon(icoMoonConfig);
|
2018-10-16 10:17:15 +00:00
|
|
|
|
|
|
|
// Dynamically load font on iOS
|
|
|
|
if (Platform.OS === 'ios') {
|
|
|
|
Icon.loadFont('jitsi.ttf');
|
|
|
|
}
|