DataStore: only sync on WiFi #6034
Labels
DataStore
Related to DataStore category
feature-request
Request a new feature
React Native
React Native related issue
Is your feature request related to a problem? Please describe.
This is related to this older issue: #5037
Basically, in the app I am developing, users want to be able to prevent syncing while on a 4G network for example, to prevent data charges.
Describe the solution you'd like
I know DataStore uses reat-native-netinfo under the hood. The netinfo package exposes the network type, and I would like to know if anyone knows of any workarounds that I could implement so that I can prevent the DataStore from syncing unless the user is connected to a WiFi network. Hopefully this will eventually become a feature, but for now a workaround will do.
The text was updated successfully, but these errors were encountered: