1.0.4 • Published 7 months ago

react-native-store-badges v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Examples

Getting Started

npm install react-native-store-badges

Usage

import { StoreBadge } from "react-native-store-badges";

const MyApp = () => {
  return (
    <StoreBadge
      platform="ios"
      href="https://www.github.com" // optional
      height={60} // optional
      locale="da-DK" // optional
    />
  );
};

Props

NameTypeDefaultDescription
platform"ios" | "android"requiredApp Store or Play Store badge
localeLocaleISO? | string?navigator.language or "en-US"Locale code
heightnumber?40Height of the badge (width is calculated)
hrefstring?URL of App Store or Play Store
targetHTMLAttributeAnchorTarget?"_blank"target-attribute is only used on Web platforms
styleViewStyle?135Styles for the wrapping View (Be aware of badge guidelines)
customScaleBadgeScale?Use to temporarily correct any issues there may be with badge sizing in a specific locale. (Read more)

Localization

Note Some locales might have different sized badges. The library attempts to handle this problem, so please create an issue or pull request, if you are experiencing this problem. To temporarily solve this problem you can provide custom scales using the customScale prop.

App Store Locales List

Play Store Locales List

Badge Guidelines

Warning Be aware of the badge guidelines when using this library.

App Store Badge Guidelines

Play Store Badge Guidelines

Known Issues

  • The App Store Badge will only load the "en-US" locale on a https connection.
1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago

0.9.3

8 months ago

0.9.2

8 months ago

0.9.1

8 months ago

0.9.0

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago