diff options
author | 2022-05-19 00:59:16 +0100 | |
---|---|---|
committer | 2022-05-19 00:59:16 +0100 | |
commit | 9996d8f36cf91a7e9932961cbf0c178a62aa14d3 (patch) | |
tree | fc2902009c807dcc74e0e0624280712677fdb42b /App.js | |
parent | d77d7c440333ded46eeb8d28e22ec5517f3b15b8 (diff) | |
download | notes_mobile-9996d8f36cf91a7e9932961cbf0c178a62aa14d3.tar.gz notes_mobile-9996d8f36cf91a7e9932961cbf0c178a62aa14d3.tar.bz2 notes_mobile-9996d8f36cf91a7e9932961cbf0c178a62aa14d3.zip |
remove notes
Diffstat (limited to 'App.js')
-rw-r--r-- | App.js | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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', |