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', }, button_add: { borderWidth: 1, padding: 10, backgroundColor: "#FFFFFF", elevation:5, }, button_add_parent: { position: 'absolute', bottom: 10, right: 10, } });