2.0.1 • Published 3 years ago

smart-app-banner-react v2.0.1

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

Smart App Banner React Component

This is a simple smart app banner component for react applications.

Installation

npm install smart-app-banner-react

Example

Sample configurations for the banner:

const appInfo = {
  imageUrl:
    'https://lh3.googleusercontent.com/ccWDU4A7fX1R24v-vvT480ySh26AYp97g1VrIB_FIdjRcuQB2JP2WdY7h_wVVAeSpg=s360-rw',
  name: 'Facebook',
  publisher: 'Facebook',
  infoText: 'Free - In Google Play',
  linkButtonText: 'VIEW',
  linkUrl:
    'https://play.google.com/store/apps/details?id=com.facebook.katana&hl=en'
}

Sample usage:

import AppBanner from 'react-smart-app-banner'
<AppBanner
  appInfo={appInfo}
  position='top'
  onClose={() => {
    console.log('onClose called')
  }}
  hidden={false}
  style={{
    zIndex: 10
  }}
/>

Dependency

Minimum react, react-dom version: 17.1.0

Codesandbox Example

https://codesandbox.io/s/smartappbannertest-xujvl

License

This project is licensed under the terms of the MIT license.

2.0.1

3 years ago

1.2.0

3 years ago

2.0.0

3 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago