forked from tschoffelen/react-native-map-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
51 lines (47 loc) · 1.52 KB
/
index.d.ts
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
42
43
44
45
46
47
48
49
50
51
import * as React from 'react';
import { ViewStyle, StyleProp, ImageStyle, TextStyle } from 'react-native';
interface Options {
latitude: number | string
longitude: number | string
sourceLatitude?: number
sourceLongitude?: number
alwaysIncludeGoogle?: boolean
googleForceLatLon?: boolean
googlePlaceId?: string
title?: string
app?: string
dialogTitle?: string
dialogMessage?: string
cancelText?: string
appsWhiteList?: string[]
appTitles?: { [key: string]: string }
}
interface PopupStyleProp {
container?: StyleProp<ViewStyle>,
itemContainer?: StyleProp<ViewStyle>,
image?: StyleProp<ImageStyle>,
itemText?: StyleProp<TextStyle>,
headerContainer?: StyleProp<ViewStyle>,
titleText?: StyleProp<TextStyle>,
subtitleText?: StyleProp<TextStyle>,
cancelButtonContainer?: StyleProp<ViewStyle>,
cancelButtonText?: StyleProp<TextStyle>,
separatorStyle?: StyleProp<ViewStyle>,
activityIndicatorContainer?: StyleProp<ViewStyle>
}
interface PopupProps {
isVisible: boolean,
showHeader?: boolean,
customHeader?: React.ReactNode,
customFooter?: React.ReactNode,
onCancelPressed: () => void,
onBackButtonPressed: () => void,
onAppPressed: () => void,
style?: PopupStyleProp,
modalProps?: object,
options: Options,
appsWhiteList: string[],
appTitles?: { [key: string]: string }
}
export function showLocation(options: Options): Promise<string | undefined | null>;
export class Popup extends React.Component<PopupProps>{ }