1import Constants from 'expo-constants';
2import * as StoreReview from 'expo-store-review';
3
4export const name = 'StoreReview';
5
6export function test({ describe, it, expect }) {
7  describe(`isAvailableAsync()`, () => {
8    if (Constants.platform.ios && Constants.platform.ios.systemVersion >= 10.3) {
9      it(`has access to iOS StoreReview API`, async () => {
10        expect(await StoreReview.isAvailableAsync()).toBe(true);
11      });
12    } else {
13      it(`is not available on previous than 10.3 iOS versions'`, async () => {
14        expect(await StoreReview.isAvailableAsync()).toBe(false);
15      });
16    }
17  });
18}
19