aboutsummaryrefslogtreecommitdiffstats
path: root/App.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2022-05-19 00:59:16 +0100
committerGravatar piotrruss <mail@pruss.it> 2022-05-19 00:59:16 +0100
commit9996d8f36cf91a7e9932961cbf0c178a62aa14d3 (patch)
treefc2902009c807dcc74e0e0624280712677fdb42b /App.js
parentd77d7c440333ded46eeb8d28e22ec5517f3b15b8 (diff)
downloadnotes_mobile-9996d8f36cf91a7e9932961cbf0c178a62aa14d3.tar.gz
notes_mobile-9996d8f36cf91a7e9932961cbf0c178a62aa14d3.tar.bz2
notes_mobile-9996d8f36cf91a7e9932961cbf0c178a62aa14d3.zip
remove notes
Diffstat (limited to 'App.js')
-rw-r--r--App.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/App.js b/App.js
index 1163cbe..c74c19c 100644
--- a/App.js
+++ b/App.js
@@ -1,5 +1,5 @@
import { StatusBar } from 'expo-status-bar';
-import { StyleSheet, View, Text } from 'react-native';
+import { StyleSheet, SafeAreaView, Text } from 'react-native';
import { useState, useEffect } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { Login, List, Edit } from './components'
@@ -39,19 +39,19 @@ export default function App() {
}, []);
if (error) return (
- <View style={styles.container}>
+ <SafeAreaView style={styles.container}>
<Text style={styles.error}>{error}</Text>
- </View>
+ </SafeAreaView>
)
if (session === undefined) return (
- <View style={styles.container}>
+ <SafeAreaView style={styles.container}>
<Text>Loading...</Text>
- </View>
+ </SafeAreaView>
);
return (
- <View style={styles.container}>
+ <SafeAreaView style={styles.container}>
{
session === null
? <Login login={login} />
@@ -73,7 +73,7 @@ export default function App() {
)
}
<StatusBar style="auto" />
- </View>
+ </SafeAreaView>
);
};
@@ -81,7 +81,7 @@ const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#000',
- height: '100%',
+ // height: '100%',
},
error: {
color: 'red',