diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..3c3629e64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/App.js b/App.js index 1fed0daf7..9b86c3620 100644 --- a/App.js +++ b/App.js @@ -20,6 +20,7 @@ const Tab = createBottomTabNavigator(); const Stack = createNativeStackNavigator(); function Tabs() { + const { theme } = useTheme(); return ( - + @@ -69,4 +70,4 @@ export default function App() { ); -} +} \ No newline at end of file diff --git a/README b/README new file mode 100644 index 000000000..337ad0686 --- /dev/null +++ b/README @@ -0,0 +1 @@ +I am making an app that tracks your daily expenses , You can add the expenses into categories . This ensures that where you have spend and how much you have spend also this ensures your daily expenses to control the expenses . \ No newline at end of file diff --git a/screens/HomeScreen.js b/screens/HomeScreen.js index f94ee9861..3d49af8d9 100644 --- a/screens/HomeScreen.js +++ b/screens/HomeScreen.js @@ -6,7 +6,7 @@ import { useExpenses } from '../context/ExpensesContext'; import { isThisMonth } from '../utils/dateRange'; import tw from 'twrnc'; -const categories = ['Food', 'Travel', 'Shopping', 'Bills', 'Others']; +const categories = ['Food', 'Travel', 'Shopping', 'Bills', 'Other']; export default function HomeScreen() { const nav = useNavigation(); diff --git a/screens/SettingsScreen.js b/screens/SettingsScreen.js index 061d54fb2..4acaf5b60 100644 --- a/screens/SettingsScreen.js +++ b/screens/SettingsScreen.js @@ -4,6 +4,7 @@ import { useTheme } from '../context/ThemeContext'; import { clearExpenses, getExpenses } from '../utils/storage'; import tw from 'twrnc'; + function toCSV(rows) { if (!rows || rows.length === 0) return 'id,title,amount,category,date\n'; const header = Object.keys(rows[0]).join(',');