Skip to content

Commit fcd8278

Browse files
authored
chore: Refactor SnackBarOptions interface export
1 parent 98d25f5 commit fcd8278

File tree

1 file changed

+2
-54
lines changed

1 file changed

+2
-54
lines changed

src/snackbar/snackbar-common.ts

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,7 @@
11
import { Color, View } from '@nativescript/core';
22

3-
export interface SnackBarOptions {
4-
/**
5-
* The action button text of the snackbar.
6-
*/
7-
actionText?: string;
8-
9-
/**
10-
* The text of the snackbar.
11-
*/
12-
message: string;
13-
14-
/**
15-
* Delay to hide the snackbar.
16-
*/
17-
hideDelay?: number;
18-
19-
/**
20-
* Action Text Color of the snackbar.
21-
*/
22-
actionTextColor?: string | Color;
23-
24-
/**
25-
* Text Color of the snackbar.
26-
*/
27-
textColor?: string | Color;
28-
29-
/**
30-
* Background Color of the snackbar.
31-
*/
32-
backgroundColor?: string | Color;
33-
/**
34-
* *Android Only*
35-
* Set the maxLines if you are displaying a long string of text and it will wrap.
36-
*/
37-
maxLines?: number;
38-
39-
/**
40-
* *Android Only*
41-
* Use RTL for textview of snackbar.
42-
*/
43-
isRTL?: boolean;
44-
45-
/**
46-
* The View to which the snackbar will be attached. Useful with modals.
47-
* Default to Frame.topmost().currentPage
48-
*/
49-
view?: View;
50-
51-
/**
52-
* The view you want to "anchor the snack above".
53-
* The snackbar will appear above that view
54-
*/
55-
anchorView?: View;
56-
}
3+
import { SnackBarOptions } from './';
4+
export { SnackBarOptions } from './';
575

586
export enum DismissReasons {
597
SWIPE = 'swipe',

0 commit comments

Comments
 (0)