initial project commit
This commit is contained in:
parent
d8efc7c19c
commit
bf2fab3aa1
63 changed files with 9861 additions and 1 deletions
41
App.tsx
Normal file
41
App.tsx
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* Sample React Native App
|
||||
* https://github.com/facebook/react-native
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import {
|
||||
SafeAreaView,
|
||||
ScrollView,
|
||||
StatusBar,
|
||||
Text,
|
||||
useColorScheme,
|
||||
} from 'react-native';
|
||||
import {Colors} from './src/colors';
|
||||
|
||||
function App(): JSX.Element {
|
||||
const isDarkMode = useColorScheme() === 'dark';
|
||||
|
||||
const backgroundStyle = {
|
||||
flex: 1,
|
||||
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
|
||||
};
|
||||
|
||||
const textStyle = {color: isDarkMode ? Colors.light : Colors.dark};
|
||||
|
||||
return (
|
||||
<SafeAreaView style={backgroundStyle}>
|
||||
<StatusBar
|
||||
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
|
||||
backgroundColor={backgroundStyle.backgroundColor}
|
||||
/>
|
||||
<ScrollView contentInsetAdjustmentBehavior="automatic">
|
||||
<Text style={textStyle}>{'hello world'}</Text>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Loading…
Add table
Add a link
Reference in a new issue