diff --git a/components/button/index.tsx b/components/button/index.tsx index eda65044..3dbb572b 100644 --- a/components/button/index.tsx +++ b/components/button/index.tsx @@ -5,13 +5,13 @@ import { GestureResponderEvent, StyleProp, StyleSheet, - Text, TouchableHighlight, TouchableHighlightProps, View, ViewStyle, } from 'react-native' import { WithTheme, WithThemeStyles } from '../style' +import AntmView from '../view' import { ButtonPropsType } from './PropsType' import buttonStyles, { ButtonStyles } from './style/index' @@ -140,11 +140,7 @@ export default class Button extends React.Component { size="small" /> ) : null} - {typeof this.props.children === 'string' ? ( - {this.props.children} - ) : ( - <>{this.props.children} - )} + {this.props.children} )