react-native-elements#PricingCard JavaScript Examples
The following examples show how to use
react-native-elements#PricingCard.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: pricing.playground.jsx From playground with MIT License | 5 votes |
PricingPlayground = () => {
const params = useView({
componentName: "PricingCard",
props: {
button: {
type: PropTypes.Object,
value: `{ title: 'GET STARTED', icon: 'flight-takeoff' }`,
},
color: {
type: PropTypes.String,
value: "#4f9deb",
},
containerStyle: {
type: PropTypes.Object,
value: `{}`,
},
info: {
type: PropTypes.Array,
value: `['1 User', 'Basic Support', 'All Core Features']`,
},
infoStyle: {
type: PropTypes.Object,
value: `{}`,
},
onButtonPress: {
type: PropTypes.Function,
value: `() => console.log("onButtonPress()")`,
},
price: {
type: PropTypes.String,
value: "$100",
},
pricingStyle: {
type: PropTypes.Object,
value: `{}`,
},
title: {
type: PropTypes.String,
value: "Pro+",
},
titleStyle: {
type: PropTypes.Object,
value: `{}`,
},
wrapperStyle: {
type: PropTypes.Object,
value: `{padding:10}`,
},
},
scope: {
PricingCard,
},
imports: {
"react-native-elements": {
named: ["PricingCard"],
},
},
});
return (
<React.Fragment>
<Playground params={params} />
</React.Fragment>
);
}