EditButton.js 756 B

1234567891011121314151617181920212223242526272829
  1. import { StyleSheet, Text, View } from 'react-native'
  2. import React from 'react'
  3. import MaterialIcon from 'react-native-vector-icons/MaterialIcons'
  4. import colors from '../../../theme/colors'
  5. import ButtonWrapper from '../../atoms/ButtonWrapper'
  6. const EditButton = (props) => {
  7. const {
  8. onPress,
  9. buttonStyle,
  10. iconColor,
  11. iconSize
  12. } = props
  13. return (
  14. <ButtonWrapper onPress={onPress} buttonStyle={buttonStyle}>
  15. <MaterialIcon name='create' color={iconColor ? iconColor : styles.icon.color} size={iconSize ? iconSize : styles.icon.fontSize} />
  16. </ButtonWrapper>
  17. )
  18. }
  19. export default EditButton
  20. const styles = StyleSheet.create({
  21. icon:{
  22. fontSize: 20,
  23. color: colors.primaryColor
  24. }
  25. })