import { useCallback } from 'react' ; import * as StoreReview from 'expo-store-review' ; see https example export function useStoreReviewRequest ( ) { return useCallback ( async ( ) => { const hasAction = await StoreReview . hasAction ( ) ; if ( hasAction ) { await StoreReview . requestReview ( ) ; } return hasAction ; } , [ ] ) ; }