2020-08-16 18:59:07 +05:00
|
|
|
import React from 'react';
|
2020-09-15 15:07:42 +05:00
|
|
|
import {Text, TouchableOpacity, View} from 'react-native';
|
2020-08-16 18:59:07 +05:00
|
|
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
|
|
|
import {SIZE} from '../../common/common';
|
|
|
|
|
|
2020-09-15 15:07:42 +05:00
|
|
|
export const ActionIcon = ({onPress, name, color, customStyle}) => {
|
2020-08-16 18:59:07 +05:00
|
|
|
return (
|
|
|
|
|
<TouchableOpacity
|
|
|
|
|
onPress={onPress}
|
2020-09-15 15:07:42 +05:00
|
|
|
style={[
|
|
|
|
|
{
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 40,
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'flex-end',
|
|
|
|
|
paddingRight: 12,
|
|
|
|
|
zIndex: 800,
|
|
|
|
|
},
|
|
|
|
|
customStyle,
|
|
|
|
|
]}>
|
2020-08-16 18:59:07 +05:00
|
|
|
<Icon name={name} color={color} size={SIZE.xxxl} />
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
);
|
|
|
|
|
};
|