react-store-badge

3.0.0 • Public • Published

react-store-badge

npm version npm bundle size License npm downloads

Introduction

A React component to display App Store and/or Google Play badges based on the browser.

If the browser is an iPhone or iPad, only the App Store badge will be displayed. If the browser is running on Android, only the Google Play badge will be displayed. In all other cases, both badges are shown.

Installation

$ npm i react-store-badge

If you are using Yarn:

$ yarn add react-store-badge

Usage

import React from 'react';
import StoreBadge from 'react-store-badge';

function Page() {
  return (
    <div>
      <p>Download Cheerswipe!</p>
      <StoreBadge
        name="Cheerswipe"
        googlePlayUrl="https://play.google.com/store/apps/details?id=fr.puyou.cheerswipe"
        appStoreUrl="https://apps.apple.com/us/app/cheerswipe/id1468158095?ls=1"
      />
    </div>
  );
}

export default Page;

Usage without React

If you are not using react, you should have a look at store-badge!

Legal

Apple, the Apple logo, iPhone, and iPad are trademarks of Apple Inc., registered in the U.S. and other countries and regions. App Store is a service mark of Apple Inc.

Google Play and the Google Play logo are trademarks of Google LLC.

Readme

Keywords

Package Sidebar

Install

npm i react-store-badge

Weekly Downloads

30

Version

3.0.0

License

MIT

Unpacked Size

78.8 kB

Total Files

8

Last publish

Collaborators

  • apuyou