V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lbfeng
V2EX  ›  React

react-native 下载 json 到 app 缓存, app 在 load json

  •  
  •   lbfeng · 2017-06-08 04:51:44 +08:00 · 2052 次点击
    这是一个创建于 2514 天前的主题,其中的信息可能已经有所发展或是发生改变。

    iOS 和 android 上不知道可行不可行? app 在打开时,要获得新的 json 文件,再对 json 的数据进行处理。之前考虑过 synchronous 觉得不靠谱。

    1 条回复    2017-06-08 08:09:35 +08:00
    anjianshi
        1
    anjianshi  
       2017-06-08 08:09:35 +08:00
    楼主问题表述的清楚一点啊。synchronous 不靠谱是什么意思? react-native 只有 AsyncStorage,只能异步访问,不能同步访问。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5233 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:33 · PVG 17:33 · LAX 02:33 · JFK 05:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.