BlueWallet/components/icons/PlusIcon.js

32 lines
758 B
JavaScript
Raw Normal View History

2022-01-28 14:13:53 +03:00
import React from 'react';
2023-11-04 17:13:43 -04:00
import { StyleSheet, TouchableOpacity } from 'react-native';
import { Icon } from 'react-native-elements';
2023-10-23 21:28:44 -04:00
import { useTheme } from '../themes';
2022-01-28 14:13:53 +03:00
const styles = StyleSheet.create({
ball: {
width: 30,
height: 30,
borderRadius: 15,
2023-11-04 17:13:43 -04:00
justifyContent: 'center',
alignContent: 'center',
2022-01-28 14:13:53 +03:00
},
});
const PlusIcon = props => {
const { colors } = useTheme();
const stylesHook = StyleSheet.create({
ball: {
backgroundColor: colors.buttonBackgroundColor,
},
});
return (
2023-11-04 17:13:43 -04:00
<TouchableOpacity style={[styles.ball, stylesHook.ball]} onPress={props.onPress}>
<Icon name="add" size={22} type="ionicons" color={colors.foregroundColor} />
</TouchableOpacity>
2022-01-28 14:13:53 +03:00
);
};
export default PlusIcon;