I’m moving my first steps into react native development and I’m trying to integrate realm for storage, both local and cloud.
I’m going with expo so I downloaded the template from the realm docs. My idea of storage is that, initially the user will be able to use the app without signing up. Then, if he fancies he can create an account to sync the local data to the cloud. This way he can use another device and still have access to his data.
In the template there is AppSync.tsx
and AppNonSync.tsx
. What does it mean? Do I have to develop different version for local or cloud data storage? Also the app decides which one to load based on a flag in sync.config.js
. I thought I’d be able to change that at runtime, when the user decides to sign up.
I find the template rather confusing. Can you help me understand?