react app store button
1.0.0
Un componente React que le permite crear una tienda de aplicaciones iOS o un botón de descarga de Google Play Store. Este botón:
svg
, así que no se preocupe por la resoluciónurl
, width
y height
personalizadas"iosDark"
, "iosLight"
o "android"
Si solo quieres las imágenes, puedes conseguirlas aquí: iosdark ioslight android
Código de ejemplo:
import MobileStoreButton from 'react-mobile-store-button' ;
////
export default class MyComponent extends React . Component {
render ( ) {
const iOSUrl = 'https://itunes.apple.com/us/app/all-of-the-lights/id959389722?mt=8' ;
return (
< div >
< MobileStoreButton
store = "ios"
url = { iOSUrl }
linkProps = { { title : 'iOS Store Button' } }
/ >
< / div >
) ;
}
}
Obtendrá un botón Dwonload de iOS App Store en la página web se ve así:
instalar usando npm
o yarn
npm install --save react-mobile-store-button
git clone https://github.com/rizzomichaelg/react-mobile-store-button.git
cd react-mobile-store-button/example
yarn && yarn start
MIT