Mubarak Awal

Results 5 comments of Mubarak Awal

> (Activity) getContext()) You might want to add `import android.app.Activity;` to the imports at the top of your MainActivity.java

Hi @Martinsos Thanks for responding. I tried the first option which is making a simple `get` request with `api` and I still got the CORS error. Making the same request...

@Martinsos I noticed something. When I used `fetch`, it worked alright but the moment I set the `Authorization` header as part of the request, I started getting the CORS error...

I couldn't fix this using wasp so I had to eject and specify `app.use(cors())` before the router was registered. That fixed the cors issue so I think it's the order...

> I added `dependencies` in `react-native.config.js`. It's worked in Expo managed workflow and Expo SDK version is 46. > > ```js > const path = require('path'); > module.exports = {...