import React, { FunctionComponent } from 'react'; import { StyleSheet, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { IButtonProps, IStyledProps } from '../../../common/types'; interface IProps extends IButtonProps, IStyledProps<{ image?: any }> { isMuted: boolean; } export const MicButtonView: FunctionComponent = ({ onPress, isMuted, style }) => { style = { ...defaultStyle, ...style }; const iconStyle = { ...defaultStyle.image, ...style.image } return ( ); }; const defaultStyle = StyleSheet.create({ image: { fontSize: 40, }, });