๐Ÿ‘จ‍๐Ÿ’ป kimtongting
article thumbnail
[React Native] ์„ค์น˜ ๋ฐ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ (Windows)

React Native ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” React Native ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ง„ํ–‰ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. (*nodejs๊ฐ€ ์„ค์น˜๋˜์–ด์žˆ๋‹ค๊ณ  ๊ฐ€์ • ํ›„, ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.) 1. React-Native-Cli ์„ค์น˜ $ npm install -g react-native-cli ์ปค๋งจ๋“œ ์ฐฝ์— ์— ์œ„์™€ ๊ฐ™์€ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด React-Native-Cli๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ -g ์˜ต์…˜์€(global) ์ „์—ญ๋ฒ”์œ„ ์„ค์น˜(์‚ฌ์šฉ)๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. npm์œผ๋กœ ์„ค์น˜ํ•œ ๋ชจ๋“ˆ์€ ๊ธฐ๋ณธ์ ์œผ๋กœ ํ•ด๋‹น ํ”„๋กœ์ ํŠธ ์•ˆ์—์„œ๋งŒ ํšจ๋ ฅ์„ ๋ฐœํœ˜ํ•˜๋Š”๋ฐ, cli๋Š” ์ „์—ญ ๋ฒ”์œ„์—์„œ ์ผ์–ด๋‚˜์•ผ ํ•˜๊ธฐ ๋•Œ๋ฌธ์— -g๋ฅผ ๋ถ™์—ฌ์ค๋‹ˆ๋‹ค. 2. React-Native ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ, ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. $ react-native init project ..