SQLite和react-native

dwbf0jvd  于 2023-05-23  发布在  SQLite
关注(0)|答案(1)|浏览(151)

我遇到了一个小问题,我想使用sqlite与react native,我已经按照教程,但没有一个操作。例如,对于本教程: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文件,然后我执行pod update,我有这个:

然后我继续按照教程:
我没有这个:

但是这个:

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

h7appiyu

h7appiyu1#

您在podfile中有重复的react依赖项。删除此行:

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

然后重试pod update。

相关问题