npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-mobile-banner

v1.0.1

Published

React Js smart Mobile Browser banner for android ,ios and windows

Downloads

53

Readme

react-mobile-banner

React Js smart Mobile Browser banner for android ,ios and windows

NPM JavaScript Style Guide

Install

npm install --save react-mobile-banner

Usage

import React from 'react'
import MobileBanner from 'react-mobile-banner';

export default class App extends React.Component{
   constructor(props) {
     super(props)
     this.state = {
        bannerShow:true
     };
   };
  render(){
    const { bannerShow } = this.state;
    return (
      <div>
        <MobileBanner 
            showBanner={bannerShow} 
            position="top"
            topStickyBanner={true}
            appTitle='Linked In'
            appDescription='Job Search and Networking'
            appId={{android:'com.linkedin.android',ios:'id288429040'}}
            starRatingCount={4}
            backgroundColor=""
            appIcon={require('./appIcon.png')}
            onClose={()=>this.setState({bannerShow:false})}
            onInstall={()=>alert('install Clicked')}
        />
        <p>
        ....paragraphs
        </p>
             
      </div>
    );
}
}

Available Props

key props | type | defualts | available | example | descriptions --- | --- | --- | --- | --- | --- showBanner | bool | true | true, false | {true} | to show or hide the Banner position | string | 'top' | 'top', 'bottom' | {'bottom'} | Postion of the banner topStickyBanner | bool | true | true, false | {true} | stay top of the page backgroundColor | string | 'white' | 'black', '#ccc' ...etc | {'#ccc'} | Change the Background Color of the Banner appId | Object | {} | android,ios and Windows| {ios: '', android: '', windows: '', }| Add Appliction Id of the Stores closeButtonStyle | Object | {} | {all type of css styles} | {color:'#fff', ...}, | Add style to Close Icon onClose | function | {} | {} | {()=>alert('Close clicked")}, | Event on Close button Click appIcon | string | '' | png,svg,jpeg,jpg etc.. | "url" or {require('..path.png')}| App Icon Source appIconStyle | Object | {} | {all type of css styles} | {color:'#fff', ...}, | Add style to App Icon appTitle | string | 'App Title' | all type of strings | {'Linked In'} | App title appTitleStyles | Object | {} | {all type of css styles} | {color:'#fff', ...}, | Add style to App Title appDescription | string | 'App Descriptions' | all type of strings | {'App Developer Company'} | App Descriptions appDescriptionStyle | Object | {} | {all type of css styles} | {color:'#fff', ...}, | Add style to App Descriptions starRating | bool | true | true, false | {true} | to show or hide the Rating Stars starRatingCount | number | 5 | 1 - 5 | {4} | Ratings of Applications out of 5 star price | Object | {} | android,ios and Windows| {ios: '$ 10', android: 'FREE', windows: '$ 23', }| Add Price to Apps buttonText | string | 'View' | all type of strings | {'Insall Now'} | App Download Button title buttonStyle | Object | {} | {all type of css styles} | {color:'#fff', ...}, | Add style to Download Button onInstall | function | {} | {} | {()=>alert('Install Button clicked")}, | Event on Install button Click

Donate

Example

Bottom | Top :-------------------------:|:-------------------------: |

License

MIT © Ajith A B