Skip to content

Commit 186e92e

Browse files
refactor: use native review dialog directly instead of toast
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1addf1b commit 186e92e

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

utils/reviewPrompt.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import AsyncStorage from '@react-native-async-storage/async-storage';
22
import * as StoreReview from 'expo-store-review';
3-
import Toast from 'react-native-toast-message';
43

54
const TOTAL_CHATS_KEY = 'total_chats_created';
65
const LAST_PROMPT_KEY = 'last_review_prompt_count';
@@ -37,17 +36,9 @@ export async function maybePromptReview(): Promise<void> {
3736
await AsyncStorage.setItem(LAST_PROMPT_KEY, String(totalChats));
3837

3938
const isAvailable = await StoreReview.isAvailableAsync();
40-
41-
Toast.show({
42-
type: 'defaultToast',
43-
text1: 'Enjoying Private Mind? Tap to rate us!',
44-
onPress: async () => {
45-
Toast.hide();
46-
if (isAvailable) {
47-
await StoreReview.requestReview();
48-
}
49-
},
50-
});
39+
if (isAvailable) {
40+
await StoreReview.requestReview();
41+
}
5142
} catch (error) {
5243
// Silently fail — rating prompt is non-critical
5344
console.warn('Review prompt failed:', error);

0 commit comments

Comments
 (0)