/lecture_dosflixmobile

๐ŸŸ React N + Expo cli

Primary LanguageJavaScript

dosflix App

์•ˆ๋“œ๋กœ์ด๋“œ ์—๋ฎฌ๋ ˆ์ดํ„ฐ - ๊ฐœ๋ฐœ์ž ์ฐฝ -> ์ปจํŠธ๋กค M ์ด๊ตฌ๋‚˜

์•ˆ๋“œ๋กœ์ด๋“œ ์—๋ฎฌ๋ ˆ์ดํ„ฐ ์„ค์น˜ํ•˜๊ธฐ

  • ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค์—์„œ - AVD ๋งค๋‹ˆ์ €๋ฅผ ํ†ตํ•ด, ์—๋ฎฌ๋ ˆ์ดํ„ฐ ํ•˜๋‚˜ ๋งŒ๋“ฌ. & hyper V ์ฒดํฌ ์™„๋ฃŒ.

์„ค์น˜ ์ด์Šˆ

  • (npm i expo-cli -g ) //SDK 36 ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ž˜์ด๋“œ ๋˜๋ฉด์„œ, expo client๋„ ์—…๊ธ€ํ•ด์•ผ ์ž‘๋™ํ•˜๋Š” ์ด์Šˆ๋ฐœ์ƒ
  • sdk 36๋ฒ„์ „์— ๋”ฐ๋ฅธ ์—…๋ฐ์ดํŠธ ์ ˆ์ฐจ - ๋ฌธ์„œ๋ฅผ ๋ณด๋Š”๊ฒŒ ์ตœ๊ณ , how to upgrade ๋ผ๊ณ  ๋‚˜์˜ด. expo upgrade ํ•˜๋‚˜๋ฉด ๋จ.
  • expo client (๋ชจ๋ฐ”์ผ ์•ฑ) ์ด๊ฒƒ๋„ ์ง€์šฐ๊ณ  ๋‹ค์‹œ ๊น”์•„ , ํด๋ผ์ด์–ธํŠธ๋„ ์—…๋ฐ์ดํŠธ๊ฐ€ ๋˜์•ผํ•จ.

1.0 Expo Init (5:07)

expo init [AppName] yarn add prop-types styled-components axios @expo/vector-icons expo-font yarn add react-navigation react-navigation-tabs react-native-reanimated react-native-gesture-handler yarn add react-native-screens npm i --save react-native-swiper@nightly ( 2020 02 10 ํ˜„์žฌ๊ธฐ์ค€ react-native ์—…๋ฐ์ดํŠธ์— ๋”ฐ๋ฅธ ์ž„์‹œ๋ฒ„์ „)

1.1 Introduction to Expo (6:24)

  • Expo : iOS,Android ๋นŒ๋“œ๋ฅผ ๋Œ€์‹  ํ•ด์ค€๋‹ค. | air update๋ผ๊ณ  ์•ฑ์Šคํ† ์–ด์˜ ์—…๊ทธ๋ž˜์ด๋“œ ์—†์ด js๋งŒ ์•ฑ์—์„œ ๋‹ค์‹œ ๋‹ค์šด๋ฐ›์•„์„œ ์•ฑ์—…๋ฐ์ดํŠธ ๊ฐ€๋Šฅ |
  • iOS๋Š” QR์Šค์บ”์ด ์•ˆ๋˜๋ฏ€๋กœ, expo ์‚ฌ์ดํŠธ ๋กœ๊ทธ์ธ + ๋ชจ๋ฐ”์ผ ๋กœ๊ทธ์ธ ํ•˜๋ฉด project๋“ค์ด ๋œฌ๋‹ค. ๊ทธ๊ฑธ ๋ˆŒ๋Ÿฌ ํ• ๊ฒƒ.

1.2 Pre Loading Assets (10:09)

  • App.js ์—์„œ ํฐํŠธ๋ฅผ ๋ฏธ๋ฆฌ ํ”„๋ฆฌ๋กœ๋“œ ํ•˜๋Š” ๋ฒ•์„ ๋ฐฐ์›€.

