interface SnackBarOptions {
    actionText?: string;
    actionTextColor?: string | Color;
    anchorView?: View;
    backgroundColor?: string | Color;
    hideDelay?: number;
    iosIgnorePresentedViewController?: (controller: any) => boolean;
    isRTL?: boolean;
    maxLines?: number;
    message: string;
    textColor?: string | Color;
    view?: View;
}

Properties

actionText?: string

The action button text of the snackbar.

actionTextColor?: string | Color

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 | Color

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

iosIgnorePresentedViewController?: (controller: any) => boolean

iOS function to ignore special case of presentedViewController like not wanting to show a snack inside a Popover

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 | Color

Text Color of the snackbar.

view?: View

optional View to attach the snack to