Added react navigation drawer, initial template pages, and drawer sidebar design

This commit is contained in:
Keannu Christian Bernasol 2023-07-03 16:18:39 +08:00
parent 1bb5be84ea
commit 428a228278
19 changed files with 978 additions and 17 deletions

View file

@ -0,0 +1,23 @@
import * as React from "react";
import { Text, Pressable, GestureResponderEvent } from "react-native";
import styles from "../../styles";
export interface props {
children: React.ReactNode;
onPress: (event: GestureResponderEvent) => void;
color: string;
}
export default function DrawerButton(props: props) {
return (
<Pressable
onPress={props.onPress}
style={{
...styles.button_template,
...{ backgroundColor: props.color, width: "95%" },
}}
>
{props.children}
</Pressable>
);
}