react app store button
1.0.0
iOS App Store 또는 Google Play 스토어 다운로드 버튼을 만들 수있는 React 구성 요소. 이 버튼 :
svg 파일이므로 해상도에 대해 걱정하지 마십시오.url , width 및 height 로 App Store 버튼을 지정할 수 있습니다."iosDark" , "iosLight" 또는 "android" 지정하십시오.이미지를 원한다면 이미지를 여기에서 얻을 수 있습니다 : iosdark ioslight Android
예제 코드 :
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 >
) ;
}
}웹 페이지에서 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