1、參考https://juejin.cn/post/7068162654736482341
離線處理的庫(kù)
https://github.com/rgommezz/react-native-offline
2.數(shù)據(jù)庫(kù)
watermelon 支持?jǐn)?shù)據(jù)庫(kù)級(jí)別的直接同步 https://github.com/Nozbe/WatermelonDB
https://nozbe.github.io/WatermelonDB/Advanced/Sync.html 不過應(yīng)該全部數(shù)據(jù)統(tǒng)一同步,而且是需要服務(wù)端寫api
firebase 支持?jǐn)?shù)據(jù)庫(kù)同步,但要求后臺(tái)也是firebase存儲(chǔ) https://firebase.google.com/docs/firestore/manage-data/enable-offline?hl=zh-cn
realm 非關(guān)系型數(shù)據(jù)庫(kù)