restore repo
This commit is contained in:
parent
97e8ee6eb8
commit
f2a798ab18
30 changed files with 1627 additions and 2 deletions
20
app/(tabs)/two.tsx
Normal file
20
app/(tabs)/two.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { StyleSheet } from 'react-native';
|
||||
import { Text, View } from '@/components/Themed';
|
||||
import TransactionAdd from '@/components/transaction/TransactionAdd';
|
||||
import { useState } from 'react';
|
||||
|
||||
export default function TabTwoScreen() {
|
||||
const [refreshKey, setRefreshKey] = useState(0);
|
||||
const handleTransactionAdded = () => {
|
||||
setRefreshKey(oldKey => oldKey + 1);
|
||||
};
|
||||
|
||||
return (
|
||||
<View>
|
||||
<TransactionAdd onTransactionAdded={handleTransactionAdded} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue