Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You accidentally deleted SplashScreenResource #39

Open
PimDeWitte opened this issue Apr 8, 2017 · 1 comment
Open

You accidentally deleted SplashScreenResource #39

PimDeWitte opened this issue Apr 8, 2017 · 1 comment

Comments

@PimDeWitte
Copy link

screen shot 2017-04-08 at 6 10 59 am

It's no longer in your react-native-splashscreen/ios folder. I just happened to find it because I used it on older projects.

@fov42550564
Copy link

this is react-native-template's generate splash script

#!/bin/bash

src="${1-./img/splash.png}"

ffmpeg -i ${src} -s 640x1136 ../ios/JFBSample/splash/Default-568h@2x~iphone.png -y
ffmpeg -i ${src} -s 750x1334 ../ios/JFBSample/splash/Default-667h.png -y
ffmpeg -i ${src} -s 1242x2208 ../ios/JFBSample/splash/Default-736h.png -y
ffmpeg -i ${src} -s 640x960 ../ios/JFBSample/splash/Default@2x~iphone.png -y
ffmpeg -i ${src} -s 320x480 ../ios/JFBSample/splash/Default~iphone.png -y
ffmpeg -i ${src} -s 320x568 ../ios/JFBSample/splash/splash.png -y
mkdir -p ../android/app/src/main/res/drawable
cp ../ios/JFBSample/splash/splash.png ../android/app/src/main/res/drawable/splash.png

in info.plist

<key>UILaunchImages</key>
	<array>
		<dict>
			<key>UILaunchImageMinimumOSVersion</key>
			<string>8.0</string>
			<key>UILaunchImageName</key>
			<string>Default</string>
			<key>UILaunchImageOrientation</key>
			<string>Portrait</string>
			<key>UILaunchImageSize</key>
			<string>{320, 480}</string>
		</dict>
		<dict>
			<key>UILaunchImageMinimumOSVersion</key>
			<string>8.0</string>
			<key>UILaunchImageName</key>
			<string>Default-568h</string>
			<key>UILaunchImageOrientation</key>
			<string>Portrait</string>
			<key>UILaunchImageSize</key>
			<string>{320, 568}</string>
		</dict>
		<dict>
			<key>UILaunchImageMinimumOSVersion</key>
			<string>8.0</string>
			<key>UILaunchImageName</key>
			<string>Default-667h</string>
			<key>UILaunchImageOrientation</key>
			<string>Portrait</string>
			<key>UILaunchImageSize</key>
			<string>{375, 667}</string>
		</dict>
		<dict>
			<key>UILaunchImageMinimumOSVersion</key>
			<string>8.0</string>
			<key>UILaunchImageName</key>
			<string>Default-736h</string>
			<key>UILaunchImageOrientation</key>
			<string>Portrait</string>
			<key>UILaunchImageSize</key>
			<string>{414, 736}</string>
		</dict>
	</array>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants