import * as React from "react"; import {Text} from "react-native"; import Ripple from 'react-native-material-ripple'; import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons' import {MaterialProgress} from "../.."; export interface MaterialTextButtonProps { text: string, icon?: React.ReactNode, margin?:number, textColor?: string, textFont?: string, iconName?:string, onPress?():void, progress?:boolean, style?:object } export default (props: MaterialTextButtonProps) => props.onPress()} style={{borderRadius: 4, margin:props.margin, height: 36, minWidth: 64, overflow:'hidden', paddingLeft:16, paddingRight:16, flexDirection:'row', alignItems: 'center', justifyContent: 'center', ...props.style }}> {props.icon ? props.icon : (!props.progress && props.iconName) && } {!props.progress && {props.text} } {props.progress && } ;