You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

depense_list_entry.js 690B

123456789101112131415161718192021222324
  1. import React, { useEffect } from 'react';
  2. import { StyleSheet, Text, View, TextInput } from 'react-native';
  3. export default function DepenseListEntry(props){
  4. return(
  5. <View style={depense_list_entry_style.depense_list_entry}>
  6. <Text >{props.depense.description}</Text>
  7. <Text >{new Date(props.depense.date).toDateString()}</Text>
  8. <Text >{props.depense.value}</Text>
  9. </View>
  10. )
  11. }
  12. const depense_list_entry_style = StyleSheet.create({
  13. depense_list_entry: {
  14. display: "flex",
  15. flexDirection: "row",
  16. justifyContent: "space-between",
  17. margin: 2,
  18. borderBottomWidth: 0.5
  19. }
  20. });