Browse Source

safe area view

pull/8/head
Tim Glasgow 2 years ago
parent
commit
188c9240e9
  1. 9
      squarenotsquare/src/screens/Home.js

9
squarenotsquare/src/screens/Home.js

@ -1,5 +1,5 @@
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { BackHandler, Text, TouchableOpacity, View } from "react-native"; import { BackHandler, SafeAreaView, Text, TouchableOpacity, View } from "react-native";
import { styles } from './styles/AppStyles'; import { styles } from './styles/AppStyles';
import MaterialIcon from 'react-native-vector-icons/MaterialCommunityIcons'; import MaterialIcon from 'react-native-vector-icons/MaterialCommunityIcons';
import Icons from '../themes/Icons'; import Icons from '../themes/Icons';
@ -21,13 +21,12 @@ function Home(){
} }
return ( return (
<View style={[styles.flex]}> <SafeAreaView style={[styles.flex]}>
<TouchableOpacity style={[styles.absolute]}> <TouchableOpacity style={[styles.endAlign]}>
<MaterialIcon <MaterialIcon
name={Icons.squareIcons.settings} name={Icons.squareIcons.settings}
color={Colors.material.green400} color={Colors.material.green400}
size={Metrics.icons.buttonIcon} size={Metrics.icons.buttonIcon}
style={styles.absolute}
/> />
</TouchableOpacity> </TouchableOpacity>
<View style={[styles.flexHalf, styles.spaceAround]}> <View style={[styles.flexHalf, styles.spaceAround]}>
@ -65,7 +64,7 @@ function Home(){
0.0.1a Atonal Software August 2, 2022 0.0.1a Atonal Software August 2, 2022
</Text> </Text>
</View> </View>
</View> </SafeAreaView>
) )
} }

Loading…
Cancel
Save