Skip to main content

NaviagtionLink

Displays a Swift UI NaviagtionLink

warning

This view can only be used as a child of a NavigationView or NavigationSplitView

Official Docs

Preview

button preview

Example Usage

   <RNSwiftUI.NavigationLink
title="Hallo"
optionalSubviews={
<RNSwiftUI.VStack>
<RNSwiftUI.Text>Open new page</RNSwiftUI.Text>
</RNSwiftUI.VStack>
}
>
<RNSwiftUI.ContentUnavailableView
title="Content here"
description="Add any components to this page"
systemIconName="questionmark.app.dashed"/>
</RNSwiftUI.NavigationLink>

Props

nametyperequireddescription
childrenReact.ReactNodeThe RNSwiftUI view that should be displayed on the new page
optionalSubviewsReact.ReactNodeThe NavigationLink
titleReact.ReactNodeThe title of the new page

extends SwiftUIViewProperties