Resolve "Budget"
This commit is contained in:
parent
ab2a03ba0b
commit
5a9b76a3ff
9 changed files with 60 additions and 33 deletions
|
|
@ -1,5 +1,28 @@
|
|||
import { Text } from 'react-native';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { deleteExpenses } from '../../../services/database';
|
||||
|
||||
export default function Page() {
|
||||
return <Text>Stats Page</Text>;
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
},
|
||||
text: {
|
||||
textAlign: 'center',
|
||||
fontSize: 40,
|
||||
color: "red",
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.text} onPress={() => {
|
||||
deleteExpenses().then(() => {
|
||||
console.log("Expenses Deleted!");
|
||||
})
|
||||
}}>Reset Expenses</Text>
|
||||
</View>);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue