Skip to content

Commit 6f9c558

Browse files
CofCoolmastermoo
authored andcommitted
definition file of Typescript (#217)
* definition file of Typescript
1 parent fc3aa57 commit 6f9c558

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

index.d.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import * as React from 'react'
2+
import {
3+
ViewStyle,
4+
ViewProperties,
5+
TextStyle
6+
} from 'react-native'
7+
8+
9+
export interface ActionButtonProperties extends ViewProperties {
10+
resetToken?: any,
11+
active?: boolean,
12+
13+
position?: string,
14+
elevation?: number,
15+
zIndex?: number,
16+
17+
hideShadow?: boolean,
18+
shadowStyle?: {} | [any] | number,
19+
bgColor?: string,
20+
bgOpacity?: number,
21+
buttonColor?: string,
22+
buttonTextStyle?: TextStyle,
23+
buttonText?: string,
24+
25+
offsetX?: number,
26+
offsetY?: number,
27+
spacing?: number,
28+
size?: number,
29+
autoInactive?: boolean,
30+
onPress?: () => void,
31+
backdrop?: boolean | object,
32+
degrees?: number,
33+
verticalOrientation?: 'up' | 'down',
34+
backgroundTappable?: boolean,
35+
activeOpacity?: number,
36+
37+
useNativeFeedback?: boolean,
38+
fixNativeFeedbackRadius?: boolean,
39+
nativeFeedbackRippleColor?: string
40+
}
41+
42+
export interface ActionButtonItemProperties extends ViewProperties {
43+
title?: string
44+
onPress?: () => void
45+
buttonColor?: string
46+
textContainerStyle?: ViewStyle
47+
textStyle?: TextStyle
48+
spaceBetween?: number
49+
activeOpacity?: number
50+
hideLabelShadow?: boolean
51+
shadowStyle?: ViewStyle
52+
useNativeFeedback?: boolean
53+
fixNativeFeedbackRadius?: boolean
54+
nativeFeedbackRippleColor?: string
55+
}
56+
57+
export class ActionButtonItem extends React.Component <ActionButtonItemProperties> {}
58+
export default class ActionButton extends React.Component <ActionButtonProperties> {
59+
static Item: typeof ActionButtonItem
60+
}

0 commit comments

Comments
 (0)