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

Commit

Permalink
Use default splash.resizeMode on web (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon authored Jun 16, 2020
1 parent 6b4992c commit 7b9f9ab
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 7b9f9ab

Please sign in to comment.