[ํด๋ผ์ฐ๋ฉ ์ดํ๋ฆฌ์ผ์ด์ ์์ง๋์ด๋ง TIL] 240322- SNS ๊ฐ๋ฐ ํด๋ก ์ฝ๋ฉ
Intro
์ค๋๋ถํฐ๋ ๋ํ์ ์ธ sns์ธ ์ธ์คํ๊ทธ๋จ๊ณผ ๋น์ทํ ์ฑ์ ํด๋ก ์ฝ๋ฉํ๋ ์ค์ต ๊ฐ์๋ฅผ ๋ฃ๊ฒ ๋์๋ค.
์ด๋ ค์ฐ๋ฉด์๋ ๊ทธ๋ด๋ฏํ ์ฑ์ด ๋ง๋ค์ด ์ง๋ ๊ฒ ๋ ์ ๊ธฐํ๊ณ ๊ทธ๋ฌ๋ค.
์ค๋ ํ์ตํ ๋ด์ฉ
SNS ๊ฐ๋ฐ ํด๋ก ์ฝ๋ฉ
ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชฉ๋ก
- react navigation
- react native swiper
- react native video
- react native fast image
- react native modal
ํ๋ก์ ํธ ์ธํ
1. ํ๋ก์ ํธ ์์
npx react-native@latest init ProjectName
2. ios bundle install
cd ProjectName
cd ios
bundle install
bundle exec pod install
3. packages install
"react-native-gesture-handler": "^2.15.0",
"react-native-modal": "^13.0.1",
"react-native-safe-area-context": "^4.9.0",
"react-native-screens": "^3.29.0"
๋ค์์ ๋ฐฑ์๋ API ์์ด ๊ฐ๋ฐํ๊ธฐ ์ํด์ ๋๋ฏธ ๋ฐ์ดํฐ๋ฅผ ์ง์ ๋ง๋ค์ด์ผ ํ๋ ๋ฐ ๊ทธ๋ ๋์๋๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ด๋ค.
- random dummy image
Lorem Picsum
Lorem Ipsum... but for photos
picsum.photos
- random profile image
Avatar Placeholder | Free API to get random avatars
1 Who is random avatar API suitable for? Random avatar API is suitable for developers and programmers looking to enhance user profiles with visually appealing and personalized avatars and great fit for applications or websites that require dynamic and dive
avatar-placeholder.iran.liara.run
๋ง๋ฌด๋ฆฌ
์ค์ตํด๋ณด๋ ์๊ฐ๋ณด๋ค ๋ณต์กํ๊ณ ์ด๋ ค์ ๋ค. ๊ทธ๋ฆฌ๊ณ ํนํ ๋ ๋ณต์กํด์ง์๋ก ์คํ์ผ ์ฝ๋๋ ๋์ด๋๊ณ ํท๊ฐ๋ฆฌ๊ธฐ ์์ํ๋ค. ์คํ์ผ์ StyleSheet๋ฅผ ํ์ฉํด ์ ๋ฆฌ๋ฅผ ์ ํด์ผ๊ฒ ๋ค.