# React Native Background Segmentation Issue

**URL:** <https://forum.deepar.ai/t/react-native-background-segmentation-issue/209>\
**Category:** Help & Questions\
**Created:** [February 14, 2023, 4:49am UTC](https://forum.deepar.ai/t/react-native-background-segmentation-issue/209 "2023-02-14T04:49:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikola\_Kanev](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/nikola_kanev/32/312_2.png) [@Nikola\_Kanev](https://forum.deepar.ai/u/Nikola_Kanev)\
**Post date:** [February 14, 2023, 4:49am UTC](https://forum.deepar.ai/t/react-native-background-segmentation-issue/209/1 "2023-02-14T04:49:37Z")

</div>

Hello everybody,

Currently setting up DeepAr in my project and I’m having issues with the background segmentation example. I’m using the example provided here → [GitHub - ridvanaltun/react-native-deepar: Snapchat-like filters, AR lenses, and real-time facial animations.](https://github.com/ridvanaltun/react-native-deepar#background-segmentation).

More specifically:

```auto
import {TextureSourceTypes} from 'react-native-deepar';
import RNFetchBlob from 'rn-fetch-blob';

RNFetchBlob.config({})
  .fetch('GET', 'https://images.unsplash.com/photo-1674699244554-935d4a31b3ae?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=800&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTY3NjI5NzgzOQ&ixlib=rb-4.0.3&q=80&w=450')
  .then((res) => {
    deepARRef?.current?.changeParameterTexture({
      gameObject: 'Background',
      component: 'MeshRenderer',
      parameter: 's_texColor',
      type: TextureSourceTypes.BASE64,
      value: res.base64(),
    });
  });

```

(I have only changed the URL)

Requesting any help on the matter.

(NOTE: I followed the example for the 8bitheart effect and it worked perfectly, only have an issue with background segmentation over the web.)

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [February 14, 2023, 3:32pm UTC](https://forum.deepar.ai/t/react-native-background-segmentation-issue/209/2 "2023-02-14T15:32:34Z")

</div>

Hi, can you clarify if the issue only happens when trying to change the texture?

---

<div class="post-metadata">

**Author:** ![Nikola\_Kanev](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/nikola_kanev/32/312_2.png) [@Nikola\_Kanev](https://forum.deepar.ai/u/Nikola_Kanev)\
**Post date:** [February 14, 2023, 4:37pm UTC](https://forum.deepar.ai/t/react-native-background-segmentation-issue/209/3 "2023-02-14T16:37:30Z")

</div>

Yes, I am unable to change the background as seen in the background segmentation example. However, I am able to switch effects.
