From 8eee44cce2382e4a957af20505cd54e095b5337f Mon Sep 17 00:00:00 2001 From: Ghost_Element Date: Fri, 8 Dec 2023 15:47:51 +0100 Subject: [PATCH] betrag_format question: eingabe --- app/(tabs)/home/addItem.tsx | 65 +++++++++++++++++++++++++++++++++---- 1 file changed, 59 insertions(+), 6 deletions(-) diff --git a/app/(tabs)/home/addItem.tsx b/app/(tabs)/home/addItem.tsx index e9edc0b..ab404a1 100644 --- a/app/(tabs)/home/addItem.tsx +++ b/app/(tabs)/home/addItem.tsx @@ -1,10 +1,63 @@ -import { View, Text } from 'react-native' -import React from 'react' - +import {View, Text, TextInput, StyleSheet} from 'react-native' +import React, { useState } from 'react' +import {FlatList} from "react-native-gesture-handler"; +import {ExpenseItem} from "../../../components"; export default function addItem() { + + const[zahl, setZahl]=useState(''); + const handleZahlEingabe = (text: React.SetStateAction)=> { + setZahl(text); + }; + + return ( - - addItem + + Enter data + + {"Betrag:"} + + {"__ ,__ __€"} + + + ) -} \ No newline at end of file +} + + +const styles = StyleSheet.create({ + all:{ + alignItems:'center', + }, + container: { + backgroundColor:"orange", + flexDirection:'row', + justifyContent:"center", + alignItems:"center", + borderRadius:20, + height: 60, + width: 330, + paddingHorizontal:16, + }, + input: { + //height: 40, + textAlign:'right', + position:'absolute', + right:80, + }, + text:{ + fontSize:26, + //fontWeight:'bold', + flex:1, + }, + placeholder:{ + position: 'absolute', + right:16, + top:16,//16 + flexDirection:'row', + }, +}) \ No newline at end of file