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

Commit

Permalink
[config] Disable splash screen on eject
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Sep 24, 2020
1 parent c045d4f commit 947de5c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/config/src/android/SplashScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ export function getSplashScreenConfig(config: ExpoConfig): AndroidSplashScreenCo
}

export async function setSplashScreenAsync(config: ExpoConfig, projectRoot: string) {
const splashScreenIsSupported = false; // config.sdkVersion === '39.0.0'
if (!splashScreenIsSupported) {
addWarningAndroid(
'splash',
'Unable to automatically configure splash screen. Please refer to the expo-splash-screen README for more information: https://github.com/expo/expo/tree/master/packages/expo-splash-screen'
);

return;
}

const splashConfig = getSplashScreenConfig(config);
if (!splashConfig) {
return;
Expand Down
9 changes: 9 additions & 0 deletions packages/config/src/ios/SplashScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ export function getSplashScreen(config: ExpoConfig): IosSplashScreenConfig | und
}

export async function setSplashScreenAsync(config: ExpoConfig, projectRoot: string) {
const splashScreenIsSupported = false; // config.sdkVersion === '39.0.0'
if (!splashScreenIsSupported) {
addWarningIOS(
'splash',
'Unable to automatically configure splash screen. Please refer to the expo-splash-screen README for more information: https://github.com/expo/expo/tree/master/packages/expo-splash-screen'
);
return;
}

const splashConfig = getSplashScreen(config);

if (!splashConfig) {
Expand Down

0 comments on commit 947de5c

Please sign in to comment.