BlueWallet/components/BlurredBalanceView.tsx

19 lines
697 B
TypeScript
Raw Normal View History

2024-03-31 18:33:25 +02:00
import React from 'react';
import { ImageBackground, StyleSheet, View } from 'react-native';
import { Icon } from 'react-native-elements';
export const BlurredBalanceView = () => {
return (
<View style={styles.container}>
{/* @ts-ignore: We just want the blur effect. No source prop needed */}
<ImageBackground blurRadius={6} style={styles.background} />
<Icon name="eye-slash" type="font-awesome" color="#FFFFFF" />
</View>
);
};
const styles = StyleSheet.create({
container: { flexDirection: 'row', alignItems: 'center', borderRadius: 9 },
background: { backgroundColor: '#FFFFFF', opacity: 0.5, height: 30, width: 110, marginRight: 8, borderRadius: 9 },
});