diff --git a/src/components/CTAButton.js b/src/components/CTAButton.js index e89fc0c..68bbb3a 100644 --- a/src/components/CTAButton.js +++ b/src/components/CTAButton.js @@ -4,7 +4,7 @@ import { View, Text, StyleSheet } from 'react-native'; import { TouchableRipple } from 'react-native-paper'; -import { fonts, colors } from '../styles'; +import { fonts, colors, elevations } from '../styles'; export default class CTAButton extends React.PureComponent { constructor(props) { @@ -34,7 +34,7 @@ const buttonStyles = StyleSheet.create({ buttonOuter: { overflow: 'hidden', borderRadius: 30, - elevation: 10, + ...elevations.ten, backgroundColor: colors.primary }, button: { diff --git a/src/components/CalendarDate.js b/src/components/CalendarDate.js index 2438b61..5816203 100644 --- a/src/components/CalendarDate.js +++ b/src/components/CalendarDate.js @@ -2,7 +2,7 @@ import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; -import { fonts, colors } from '../styles'; +import { fonts, colors, elevations } from '../styles'; export default class CalendarDate extends React.PureComponent { constructor(props) { @@ -72,7 +72,7 @@ const calendarStyles = StyleSheet.create({ width: 72, borderRadius: 3, backgroundColor: colors.white, - elevation: 2, + ...elevations.two, overflow: 'hidden' }, month: { @@ -113,7 +113,7 @@ const miniCalendarStyles = StyleSheet.create({ width: 40, borderRadius: 2, backgroundColor: colors.white, - elevation: 1, + ...elevations.one, overflow: 'hidden' }, month: { diff --git a/src/components/RoundIconCarousel.js b/src/components/RoundIconCarousel.js index 0ce1e0e..5988a87 100644 --- a/src/components/RoundIconCarousel.js +++ b/src/components/RoundIconCarousel.js @@ -6,7 +6,7 @@ import Carousel from 'react-native-snap-carousel'; import { Icon } from 'react-native-elements'; import { TouchableRipple } from 'react-native-paper'; -import { colors, fonts } from '../styles'; +import { colors, fonts, elevations } from '../styles'; export default class RoundIconCarousel extends React.PureComponent { constructor(props) { @@ -93,7 +93,7 @@ const classesCarouselStyles = StyleSheet.create({ height: 72, width: 72, borderRadius: 36, - elevation: 2, + ...elevations.two, overflow: 'hidden' }, container: { diff --git a/src/components/TaskListCard.js b/src/components/TaskListCard.js index 8d4d894..b86dbe1 100644 --- a/src/components/TaskListCard.js +++ b/src/components/TaskListCard.js @@ -1,7 +1,7 @@ import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; -import { fonts, styles } from '../styles'; +import { fonts, styles, elevations } from '../styles'; export default TaskListCard = props => ( { return color; }; -export { styles, colors, preset, labelColors, fonts }; +export { styles, colors, preset, labelColors, fonts, elevations };