Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
ActionsReact Native

Text link

Open a safe URL or run an in-app action from a React Native text link in the theme link color.

Public APILumenLinkReact Native

Native example

Use Text link

Use for inline or standalone links. Pass onPress for in-app navigation or an in-app browser; href opens only absolute http or https URLs through Linking.

Text link rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Text link demo
tsx
<LumenLink href="https://lumen.santi020k.com/docs">
  Read the documentation
</LumenLink>

Reference

Public API

The primary shared and platform-specific options exposed by LumenLink.

APIValues or typeDefaultDescription
childrenReactNodeRequiredProvides the visible label in the theme link color.
hrefstringNoneOpens an absolute http or https URL without credentials; other schemes and relative paths never open.
onPress(event) => voidNoneReplaces opening href, for example with in-app navigation.
disabledbooleanfalseDisables the link; a link without a safe href or onPress is disabled.

Native behavior

Design and accessibility

When to use it

Use for inline or standalone links. Pass onPress for in-app navigation or an in-app browser; href opens only absolute http or https URLs through Linking.

Accessibility

Exposes the link role, the visible label, a disabled state and a 44-point touch target. React Native Web adds the Lumen focus ring.

React Native docsNative primitives