tapsellorg/TapsellPlusSDK-ReactNativePlugin

๐Ÿš€ [Feature]: Add React Native component for Standard Banner

Opened this issue ยท 0 comments

Problem

Standard Banner is a view that will be added to the view as a FrameLayout child.
The only APIs to handle the position is simply Bottom, Top, left or right.
Here's the sample code in the sample project

TapsellPlus.showStandardBannerAd(this.state.responseId,
        TapsellPlusHorizontalGravity.BOTTOM,
        TapsellPlusVerticalGravity.CENTER,
        (data) => {
          this._showToast('Data available: ' + data);
        },
        (error) => {
          this._showToast(`Error loading banner: ${error}`);
        });

This does not allow advance positioning and restricts the developer to only couple of states.

Solution

Plugin should provide a Platform native view component, so that it can be used as a regular component.