Skip to content

Commit

Permalink
fix: fixed screen styles formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0trpietruszewski committed Aug 14, 2020
1 parent f4d77f4 commit 15578ef
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions example/src/constants/screenStyles.js
@@ -1,27 +1,27 @@
import {StyleSheet, Platform} from 'react-native';
import {ifIphoneX} from '../constants/utils';
import colors from './colors';
import constants from './constants';
import { StyleSheet, Platform } from 'react-native'
import { ifIphoneX } from './utils'
import colors from './colors'
import constants from './constants'

const screenStyles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
alignItems: 'center'
},
content: {
flex: 1,
paddingHorizontal: 24,
alignItems: 'center',
justifyContent: 'center',
paddingBottom: 24,
paddingBottom: 24
},
flatlistContainer: {
width: constants.deviceWidth,
height: constants.deviceHeight - 80,
alignItems: 'center',
justifyContent: 'center',
paddingBottom: 24,
paddingBottom: 24
},
contentText: {
fontSize: 24,
Expand All @@ -31,50 +31,50 @@ const screenStyles = StyleSheet.create({
letterSpacing: -0.2,
paddingTop: 40,
paddingBottom: 20,
fontFamily: 'AvertaStd-Semibold',
fontFamily: 'AvertaStd-Semibold'
},
foreground: {
flex: 1,
paddingHorizontal: 24,
justifyContent: 'flex-end',
justifyContent: 'flex-end'
},
background: {
width: '100%',
justifyContent: 'flex-end',
backgroundColor: colors.primaryGreen,
height: '100%',
height: '100%'
},
headerWrapper: {
width: '100%',
paddingHorizontal: 24,
paddingTop: Platform.select({ios: ifIphoneX(50, 40), android: 55}),
paddingTop: Platform.select({ ios: ifIphoneX(50, 40), android: 55 }),
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
alignItems: 'center'
},
logo: {
height: 24,
width: 142,
width: 142
},
message: {
color: colors.white,
fontSize: constants.responsiveWidth(11),
lineHeight: 48,
letterSpacing: -1,
fontFamily: 'AvertaStd-Semibold',
fontFamily: 'AvertaStd-Semibold'
},
messageContainer: {
paddingTop: 24,
paddingBottom: 24,
paddingBottom: 24
},
profilePic: {
width: constants.responsiveWidth(18),
height: constants.responsiveWidth(18),
borderRadius: constants.responsiveWidth(4.5),
borderRadius: constants.responsiveWidth(4.5)
},
foregroundText: {
color: colors.white,
},
});
color: colors.white
}
})

export default screenStyles;
export default screenStyles

0 comments on commit 15578ef

Please sign in to comment.