main
alex 2023-07-07 17:29:09 +02:00
parent a8d3fcc61e
commit 99bae8218e
5 changed files with 62 additions and 1 deletions

View File

@ -3,7 +3,7 @@
*/
import {AppRegistry} from 'react-native';
import App from './App';
import App from './src/App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);

49
src/App.js Normal file
View File

@ -0,0 +1,49 @@
import React from 'react';
import {SafeAreaView, StyleSheet, useColorScheme} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
import Home from './Pages/Home';
function App() {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
return (
<SafeAreaView
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
<Home />
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
},
highlight: {
fontWeight: '700',
},
});
export default App;

12
src/Pages/Home/index.js Normal file
View File

@ -0,0 +1,12 @@
import {Button} from 'react-native-paper';
export default function Home() {
return (
<Button
icon="plus"
mode="contained-tonal"
onPress={() => console.log('Pressed')}>
Gerät verbinden
</Button>
);
}

BIN
src/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

BIN
src/image2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB