rn-app/App.js

68 lines
1.2 KiB
JavaScript

import React, {useState} from 'react';
import {
SafeAreaView,
StyleSheet,
Text,
View,
useColorScheme,
} from 'react-native';
import {
Button,
IconButton,
MD3Colors,
ProgressBar,
Searchbar,
Switch,
TextInput,
} from 'react-native-paper';
import {Colors} from 'react-native/Libraries/NewAppScreen';
function App() {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
return (
<SafeAreaView
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
<Button mode="contained-tonal" onPress={() => console.log('Pressed')}>
Gerät verbinden
</Button>
<IconButton icon="camera" iconColor={MD3Colors.error50} size={20} />
</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;