2.0.2 • Published 3 years ago

vads v2.0.2

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

vads

Vads is varknow ads implementation to show ads in banner and interstitial for React Native

Installation

Use the npm to install vads:

npm install vads

you can also use yarn:

yarn add vads

you also need to install @expo/vector-icons :

npm install @expo/vector-icons
yarn add @expo/vector-icons

Usage Banner

import { Banner } from 'vads'

return (
...
<Banner />
...
)

Usage interstitial

import { interstitial } from 'vads'

return (
...
<interstitial />
...
)

Banner Props

PropsRequiredDefualtTypeDescription
widthtrue320numberwidth of banner
heightfalse320numberheight of banner
containerPropsfalsenullViewPropsyou can change banner main container props with this prop
containerStylesfalsenullStylePropyou can change banner main container style with this prop
textPropsfalsenullTextPropschange banner text props
textStylesfalsenullStylePropchange banner text style
buttonContainerStylefalsenullStylePropchange button container style
buttonTextStylesfalsenullStylePropchange button text style

interstitial Props

PropsRequiredDefualtTypeDescription
variantfalse"IMAGE""IMAGE" OR "VIDEO"indicate interstitial variant
widthtrue320number OR stringwidth of interstitial
heighttrue320number OR stringheight of interstitial
imageWidthtrue320numberwidth of image OR video
imageHeighttrue320numberheight of image OR video
topfalsenullnumberindicate top offset of view
rightfalsenullnumberindicate right offset of view
bottomfalsenullnumberindicate bottom offset of view
leftfalsenullnumberindicate left offset of view
containerStylesfalsenullStylePropyou can change interstitial main container style with this prop
textStylesfalsenullStylePropchange interstitial text style
imageStylesfalsenullStylePropchange Image OR Video style
counterTextStylesfalsenullStylePropchange counter text style
buttonContainerStylefalsenullStylePropchange button container style
buttonTextStylesfalsenullStylePropchange button text style
timefalse15numberindicate how long show ad
onClosefalse() => void() => voidfunction to close ad

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago