Skip to main content

Button

Displays a Swift UI button

Official Docs

Preview

button preview

Example Usage

<RNSwiftUI.Button key="key">
<RNSwiftUI.Text>
Button
</RNSwiftUI.Text>
</RNSwiftUI.Button>

Props

nametyperequireddescription
keystringThe key under which the event is sent
childrenReact.ReactNodeThe RNSwiftUI view that should be displayed as a button

extends SwiftUIViewProperties

Events

nametypedescription
onPress() => void;This Event is triggered on a button press