|
@@ -1,6 +1,7 @@
|
1
|
1
|
import { StatusBar } from 'expo-status-bar';
|
2
|
2
|
import React, { useEffect } from 'react';
|
3
|
3
|
import { StyleSheet, Text, View, TextInput } from 'react-native';
|
|
4
|
+import { SafeAreaView } from 'react-native-safe-area-context';
|
4
|
5
|
import AddDepense from './components/add_depense';
|
5
|
6
|
import DepensesList from './components/depenses_list';
|
6
|
7
|
import TitleBar from './components/title_bar';
|
|
@@ -31,7 +32,7 @@ export default function App() {
|
31
|
32
|
});
|
32
|
33
|
|
33
|
34
|
return (
|
34
|
|
- <View style={styles.home}>
|
|
35
|
+ <SafeAreaView style={styles.home}>
|
35
|
36
|
<View style={styles.container, {
|
36
|
37
|
flexDirection: "column"
|
37
|
38
|
}}>
|
|
@@ -49,7 +50,7 @@ export default function App() {
|
49
|
50
|
</View>
|
50
|
51
|
{/* Overlay for expenses */}
|
51
|
52
|
<AddDepense fetchDepenses={() => onFetchDepenses(true)}/>
|
52
|
|
- </View>
|
|
53
|
+ </SafeAreaView>
|
53
|
54
|
);
|
54
|
55
|
}
|
55
|
56
|
|