Added functional registration

This commit is contained in:
Keannu Christian Bernasol 2023-07-03 21:22:31 +08:00
parent dfc20753b3
commit 26b3db25f0
23 changed files with 679 additions and 57 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 Button(props: props) {
return (
<Pressable
onPress={props.onPress}
style={{
...styles.button_template,
...{ backgroundColor: props.color, width: "50%" },
}}
>
{props.children}
</Pressable>
);
}

View file

@ -14,7 +14,11 @@ export default function DrawerButton(props: props) {
onPress={props.onPress}
style={{
...styles.button_template,
...{ backgroundColor: props.color, width: "95%" },
...{
backgroundColor: props.color,
width: "95%",
justifyContent: "flex-start",
},
}}
>
{props.children}