react app store button
1.0.0
مكون React الذي يسمح لك بإنشاء متجر تطبيقات iOS أو زر تنزيل متجر Google Play. هذا الزر:
svg ، لذلك لا تقلق بشأن القرارurl width height المخصص"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 >
) ;
}
}ستحصل على زر Dwonload لمتجر تطبيقات iOS على صفحة الويب يبدو:

تثبيت باستخدام 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 startمعهد ماساتشوستس للتكنولوجيا