import React from 'react'; import { StyleSheet, Text, View, TextInput, Button, Pressable } from 'react-native'; import DepenseForm from './depense_edit/depense_form'; export default function AddDepense(props){ const [addingDepense, onAddDepense] = React.useState(false); return ( {addingDepense ? : } onAddDepense(!addingDepense)}> {!addingDepense ? "+" : "-"} ); } const add_depenses_styles = StyleSheet.create({ overlay: { height: "100%", width: "100%", position: 'absolute', // display:"flex", // justifyContent: "center", // elevation:10, }, button_add: { borderWidth: 1, borderRadius: 25, padding: 10, backgroundColor: "#FFFFFF", elevation:5, width: "100%", height: "100%", justifyContent: 'center', alignItems: 'center', }, button_add_parent: { position: 'absolute', bottom: 10, right: 10, width:50, height:50, } });