This is a simple smart app banner component for react applications.
npm install smart-app-banner-react
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
}}
/>
Minimum react, react-dom version: 17.1.0
https://codesandbox.io/s/smartappbannertest-xujvl
This project is licensed under the terms of the MIT license.