-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsponsorCard.js
More file actions
36 lines (33 loc) · 1.07 KB
/
sponsorCard.js
File metadata and controls
36 lines (33 loc) · 1.07 KB
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
import React, {Component} from 'react';
import {
TouchableNativeFeedback,
ImageBackground
} from 'react-native';
const colors = {
selected: '#ff5a5f',
normal: '#484848',
teal: '#008489',
StatusBarTeal: '#066f73',
separator: '#ebebeb'
};
export default class SponsorCard extends Component {
render() {
return (
<TouchableNativeFeedback background={TouchableNativeFeedback.Ripple(colors.teal, false)}
useForeground={true}>
<ImageBackground source={{uri: 'http://assets.pecfest.in/images/' + this.props.name}}
resizeMode={'contain'} style={{
alignItems: 'center',
justifyContent: 'center',
flex: 1,
marginLeft: 8,
marginRight: 8,
backgroundColor: 'white',
borderRadius: 0,
marginTop: 4
}}>
</ImageBackground>
</TouchableNativeFeedback>
)
}
}