You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Icon.js 631B

123456789101112131415161718
  1. import { Platform } from 'react-native';
  2. // FIXME The import of react-native-vector-icons makes the file native-specific
  3. // but the file's name and/or location (within the directory structure) don't
  4. // reflect that, it suggests the file is platform-independent.
  5. import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
  6. import icoMoonConfig from '../../../../fonts/selection.json';
  7. /**
  8. * Creates the Jitsi icon set from the ico moon project config file.
  9. */
  10. export const Icon = createIconSetFromIcoMoon(icoMoonConfig);
  11. // Dynamically load font on iOS
  12. if (Platform.OS === 'ios') {
  13. Icon.loadFont('jitsi.ttf');
  14. }