NativeTemplates

ListLink

A component for navigation items in lists with customizable icons and layout.

ListLink

A component for creating consistent navigation links in lists with support for icons, descriptions, and various layout options.

Import

import ListLink from '@/components/ListLink';

Features

  • Navigation support via expo-router
  • Leading and trailing icons
  • Optional description text
  • Right-aligned content support
  • Clear visual feedback on press

Props

PropTypeDefaultDescription
titlestring—Primary text to display
descriptionstring—Secondary text shown below title
hrefstring—Navigation destination
iconIconName—Leading icon name
rightTextstring—Text to display on the right
rightContentReactNode—Custom component on the right side
showChevronbooleantrueWhether to show > chevron on right
onPress() => void—Custom press handler
classNamestring—Additional styling classes
contentClassNamestring—Classes for the content container

Basic Usage

// Basic navigation item
<ListLink 
  title="Profile"
  href="/profile"
  icon="User"
/>
 
// With description text
<ListLink
  title="Notifications"
  description="Configure your alert preferences"
  href="/settings/notifications"
  icon="Bell"
/>
 
// With right-aligned text
<ListLink
  title="App Version"
  rightText="1.2.0"
  showChevron={false}
/> 

On this page