首页 > 解决方案 > 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 更新,我有这个: 在此处输入图像描述

然后我继续按照教程:我没有这个: 在此处输入图像描述

但是这个: 在此处输入图像描述

所以我需要帮助解决这些问题。谢谢您的帮助。

标签: sqlitereact-native

解决方案


您在 podfile 中有重复的反应依赖项。删除这一行:

pod 'React', :path => '../node_modules/react-native/'

然后使用 pod update 重试。


推荐阅读