import React from 'react'; import { ImageStyle, StyleSheet, View, ViewProps } from 'react-native'; import { Button, ButtonElement, Icon, IconElement, Text } from '@ui-kitten/components'; export interface RateBarProps extends ViewProps { hint: string; value: number; onValueChange: (value: number) => void; } export const StarIcon = (style: ImageStyle): IconElement => ( ); export const RateBar = (props: RateBarProps): React.ReactElement => { const renderRateButtonElement = (value: number): ButtonElement => { const status: string = value <= props.value ? 'warning' : 'basic'; return (