Link | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Please opt in to our enterprise plan (coming soon) for priority support with NativeBase. If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
Link
Links are accessible elements used primarily for navigation. This component is styled to resemble a hyperlink.
Import
Copy
import { Link } from 'native-base';
Examples
Basic
Playground
Playground
Playground
Playground
Playground
Props
href
URL that should be opened on Link press
Type: string
size
Size of the link
Type: number | "2xl" | "xl" | "lg" | "md" | "sm" | "xsm"
isUnderlined
Whether Link text should be underlined
Type: boolean
Default: false
onPress
Callback that will be invoked on Link press
Type: any
isExternal
If true, link will be opened in new tab on web. It uses _target property to achieve this
Type: boolean
_hover
Hover props. Accepts all styled system props.
Type: any
wrapperRef
Ref to be attached to the Link wrapper
Type: any
Styling
NativeBase ships with a default theme for each component. Check out the default theme of the link.
Info: We can easily extend the link component theme using extendTheme function as described in the documentation .
Accessibility
Nativebase logo
MadeWithNativeBase