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-animated-banner

v1.0.35

Published

This react component allows you to add the mobile banner to your application. It is really helpful when you need to refer your mobile application from your website.

Downloads

13

Readme

React-mobile-animated-banner

This react component allows you to add the mobile banner to your application. It is really helpful when you need to refer your mobile application from your website.

Contents

Support

If you need any support or want to suggest improvements to the react-mobile-animated-banner repository, please open an issue at issues section or contact me via LinkedIn.

Preview

Showing the preview of the react-mobile-animated-banner using horizontal iPhone XR

How to install?

Using yarn:

yarn add react-mobile-animated-banner

Using NPM:

npm install react-mobile-animated-banner

How to use it?

import { GetTheAppBanner } from "react-mobile-animated-banner/components";

function YourApp() {
  return (
    ...
      <GetTheAppBanner />
    ...
    )
}

Available options

Here you will find all options available for the GetTheAppBanner component. Available options are:

hideBannerInitialValue?: boolean
defaultValue = undefined;

It will hide the banner if the value is set to true


onlyIOS?: boolean
defaultValue = false;

It will render the component only on IOS devices


onlyAndroid?: boolean
defaultValue = false;

It will render the component only on Android devices


onlyOnMobile?: boolean
defaultValue = false;

It will render the component only on Android or iOS devices


reviewText?: string
defaultValue = '200+ reviews';

It will change the text on the right side of the stars


closeIcon?: string
defaultValue = 'image closing icon';

It will change the image used to render the X icon


appLogo?: string
defaultValue = 'image youtube logo';

It will change the image used to render the app logo


companyLogo?: string
defaultValue = 'image youtube company logo';

It will change the image used to render the company logo


appRating?: string
defaultValue = 'image of some stars filled';

It will change the image used to render the reviews rating


buttonLabel?: string
defaultValue = 'Get the App';

It will change the button CTA label


startFrom?: 'top' | 'bottom'
defaultValue = 'top';

It will render the banner on the top or bottom of the screen.


maxWidth?: number
defaultValue = undefined;

It will render the banner until the user device width is lower than maxWidth


universalLink?: string
defaultValue = '';

It will redirect the user to this link


onClosingCallback?: () => void
defaultValue = undefined;

It will call after closing the banner component


onMountingCallback?: () => void
defaultValue = undefined;

It will call after mounting the banner component


onCTACallback?: () => void
defaultValue = undefined;

It will call when the user clicks on the CTA button

Goals

  • [x] Adding props to render only on iOS.
  • [x] Adding props to render only on Android.
  • [x] Adding props to render only in a specific screen width range, lower than X to Z.
  • [x] Adding props to accept app logo, company logo, custom reviews, custom stars, CTA label.
  • [ ] Adding props to accept custom numbers of stars.
  • [x] Adding props to render on top or bottom of the screen
  • [x] Adding props to render only for mobile devices.
  • [ ] Adding props to accept custom styles on all different components.
  • [ ] Adding animation to fade in and out, slide in up/right/left/down.
  • [ ] Retrieving app information from the app stores instead of being only hardcoded.
  • [x] Adding onClosing, onCTA and onComponentDidMount callback.
  • [x] Adding documentation for each prop.
  • [x] Creating and populating the README.md file.
  • [ ] Adding tests.

More Preview

Showing the preview of the react-mobile-animated-banner on the top side using iPhone XR

iPhone XR with the react-mobile-animated-banner on top side


Showing the preview of the react-mobile-animated-banner on the bottom side using iPhone XR

iPhone XR with the react-mobile-animated-banner on bottom side


Showing the preview of the react-mobile-animated-banner on the top side using an IPad Air

IPad Air with the react-mobile-animated-banner on top side