mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
bug fixes...
This commit is contained in:
21
apps/mobile/src/components/ActionIcon/index.js
Normal file
21
apps/mobile/src/components/ActionIcon/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
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={[{
|
||||
width: 60,
|
||||
height: 50,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'flex-end',
|
||||
paddingRight: 12,
|
||||
zIndex: 800,
|
||||
},customStyle]}>
|
||||
<Icon name={name} color={color} size={SIZE.xxxl} />
|
||||
</TouchableOpacity>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user