gpt4 book ai didi

react-native - 添加 react-native-firebase/admob 时应用崩溃

转载 作者:行者123 更新时间:2023-12-02 07:15:14 25 4
gpt4 key购买 nike

如何添加 react-native-firebase admob 以响应原生(“0.60.x”)。添加 admob 时应用程序崩溃。是否有任何其他选项可以将 admob 添加到 react-native 应用程序。 react-native-admob 也有同样的崩溃问题。

最佳答案

在您的 React Native 项目的根目录中,创建一个 firebase.json 文件(如果它尚不存在)并使用来自 Google AdMob 控制台的 ID 添加 admob_android_app_id 和 admob_ios_app_id 键:

喜欢:

{
"react-native": {
"admob_android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
"admob_ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
}

关于react-native - 添加 react-native-firebase/admob 时应用崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60007546/

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