added orai

This commit is contained in:
szabomarton
2025-03-13 10:04:04 +01:00
parent 5092aedfca
commit 98b119aa96
9 changed files with 410 additions and 1367 deletions

View File

@@ -0,0 +1,19 @@
import React from "react";
import { View, Text, Button, StyleSheet } from "react-native";
import { CounterProvider, useCounter } from "./components/CounterContext";
const CounterScreen = () => {
const {count, increment, decrement} = useCounter();
return (
<View>
<Text>
Számláló: {count}
</Text>
<Button title="Növelés" onPress={increment}></Button>
<Button title="Csökkentés" onPress={decrement}></Button>
</View>
);
};
export default CounterScreen;