Moves out IconText component

This commit is contained in:
Sofiya Tepikin
2020-02-27 10:07:38 +01:00
parent af562e329c
commit 49fedcc634
3 changed files with 30 additions and 21 deletions
+24
View File
@@ -0,0 +1,24 @@
import React from 'react'
import { View } from 'react-native'
import PropTypes from 'prop-types'
import AppText from './app-text'
import styles from '../styles'
const IconText = ({ children, wrapperStyles }) => {
return (
<View style={[ styles.homeIconTextWrapper, wrapperStyles ]}>
<AppText style={styles.iconText}>
{ children }
</AppText>
</View>
)
}
IconText.propTypes = {
children: PropTypes.node,
wrapperStyles: PropTypes.object,
}
export default IconText