How to use a EXPO iOS StoreReview API?

1.8k Views Asked by At

I tried to add a EXPO iOS StoreReview API but failed. have any sample code?

import * as StoreReview from 'expo-store-review';
...
export default SettingPage() {
  handleReview = () => {
    if (StoreReview.isSupported()) {
      StoreReview.requestReview();
    }
  };

  render (
    ...
    <TouchableOpacity onPress={handleReview}>
      <Text>Click Review</Text>
    </TouchableOpacity>
  );
}
1

There are 1 best solutions below

0
On

add ios-appStoreUrl android-playStoreUrl fields in app.json