Feature/ios launch

This commit is contained in:
Sofiya Tepikin
2021-05-02 16:31:17 +00:00
parent e532c3d94c
commit f0155b342f
24 changed files with 683 additions and 1630 deletions
+29
View File
@@ -0,0 +1,29 @@
import React from 'react'
import { SafeAreaView, StatusBar, StyleSheet, View } from 'react-native'
import { Colors } from '../../styles'
import { STATUSBAR_HEIGHT } from '../../config'
const AppStatusBar = () => (
<View style={styles.statusBar}>
<SafeAreaView>
<StatusBar
backgroundColor={Colors.purple}
barStyle="light-content"
translucent
/>
</SafeAreaView>
</View>
)
const styles = StyleSheet.create({
container: {
flex: 1,
},
statusBar: {
backgroundColor: Colors.purple,
height: STATUSBAR_HEIGHT,
}
})
export default AppStatusBar
+1
View File
@@ -38,6 +38,7 @@ const styles = StyleSheet.create({
marginTop: Spacing.base,
minWidth: '80%',
paddingHorizontal: Spacing.base,
paddingVertical: Spacing.tiny,
...Typography.mainText
}
})
+2 -2
View File
@@ -5,7 +5,7 @@ import { StyleSheet, TouchableOpacity } from 'react-native'
import AppIcon from './app-icon'
import AppText from './app-text'
import { Colors, Fonts, Spacing } from '../../styles'
import { Colors, Fonts, Sizes, Spacing } from '../../styles'
const Button = ({
children,
@@ -52,7 +52,7 @@ const text = {
}
const textSmall = {
fontSize: Fonts.small,
fontSize: Sizes.small,
padding: Spacing.small,
textTransform: 'uppercase'
}
+8 -5
View File
@@ -4,29 +4,32 @@ import { StyleSheet, TouchableOpacity } from 'react-native'
import AppIcon from './app-icon'
import { HIT_SLOP} from '../../config'
import { Colors, Sizes } from '../../styles'
const CloseIcon = ({ onClose, ...props }) => {
const CloseIcon = ({ onClose, color, ...props }) => {
return (
<TouchableOpacity
hitSlop={HIT_SLOP}
onPress={onClose}
style={styles.container}
{...props}
>
<AppIcon name='cross' color={Colors.orange} />
<AppIcon name='cross' color={color ? color : Colors.orange} />
</TouchableOpacity>
)
}
CloseIcon.propTypes = {
onClose: PropTypes.func.isRequired
onClose: PropTypes.func.isRequired,
color: PropTypes.string
}
const styles = StyleSheet.create({
container: {
alignSelf: 'flex-start',
marginBottom: Sizes.base
marginBottom: Sizes.base,
}
})
export default CloseIcon
export default CloseIcon