gpt4 book ai didi

ios - 未找到 RCTBridgeModule - RNGoogleSignin

转载 作者:行者123 更新时间:2023-11-30 13:01:29 25 4
gpt4 key购买 nike

我正在尝试将 React Native Google 登录流程合并到我的应用程序中,但我无法让 RNGoogleSignin 与我合作...

我已经使用 rnpm 将 react-native-google-signin 与我的项目链接起来,但由于某种原因,RNGoogleSignin.h 不断提示

"RCTBridgeModule.h" file not found

我尝试添加正确的 header - 这个 BridgeModule 在我的 /node_modules/react-native/React/Base目录,但将其添加到我的 header 搜索路径似乎并不能解决问题。我做错了什么?

最佳答案

你的react-native版本是什么?

在新的 react-native init myproject 之后尝试使用 swift 模块的简单桥接时,我遇到了同样的问题,这解决了它:

自react-native 0.40 https://github.com/facebook/react-native/releases/tag/v0.40.0 :

#import "RCTBridgeModule.h"

现在应该是:

#import <React/RCTBridgeModule.h>

为了使其工作我还需要在我的项目目录中运行react-native升级从命令行

关于ios - 未找到 RCTBridgeModule - RNGoogleSignin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39864878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com