Files
notesnook/apps/mobile/src/components/ActionIcon/index.js

22 lines
592 B
JavaScript
Raw Normal View History

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