From 1cb36cd073252f4a185cd9775382da4c6861a8cb Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Tue, 28 Mar 2023 17:18:05 +0200 Subject: Working app --- components/DrawerContent.js | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 components/DrawerContent.js (limited to 'components/DrawerContent.js') diff --git a/components/DrawerContent.js b/components/DrawerContent.js new file mode 100644 index 0000000..41b67cb --- /dev/null +++ b/components/DrawerContent.js @@ -0,0 +1,43 @@ +import * as React from "react" +import { Image, Alert, StyleSheet } from 'react-native' +import { DrawerContentScrollView, DrawerItem } from '@react-navigation/drawer'; + +import icon from "../assets/pencil-circle.png" +import iIcon from "../assets/i.png" +import cIcon from "../assets/text-plus-icon.png" +import plusIcon from "../assets/plus.png" +import newIcon from "../assets/new-icon.png" + +export default function DrawerContent(props) { + window.navigation = props.navigation + return ( + + + } + onPress={() => props.navigation.navigate("notesList")} + /> + } + onPress={() => props.navigation.navigate("addNote")} + /> + } + onPress={() => props.navigation.navigate("addCategory")} + /> + } + onPress={() => Alert.alert("Alert", "Alerting from best note app, version 2.0")} + /> + + ); +} + +const styles = StyleSheet.create({ + topImg: { width: 100, height: 100, margin: 30, alignSelf: "center" }, + icon: { width: 30, height: 30 }, +}) -- cgit v1.3.1