1.0.2 • Published 10 years ago
react-app-store-badge v1.0.2
app-store-badge
A simple customizable App Store badge component for React.
NOTE: THIS IS A FIRST BUILD THAT HASN'T BEEN TESTED IN THE WILD YET. USE AT YOUR OWN DISCRETION
Getting started
To setup dev dependencies
npm installTo build dist file
npm run buildTo run example server
npm run examplenote: requires node/npm
Usage
Create badges in the App Store styles as seen on the Apple App Store and Google Play. You may choose primary (text, icon, and border) and secondary (background) colors. Colors default to white and black respectively.
Provide your own font based icon. For example using a tool like fontello
example:
install the package
npm install --save react-app-store-badgethen use within your project
import ReactAppStoreBadge from 'react-app-store-badge';
// or
var ReactAppStoreBadge = require('react-app-store-badge');
// then in your `render` method's return
<ReactAppStoreBadge
textHeading="Available on the"
textStoreName="App Store"
icon={<i className="icon-my-icon" />}
url="www.myappstoreplaceholder.com"
/>