Button
<c.button onPress={signIn}>
<c.span>Sign in</c.span>
</c.button>
The <c.button>
component performs an action when pressed by the user.
API Reference
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | ((state: PressableState) => ReactNode) | — | The rendered children node. Pass a function to render based on the pressed state. |
disabled | boolean | false | Makes the element not mutable or focusable. |
onPress | (evt: any) => void | — | Event handler for the press event. |