Expo URLs for splash screen in appParams versus app.json

#1

When deploying a project to a device, I see that an appParams json object is passed.

We have upgraded an older project to 26 and when add the “splash” key to app.json I see that the keys are added to appParams, but the new key/values are not prefixed with my expo server’s address.

What is required to make sure these are created correctly?

i.e. in app.json:

{
	"expo": {
		...
		"loading": {
			"backgroundImage": "./assets/myimage.png",
			"hideExponentText": true
		},
		"splash": {
			"image": "./assets/myimage.png",
			"backgroundColor": "#eeeeee",
			"ldpi": "./assets/myimage.png",
			"mdpi": "./assets/myimage.png",
			"hdpi": "./assets/myimage.png",
			"xhdpi": "./assets/myimage.png",
			"xxhdpi": "./assets/myimage.png",
			"xxxhdpi": "./assets/myimage.png"
		},
		...
	}
}

Translates to this in appParams - note that some assets have received the expo url, but others have not:

{
	"initialProps": {
		"exp": {
			"initialUri": "MYEXPOURL",
			"manifest": {
				"iconUrl": "MYEXPOURL/assets/./assets/myimage.png",
				"splash": {
					"mdpi": "./assets/myimage.png",
					"backgroundColor": "#eeeeee",
					"ldpi": "./assets/myimage.png",
					"hdpi": "./assets/myimage.png",
					"imageUrl": "hMYEXPOURL/assets/./assets/myimage.png",
					"xhdpi": "./assets/myimage.png",
					"image": "./assets/myimage.png",
					"xxhdpi": "./assets/myimage.png",
					"xxxhdpi": "./assets/myimage.png"
				},
				"loading": {
					"backgroundImage": "./assets/myimage.png",
					"hideExponentText": true,
					"backgroundImageUrl": "MYEXPOURL/assets/./assets/myimage.png"
				},
				"icon": "./assets/pro-app-icon.png",
			},
			...
		}
	},
	...
}
closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.