Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public show(opts: IBannerRequest) {
const adUnitID = this.resolveAdUnitID(opts.id)
return execAsync(NativeActions.banner_show, [
{
position: 'bottom',
size: AdSizeType.SMART_BANNER,
...opts,
adUnitID,
id: this.state.getAdId(adUnitID),
},
])
}
return new Promise((resolve, reject) => {
exec(resolve, reject, NativeActions.Service, action, args)
})
}