import React, {useState} from 'react';
import { View, Text, Button, TextInput, StyleSheet } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
const Stack = createStackNavigator();
const HomeScreen = ({ navigation }: any) => {
const [userInput, setUserInput] = useState("");
return (
Kezdőképernyő
);
}
const DetailsScreen = ({ route, navigation}: any)=> {
const {text} = route.params;
return(
Részletek képernyő
Beírt szöveg: {text}
);
}
export default function App() {
return(
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 20,
alignItems: 'center',
justifyContent: 'center',
},
title:{
fontSize: 24,
fontWeight: "bold",
marginBottom: 20,
},
input: {
width: "80%",
borderWidth: 1,
borderColor: "#ccc",
padding: 10,
marginBottom: 20,
borderRadius: 5,
backgroundColor: "#ff00ff"
},
text: {
fontSize: 18,
marginBottom: 20,
},
});