Skip to main content

Banner

API documentation for the React Native Banner component. Learn about the available props.

Import#

import { Banner } from "@react-native-material/core";// orimport Banner from "@react-native-material/core/Banner";

Props#

interface BannerProps {  text: string | React.ReactElement | null;
  illustration?: React.ReactElement | ((props: { size: number }) => React.ReactElement | null) | null;
  buttons: React.ReactElement | React.ReactElement[] | null;
  style?: StyleProp<ViewStyle>;
  contentContainerStyle?: StyleProp<ViewStyle>;
  illustrationContainerStyle?: StyleProp<ViewStyle>;
  textContainerStyle?: StyleProp<ViewStyle>;
  textStyle?: StyleProp<TextStyle>;
  actionsContainerStyle?: StyleProp<ViewStyle>;}