Advertisement
Guest User

Untitled

a guest
Aug 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. import { StyleSheet, Platform } from 'react-native';
  2. import { general, metrics, colors } from 'styles';
  3.  
  4. const styles = StyleSheet.create({
  5. container: {
  6. flex: 1,
  7. justifyContent: 'flex-end',
  8. alignItems: 'flex-end',
  9. },
  10.  
  11. mapContainer: {
  12. flex: 1,
  13. position: 'absolute',
  14. top: (Platform.OS === 'android') ? 65 : 85,
  15. bottom:0,
  16. left: 0,
  17. right: 0,
  18. },
  19.  
  20. topoContainer: {
  21. ...general.topoContainer,
  22. flexDirection: 'row',
  23. backgroundColor: colors.white,
  24. marginTop: 0,
  25. paddingTop: (Platform.OS === 'ios') ? 24 : 0,
  26. marginBottom: metrics.baseMargin * 33,
  27. },
  28.  
  29. topoTitle: {
  30. ...general.title,
  31. ...general.topoTitle,
  32. color: colors.text,
  33. },
  34.  
  35. annotationContainer: {
  36. width: 40,
  37. height: 40,
  38. alignItems: 'center',
  39. justifyContent: 'center',
  40. borderRadius: 15,
  41. },
  42.  
  43. annotationFill: {
  44. width: 30,
  45. height: 30,
  46. borderRadius: 15,
  47. backgroundColor: colors.main,
  48. transform: [{
  49. scale: 0.8
  50. }],
  51. },
  52.  
  53. placeContainer: {
  54. flex: 1,
  55. paddingHorizontal: metrics.basePadding,
  56. },
  57.  
  58. cardContainer: {
  59. flexDirection: 'row',
  60. width: metrics.screenWidth - 110,
  61. backgroundColor: '#FFF',
  62. borderRadius: metrics.baseRadius,
  63. marginVertical: metrics.baseMargin * 5,
  64. padding: 0,
  65. shadowOffset: {
  66. width: 5,
  67. height: 5
  68. },
  69. shadowColor: colors.black,
  70. shadowOpacity: 0.5,
  71. elevation: 5,
  72. },
  73.  
  74. imageContainer: {
  75. justifyContent: 'center',
  76. borderRadius: metrics.baseRadius,
  77. marginLeft: -20,
  78. },
  79.  
  80. subContainer: {
  81. flex: 1,
  82. alignItems: 'flex-start',
  83. padding: metrics.basePadding,
  84. },
  85.  
  86. title: {
  87. ...general.title,
  88. paddingBottom: metrics.basePadding / 10,
  89. },
  90.  
  91. subTitle: {
  92. marginBottom: metrics.baseMargin,
  93. },
  94.  
  95. rowContainer: {
  96. flexDirection: 'row',
  97. flexWrap: 'wrap',
  98. },
  99.  
  100. descriptionContainer: {
  101. backgroundColor: colors.main,
  102. margin: metrics.baseMargin / 5,
  103. paddingVertical: metrics.basePadding / 7,
  104. paddingHorizontal: metrics.basePadding / 4,
  105. borderRadius: metrics.baseRadius * 3,
  106. },
  107.  
  108. description: {
  109. ...general.text,
  110. color: colors.white,
  111. },
  112.  
  113. routeContainer: {
  114. flex: 0.3,
  115. alignItems: 'center',
  116. justifyContent: 'flex-end',
  117. },
  118.  
  119. routeButton: {
  120. backgroundColor: colors.primary,
  121. padding: (Platform.OS === 'ios') ? 8 : 7,
  122. },
  123. });
  124.  
  125. export default styles;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement