react app store button
1.0.0
iOS App StoreまたはGoogle Playストアのダウンロードボタンを作成できるReactコンポーネント。このボタン:
svgファイルを使用するので、解決策について心配しないでくださいurl 、 width 、 heightでApp Storeボタンを指定できます"iosDark" 、 "iosLight" 、または"android"を指定します画像が必要な場合は、ここで入手できます:iOSDARK iOSLightAndroid
例コード:
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 >
) ;
}
}WebページにiOS App Store Dwonloadボタンを取得します。

npmまたは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