import { IButtonProps, IStyledProps } from '../../../../common/types'; import React, { FunctionComponent } from 'react'; import { StyleSheet, TouchableOpacity, ViewStyle } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; interface IProps extends IStyledProps<{ icon?: any, container?: ViewStyle }>, IButtonProps { } export const EndConfCallButtonView: FunctionComponent = ({ style, onPress }) => { style = { ...defaultStyle, ...style }; const containerStyle = { ...defaultStyle.container, ...style.container } const iconStyle = { ...defaultStyle.image, ...style.icon } return ( ); }; const defaultStyle = StyleSheet.create({ container: { display: 'flex', alignItems: 'center', justifyContent: 'center', width: 50, height: 50, borderRadius: 30, borderColor: 'white', backgroundColor: 'red' }, image: { color: 'white', fontSize: 40, opacity: 1, }, });