> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/react-native/signature/clear.md).

# clear

## Description

A function to clear the canvas and allow users to redraw the signature.

## Input / Parameter

| Name      | Description                          | Input Type | Default | Options | Required |
| --------- | ------------------------------------ | ---------- | ------- | ------- | -------- |
| component | The name of the signature component. | Text       | -       | -       | Yes      |

## Output

Note: The signature component will be updated and clear the canvas.

## Example

In this example, we will clear the current signature canvas.

### Steps

1. Drag a `signature` and `button` component into the canvas and open the `Action` tab. Label the button "Clear".

   ![](/files/XUJxZhNYvEVzYp5uqNuI)
2. Select the `press` event of the button component and drag the `Signature.clear` function to the event flow. Select the signature component that should be cleared when this button is clicked.

   ![](/files/lFQsaZoTPGhrKOk8ROzz)
3. Save and preview the app. Sign on the signature component canvas, then click the 'Clear' button to clear the canvas.

   ![](/files/XXbRowEFIwGc5YsNTRB6)

### Result

1. The canvas of the signature component specified in the `component` parameter will be cleared.

   ![](/files/LnJ6PLHV8roSIW3lAOgL)

## Links

### Related Information

See also:

* Components
  * [Signature](/emobiq-client/006-actions-and-visual-logic/action-reference/react-native/signature/clear.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/react-native/signature/clear.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
