File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import AsyncStorage from '@react-native-async-storage/async-storage' ;
22import * as StoreReview from 'expo-store-review' ;
3- import Toast from 'react-native-toast-message' ;
43
54const TOTAL_CHATS_KEY = 'total_chats_created' ;
65const 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 ) ;
You can’t perform that action at this time.
0 commit comments