forked from mastermoo/react-native-action-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
65 lines (57 loc) · 1.59 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
61
62
63
64
65
import * as React from 'react'
import {
ViewStyle,
ViewProperties,
TextStyle,
ImageSourcePropType
} 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,
imageSource?: ImageSourcePropType,
offsetX?: number,
offsetY?: number,
spacing?: number,
size?: number,
autoInactive?: boolean,
onPress?: (active: boolean) => void,
onReset?: () => void,
renderIcon?: (active: boolean) => React.ReactElement<any>,
backdrop?: boolean | object,
degrees?: number,
verticalOrientation?: 'up' | 'down',
backgroundTappable?: boolean,
activeOpacity?: number,
useNativeFeedback?: boolean,
fixNativeFeedbackRadius?: boolean,
nativeFeedbackRippleColor?: string
}
export interface ActionButtonItemProperties extends ViewProperties {
size?: number,
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
}