Skip to main content

Header

Overview

LMHeader is used to display the header of a screen. It contains the left and right component within it which are completely customisable.

LMFeedPostContent

Callbacks

  • onBackPress: Callback to handle tap events trigerred by on clicking of the back icon.

Customisation

PropertyTypeDescription
headingstringThe heading of the header.
rightComponentReactElementThe component to be rendered on the right-side of the header.
showBackArrowbooleanBoolean to decide whether to show back icon or not.
onBackPressFunctionThe function to be triggered on back press.
subHeadingstringThe sub-heading of the header.
backIconLMIconPropsThe back icon to be rendered.
subHeadingTextStyleTextStyleThe text-styling for sub-heading.
headingTextStyleTextStyleThe text-styling for heading.
headingViewStyleViewStyleThe view-styling for heading.