BlueWallet/components/icons/PlusIcon.js
2022-01-28 14:13:53 +03:00

33 lines
698 B
JavaScript

import React from 'react';
import { StyleSheet } from 'react-native';
import { Avatar } from 'react-native-elements';
import { useTheme } from '@react-navigation/native';
const styles = StyleSheet.create({
ball: {
width: 30,
height: 30,
borderRadius: 15,
},
});
const PlusIcon = props => {
const { colors } = useTheme();
const stylesHook = StyleSheet.create({
ball: {
backgroundColor: colors.buttonBackgroundColor,
},
});
return (
<Avatar
rounded
containerStyle={[styles.ball, stylesHook.ball]}
icon={{ name: 'add', size: 22, type: 'ionicons', color: colors.foregroundColor }}
{...props}
/>
);
};
export default PlusIcon;