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
keystring✓The key under which the event is sent
childrenReact.ReactNode✓The RNSwiftUI view that should be displayed as a button

extends SwiftUIViewProperties

Events​

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