Button
Displays a Swift UI button
Official Docs
Preview
Example Usage
<RNSwiftUI.Button key="key">
<RNSwiftUI.Text>
Button
</RNSwiftUI.Text>
</RNSwiftUI.Button>
Props
| name | type | required | description |
|---|---|---|---|
| key | string | ✓ | The key under which the event is sent |
| children | React.ReactNode | ✓ | The RNSwiftUI view that should be displayed as a button |
extends
SwiftUIViewProperties
Events
| name | type | description |
|---|---|---|
| onPress | () => void; | This Event is triggered on a button press |