Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 816fe4c

Browse files
Add story for Pricing
1 parent 5a991bb commit 816fe4c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /