> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/developers-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/developers-guide/hybrid-apps/react-native/tracking-events/sample-e-commerce-events/search-for-product-s.md).

# Search for Product(s)

When a user initiates a product search within your mobile app, showcasing their interest in finding specific items or information.

{% tabs %}
{% tab title="TypeScript" %}

<pre class="language-typescript"><code class="lang-typescript">import AntsomiRnSDK from '@antsomicorp/antsomirnsdk';

const items: Record&#x3C;string, any>[] = [];

// Replace the object searchResult, and userData with your object
searchResult.forEach((productDetail) => {
  items.add({
    type: "product",
    id: productDetail.sku,
    name: productDetail.name
  });
});

const event: CDPEvent = {
<strong>  en: "product_search_browsing",
</strong>  items: items,
<strong>  customerProps: {
</strong>    customer_id: MD5Hash().generateMd5(userData.email ?? ''),
    name: userData.name
  },
  eventProps: {
<strong>    src_search_term: searchResult.keyword
</strong>  }
};

await AntsomiRnSDK.track(event);
</code></pre>

{% endtab %}
{% endtabs %}
