Caudatus's Sakura Story
[Expo]Expo splash screen 본문
expo에서 splash screen를 만들기 위해 expo-splash-screen을 사용해 보았습니다.
모처럼 Expo를 사용하기 때문에 Expo의 스플래쉬 스크린 api를 써봤는데 사용하기도 간편하고 좋았습니다.
아래같은 건데
https://docs.expo.dev/static/videos/tutorial/splash-add.mp4
app.json파일에 들어가서 아래같이 수정하고 "image": 여기에 원하는 파일 위치 잡아주면 끝!
{
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#25292e"
}
}
참고: https://docs.expo.dev/tutorial/configuration/
Configure status bar, splash screen and app icon
In this tutorial, learn the basics of how to configure a status bar, splash screen and app icon.
docs.expo.dev
'DEVELOPMENT > React Native' 카테고리의 다른 글
[Expo]React Native Paper (0) | 2024.08.15 |
---|---|
[Expo]react native에서 uuid사용 (0) | 2024.08.13 |
[Expo]expo사용 시 xcode에서 시뮬레이터 구동 안될 때 (0) | 2024.07.01 |
React Native x GRPC x Connect (0) | 2024.06.07 |