리액트네이티브 - Splash Screen

Jean Deluge·2021년 2월 23일
0

리액트앱만들기

목록 보기
1/3

1. 용어

  1. splash screen : 앱 실행시 대기 화면

    참고 https://hoonmaro.tistory.com/54

2. 오늘 한 것

  1. splash 스크린 제작

    참고 https://velog.io/@dody_/RN-rn-%EC%8A%A4%ED%94%8C%EB%9E%98%EC%8B%9C-%EC%8A%A4%ED%81%AC%EB%A6%B0-1.react-native-make%EB%A1%9C-App-Splash-%EC%9D%B4%EB%AF%B8%EC%A7%80-%EC%B6%94%EC%B6%9C%ED%95%98%EA%B8%B0

  2. 라이브러리 추가 splash screen을 추가하기 위해서

yarn add -D @bam.tech/react-native-make
//실행
react-native set-splash --path <path-to-image> --resize <[contain]|cover|center> --background "<background-color>"
  1. 안드로이드 에뮬레이터 실행 오류
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

https://reactnative.dev/docs/environment-setup

3. 레퍼런스 (공식문서)

https://reactnative.dev/docs/tutorial

profile
node.js , rudyonrails개발자

0개의 댓글