選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Icon.js 657B

12345678910111213141516171819
  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. // FIXME Share this with fonts/selection.json
  7. import icoMoonConfig from './jitsi.json';
  8. /**
  9. * Creates the Jitsi icon set from the ico moon project config file.
  10. */
  11. export const Icon = createIconSetFromIcoMoon(icoMoonConfig);
  12. // Dynamically load font on iOS
  13. if (Platform.OS === 'ios') {
  14. Icon.loadFont('jitsi.ttf');
  15. }