1.3 Constants and Screens Set Up (5:45)


2.0 Creating a Tab Navigation (9:23)

  • navigation ํด๋”์— ๋ฐ”ํ…€ํƒญ ๋„ค๋น„๊ฒŒ์ด์…˜์„ ๋งŒ๋“ฌ.

https://reactnavigation.org/docs/en/getting-started.html https://reactnavigation.org/docs/en/bottom-tab-navigator.html

2.1 Custom Icons for the Tab Navigation (11:00)

2.2 Live Reloading vs Hot Reloading (2:43)

  • ๋ผ์ด๋ธŒ ๋กœ๋“œ: jsํŒŒ์ผ์„ ์ €์žฅํ• ๋•Œ๋งˆ๋‹ค ๋ฆฌํ”„๋ ˆ์‰ฌ ๋จ | ํ•ซ ๋ฆฌ๋กœ๋“œ : ๋ผ์ด๋ธŒ๋กœ๋“œ๋ฅผ disableํ•˜๊ณ , ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ๋ณ€๊ฒฝ๋œ ๋ถ€๋ถ„๋งŒ ๋ฆฌ๋กœ๋“œ ํ•œ๋‹ค.(์Šคํƒ€์ผ๋ง ํ• ๋•Œ ์œ ์šฉํ•˜๋‹ค. ์ฝ”๋“œ๋ถ€๋ถ„์ˆ˜์ •ํ• ๋•Œ๋Š” ์–ด๋””๊ฐ€ ๋ฆฌ๋กœ๋“œ ๋˜๋Š”์ง€ ๋ชจ๋ฅผ์ˆ˜์žˆ๋‹ค. )

2.3 Introduction to Stack Navigation (6:35)

2.4 Creating a Stack Navigation (13:04)

  • yarn add react-navigation-stack @react-native-community/masked-view react-native-safe-area-context
  • navigation - MainNavigation์„ ์Šคํƒ๋„ค๋น„๊ฒŒ์ด์…˜์œผ๋กœ ์ž‘์—…ํ•ด์„œ,Tab๋„ค์ด๊ฒŒ์ด์…˜์„ ๋„ฃ๊ณ , detailํŽ˜์ด์ง€๋ฅผ ๋„ฃ์—ˆ์Œ-> App.js์—์„œ ๊ธฐ๋ณธ์ ์œผ๋กœ ๋ณด์ด๊ฒŒ ๋งŒ๋“ฌ.

2.5 Styling Stack Navigators (13:09)

  • Error:There is no route defined for key MoviesScreen. : ๋‚˜์ค‘์— ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•ด์„œ ํ•ด๊ฒฐํ•˜์ž. ์ด์ƒํ•˜๋„ค.... key ๋ฅผ undefined

2.6 Finishing Up (5:49)

4 Containers

  • api ํŒŒ์ผ | TV ๋ฐ ์˜ํ™” ์ปจํ…Œ์ด๋„ˆ ๋ฐ ํ”„๋ฆฌ์  ํ„ฐ ( ๋ฆฌ์•กํŠธ JS ์—์„œ ์žฌํ™œ์šฉ!)

5.0 Making a Slider part One (11:29)

5.1 Making a Slider part Two (14:23)

  • react Native์—์„œ๋Š” { data && data.movies &&..} ๋“ฑ์˜ ๋…ผ๋ฆฌ๊ฐ€ ์•ˆ๋จ. ์ด๋Š” ๋นˆ ๋ฌธ์ž์—ด์„ ๋ฆฌํ„ดํ•˜๊ณ , ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์•„๋‹Œ๊ณณ์—์„œ๋Š” ์• ๋Ÿฌ๋ฅผ ๋ฐœ์ƒ.

5.2 Making a Slider part Three (9:36)

5.3 Finishing the Slider (16:11)