@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
2
2
import { LayoutChangeEvent , ImageStyle , TextStyle , StyleProp } from 'react-native' ;
3
3
import { BaseComponentInjectedProps , ForwardRefInjectedProps , TypographyModifiers , ColorsModifiers , BackgroundColorModifier , MarginModifiers } from '../../commons/new' ;
4
4
import { TouchableOpacityProps } from '../touchableOpacity' ;
5
- import { TextPropTypes } from '../text' ;
5
+ import { TextProps } from '../text' ;
6
6
export declare enum ButtonSize {
7
7
xSmall = "xSmall" ,
8
8
small = "small" ,
@@ -14,7 +14,7 @@ export declare enum AnimationDirection {
14
14
left = "left" ,
15
15
right = "right"
16
16
}
17
- export declare type ButtonPropTypes = TouchableOpacityProps & TypographyModifiers & ColorsModifiers & BackgroundColorModifier & MarginModifiers & {
17
+ export declare type ButtonProps = TouchableOpacityProps & TypographyModifiers & ColorsModifiers & BackgroundColorModifier & MarginModifiers & {
18
18
/**
19
19
* Text to show inside the button
20
20
*/
@@ -90,7 +90,7 @@ export declare type ButtonPropTypes = TouchableOpacityProps & TypographyModifier
90
90
/**
91
91
* Props that will be passed to the button's Text label.
92
92
*/
93
- labelProps ?: TextPropTypes ;
93
+ labelProps ?: TextProps ;
94
94
/**
95
95
* should the button act as a coast to coast button (no border radius)
96
96
*/
@@ -126,12 +126,13 @@ export declare type ButtonPropTypes = TouchableOpacityProps & TypographyModifier
126
126
*/
127
127
animateTo ?: AnimationDirection ;
128
128
} ;
129
+ export declare type ButtonPropTypes = ButtonProps ;
129
130
export declare type ButtonState = {
130
131
size ?: number ;
131
132
borderRadius ?: number ;
132
133
isLandscape ?: boolean ;
133
134
} ;
134
- declare type Props = ButtonPropTypes & BaseComponentInjectedProps & ForwardRefInjectedProps ;
135
+ declare type Props = ButtonProps & BaseComponentInjectedProps & ForwardRefInjectedProps ;
135
136
/**
136
137
* @description : Basic button component
137
138
* @extends : TouchableOpacity
@@ -344,7 +345,9 @@ declare const _default: React.ComponentClass<(Pick<import("react-native").Toucha
344
345
trailing : boolean ;
345
346
} | undefined ;
346
347
activeBackgroundColor ?: string | undefined ;
347
- useNative ?: boolean | undefined ;
348
+ useNative ?: boolean | undefined ; /**
349
+ * Text to show inside the button
350
+ */
348
351
customValue ?: any ;
349
352
style ?: false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > > | null | undefined ;
350
353
onPress ?: ( ( props : TouchableOpacityProps ) => void ) | undefined ;
@@ -501,7 +504,9 @@ declare const _default: React.ComponentClass<(Pick<import("react-native").Toucha
501
504
trailing : boolean ;
502
505
} | undefined ;
503
506
activeBackgroundColor ?: string | undefined ;
504
- useNative ?: boolean | undefined ;
507
+ useNative ?: boolean | undefined ; /**
508
+ * Text to show inside the button
509
+ */
505
510
customValue ?: any ;
506
511
style ?: false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > > | null | undefined ;
507
512
onPress ?: ( ( props : TouchableOpacityProps ) => void ) | undefined ;
@@ -658,7 +663,9 @@ declare const _default: React.ComponentClass<(Pick<import("react-native").Toucha
658
663
trailing : boolean ;
659
664
} | undefined ;
660
665
activeBackgroundColor ?: string | undefined ;
661
- useNative ?: boolean | undefined ;
666
+ useNative ?: boolean | undefined ; /**
667
+ * Text to show inside the button
668
+ */
662
669
customValue ?: any ;
663
670
style ?: false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > > | null | undefined ;
664
671
onPress ?: ( ( props : TouchableOpacityProps ) => void ) | undefined ;
@@ -815,7 +822,9 @@ declare const _default: React.ComponentClass<(Pick<import("react-native").Toucha
815
822
trailing : boolean ;
816
823
} | undefined ;
817
824
activeBackgroundColor ?: string | undefined ;
818
- useNative ?: boolean | undefined ;
825
+ useNative ?: boolean | undefined ; /**
826
+ * Text to show inside the button
827
+ */
819
828
customValue ?: any ;
820
829
style ?: false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . ViewStyle > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > > | import ( "react-native" ) . Animated . AnimatedProps < import ( "react-native" ) . RecursiveArray < false | import ( "react-native" ) . ViewStyle | import ( "react-native" ) . RegisteredStyle < import ( "react-native" ) . ViewStyle > | null | undefined > > | null | undefined ;
821
830
onPress ?: ( ( props : TouchableOpacityProps ) => void ) | undefined ;
0 commit comments