Skip to content

Commit

Permalink
add expo-store-review module
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Oct 13, 2023
1 parent c331114 commit 6f3edd0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1526,4 +1526,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: fbcce4e8b00962de3fda1a95b6da41d278f831f4

COCOAPODS: 1.12.1
COCOAPODS: 1.13.0
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"ethereumjs-util": "6.2.1",
"ethereumjs-wallet": "1.0.1",
"events": "3.3.0",
"expo-store-review": "6.6.0",
"fast-text-encoding": "1.0.4",
"flatted": "3.2.7",
"global": "4.4.0",
Expand Down
3 changes: 3 additions & 0 deletions src/utils/reviewAlert.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import AsyncStorage from '@react-native-async-storage/async-storage';
import lang from 'i18n-js';
import { Linking, NativeModules } from 'react-native';
import * as StoreReview from 'expo-store-review';
import { WrappedAlert as Alert } from '@/helpers/alert';
const { RainbowRequestReview } = NativeModules;

export const AppleReviewAddress =
'itms-apps://itunes.apple.com/us/app/appName/id1457119021?mt=8&action=write-review';
export const PlayStoreAddress =
'market://details?id=me.rainbow&showAllReviews=true';

export const REVIEW_DONE_KEY = 'AppStoreReviewDone';
export const REVIEW_ASKED_KEY = 'AppStoreReviewAsked';
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9394,6 +9394,11 @@ expect@^29.0.0, expect@^29.7.0:
jest-message-util "^29.7.0"
jest-util "^29.7.0"

[email protected]:
version "6.6.0"
resolved "https://registry.yarnpkg.com/expo-store-review/-/expo-store-review-6.6.0.tgz#753908f2a98443decb51fb4b11e60474dc750458"
integrity sha512-iwo3HD2KBcy8yeXFgTY8gXKtK1HK+Dhvr/M53RwI3eg7d4MwP7vo/8dS4mucRnRsn1me6+LqNG+QxdeRPX05lw==

exponential-backoff@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6"
Expand Down

0 comments on commit 6f3edd0

Please sign in to comment.