Skip to content

Instantly share code, notes, and snippets.

@Karniej
Last active April 11, 2019 10:02
Show Gist options
  • Save Karniej/b6ddd5e5d78850a05fb39b214f97a221 to your computer and use it in GitHub Desktop.
Save Karniej/b6ddd5e5d78850a05fb39b214f97a221 to your computer and use it in GitHub Desktop.
import { StyleSheet } from 'react-native'
const colors = {
transparent: 'transparent',
white: '#fff',
heartColor: '#e92f3c',
textPrimary: '#515151',
black: '#000',
}
const card = {
photographer: 'Patrycja',
photo: {uri : 'https://instagram.fqyy1-1.fna.fbcdn.net/vp/3c9a078e2ca06b6f23495a58f4d5790e/5D38A6B6/t51.2885-15/e35/56706298_321117518554648_5665440507722377382_n.jpg?_nc_ht=instagram.fqyy1-1.fna.fbcdn.net' },
key: 'pkarniej'
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
card: {
height: 345,
width: '95%',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: colors.white,
borderRadius: 5,
shadowColor: colors.black,
shadowOffset: {
width: 0,
height: 2
},
shadowRadius: 6,
shadowOpacity: 0.3,
elevation: 2
},
image: {
marginTop: 10,
height: 280,
width: '92%'
},
photoDescriptionContainer: {
width: '100%',
flexDirection: 'row',
justifyContent: 'flex-start',
alignItems: 'center',
paddingTop: 15,
paddingBottom: 10
},
icon: {
paddingHorizontal: 10,
justifyContent: 'center',
alignItems: 'center'
},
animatedIcon: {
position: 'absolute',
justifyContent: 'center',
alignItems: 'center',
zIndex: 2,
borderRadius: 160,
opacity: 0
},
text: {
textAlign: 'center',
fontSize: 13,
backgroundColor: colors.transparent,
color: colors.textPrimary
},
textPhotographer: {
fontWeight: 'bold',
textAlign: 'center'
},
polaroidTextContainer: {
flexDirection: 'row',
textAlign: 'left',
paddingTop: 0
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment