I have upgraded my React Native project from 0.67.4 to 0.71.14.
Async Await not working properly in some places of code.
- ex: async someFunction() {
await NetInfo.fetch()
}
- in debug mode it works properly but when generating a build with staging schema it not works. (Has anyone faced this type of issue?)
Here I don't have proper reproducible steps as it working fine in the debug schema not sure what happening in the staging schema.
I have tried converting from async to await to .then and .catch.
but I have these issues in other places too. converting the code in all places is not possible as we have some other dependencies
not sure why it not working only with staging schema builds.