react app store button
1.0.0
Komponen Bereaksi yang memungkinkan Anda membuat tombol Download iOS App Store atau Google Play Store. Tombol ini:
svg , jadi jangan khawatir tentang resolusiurl , width dan height yang disesuaikan"iosDark" , "iosLight" , atau "android"Jika Anda hanya menginginkan gambar, Anda bisa mendapatkannya di sini: iosdark ioslight android
Contoh kode:
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 >
) ;
}
}Anda akan mendapatkan tombol IOS App Store Dwonload di halaman web terlihat seperti ini:

Instal menggunakan npm atau 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