question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IOS] BannerView shows as thin line

See original GitHub issue

Bug 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

screenshot 2019-01-31 at 10 29 22 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
Dinesh-Incommented, Apr 23, 2019

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;

0reactions
Suraj-Tiwaricommented, Dec 4, 2019

#231 fix merged

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found