sqlite - SQLite 和 react-native
问题描述
我遇到了一个小问题,我想将 sqlite 与 react native 一起使用,我已经按照教程进行操作,但它们都没有操作。例如这个tuto:https://github.com/andpor/react-native-sqlite-storage 当我必须将下面的代码添加到 Podfile 时: pod 'React', :path => '../node_modules/ react-native' pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
然后我转到 ios 文件,然后进行 pud 更新,我有这个: 在此处输入图像描述
然后我继续按照教程:我没有这个: 在此处输入图像描述
但是这个: 在此处输入图像描述
所以我需要帮助解决这些问题。谢谢您的帮助。
解决方案
您在 podfile 中有重复的反应依赖项。删除这一行:
pod 'React', :path => '../node_modules/react-native/'
然后使用 pod update 重试。
推荐阅读
- java - 在不传入根对象的情况下读取嵌套的 yaml 值
- c# - 实体框架未检测 c# 中的 jsonb 属性更改
- sql - 为 sum() 选择一半的分区
- php - php wordpress $_POST 增量简码
- javascript - 如何防止 PHP 应用程序中的恶意 POST 请求?
- point-cloud-library - 特征标准化(fpfh)背后的数学?
- android - 即使使用 firebase 离线功能,数据仍在从 firebase 下载
- c - 如何在 C 中计算指针数组的大小?
- npm - Anguar node_modules:如何清理?
- android - 图像保存在 Kotlin 中 0 字节大小的应用程序文件夹中?