1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | import type * as React from 'react';
|
11 | import {ColorValue} from '../StyleSheet/StyleSheet';
|
12 | import {TouchableNativeFeedbackProps} from './Touchable/TouchableNativeFeedback';
|
13 | import {TouchableOpacityProps} from './Touchable/TouchableOpacity';
|
14 |
|
15 | export interface ButtonProps
|
16 | extends Pick<
|
17 | TouchableNativeFeedbackProps & TouchableOpacityProps,
|
18 | | 'accessibilityLabel'
|
19 | | 'accessibilityState'
|
20 | | 'hasTVPreferredFocus'
|
21 | | 'nextFocusDown'
|
22 | | 'nextFocusForward'
|
23 | | 'nextFocusLeft'
|
24 | | 'nextFocusRight'
|
25 | | 'nextFocusUp'
|
26 | | 'testID'
|
27 | | 'disabled'
|
28 | | 'onPress'
|
29 | | 'touchSoundDisabled'
|
30 | > {
|
31 | |
32 |
|
33 |
|
34 | title: string;
|
35 |
|
36 | |
37 |
|
38 |
|
39 | color?: ColorValue | undefined;
|
40 | }
|
41 |
|
42 | export class Button extends React.Component<ButtonProps> {}
|