mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-08-03 01:53:18 +08:00
Added react navigation drawer, initial template pages, and drawer sidebar design
This commit is contained in:
parent
1bb5be84ea
commit
428a228278
19 changed files with 978 additions and 17 deletions
23
src/components/Button/DrawerButton.tsx
Normal file
23
src/components/Button/DrawerButton.tsx
Normal 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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue