๊ฐœ๋ฐœ ๊ณต๋ถ€/๋ฐ๋ธŒ์ฝ”์Šค TIL

[ํด๋ผ์šฐ๋”ฉ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์—”์ง€๋‹ˆ์–ด๋ง TIL] 240320, 240321- React Native์—์„œ ์นด๋ฉ”๋ผ ์•ฑ ์—ด๊ธฐ / ์•ฑ ์•„์ด์ฝ˜, ์Šคํ”Œ๋ž˜์‹œ ํ™”๋ฉด, ํฐํŠธ ์„ค์ •

๊ฐ€์šค์ด 2024. 3. 21. 11:10

Intro


์•ฑ์—์„œ ์ž์ฃผ ์“ฐ๋Š” ์นด๋ฉ”๋ผ ์—ฐ๊ฒฐ๊ณผ ์•ฑ ์•„์ด์ฝ˜ ์„ค์ •, ์Šคํ”Œ๋ž˜์‹œ ํ™”๋ฉด ์„ค์ •, ํฐํŠธ ์„ค์ •์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์•˜๋‹ค.

 

 

 

์˜ค๋Š˜ ํ•™์Šตํ•œ ๋‚ด์šฉ


์•จ๋ฒ” ๊ฐ€์ ธ์˜ค๊ธฐ

https://github.com/react-native-cameraroll/react-native-cameraroll

 

GitHub - react-native-cameraroll/react-native-cameraroll: CameraRoll is a react-native native module that provides access to the

CameraRoll is a react-native native module that provides access to the local camera roll or photo library. - react-native-cameraroll/react-native-cameraroll

github.com

๐Ÿ‘ฉ‍๐Ÿ’ป xcode ์„ค์ •
xcode ์—ด๊ธฐ → info file ์—ด๊ธฐ → “Privacy - Photo Library Usage Description”, “Privacy - Photo Library Additions Usage Description”, “Privacy - Camera Usage Description” ์„ค์ •ํ•˜๊ธฐ

 

 

์นด๋ฉ”๋ผ ์—ด๊ธฐ

์นด๋ฉ”๋ผ๋กค์—์„œ ์„ ํƒ๋œ ์‚ฌ์ง„์ด๋‚˜ ๋น„๋””์˜ค๋ฅผ ๊ฐ€์ ธ์˜ค๊ฑฐ๋‚˜ ์นด๋ฉ”๋ผ๋ฅผ ์ผค์ˆ˜ ์žˆ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ: 

https://github.com/ivpusic/react-native-image-crop-picker

 

GitHub - ivpusic/react-native-image-crop-picker: iOS/Android image picker with support for camera, video, configurable compressi

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping - ivpusic/react-native-image-crop-picker

github.com

 

 

 

์นด๋ฉ”๋ผ ์—ด๊ธฐ

ImagePicker.openCamera({
  width: 300,
  height: 400,
  cropping: false
}).then(image => {
  console.log(image);
});

 

์•จ๋ฒ”์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ

ImagePicker.openPicker({
  width: 300,
  height: 400,
  cropping: true
}).then(image => {
  console.log(image);
});

 


์•ฑ ์•„์ด์ฝ˜ ์„ค์ •ํ•˜๊ธฐ

: xcode > images์—์„œ ๊ฐ ๋””๋ฐ”์ด์Šค ์‚ฌ์ด์ฆˆ ๋ณ„๋กœ ์•„์ด์ฝ˜์„ ์ง€์ •ํ•ด์•ผ ํ•œ๋‹ค.

๋‹ค์Œ ์‚ฌ์ดํŠธ์—์„œ ํŽธ๋ฆฌํ•˜๊ฒŒ ํ•˜๋‚˜์˜ ์‚ฌ์ง„์„ ์—ฌ๋Ÿฌ ์‚ฌ์ด์ฆˆ๋กœ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค.

https://www.appicon.co/

 

App Icon Generator

 

www.appicon.co

 

 

์Šคํ”Œ๋ž˜์‹œ ํ™”๋ฉด ์„ค์ •ํ•˜๊ธฐ

: xcode > lunchScreen

 

 

 

์ปค์Šคํ…€ ํฐํŠธ ์„ค์ •ํ•˜๊ธฐ

: ios, android ์›น ํฐํŠธ ๊ฐ๊ฐ ๋”ฐ๋กœ ์„ค์ •ํ•ด์•ผ ํ•œ๋‹ค.

  1. ํฐํŠธ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ
  2. ios ํด๋” ๋‚ด์— Fonts ํด๋”๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ํด๋” ์•ˆ์— ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ ํฐํŠธ๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ธฐํ•œ๋‹ค.
  3. xcode > info์— 'Fonts provided by application' ์„ค์ •ํ•˜๊ธฐ โžก๏ธ item์— ํฐํŠธ ๊ฒฝ๋กœ ์ถ”๊ฐ€

 

์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ๋Œ€ํ‘œ์ ์ธ ํฐํŠธ

https://noonnu.cc/font_page/694

 

๋ˆˆ๋ˆ„

ํ”„๋ฆฌํ…๋‹ค๋“œ - ๊ธธํ˜•์ง„ (orioncactus)

noonnu.cc

 

 

 

๋งˆ๋ฌด๋ฆฌ


์ด์ œ ๊ธฐ๋ณธ์ ์ธ ๋‚ด์šฉ๋“ค์€ ์–ด๋А์ •๋„ ๋‹ค ํ•™์Šตํ•œ ๊ฒƒ ๊ฐ™๋‹ค.

์‹ค์Šต์„ ๋”ฐ๋ผํ•˜๋ฉด์„œ ์ฐจ๊ทผ์ฐจ๊ทผ ์ตํ˜€๋ด์•ผ์ง€!