@@ -30,7 +30,6 @@ import {
3030 areWeatherNotificationsEnabled ,
3131} from '../services/weatherNotificationService' ;
3232import LocationPermissionDisclosure from '../components/LocationPermissionDisclosure' ;
33- import { useBannerAd , BannerAd , BannerAdSize } from '../hooks/useBannerAd' ;
3433
3534const { width } = Dimensions . get ( 'window' ) ;
3635
@@ -116,9 +115,6 @@ export default function InfoScreen() {
116115 const [ showLocationDisclosure , setShowLocationDisclosure ] = useState ( false ) ;
117116 const [ hasShownDisclosure , setHasShownDisclosure ] = useState ( false ) ;
118117
119- // Banner Ad
120- const { adUnitId, onAdLoaded, onAdFailedToLoad } = useBannerAd ( ) ;
121-
122118 // Memoized filtered content items for different media types
123119 const imageItems = useMemo ( ( ) => contentItems . filter ( item => item . type === 'image' ) , [ contentItems ] ) ;
124120 const videoItems = useMemo ( ( ) => contentItems . filter ( item => item . type === 'video' ) , [ contentItems ] ) ;
@@ -1372,19 +1368,6 @@ Keep the response concise, practical, and actionable for farmers. Remember to re
13721368 { selectedTab === 'media' && renderMediaContent ( ) }
13731369 </ ScrollView >
13741370
1375- { /* Banner Ad at bottom */ }
1376- < View style = { styles . bannerAdContainer } >
1377- < BannerAd
1378- unitId = { adUnitId }
1379- size = { BannerAdSize . ANCHORED_ADAPTIVE_BANNER }
1380- requestOptions = { {
1381- requestNonPersonalizedAdsOnly : true ,
1382- } }
1383- onAdLoaded = { onAdLoaded }
1384- onAdFailedToLoad = { onAdFailedToLoad }
1385- />
1386- </ View >
1387-
13881371 { /* Location Permission Disclosure Dialog */ }
13891372 < LocationPermissionDisclosure
13901373 visible = { showLocationDisclosure }
@@ -1451,12 +1434,7 @@ const styles = StyleSheet.create({
14511434 flex : 1 ,
14521435 } ,
14531436 scrollContent : {
1454- paddingBottom : 20 ,
1455- } ,
1456- bannerAdContainer : {
1457- alignItems : 'center' ,
1458- backgroundColor : '#F3F4F6' ,
1459- paddingVertical : 4 ,
1437+ paddingBottom : 80 ,
14601438 } ,
14611439
14621440 // Hero Weather Section
0 commit comments