diff --git a/App.tsx b/App.tsx
index 0329d0c..00a9ac1 100644
--- a/App.tsx
+++ b/App.tsx
@@ -1,20 +1,38 @@
-import { StatusBar } from 'expo-status-bar';
-import { StyleSheet, Text, View } from 'react-native';
+import React from 'react'
+import { NavigationContainer } from '@react-navigation/native'
+import { createNativeStackNavigator } from '@react-navigation/native-stack'
+import DashboardScreen from './src/screens/DashboardScreen'
+import NewMeasurementScreen from './src/screens/NewMeasurementScreen'
+import HistoryScreen from './src/screens/HistoryScreen'
+import SettingsScreen from './src/screens/SettingsScreen'
+
+const Stack = createNativeStackNavigator()
export default function App() {
return (
-
- Open up App.tsx to start working on your app!
-
-
- );
+
+
+
+
+
+
+
+
+ )
}
-
-const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: '#fff',
- alignItems: 'center',
- justifyContent: 'center',
- },
-});
diff --git a/src/components/WeightChart.tsx b/src/components/WeightChart.tsx
index 1fc6aa4..747106e 100644
--- a/src/components/WeightChart.tsx
+++ b/src/components/WeightChart.tsx
@@ -35,7 +35,7 @@ export default function WeightChart({ measurements }: Props) {
backgroundColor: '#ffffff',
backgroundGradientFrom: '#ffffff',
backgroundGradientTo: '#ffffff',
- decimalCount: 1,
+ decimalPlaces: 1,
color: (opacity = 1) => `rgba(76, 175, 80, ${opacity})`,
labelColor: () => '#666',
}}
diff --git a/src/screens/DashboardScreen.tsx b/src/screens/DashboardScreen.tsx
index fa207c9..0eb7569 100644
--- a/src/screens/DashboardScreen.tsx
+++ b/src/screens/DashboardScreen.tsx
@@ -26,19 +26,32 @@ export default function DashboardScreen({ navigation }: Props) {
)
return (
-
-
-
+
+
+ navigation.navigate('History')}>
+ Historie
+
+ navigation.navigate('Settings')}>
+ Instellingen
+
+
+
+
+
- navigation.navigate('NewMeasurement')}>
- + Nieuwe meting
-
-
+ navigation.navigate('NewMeasurement')}>
+ + Nieuwe meting
+
+
+
)
}
const styles = StyleSheet.create({
- container: { flex: 1, backgroundColor: '#f5f5f5' },
+ outer: { flex: 1, backgroundColor: '#f5f5f5' },
+ container: { flex: 1 },
+ navBar: { flexDirection: 'row', justifyContent: 'space-around', padding: 12, backgroundColor: '#fff', borderBottomWidth: 1, borderBottomColor: '#eee' },
+ navLink: { fontSize: 16, color: '#2196F3', fontWeight: '600' },
fab: { backgroundColor: '#4CAF50', padding: 16, borderRadius: 8, margin: 16, alignItems: 'center' },
fabText: { color: '#fff', fontSize: 16, fontWeight: '700' },
})
diff --git a/tsconfig.json b/tsconfig.json
index b9567f6..a86c8b1 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,8 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
- "strict": true
- }
+ "strict": true,
+ "types": ["jest"]
+ },
+ "exclude": ["tests"]
}