BlueWallet/components/icons/TransactionIncomingIcon.js

37 lines
901 B
JavaScript
Raw Normal View History

2022-01-28 12:13:53 +01:00
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { Icon } from 'react-native-elements';
import { useTheme } from '@react-navigation/native';
const styles = StyleSheet.create({
boxIncoming: {
position: 'relative',
},
ballIncoming: {
width: 30,
height: 30,
borderRadius: 15,
transform: [{ rotate: '-45deg' }],
justifyContent: 'center',
},
});
const TransactionIncomingIcon = props => {
const { colors } = useTheme();
const stylesHooks = StyleSheet.create({
ballIncoming: {
backgroundColor: colors.ballReceive,
},
});
return (
<View style={styles.boxIncoming}>
<View style={[styles.ballIncoming, stylesHooks.ballIncoming]}>
<Icon name="arrow-down" size={16} type="font-awesome" color={colors.incomingForegroundColor} />
</View>
</View>
);
};
export default TransactionIncomingIcon;