226b19ae43
* query fonts lazily * use `lazy var`
17 lines
686 B
Diff
17 lines
686 B
Diff
diff --git a/node_modules/expo-font/ios/FontLoaderModule.swift b/node_modules/expo-font/ios/FontLoaderModule.swift
|
|
index 183480f..7b64f6e 100644
|
|
--- a/node_modules/expo-font/ios/FontLoaderModule.swift
|
|
+++ b/node_modules/expo-font/ios/FontLoaderModule.swift
|
|
@@ -2,10 +2,9 @@ import ExpoModulesCore
|
|
|
|
public final class FontLoaderModule: Module {
|
|
// could be a Set, but to be able to pass to JS we keep it as an array
|
|
- private var registeredFonts: [String]
|
|
+ private lazy var registeredFonts: [String] = queryCustomNativeFonts()
|
|
|
|
public required init(appContext: AppContext) {
|
|
- self.registeredFonts = queryCustomNativeFonts()
|
|
super.init(appContext: appContext)
|
|
}
|
|
|