react app store button
1.0.0
Um componente React que permite criar um botão de download do iOS App Store ou Google Play Store. Este botão:
svg , então não se preocupe com a resoluçãourl personalizado, width e height"iosDark" , "iosLight" ou "android"Se você só quer as imagens, pode obtê -las aqui: iosdark ioslight android
Exemplo Código:
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 >
) ;
}
}Você receberá um botão DWONLOAD da loja de aplicativos iOS na página da web se parece com o seguinte:

Instale usando npm ou yarn
npm install --save react-mobile-store-buttongit clone https://github.com/rizzomichaelg/react-mobile-store-button.git
cd react-mobile-store-button/example
yarn && yarn startMit