added some examples

This commit is contained in:
szabomarton
2025-02-27 10:20:17 +01:00
parent 83e3f5b666
commit 8da79ee38c
47 changed files with 19708 additions and 2 deletions

View File

@@ -1,10 +1,19 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { Button, StyleSheet, Text, View } from 'react-native';
import { useState } from 'react';
export default function App() {
let [counter, setCounter] = useState(0);
let increment = () => {
setCounter(counter + 1);
}
return (
<View style={styles.container}>
<Text>Ez az első mobil appunk!</Text>
<Text>A gomb ennyiszer lett megnyomva: {counter}</Text>
<Button title='nyomj meg' onPress={increment}></Button>
<StatusBar style="auto" />
</View>
);

View File

@@ -5,10 +5,12 @@ import ParallaxScrollView from '@/components/ParallaxScrollView';
import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
const lightThemeColor = "#A1CEDC"
export default function HomeScreen() {
return (
<ParallaxScrollView
headerBackgroundColor={{ light: '#A1CEDC', dark: '#1D3D47' }}
headerBackgroundColor={{ light: lightThemeColor, dark: '#1D3D47' }}
headerImage={
<Image
source={require('@/assets/images/partial-react-logo.png')}