Can't find a variable atob

I have tried downgrading but that's not resulted as a solution to me. I don't know why.

The global import of base64 in the app.js resolved this problem.

import {decode, encode} from 'base-64'

if (!global.btoa) {  global.btoa = encode }

if (!global.atob) { global.atob = decode }

Thanks for your responses.


Worked for me ! Thanks papay0, there is indeed something wrong with version 7.9.1.

npm install [email protected]
expo r -c # restard expo without cache

You can rm -rf ./node_modules/ && npm i


I found a workaround, I still there is a bug on their side. They just released 2 days ago version 7.9.1. Try to use 7.9.0.

yarn add [email protected]

I am creating an issue for it, follow here.