-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.android.js
41 lines (32 loc) · 1.13 KB
/
index.android.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* @flow */
export type LoadProductParameters = {
iTunesItemIdentifier: number,
affiliateToken?: string,
campaignToken?: string,
providerToken?: string
};
export type StoreViewEventName =
'loading'
| 'loaded'
| 'presenting'
| 'presented'
| 'dismissing'
| 'dismissed';
export function loadProductWithParameters(params: LoadProductParameters): Promise<void> {
return Promise.reject(new Error('[react-native-store-view] Not available on Android'));
}
export function presentViewController(animated = true): Promise<void> {
return Promise.reject(new Error('[react-native-store-view] Not available on Android'));
}
export function isAvailable(): Promise<boolean> {
return Promise.resolve(false);
}
export function dismiss(animated: boolean = true): Promise<void> {
return Promise.reject(new Error('[react-native-store-view] Not available on Android'));
}
export function addListener(event: StoreViewEventName, listener: (payload: any) => any) {
}
export function removeListener(event: StoreViewEventName, listener: (payload: any) => any) {
}
export function once(event: StoreViewEventName, callback: (payload: any) => any) {
}