locaft_mobile/App.js

77 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-06-02 11:29:39 -07:00
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import type {Node} from 'react';
import {
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
} from 'react-native';
import {
Colors,
DebugInstructions,
LearnMoreLinks,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
2021-06-03 09:34:29 -07:00
import { Header } from 'react-native-elements';
2021-06-02 11:29:39 -07:00
const Section = ({children, title}): Node => {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.sectionContainer}>
<Text
style={[
styles.sectionTitle,
{
color: isDarkMode ? Colors.white : Colors.black,
},
]}>
{title}
</Text>
<Text
style={[
styles.sectionDescription,
{
color: isDarkMode ? Colors.light : Colors.dark,
},
]}>
{children}
</Text>
</View>
);
};
const App: () => Node = () => {
return (
<>
2021-06-03 09:34:29 -07:00
2021-06-02 11:29:39 -07:00
<View
style={styles.viewRoot}>
2021-06-03 09:34:29 -07:00
<Text style={{color: "white", fontSize: 60,fontWeight: "bold", textAlign: "center",marginTop: "50%",fontFamily: 'ubuntu'}}>locaft</Text>
2021-06-02 11:29:39 -07:00
</View>
</>
);
};
const styles = StyleSheet.create({
viewRoot: {
backgroundColor: "#1C254E",
height: "100%",
},
});
export default App;