---
updatedAt: 2026-06-21T11:30:58.000Z
agentTools:
  projectIndex: https://developers.taboola.com/taboolasdk/v3/llms.txt
---

# Advanced Options

React Native Plugin 3.x > Advanced Options

<Callout icon="⚠️" theme="warn">
  ### Deprecation Notice

  You are viewing the **SDK v3** docs. **SDK v3 will be deprecated on September 30, 2026.**

  We recommend upgrading to [**SDK v4**](https://developers.taboola.com/taboolasdk/docs/welcome) — the latest and actively maintained version. To get started, follow the [**SDK v3 → v4 Migration Guide**](https://developers.taboola.com/taboolasdk/docs/upgrading-from-sdk3-to-sdk4).
</Callout>

## Additional methods

### `refresh()`

Fetches new recommendations.

The *scope* is determined by the object invoking the method:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Object
      </th>

      <th>
        Example
      </th>

      <th>
        Scope
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `Page`
      </td>

      <td>
        `page.refresh();`
      </td>

      <td>
        Fetches new recommendations for **all units** under that page.
      </td>
    </tr>

    <tr>
      <td>
        `Unit`
      </td>

      <td>
        `unitRef.current?.refresh();`
      </td>

      <td>
        Fetches new recommendations for the **given unit** only.  

        ***

        Requires that you use the `useNodeRef` hook **and** keep a reference to the Unit.\
        See: [Fetching content manually](https://developers.taboola.com/taboolasdk/v3/docs/sdk-3x-react-native-advanced-options#fetching-content-manually)
      </td>
    </tr>
  </tbody>
</Table>

Sample code snippets:

```javascript 'Page' example
<Button
  title={'Refresh Page'}
  onPress={() => {
    page.refresh();
	}}
/>
```
```javascript 'Unit' example
<Button
  title={'Refresh Unit'}
  onPress={() => {
    unitRef.current?.refresh();
	}}
/>
```

## Fetching content *manually*

> 🚧
>
> To cater for special scenarios, you may want to fetch (or [refresh](https://developers.taboola.com/taboolasdk/v3/docs/sdk-3x-react-native-advanced-options#refresh)) content *manually*
>
> This flow is more *advanced*, and **replaces** the steps outlined under [Create unit Instances](https://developers.taboola.com/taboolasdk/v3/docs/sdk-3x-react-native-plugin#create-unit-instances).

For *each* **Taboola** Unit on the page:

1. Implement  the **Taboola** `useNodeRef` hook, and invoke `fetchContent` to fetch **Taboola** content:

```javascript Fetch content
// Fetch content - without keeping a reference to the Unit.
const [setUnitRef] = useNodeRef((unit) => {
   unit.fetchContent();
});
```
```javascript Fetch content and keep a reference
// Fetch content - and keep a reference to the Unit (`unitRef`).
// You can use that reference elsewhere in your code, to fetch or refresh content.
const [setUnitRef, unitRef] = useNodeRef((unit)=>{
  unit.fetchContent()
});
```

> 📘
>
> Depending on your specific needs, you can *optionally* keep a reference to the Unit.
>
> Refer to each of the code snippets, *above*.

2. Create a `<TBLClassicUnit>` component. (This represents a **Taboola** <Glossary>Widget</Glossary> *or* <Glossary>Feed</Glossary>.)

> 📘
>
> **Include** a reference to `setUnitRef`.

```javascript Create Unit
<View style={{ flex:1 }}>
  <TBLClassicUnit
  publisherParams={{
    classicPageId: pageId,
    placement:<placement>,                    
    mode:<mode>,
    placementType: <placementType>,
  }}
  ref={setUnitRef}
  style={{
    width: '100%',
    flex: 1,
  }}/>
</View>
```
```javascript An example
<View style={{ flex:1 }}>
  <TBLClassicUnit
  publisherParams={{
    classicPageId: page?.pageId,                    
    placement:”Below Article Thumbnails Limited-20”,
    mode:”thumbs-feed-01”,
    placementType: TBL_PLACEMENT_TYPE.FEED,
  }}
  ref={setUnitRef}
  style={{
    width: '100%',
    flex: 1,
  }}/>
</View>
```

> 📘 Params
>
> * `placement` - The placement name, **as provided by Taboola** - e.g. `"Below Article Thumbnails Limited-20"`.
> * `mode` - The *UI Mode ID* of the unit, **as provided by Taboola** - e.g. `"thumbs-feed-01"`.
> * `placementType` - The unit *type* (see below for possible values).

| `placementType`                   | Description                                         |
| :-------------------------------- | :-------------------------------------------------- |
| TBL\_PLACEMENT\_TYPE.PAGE\_MIDDLE | Return a *mid-page* <Glossary>Widget</Glossary>.    |
| TBL\_PLACEMENT\_TYPE.PAGE\_BOTTOM | Return a *page bottom* <Glossary>Widget</Glossary>. |
| TBL\_PLACEMENT\_TYPE.FEED         | Returns a Taboola <Glossary>Feed</Glossary>.        |

> 🚧 Multiple Taboola units
>
> With **v3** of the **Taboola** plugin, you can add *multiple* **Taboola** units to the *same* screen (*without* loading them sequentially).
>
> ***
>
> See the [code sample](https://developers.taboola.com/taboolasdk/v3/docs/sdk-3x-react-native-advanced-options#code-sample) at the end of this section.

```javascript 'Page' example
<Button
  title={'Refresh Page'}
  onPress={() => {
    page.refresh();
	}}
/>
```
```javascript 'Unit' example
<Button
  title={'Refresh Unit'}
  onPress={() => {
    unitRef.current?.refresh();
	}}
/>
```

### Code sample

> 🚧
>
> Always use **your own** param values, **as provided by Taboola**.

```javascript Fetch content manually
import {
    Taboola,
    TBL_PLACEMENT_TYPE,
    TBLClassicUnit,
    useGetPageId, useNodeRef
} from "@taboola/react-native-plugin-3x";


// Taboola page
const page = useMemo(
  () =>
    Taboola.getClassicPage(
      'https://www.example.com/articles?id=123',
      'article'
    ),
  []
);

// Set page to 'dark mode'
page.setPageExtraProperties({ darkMode: 'true' });


//Taboola hooks
const [pageId] = useGetPageId(page);

const [setUnitRef] = useNodeRef((unit) => {
  unit.fetchContent();
});
const [setUnitRef2] = useNodeRef((unit) => {
  unit.fetchContent();
});


// 'Page' object cleanup
useEffect(() => {
  return () => {
    page.remove();
  };
}, [page]);


// TBLClassicUnit components
<>


  <TBLClassicUnit
    ref={setUnitRef}
    publisherParams={{
      classicPageId: pageId,
      placement: 'Mid Article',
      mode: 'alternating-widget-with-video-1x1',
      placementType: TBL_PLACEMENT_TYPE.PAGE_MIDDLE,
    }}
    style={{
      backgroundColor: GREEN,
      flex: 1,
    }}
  />

  <TBLClassicUnit
    ref={setUnitRef2}
    publisherParams={{
      classicPageId: pageId,
      placement: 'Below Article Thumbnails Limited-20',
      mode: 'thumbs-feed-01',
      placementType: TBL_PLACEMENT_TYPE.FEED,
    }}
    style={{
      backgroundColor: RED,
      flex: 1,
    }}
  />
</>
```

> 🚧 Multiple Taboola units
>
> With **v3** of the **Taboola** plugin, you can add *multiple* **Taboola** units to the *same* screen (*without* loading them sequentially).