Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: inline adaptive banner with custom width #296

Closed
wants to merge 1 commit into from

Conversation

dylancom
Copy link
Collaborator

@dylancom dylancom commented Dec 24, 2022

Description

Currently an adaptive banner always takes the screen width (with taking into account safe areas).
There are multiple users that would like to use a custom width and seem to fall back to trying out "FLUID" sizing?
Currently you can define a custom size "300x200" to get a custom sized ad. This PR makes it possible get an ad with custom width + adaptive height.

Usage

<Banner size="300x" unitId="***" />
<Banner size={`${SCREEN_WIDTH - MARGIN}x`} unitId="***" />

@codecov
Copy link

codecov bot commented Dec 24, 2022

Codecov Report

Merging #296 (f44a15e) into main (1535ba5) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #296   +/-   ##
=======================================
  Coverage   33.51%   33.51%           
=======================================
  Files          33       33           
  Lines         797      797           
  Branches      198      198           
=======================================
  Hits          267      267           
  Misses        530      530           

@dylancom dylancom force-pushed the feature/custom-width-adaptive-height branch 2 times, most recently from cda1754 to c0db2f8 Compare December 24, 2022 14:28
@dylancom dylancom force-pushed the feature/custom-width-adaptive-height branch from 73246c4 to 1ec68a3 Compare December 24, 2022 15:38
@dylancom dylancom force-pushed the feature/custom-width-adaptive-height branch from 0a7d4ef to f44a15e Compare December 24, 2022 15:39
@dylancom dylancom closed this Jan 22, 2023
@dylancom dylancom deleted the feature/custom-width-adaptive-height branch January 22, 2023 14:18
@Yassdrk
Copy link

Yassdrk commented Feb 4, 2023

hello,
why it is deleted ?

@dylancom
Copy link
Collaborator Author

dylancom commented Feb 4, 2023

Wasn't so happy about this solution. Ideally it should take the width of the surrounding View.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants