Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 平面列表泄漏的BannerAd_React Native_React Native Flatlist_Firebase Admob - Fatal编程技术网

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
它会正常工作,但会裁剪横幅