Type alias BottomToolbarPrimaryActionProps

BottomToolbarPrimaryActionProps: {
    componentProps?: ViewProps;
    disabled?: boolean;
    icon: CarbonIcon;
    leftItems?: ToolbarButton[];
    onLongPress?: ((event) => void);
    onPress?: ((event) => void);
    position?: "center" | "right" | "left";
    rightItems?: ToolbarButton[];
    style?: StyleProp<ViewStyle>;
    text: string;
}

Props for BottomToolbarPrimaryAction component

Type declaration

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • Optional disabled?: boolean

    Indicate if primary action is disabled

  • icon: CarbonIcon

    Icon to load for the primary action (size 24)

  • Optional leftItems?: ToolbarButton[]

    Toolbar items to load for left side. Not used for positon left. (alignment property is not respected in this view)

  • Optional onLongPress?: ((event) => void)
      • (event): void
      • onLongPress event for primary button item

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional onPress?: ((event) => void)
      • (event): void
      • onPress event for primary button item

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional position?: "center" | "right" | "left"

    Position of primary action (default is center)

  • Optional rightItems?: ToolbarButton[]

    Toolbar items to load for right side. Not used for positon right. (alignment property is not respected in this view)

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • text: string

    Text to use to describe the primary action (for accessibility)

Generated using TypeDoc