forked from mastermoo/react-native-action-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
60 lines (52 loc) · 1.42 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
54
55
56
57
58
59
60
import * as React from 'react'
import {
ViewStyle,
ViewProperties,
TextStyle
} from 'react-native'
export interface ActionButtonProperties extends ViewProperties {
resetToken?: any,
active?: boolean,
position?: string,
elevation?: number,
zIndex?: number,
hideShadow?: boolean,
shadowStyle?: {} | [any] | number,
bgColor?: string,
bgOpacity?: number,
buttonColor?: string,
buttonTextStyle?: TextStyle,
buttonText?: string,
offsetX?: number,
offsetY?: number,
spacing?: number,
size?: number,
autoInactive?: boolean,
onPress?: () => void,
backdrop?: boolean | object,
degrees?: number,
verticalOrientation?: 'up' | 'down',
backgroundTappable?: boolean,
activeOpacity?: number,
useNativeFeedback?: boolean,
fixNativeFeedbackRadius?: boolean,
nativeFeedbackRippleColor?: string
}
export interface ActionButtonItemProperties extends ViewProperties {
title?: string
onPress?: () => void
buttonColor?: string
textContainerStyle?: ViewStyle
textStyle?: TextStyle
spaceBetween?: number
activeOpacity?: number
hideLabelShadow?: boolean
shadowStyle?: ViewStyle
useNativeFeedback?: boolean
fixNativeFeedbackRadius?: boolean
nativeFeedbackRippleColor?: string
}
export class ActionButtonItem extends React.Component <ActionButtonItemProperties> {}
export default class ActionButton extends React.Component <ActionButtonProperties> {
static Item: typeof ActionButtonItem
}