import React, { FunctionComponent } from 'react'; import { Text, TouchableOpacity, ViewStyle } from 'react-native'; import { IFloatButtonProps, IFloatButtonStyleProps, IStyledProps, } from './types'; export interface IFlatButtonProps extends IFloatButtonProps, IStyledProps { title: string; } export interface IButton extends FunctionComponent {} export const FloatButton: IButton = ({ style, title, onPress }) => { const mergedStyle = { ...buttonStyle, ...style }; return ( {title} ); }; const buttonStyle = { container: { display: 'flex', flexDirection: 'row', justifyContent: 'center', backgroundColor: '#009DD2', } as ViewStyle, text: { color: '#fff', }, };