-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCardReverse.js
41 lines (38 loc) · 884 Bytes
/
CardReverse.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
import {View, StyleSheet} from 'react-native';
import FastImage from 'react-native-fast-image';
const CardReverse = ({isMirrored, shadowOpacity = 0}) => {
return (
<>
<View style={styles.wrapper}>
<View style={[styles.shadow, {opacity: shadowOpacity}]} />
<FastImage
source={{
uri: 'https://image.flaticon.com/icons/png/512/3483/3483048.png',
}}
style={styles.reverseIcon}
/>
</View>
</>
);
};
const styles = StyleSheet.create({
wrapper: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#FFCCD3',
},
reverseIcon: {
height: 140,
width: 140,
},
shadow: {
position: 'absolute',
zIndex: 100,
height: '100%',
width: '100%',
backgroundColor: 'black',
},
});
export default CardReverse;