feat: basic structure for calendar

This commit is contained in:
Jakob Stornig 2023-12-20 22:55:19 +01:00
parent 37b38d33fc
commit 65c32a9298
5 changed files with 94 additions and 12 deletions

View file

@ -5,7 +5,7 @@ import { SIZES } from '../../../constants/theme'
import { SafeAreaView } from 'react-native-safe-area-context'
import { ButtonSetting, ToggleSetting } from '../../../components'
import { useTheme } from '../../contexts/ThemeContext'
import { deleteExpenses } from '../../../services/database'
import { deleteExpenses, DEV_populateDatabase } from '../../../services/database'
import { useAuth } from '../../contexts/AuthContext'
import { TouchableOpacity } from 'react-native-gesture-handler'
@ -61,6 +61,12 @@ export default function userSettings() {
console.log("Expenses Deleted!");
})}}
/>
<ButtonSetting settingsTitle='Populate Database' onPress={() => {
const del = async () => {
await DEV_populateDatabase()
}
del()
}}/>
</View>
</View>