React native 平面列表泄漏的BannerAd
我把这个放在横幅上的地方React native 平面列表泄漏的BannerAd,react-native,react-native-flatlist,firebase-admob,React Native,React Native Flatlist,Firebase Admob,我把这个放在横幅上的地方 <View style={{height: position.pixels.h, backgroundColor: 'blue', overflow: 'hidden', position: 'relative'}}> <View style={{height: position.pixels.h, backgroundColor: 'red', overflow: 'hidden', position: 'absolute'}}>
<View style={{height: position.pixels.h, backgroundColor: 'blue', overflow: 'hidden', position: 'relative'}}>
<View style={{height: position.pixels.h, backgroundColor: 'red', overflow: 'hidden', position: 'absolute'}}>
<BannerAd
unitId={TestIds.BANNER}
size={position.size || 'BANNER'}
onAdLoaded={() => onAdLoaded(props, position)}
onAdFailedToLoad={error => onAdFailedToLoad(props, position, error)}
requestOptions={{
contentUrl: ''
}}
/>
</View>
</View>
已加载(道具、位置)}
onAdFailedToLoad={error=>onAdFailedToLoad(道具、位置、错误)}
请求选项={{
contentUrl:“”
}}
/>
出于某种未知的原因,当从FlatList中将横幅作为一个项目加载时,它会变得疯狂并且不在视图中()
我不确定是什么问题。如果我设置style={{{height:50
它会正常工作,但会裁剪横幅