当我们开发一个应用程序时,我们经常访问本地sqlite数据库。对应的反应是什么?我是否必须使用AsyncStorage来存储没有本机模块的数据?
发布于 2015-03-28 12:12:05
更新的答案:现在有一个羽翼未丰的SQLite包装器可用:
https://github.com/andpor/react-native-sqlite-storage
以前:
哈克新闻评论表示现在没有可用的东西:
当前没有SQLite的本机模块,但如果需要,可以构建一个。-D http://facebook.github.io/react-native/docs/nativemodulesios.html 对于大多数客户端持久化,我们使用键值存储:http://facebook.github.io/react-native/docs/asyncstorage.html。
这是埃里克·维森提( Eric )写的,他似乎在Facebook工作,并为“反应本地人”做出了贡献,非常权威。
发布于 2015-10-30 14:16:49
React的完整特性SQLite插件可在这里获得:
https://github.com/andpor/react-native-sqlite-storage
Version2.1.0支持iOS和Android,fmk具有简单的JS回调和基于承诺的接口。
https://stackoverflow.com/questions/29313898
复制相似问题