我在Android的React Native Application中与Admob集成。我在页脚中保留了横幅广告。但该广告没有得到展示。页脚显示为无广告。我不确定将横幅广告放置在页脚中的位置。我编写了以下渲染功能,
render() {
// some code here
return (
<Container>
<Header>
<Left>
<Button
transparent
onPress={() => this.props.navigation.openDrawer()}>
<Icon name="menu" />
</Button>
</Left>
<Body>
<Title>{ this.props.title }</Title>
</Body>
<Right>
{ rightButton }
</Right>
</Header>
<Content padder>
<Card>
<CardItem header>
<Text>{ this.props.section1 }</Text>
</CardItem>
<CardItem>
<Body>
<Text>{ this.props.section2 }</Text>
</Body>
</CardItem>
</Card>
</Content>
<Footer>
<Left>
<Button transparent onPress={ this.props.previous }>
<Icon name='arrow-back' />
<Text> Previews </Text>
</Button>
</Left>
<Right>
<Button transparent onPress={ this.props.next }>
<Text> Next </Text>
<Icon name='arrow-forward' />
</Button>
</Right>
<AdMobBanner
adSize="banner"
adUnitID="ca-app-pub-8688106123075705/378904330"
/>
</Footer>
</Container>
);
}
}