I'm making an app with React Native in which I want to save data in Firestore, but when there is no internet connection, save it in the cache. Then where is internet connection again, save the data in Firestore automatically. I'm following this documentation but is not clear. Can you please give me an example? I would appreciate that.
Here is the document I'm following.