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>
);