INNER CODE UNIT · JavaScript

loadImages

jellyfin/jellyfin-ios · App.js:60

	const loadImages = () => {
		const images = [
			require('@jellyfin/ux-ios/splash.png'),
			require('@jellyfin/ux-ios/logo-dark.png')
		];
		return images.map(image => Asset.fromModule(image).downloadAsync());
	};

	const loadResources = async () => {
		try {
			await Promise.all([
				Font.loadAsync({
					// This is the font that we are using for our tab bar
					...Ionicons.font
				}),
				...loadImages(),
				StaticScriptLoader.load()
			]);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…