title: Local database + Server database - React Native
body: <p>I ask myself lots of questions about the choice of databases for my future react-native application, because I would like a local database that stores the static data of the application. I would like also to store the data created by the user on a data server.</p>
  
  <ol>
  <li>I thought using Realm for local storage</li>
  <li>MongoDB for remote storage</li>
  </ol>
  
  <p>Problem: I do not know how to synchronize remote data, because when the user is offline, I want the data to be stored locally and then when it goes offline, I want the data to be sent to the server</p>
  
  <p>Can these two databases be used mutually, or is MongoDB able to store the data locally?</p>