interface SnackBarOptions {
    actionText?: string;
    actionTextColor?: string;
    anchorView?: View;
    backgroundColor?: string;
    hideDelay?: number;
    isRTL?: boolean;
    maxLines?: number;
    message: string;
    textColor?: string;
    view?: View;
}

Properties

actionText?: string

The action button text of the snackbar.

actionTextColor?: string

Action Text Color of the snackbar.

anchorView?: View

The view you want to "anchor the snack above". The snackbar will appear above that view

backgroundColor?: string

Background Color of the snackbar.

hideDelay?: number

Delay in ms to hide the snackbar. Note: iOS only allows a maximum of 10s. If the value is more than that for iOS, the hideDelay will be set to 10s

isRTL?: boolean

Android Only Use RTL for textview of snackbar.

maxLines?: number

Android Only Set the maxLines if you are displaying a long string of text and it will wrap.

message: string

The text of the snackbar.

textColor?: string

Text Color of the snackbar.

view?: View

optional View to attach the snack to