File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 1
-
2
1
import { ReactElement } from 'react' ;
3
- import {
4
- GestureResponderEvent ,
5
- ImageRequireSource ,
6
- StyleProp ,
7
- TextStyle
8
- } from 'react-native' ;
2
+ import { ImageRequireSource } from 'react-native' ;
9
3
import { BaseComponent } from '../commons' ;
10
4
import { ColorValue } from '../style/colors' ;
11
- import { ButtonProps } from './Button ' ;
5
+ import { ButtonProps } from '../../generatedTypes ' ;
12
6
13
- export type ToastPosition = "relative" | " top" | " bottom" ;
7
+ export type ToastPosition = ' top' | ' bottom' ;
14
8
15
9
export interface ToastProps {
16
10
visible ?: boolean ;
17
11
position ?: ToastPosition ;
18
- height ?: number ;
19
12
backgroundColor ?: ColorValue ;
20
13
color ?: ColorValue ;
21
14
message ?: string ;
22
- messageStyle ?: StyleProp < TextStyle > ;
23
15
icon ?: ImageRequireSource ;
24
- actions ?: ReadonlyArray < ButtonProps > ;
25
- onDismiss ?: ( event : GestureResponderEvent ) => void ;
16
+ action ?: ButtonProps ;
17
+ onDismiss ?: ( ) => void ;
26
18
autoDismiss ?: number ;
27
- allowDismiss ?: boolean ;
28
19
onAnimationEnd ?: ( visible : boolean ) => void ;
29
- renderContent ?: ( props : ToastProps ) => ReactElement | ReactElement [ ] ;
30
20
centerMessage ?: boolean ;
31
- animated ?: boolean ;
32
- enableBlur ?: boolean ;
33
21
zIndex ?: number ;
22
+ showLoader ?: boolean ;
23
+ showDismiss ?: boolean ;
24
+ renderAttachment ?: ( ) => React . ReactElement ;
25
+ customLoader ?: ( ) => React . ReactElement ;
34
26
}
35
27
36
28
export class Toast extends BaseComponent < ToastProps > { }
You can’t perform that action at this time.
0 commit comments