added margin

This commit is contained in:
2025-09-03 00:48:52 +02:00
parent 5f8bc8fd66
commit 2e717451a2
2 changed files with 28 additions and 26 deletions
+24 -21
View File
@@ -1,4 +1,3 @@
import ThemedHeader from "@/src/components/themed/ThemedHeader";
import ThemedBackground from "@/src/components/themed/ThemedBackground";
import {useState} from "react";
import ThemedTextInput from "@/src/components/themed/ThemedTextInput";
@@ -6,6 +5,7 @@ import ThemedButton from "@/src/components/themed/ThemedButton";
import {useAuth} from "@/src/context/AuthProvider";
import CustomColorPicker from "@/src/components/themed/CustomColorPicker";
import {View} from "react-native";
export default function TextScreen() {
const {authenticatedUser} = useAuth();
@@ -13,28 +13,31 @@ export default function TextScreen() {
return (
<ThemedBackground>
<ThemedHeader>
Text mode
</ThemedHeader>
{/* TextArea if I allow enough characters */}
<ThemedTextInput
label="Text"
returnKeyType="next"
value={textProps?.text}
onChangeText={(value: string) => {
setTextProps(prev => ({
...prev!,
text: value
}));
}}
autoCapitalize="none"
/>
<View style={{ padding: 20, gap: 10 }}> {/* Container für Input + Picker */}
<ThemedTextInput
label="Text"
returnKeyType="next"
value={textProps?.text}
onChangeText={(value: string) => {
setTextProps(prev => ({
...prev!,
text: value
}));
}}
autoCapitalize="none"
/>
<CustomColorPicker onSelect={rgb => console.log(rgb)} defaultColor={textProps!.color} />
<CustomColorPicker
onSelect={rgb => setTextProps(prev => ({ ...prev!, color: rgb }))}
defaultColor={textProps!.color}
/>
</View>
<ThemedButton mode={"contained"} onPress={() => console.log(textProps)}>
Cooler Knopf
</ThemedButton>
<View style={{ paddingHorizontal: 20, marginTop: 20 }}>
<ThemedButton mode="contained" onPress={() => console.log(textProps)}>
Cooler Knopf
</ThemedButton>
</View>
</ThemedBackground>
);
}