Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Use default splash.resizeMode on web #2268

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/pwa/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export async function generateSplashAsync(
const data = await Promise.all<HTMLOutput>(
icons.map(
async (icon: SplashIcon): Promise<HTMLOutput> => {
// Ensure the default `splash.resizeMode` is used here:
// https://docs.expo.io/workflow/configuration/#splash
if (!icon.resizeMode) {
icon.resizeMode = 'contain';
}
const { source, name } = await Image.generateImageAsync({ projectRoot, cacheType }, icon);

const href = `pwa/apple-touch-startup-image/${name}`;
Expand Down