我们经常在开发应用程序时访问本地sqlite数据库.反应原生的对应物是什么?我是否必须使用AsyncStorage来存储没有本机模块的数据?
Col*_*say 20
更新的答案:现在有一个初出茅庐的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 Vicenti,他似乎在Facebook工作并为React Native做出贡献,因此非常具有权威性.
Moo*_*ker 14
React Native的全功能SQLite插件可在此处获得:
https://github.com/andpor/react-native-sqlite-storage
版本2.1.0支持iOS和Android,而fmk同时具有普通的JS回调和基于Promise的接口.
Waq*_*med 12
Realm React Native使您能够以安全,持久和快速的方式有效地编写应用程序的模型层.这是它的样子:见 Realm React Native 和 Docs For Realm
小智 5
用于react-native的嵌入式持久数据库或内存数据库 https://github.com/smartdemocracy/react-native-local-mongodb
它有性能统计数据
| 归档时间: |
|
| 查看次数: |
50900 次 |
| 最近记录: |