I faced the problem with using DataStore and GraphQL in my react native app. When I'm trying to write/get any data I see this in the console:
LOG [DEBUG] 56:36.775 DataStore - Starting DataStore
LOG [DEBUG] 56:36.776 DataStore - Starting Storage
And then nothing happens. For example, in this code the second console log will not be executed:
console.log('Start');
const users = await DataStore.query(User);
console.log('End');
It's a fresh RN app and Amplify packages. I've tried to re-create the project from scratch and it didn't help.
There was a problem with Hermes, the polyfill from this issue helped to solve the problem: https://github.com/aws-amplify/amplify-js/issues/8176