import React from 'react'; import { ImageProps, View } from 'react-native'; import { Card, CardElement, CardProps, StyleService, StyleType, Text, useStyleSheet, } from '@ui-kitten/components'; export interface ProfileParameterCardProps extends Omit { hint: string; value: string; icon: (style: StyleType) => React.ReactElement; } export const ProfileParameterCard = (props: ProfileParameterCardProps): CardElement => { const styles = useStyleSheet(themedStyles); const { hint, value, icon, ...restProps } = props; return ( {hint} {icon(styles.icon)} {value} ); }; const themedStyles = StyleService.create({ topContainer: { flexDirection: 'row', justifyContent: 'space-between', }, valueLabel: { marginTop: 20, }, icon: { width: 20, height: 20, tintColor: 'color-primary-default', }, });