NaviagtionLink
Displays a Swift UI NaviagtionLink
warning
This view can only be used as a child of a NavigationView
or NavigationSplitView
Official Docs
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
name | type | required | description |
---|---|---|---|
children | React.ReactNode | ✓ | The RNSwiftUI view that should be displayed on the new page |
optionalSubviews | React.ReactNode | ✓ | The NavigationLink |
title | React.ReactNode | ✕ | The title of the new page |
extends
SwiftUIViewProperties