728x90
๋ฐ์ํ
AppLoading
์ธ์ ์ฐ๋๋?
์ฌ์ฉ์๊ฐ ์ฑ์ ์คํํ๋ฉด ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ค๊ธฐ ์์ํ๋๋ฐ, ์ด๋ ์๊ฐ์ด ๋ง์ด ๊ฑธ๋ฆด์๋ ์๊ณ ์ด ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ค๋ฆฌ๋ ๋์ ์ฌ์ฉ์๊ฐ ๊ทธ ๊ณผ์ ์ ๋ณผ ์๋ ์์ ๊ฒ์ด๋ค. ์ด๋ฐ ๋ถ๋ถ์ ๋ณด์ํ๊ธฐ ์ํด์ ์๋๊ฒ AppLoading์ด๋ค
์ฌ์ฉ์ ๊ฒฝํ์ ์ธ ๋ถ๋ถ์ ๋ณด์ํ๊ธฐ ์ํด์ ์ฌ์ฉํ๋ ๊ฒ์ด๋ค.
์ด๋ป๊ฒ ๋ณด์ด๋๋
๋ก๋ฉ์ด ์๋ฃ๋ ๋๊น์ง ์์ด์ฝ์ด๋ผ๋๊ฐ, ์ด๋ฏธ์ง๋ผ๋๊ฐ ๋์ฒด๋ฅผ ํ ์ ์๋ ๋ฌด์ธ๊ฐ๋ฅผ ๋ณด์ฌ์ค๋ค.
AppLoading Props
๋ค์ํ Prop์ด ์๋๋ฐ, ์ด๋ฅผ ์ด์ฉํด์ apiํธ์ถ ๋ฑ ๋ค์ํ ๋ถ๋ถ์์ ํ์ฉํ ์ ์๋ค.
- startAsync (function) : Promise๋ฅผ ๋ฐํํ๋ ํจ์๋ฅผ ์ ๋ฌํ๋๋ฐ AppLoading์ด ์์๋ ๋ ์คํ๋๋ค.
- onError (function) : ๋ฐ์ดํฐ๋ฅผ ๋ก๋ํ ๋ ์๋ฌ๊ฐ ๋ฐ์๋๋ฉด ์คํ๋๋ ํจ์๋ค
- onFinish (function) : ๋ฐ์ดํฐ๋ฅผ ๋ก๋ํ๋ ๊ณผ์ ์ด ๋๋ฌ์ ๋ ์คํ๋๋ ํจ์๋ค.
(official) expo AppLoading https://docs.expo.dev/versions/latest/sdk/app-loading/
728x90
'๊ฐ๋ฐ > React-Native' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
(ios) EAS๋ก expo ๋น๋ํ๊ณ testFlight์ ๋ฑ๋กํ๊ธฐ (feat.์ค๋ฅ) (0) | 2024.11.22 |
---|---|
[react-native] weekly calendar ๋ฃ์ด๋ณด๊ธฐ (0) | 2024.10.31 |
[React Native] React Nativgation ์ ์ฉํ๊ธฐ - 2 (0) | 2022.03.16 |
[React Native] React Nativgation ์ ์ฉํ๊ธฐ - 1 (0) | 2022.03.09 |
[React-Native] ๋ฆฌ์กํธ ๋ค์ดํฐ๋ธ ์์ํ๊ธฐ( with Expo) (0) | 2022.02.21 |