[RN Library ๐Ÿ“š] RN ์Šคํ† ์–ด๋ฆฌ๋ทฐ ์œ ๋„ ๊ธฐ๋Šฅ, react-native-store-review ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์‚ฌ์šฉ ํ›„๊ธฐ

๋„๋””ยท2021๋…„ 6์›” 4์ผ
5

RN Library ๐Ÿ“š

๋ชฉ๋ก ๋ณด๊ธฐ
11/12
post-thumbnail

๋„ํ•˜!
์™„์ „ ์˜ค๋žซ๋งŒ์— ๋ธ”๋กœ๊ทธ ๊ธ€์”๋‹ˆ๋‹ค!
์ € ์•„๋Š” ๋ถ„๋“ค ๋Œ“๊ธ€ ๋‹ฌ์•„์ฃผ์„ธ์š”๐Ÿฅ• ๋ฐ˜๊ฐ€์šฐ๋‹ˆ๊ป˜๐Ÿ‘€

์˜ค๋Š˜์€ ์•ฑ ๋‚ด์—์„œ ์Šคํ† ์–ด๋ฆฌ๋ทฐ ์ž‘์„ฑ์„ ์œ ๋„ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ•ด๋ณผ๊ฑด๋ฐ์š”.
์•ฑ ๋‚ด์—์„œ modal ์ฐฝ์„ ๋„์›Œ ๋ฆฌ๋ทฐ๋ฅผ ์ž‘์„ฑ์ผ€๋” ํ•ด์„œ, ์ดํƒˆ๋„ ๋ง‰๊ณ  ์œ ์ €๋„ ํŽธ๋ฆฌํ•˜๊ฒŒ ํ‰๊ฐ€๋ฅผ ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š”๋ฐ์š”.
๊ธฐ๋Šฅ๊ฐœ๋ฐœ์„ ์œ„ํ•ด์„œ react-native-rate, react-native-store-review, react-native-in-app-review
๋“ฑ๋“ฑ ์—ฌ๋Ÿฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ ํƒ์ง€๊ฐ€ ์žˆ์—ˆ๋Š”๋ฐ์š”.

์ €๋Š” react-native-store-review ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค (0.2.0 ๋ฒ„์ „)

react-native-store-review ๊นƒํ—™ ๋ฐ”๋กœ๊ฐ€๊ธฐ


import * as StoreReview from 'react-native-store-review';

if (StoreReview.isAvailable) {
    StoreReview.requestReview();
}

์œ„์˜ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ๋˜๋Š”๋ฐ์š”.
StoreReview.isAvailable ๋กœ ์Šคํ† ์–ด๋ฆฌ๋ทฐ ์ž‘์„ฑ ์—ฌ๋ถ€๋ฅผ boolean ํƒ€์ž…์œผ๋กœ ์•Œ๋ ค์ค˜์„œ, ์ž‘์„ฑํ•˜์ง€ ์•Š์€ ์œ ์ €์—๊ฒŒ StoreReview.requestReview() ๋กœ modal์„ ๋„์›Œ์ค๋‹ˆ๋‹ค.

๊ทธ์™ธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ฐธ๊ณ ์‚ฌํ•ญ

  • iOS> = 10.3 ๋˜๋Š” Android API> = 21์—์„œ๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ
  • ios๋Š” ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋กœ๋„ ํ™•์ธ ๊ฐ€๋Šฅํ•œ๋ฐ android๋Š” google play store์—์„œ ์ œ๊ณตํ•˜๋Š” ๋‚ด๋ถ€์•ฑ๊ณต์œ  ๊นŒ์ง€ ๋ฐฐํฌ๋˜์–ด์•ผ ํ™•์ธ ๊ฐ€๋Šฅํ•˜๋‹ค.
    android ์—๋ฎฌ๋ ˆ์ดํ„ฐ๋กœ ํ…Œ์ŠคํŠธํ–ˆ์„๋•Œ ์•ˆ๋œ๋‹ค๊ณ  ๋‹นํ™ฉํ•˜์ง€ ๋งˆ์‹œ๋ผ..!
  • ๋Œ€ํ™” ์ƒ์ž๊ฐ€ ํ‘œ์‹œ๋˜๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ์•Œ ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์— ๋ฒ„ํŠผ์„ ํƒญํ•œ ๊ฒฐ๊ณผ๋กœ ํ˜ธ์ถœํ•˜์ง€ ๋ง๊ณ  ์•ฑ์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์ด๋ฒคํŠธ์˜ ๋ถ€์ž‘์šฉ์œผ๋กœ ํ˜ธ์ถœํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
    -> ์ข€ ๋‹นํ™ฉ์Šค๋Ÿฌ์› ์ง€๋งŒ, ์ €ํฌ ํšŒ์‚ฌ ์•ฑ์— ํ•„์š”ํ•œ ๊ธฐ๋Šฅ์—๋Š” ๋ฌธ์ œ๊ฐ€ ์—†์–ด์„œ, ์ˆ˜์›”ํ•˜๊ฒŒ ํ–ˆ์Šต๋‹ˆ๋‹ค๋ฆฌ
  • modal์˜ ๋ฉ˜ํŠธ๊ฐ€ ์กฐ๊ธˆ ์–ด์ƒ‰ํ•˜๋‹ค๋Š” QA๊ฐ€ ์žˆ์—ˆ๋Š”๋ฐ, ๋ฉ˜ํŠธ๋ฅผ ์ปค์Šคํ…€ ํ•˜๋Š” ์ •๋ณด๋ฅผ ์ฐพ์ง€ ๋ชปํ–ˆ๋‹ค. ํ˜น์‹œ ๋ฉ˜ํŠธ ์ปค์Šคํ…€ ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๊ณ  ์žˆ๋‹ค๋ฉด ๋Œ“๊ธ€ ๋‚จ๊ฒจ์ฃผ์„ธ์š”!
  • os ๋ณ„๋กœ ์Šคํ† ์–ด๋ณ„์  modal์ด ์–ด๋–ป๊ฒŒ ๋ณด์ผ๊นŒ

  • ํ‚น์•„~ ์•„์ฃผ ์˜์ด์ง€ํ•˜๊ณ  ๊ฐ„๋‹จํ•œ ์ž‘์—…์ด์—ˆ๋‹ค~
profile
์ถฉ์ „์ค‘..๐Ÿค”

1๊ฐœ์˜ ๋Œ“๊ธ€

comment-user-thumbnail
2021๋…„ 8์›” 26์ผ

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค๐Ÿ˜

๋‹ต๊ธ€ ๋‹ฌ๊ธฐ