Bluesky app fork with some witchin' additions 💫

Reduce startup hang by not querying fonts (#9670)

* query fonts lazily

* use `lazy var`

authored by samuel.fm and committed by

GitHub 226b19ae cb6e65e3

+16
+16
patches/expo-font+14.0.10.patch
··· 1 + diff --git a/node_modules/expo-font/ios/FontLoaderModule.swift b/node_modules/expo-font/ios/FontLoaderModule.swift 2 + index 183480f..7b64f6e 100644 3 + --- a/node_modules/expo-font/ios/FontLoaderModule.swift 4 + +++ b/node_modules/expo-font/ios/FontLoaderModule.swift 5 + @@ -2,10 +2,9 @@ import ExpoModulesCore 6 + 7 + public final class FontLoaderModule: Module { 8 + // could be a Set, but to be able to pass to JS we keep it as an array 9 + - private var registeredFonts: [String] 10 + + private lazy var registeredFonts: [String] = queryCustomNativeFonts() 11 + 12 + public required init(appContext: AppContext) { 13 + - self.registeredFonts = queryCustomNativeFonts() 14 + super.init(appContext: appContext) 15 + } 16 +