| 
 | 1 | +import React from 'react';  | 
 | 2 | +import { storiesOf } from '@storybook/react';  | 
 | 3 | + | 
 | 4 | +import { PricingCard } from 'react-native-elements';  | 
 | 5 | + | 
 | 6 | +storiesOf('Pricing|PricingCard', module)  | 
 | 7 | + | 
 | 8 | + .add('basic usage', () => (  | 
 | 9 | + <PricingCard  | 
 | 10 | + color="#4f9deb"  | 
 | 11 | + title="Free"  | 
 | 12 | + price="0ドル"  | 
 | 13 | + info={['1 User', 'Basic Support', 'All Core Features']}  | 
 | 14 | + button={{ title: 'GET STARTED', icon: 'flight-takeoff' }}  | 
 | 15 | + />  | 
 | 16 | + ))  | 
 | 17 | + | 
 | 18 | + .add('with buttonStyle', () => (  | 
 | 19 | + <PricingCard  | 
 | 20 | + color="#a72ce9"  | 
 | 21 | + title="Starter"  | 
 | 22 | + price="IDR 200k"  | 
 | 23 | + info={['10 Users', 'Basic Support', 'All Core Features', 'Premium Addons Unlocked']}  | 
 | 24 | + button={{  | 
 | 25 | + title: 'GET STARTED',  | 
 | 26 | + icon: 'flight-takeoff',  | 
 | 27 | + buttonStyle: {  | 
 | 28 | + flexDirection: 'row-reverse',  | 
 | 29 | + justifyContent: 'space-around',  | 
 | 30 | + paddingHorizontal: 111  | 
 | 31 | + }  | 
 | 32 | + }}  | 
 | 33 | + onButtonPress={() => console.log('Cool, you hit me!')}  | 
 | 34 | + containerStyle={{ width: 400 }}  | 
 | 35 | + />  | 
 | 36 | + ));  | 
0 commit comments