gpt4 book ai didi

react-native - 不变违规 : requireNativeComponent: "RNGADBannerView" was not found in the UIManager

转载 作者:行者123 更新时间:2023-12-01 04:38:17 30 4
gpt4 key购买 nike

我最近为 react-native 安装了 admob。但是我收到错误消息“在 UIManager 中找不到 RNGADBannerView”。我不知道那是什么意思?
_can anyone help?_

import {AdMobBanner} from 'react-native-admob';

export default class Home extends Component{
render(){
return <View>
<Text>helo</Text>
<AdMobBanner
adSize="fullBanner"
adUnitID="my_id"
onAdFailedToLoad={error => console.error(error)}
/>
</View>
}

依赖项:
   "react": "16.4.1",
"react-native": "0.56.0",
"react-native-admob": "^2.0.0-beta.5",
"react-native-fbsdk": "^0.7.0",
"react-navigation": "^2.6.2"

最佳答案

您似乎没有将库链接到您的项目。
使用 react-native link在您项目的根目录中应该可以解决问题。

关于react-native - 不变违规 : requireNativeComponent: "RNGADBannerView" was not found in the UIManager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51309982/

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