about summary refs log tree commit diff
path: root/src/alf/util/unusedUseFonts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/alf/util/unusedUseFonts.ts')
-rw-r--r--src/alf/util/unusedUseFonts.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/alf/util/unusedUseFonts.ts b/src/alf/util/unusedUseFonts.ts
new file mode 100644
index 000000000..70bdc285b
--- /dev/null
+++ b/src/alf/util/unusedUseFonts.ts
@@ -0,0 +1,15 @@
+import {useFonts} from 'expo-font'
+
+/*
+ * IMPORTANT: This is unused. Expo statically extracts these fonts.
+ *
+ * All used fonts MUST be configured here. Unused fonts can be commented out.
+ *
+ * This is used for both web fonts and native fonts.
+ */
+export function DO_NOT_USE() {
+  return useFonts({
+    InterVariable: require('../../../assets/fonts/inter/InterVariable.ttf'),
+    'InterVariable-Italic': require('../../../assets/fonts/inter/InterVariable-Italic.ttf'),
+  })
+}