[IOS] BannerView shows as thin line
See original GitHub issueBug Report
Before opening
- Did you try the latest release?
- Did you look for existing issues?
Ad Modules
Banner Ads
Platforms
IOS
Versions
- iOS: 12.1
- react-native-fbads: 6.0.2
- react-native: 0.56
Ads Environment
- Facebook app installed: No. This is simulator.
- Happens in test (dev build + device is marked as a test device): Yes
- Happens in production (release build + not a test device): Not tested
- Facebook review status: approved
Current Behaviour
Banner ads appear thin, like 1px width. Not sure if this is related, there was this issue that was closed: https://github.com/callstack/react-native-fbads/issues/76
Expected Behaviour
Banner ads has correct width. In my case, rectangle
should have width of 300
Steps to Reproduce
Use <BannerView/>
component
Additionals
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Showing/Hiding Static TableView Cell If BannerView Loads ...
My bannerView will always be presented (if available for load) in the same tableview cell (row index 3). I am thinking along the...
Read more >There is a thin line coming on my iPhone XR
It appears you are having some difficulty with an iPhone XR that has a line in the display. If the line is persistent...
Read more >ads stopped showing after being fine for several days
I implemented admob for a new iOS app, the app launched about 2 weeks ago. At first I was seeing ads, no problem....
Read more >Admob IOS, destroy the banner. [REAL NEED HELP]
Button(showBannerRect, "Show Banner")); {; bannerView.Show();; }; Rect hideBannerRect = new Rect(0.1f * Screen.width, 0.3f * Screen.height, ...
Read more >Chapter 15 Displaying Banner Ads using Google AdMob
Therefore, you can no longer use iAd as your advertising solution for iOS apps. ... To display a simple ad banner, it just...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have little experience with C coding. But based on #76 i tried this and it worked. I am using
“react”: “16.6.3”, “react-native”: “0.58.6”, “react-native-fbads”: “^6.1.0”, “react-native-fbsdk”: “0.8.0”,
modify /node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXBannerView.m
change :-
adView.frame = CGRectMake(0, 0, adView.bounds.size.width, adView.bounds.size.height); adView.delegate = self;
to adView.frame = CGRectMake(0, 0, adView.bounds.size.width, adView.bounds.size.height); // add this line adView.autoresizingMask = UIViewAutoresizingFlexibleWidth; adView.delegate = self;
#231 fix merged