I am developing an Android app with React Native, and the local database in the app is built using Realm.
I am now trying to implement a feature to export the local Realm database as a backup file.
I am confused that the “writeCopyTo” function does not return Promise.
In fact, I found that after I call the “writeCopyTo” function, sometimes the file is not created yet.
Is there a way to know that the realm file creation is complete after I call the “writeCopyTo” function?