forked from prscX/react-native-app-tour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
53 lines (46 loc) · 1.27 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
52
53
import React from 'react'
import { findNodeHandle } from 'react-native'
type AppTourTarget = {
key: React.Key
view: number
props: AppTourTargetProps
}
type AppTourTargetProps = {
title: string
description?: string
outerCircleColor?: string
targetCircleColor?: string
titleTextColor?: string
descriptionTextColor?: string
textColor?: string
dimColor?: string
fontFamily?: string
outerCircleAlpha?: number
titleTextSize?: number
descriptionTextSize?: number
drawShadow?: boolean
cancelable?: boolean
tintTarget?: boolean
transparentTarget?: boolean
targetRadius?: number
}
declare class AppTour {
static ShowSequence(sequence: AppTourSequence, onDismiss?: () => void): void
static ShowFor(appTourTarget: AppTourTarget): void
}
declare class AppTourSequence {
private appTourTargets: Map<React.Key, AppTourTarget>
add(appTourTarget: AppTourTarget): void
remove(appTourTarget: AppTourTarget): void
removeAll(): void
get(appTourTarget: React.Key): AppTourTarget
getAll(): Map<React.Key, AppTourTarget>
}
declare class AppTourView {
static for(
view: null | number | React.Component<any, any> | React.ComponentClass<any>,
key: React.Key,
props: AppTourTargetProps
): AppTourTarget
}
export { AppTour, AppTourSequence, AppTourView }