BlueWallet/components/icons/PlusIcon.js
Marcos Rodriguez Velez c52bda10d7
REF: Update package
2024-06-12 12:46:44 -04:00

32 lines
751 B
JavaScript

import React from 'react';
import { StyleSheet, TouchableOpacity } from 'react-native';
import { Icon } from '@rneui/themed';
import { useTheme } from '../themes';
const styles = StyleSheet.create({
ball: {
width: 30,
height: 30,
borderRadius: 15,
justifyContent: 'center',
alignContent: 'center',
},
});
const PlusIcon = props => {
const { colors } = useTheme();
const stylesHook = StyleSheet.create({
ball: {
backgroundColor: colors.buttonBackgroundColor,
},
});
return (
<TouchableOpacity style={[styles.ball, stylesHook.ball]} onPress={props.onPress}>
<Icon name="add" size={22} type="ionicons" color={colors.foregroundColor} />
</TouchableOpacity>
);
};
export default PlusIcon;