New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-mobile-app-button

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mobile-app-button

Discover our versatile React component designed to effortlessly integrate download buttons for iOS App Store, Google Play Store, and Huawei AppGallery. With our component, you can easily enhance user experience by providing seamless access to your mobile

latest
Source
npmnpm
Version
1.2.19
Version published
Weekly downloads
2.3K
49.12%
Maintainers
1
Weekly downloads
 
Created
Source

React Component for iOS App Store, Google Play, and Huawei AppGallery Download Buttons

Welcome to our versatile React component designed to seamlessly integrate download buttons for iOS App Store, Google Play Store, and Huawei AppGallery. Enhance your users' experience by providing effortless access to your mobile app on popular platforms. Elevate your app's visibility and accessibility today!

Explore the Documentation: Documentation

Support Us on Ko-fi

Installation

You can install this package using npm:

npm install react-mobile-app-button

Or, if you prefer Yarn:

yarn add react-mobile-app-button

Once installed, you'll have access to App Store, Google Play, and AppGallery download buttons for your web page, as shown below:

iOS App Store Button Google Play Store Button

Usage

Here's an example of how to use our component in your React application:

import { GooglePlayButton } from "react-mobile-app-button";

export const MyComponent = () => {
  const APKUrl = "https://play.google.com/store/apps/details?id=host";

  return (
    <div>
      <GooglePlayButton
        url={APKUrl}
        theme={"light"}
        className={"custom-style"}
      />
    </div>
  );
};

You can also import multiple buttons at once and arrange them as needed:

import {
  GooglePlayButton,
  AppGalleryButton,
  ButtonsContainer,
} from "react-mobile-app-button";

export const MyComponent = () => {
  const APKUrl = "https://play.google.com/store/apps/details?id=host";
  const IOSUrl = "https://apps.apple.com/us/app/expo-go/id982107779";

  return (
    <ButtonsContainer>
      <GooglePlayButton
        url={APKUrl}
        theme={"light"}
        className={"custom-style"}
      />

      <AppGalleryButton
        url={IOSUrl}
        theme={"light"}
        className={"custom-style"}
      />
    </ButtonsContainer>
  );
};

Props

NameComponentTypeDescription
urlGooglePlayButton, AppGalleryButton, AppStoreButtonstringStore URL
themeGooglePlayButton, AppGalleryButton, AppStoreButton"dark" / "light"Button Theme
classNameGooglePlayButton, AppGalleryButton, AppStoreButtonstringFor manual styling
titleGooglePlayButton, AppGalleryButton, AppStoreButtonstringFor custom message
heightGooglePlayButton, AppGalleryButton, AppStoreButtonnumberFor manual styling
widthGooglePlayButton, AppGalleryButton, AppStoreButtonnumberFor manual styling
gapButtonsContainernumberControl the space between buttons
directionButtonsContainer"row" / "column"Control flex direction

Installation and Running the Project

To install and run the project locally, follow these steps:

  • Clone the repository:

    git clone https://github.com/GhassenEljday/react-mobile-app-button.git
    
  • Install the dependencies:

    npm install
    
  • Run the project using Storybook:

    npm run storybook
    

Getting Help

If you encounter any issues or have questions, please don't hesitate to reach out to us:

We're here to assist you in making the most of our React component.

Keywords

react

FAQs

Package last updated on 15 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts