# \[Archive\] Decode undefined: setup using expo workflow

**URL:** <https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [August 16, 2024, 10:17am UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193 "2024-08-16T10:17:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanahmadsidqi](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wanahmadsidqi](https://builder.metamask.io/u/wanahmadsidqi)\
**Post date:** [August 16, 2024, 10:17am UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193/1 "2024-08-16T10:17:10Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **wanahmadsidqi** on 8/16/2024.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

web3auth/react-native-sdk: ^7.0.0,

Hello guys, I face some issue when setup the web3auth plug n play using react native expo workflow.

I refer to these:

 ![](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/4bea15d5fdfd372b2e7fae21263c61fab3da9379.png)

```
  <a href="https://web3auth.io/docs/sdk/pnp/react-native/initialize" target="_blank" rel="noopener">web3auth.io</a>

```

### [Initializing PnP React Native SDK | Documentation | Web3Auth](https://web3auth.io/docs/sdk/pnp/react-native/initialize)

Web3Auth PnP React Native SDK - Initialization | Documentation - Web3Auth

 ![](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/4bea15d5fdfd372b2e7fae21263c61fab3da9379.png)

```
  <a href="https://web3auth.io/docs/troubleshooting/metro-issues" target="_blank" rel="noopener">web3auth.io</a>

```

### [Bundler Polyfill Issues - React Native Metro | Documentation | Web3Auth](https://web3auth.io/docs/troubleshooting/metro-issues)

Bundler Polyfill Issues - React Native Metro | Documentation - Web3Auth

The issue I face is when I call web3auth.init(), I got this error:

[![error](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/e01652fd42bae2cd26264d0b4960cb9586bd417d.png)
error954×306 9.98 KB
](https://web3auth.io/community/uploads/default/original/2X/e/ec94c78736c014370f7b250b4baed542b12c3a2f.png "error")

I already follow exactly for globals.js, metro.config.js and index.js

---

<div class="post-metadata">

**Author:** ![Ayush](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/ayush/32/1540_2.png) [@Ayush](https://builder.metamask.io/u/Ayush)\
**Post date:** [August 18, 2024, 3:38pm UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193/2 "2024-08-18T15:38:59Z")

</div>

Hey @wanahmadsidqi can you please the polyfill you did for Expo? It looks like a polyfill issue.

---

<div class="post-metadata">

**Author:** ![maharshi](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/maharshi/32/1525_2.png) [@maharshi](https://builder.metamask.io/u/maharshi)\
**Post date:** [August 19, 2024, 2:08pm UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193/3 "2024-08-19T14:08:50Z")

</div>

Hey @wanahmadsidqi,

Did you have a chance to look at our migration guide that lists the new recommended metro configurations? You can find it here: [Migration Guide: RN v5 to v6](https://web3auth.io/docs/migration-guides/rn-v5-to-v6).

Please try it out and let me know if it works for you.

---

<div class="post-metadata">

**Author:** ![lucas.kraus](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lucas.kraus](https://builder.metamask.io/u/lucas.kraus)\
**Post date:** [October 16, 2024, 7:39pm UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193/4 "2024-10-16T19:39:51Z")

</div>

Hey folks! Just notice the same error to me. Even with the same doc’s configs, still showing this error after build.

---

<div class="post-metadata">

**Author:** ![lucas.kraus](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lucas.kraus](https://builder.metamask.io/u/lucas.kraus)\
**Post date:** [October 21, 2024, 11:37am UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193/5 "2024-10-21T11:37:46Z")

</div>

hey @maharshi! Have a great week

I just find out the same issue for me. I did all setup for metro.config.js, index.js and global.js based on Web3Auth docs.

Do you know if the issue is already fixed in a newest version?

---

<div class="post-metadata">

**Author:** ![maharshi](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/maharshi/32/1525_2.png) [@maharshi](https://builder.metamask.io/u/maharshi)\
**Post date:** [October 23, 2024, 10:53pm UTC](https://builder.metamask.io/t/archive-decode-undefined-setup-using-expo-workflow/1193/6 "2024-10-23T22:53:26Z")

</div>

Please try an let me know if the issue persists, I’ll raise it to the team internally. @lucas.kraus
